
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

:root {
    --primary: #2c7dbe;
    --primary-light: #4a9fe3;
    --primary-dark: #1a5a8d;
    --secondary: #42c0e6;
    --accent: #00e0ff;
    --light: #f0f8ff;
    --dark: #1a2a3a;
    --text: #2d3e50;
}

body {
    background: linear-gradient(135deg, #f0f9ff, #e6f4ff);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 页眉样式 */
.page-header {
    text-align: center;
    padding: 40px 0 30px;
    margin-bottom: 20px;
    position: relative;
}

    .page-header h1 {
        font-size: 2.8rem;
        color: var(--dark);
        margin-bottom: 10px;
        position: relative;
        display: inline-block;
        font-weight: 700;
    }

        .page-header h1:after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: var(--accent);
            border-radius: 2px;
        }

    .page-header p {
        font-size: 1.2rem;
        max-width: 700px;
        margin: 25px auto 0;
        color: var(--primary-dark);
    }

/* 搜索区域 */
.search-box {
    margin-bottom: 30px;
    position: relative;
    max-width: 600px;
    margin: 0 auto 30px;
    text-align: center;
}

    .search-box input {
        width: 70%;
        padding: 16px 25px 16px 60px;
        border: none;
        border-radius: 50px;
        font-size: 1.1rem;
        background: white;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        color: var(--dark);
    }

        .search-box input:focus {
            width: 90%;
            outline: none;
            box-shadow: 0 0 0 3px rgba(66, 192, 230, 0.3);
        }

    .search-box i {
        position: relative;
        left: 45px;
        top: 15px;
        transform: translateY(-50%);
        color: var(--primary);
        font-size: 1.5rem;
    }

/* 公司列表 */
.company-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 120px;
}

.company-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    display: flex;
    min-height: 220px;
    transform: translateY(15px);
    opacity: 0;
}
    .company-card.visible {
        opacity: 1;
        transform: translateY(0px);
    }
    .company-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
    }
        .company-card:hover .company-logo {
            background: rgba(25, 125, 255, 0.9);
            height: 420px;
            width: 600px;
            margin-bottom: 110px;
            opacity: 1;
        }

.company-left {
    width: 30%;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px;
    position: relative;
    overflow: hidden;    
    transition: all .5s ease;
}

    .company-left:before {
        content: '';
        position: absolute;
        top: -50px;
        right: -50px;
        width: 100px;
        height: 100px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
    }

    .company-left:after {
        content: '';
        position: absolute;
        bottom: -30px;
        left: -30px;
        width: 80px;
        height: 80px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 50%;
    }

.company-logo {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(25, 125, 45, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 15px;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    opacity: 0;
}

.company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-align: center;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.company-category {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 8px;
    z-index: 2;
    font-weight: 500;
    text-align: center;
}

.company-right {
    width: 70%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.company-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

    .info-item i {
        color: var(--accent);
        min-width: 22px;
        margin-top: 5px;
        font-size: 1.2rem;
    }

.info-text {
    flex: 1;
}

.info-title {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.info-detail {
    font-size: 1rem;
    color: var(--text);
}

.contact-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(44, 125, 190, 0.15);
}

.website-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .website-link:hover {
        color: var(--accent);
        transform: translateX(5px);
    }

.contact-section .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(44, 125, 190, 0.3);
}

.contact-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(44, 125, 190, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .company-card {
        flex-direction: column;
        min-height: auto;
    }

    .company-left, .company-right {
        width: 100%;
    }

    .company-left {
        padding: 40px;
    }

    .company-right {
        padding: 25px;
    }

    .company-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-section {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.8rem;
    }

    .search-box input {
        padding: 14px 20px 14px 50px;
    }

    .company-logo {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    .company-list {
        margin-bottom: 60px;
    }
}

/* 动画效果 */
.company-card:nth-child(1) {
    animation-delay: 0.1s;
}

.company-card:nth-child(2) {
    animation-delay: 0.2s;
}

.company-card:nth-child(3) {
    animation-delay: 0.3s;
}

.company-card:nth-child(4) {
    animation-delay: 0.4s;
}

.company-card:nth-child(5) {
    animation-delay: 0.5s;
}

.company-card:nth-child(6) {
    animation-delay: 0.6s;
}

.company-card:nth-child(7) {
    animation-delay: 0.7s;
}

/* 装饰元素 */
.tech-pattern {
    position: absolute;
    opacity: 0.05;
    z-index: -1;
}

.pattern-1 {
    top: 50px;
    right: 5%;
    font-size: 10rem;
    transform: rotate(15deg);
}

.pattern-2 {
    bottom: 50px;
    left: 5%;
    font-size: 8rem;
    transform: rotate(-10deg);
}
