/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a56db;
    --secondary-color: #0e3d8f;
    --accent-color: #3b82f6;
    --text-color: #333;
    --light-gray: #f5f7fa;
    --border-color: #e1e5eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    margin-right: 10px;
}

.logo {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: 0.3s;
}

/* 首页横幅 */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 70px;
}

.hero-logo {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: fadeInUp 1s ease 0.1s both;
    font-weight: 700;
    letter-spacing: 8px;
}

.hero-content .hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 10px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
    letter-spacing: 2px;
}

.hero-content .hero-company {
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 0.8;
    animation: fadeInUp 1s ease 0.3s both;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid white;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn:hover {
    background: transparent;
    color: white;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 通用区块样式 */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

/* 关于我们 */
.about {
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #555;
}

.about-text strong {
    color: var(--primary-color);
}

.about-cards {
    display: grid;
    gap: 20px;
}

.card {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.card p {
    color: #666;
}

/* 业务范围 */
.business {
    background: var(--light-gray);
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.business-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.business-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.business-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.business-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.business-item p {
    color: #666;
    font-size: 0.95rem;
}

/* 联系我们 */
.contact {
    background: white;
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    padding: 25px;
    background: var(--light-gray);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateY(5px);
}

.info-icon {
    font-size: 2rem;
}

.info-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.info-item p {
    color: #666;
}

.contact-form {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 10px;
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form button {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: var(--secondary-color);
}

/* 页脚 */
.footer {
    background: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 30px 0;
}

.footer p {
    margin: 5px 0;
    opacity: 0.9;
}

.footer .icp a {
    color: white;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer .icp a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-links a {
    color: white;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-links .separator {
    margin: 0 10px;
    opacity: 0.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-logo {
        width: 30px;
        height: 30px;
        border-radius: 6px;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .hero-logo {
        width: 90px;
        height: 90px;
        border-radius: 18px;
    }

    .hero-content .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-content .hero-company {
        font-size: 0.9rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .business-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        width: 28px;
        height: 28px;
        border-radius: 5px;
    }

    .logo h1 {
        font-size: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .hero-logo {
        width: 80px;
        height: 80px;
        border-radius: 16px;
    }

    .hero-content .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-content .hero-company {
        font-size: 0.85rem;
    }

    .card,
    .business-item {
        padding: 20px;
    }
}
