/* reset & 基础变量 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1e4a76;
    --primary-dark: #0f3b5c;
    --primary-light: #2c6e9e;
    --accent: #d97706;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', sans-serif;
    color: var(--gray-800);
    line-height: 1.5;
    background-color: white;
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: 80px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 导航栏 */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    z-index: 100;
    border-bottom: 1px solid var(--gray-200);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 24px;
}

.logo-link {
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    font-weight: 500;
    color: var(--gray-600);
    transition: color 0.2s;
    font-size: 1rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-100);
    padding: 6px 14px;
    border-radius: 40px;
    font-weight: 500;
}

.nav-phone a {
    text-decoration: none;
    color: var(--primary-dark);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.6rem;
    background: none;
    border: none;
}

/* 响应式导航 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
        gap: 1.5rem;
        z-index: 99;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-phone {
        display: none;
    }
    .nav-container {
        padding: 0.8rem 24px;
    }
}

/* 通用区块 */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.divider {
    width: 70px;
    height: 4px;
    background: var(--accent);
    margin: 0.5rem auto 1rem;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 1.1rem;
}

/* Hero */
.hero-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f0fa 100%);
    padding-top: 3rem;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1.2;
}

.hero-badge {
    display: inline-block;
    background: rgba(30,74,118,0.1);
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.stat-label {
    color: var(--gray-600);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.hero-image {
    flex: 0.8;
    text-align: center;
}

.globe-icon {
    font-size: 12rem;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.1));
}

/* 公司简介 */
.about-grid {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}

.about-text {
    flex: 1.5;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.about-features div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-icon {
    font-size: 10rem;
    background: var(--gray-100);
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
}

/* 业务卡片 */
.service-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-card {
    background: var(--gray-50);
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
    text-align: center;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.service-card p {
    color: var(--gray-600);
}

/* 语种展示 */
.languages-showcase {
    background: var(--gray-100);
    padding: 2rem;
    border-radius: 2rem;
    margin-bottom: 3rem;
}

.languages-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.language-badge-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.lang-badge {
    background: white;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-weight: 500;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
}

.language-note {
    text-align: center;
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* 行业方案 */
.industry-solutions {
    margin-top: 1rem;
}

.industry-solutions h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    text-align: center;
}

.industry-grid div {
    background: white;
    padding: 1rem;
    border-radius: 60px;
    border: 1px solid var(--gray-200);
    font-weight: 500;
}

/* 联系方式 */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-info {
    flex: 1.2;
    display: grid;
    gap: 1.8rem;
}

.contact-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    min-width: 50px;
    background: var(--gray-100);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-detail h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.contact-detail p a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
}

.contact-tips {
    font-size: 0.8rem;
    color: var(--gray-600);
}

.contact-map {
    flex: 0.9;
}

.map-placeholder {
    background: url('timingfanyiditu.png') no-repeat center/cover;
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    height: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    color: red;
    background-color: #f0f0f0; /* fallback if image missing */
}

.map-icon {
    font-size: 3rem;
}

/* 页脚 */
.footer {
    background-color: var(--gray-800);
    color: #cbd5e1;
    padding: 2.5rem 0 1.5rem;
    margin-top: 2rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-brand h3 {
    color: white;
    margin-bottom: 0.25rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

.footer-contact a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
}

.icp a {
    color: #cbd5e1;
    text-decoration: none;
}

/* ========= 窄屏适配：将图片/地图移到内容上方 ========= */
@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-stats {
        flex-wrap: wrap;
    }
    .about-features {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Hero 区块：图片在上，文字在下 */
    .hero-container {
        flex-direction: column;
    }
    .hero-image {
        order: -1;  /* 将图片移到最上面 */
        margin-bottom: 1rem;
    }
    .hero-content {
        text-align: center;
    }
    .hero-description {
        max-width: 100%;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-buttons {
        justify-content: center;
    }

    /* 公司简介：图标在上，文字在下 */
    .about-grid {
        flex-direction: column;
    }
    .about-image {
        order: -1;
        margin-bottom: 1.5rem;
    }
    .about-text {
        text-align: center;
    }
    .about-features {
        text-align: left; /* 特性列表左对齐更易读 */
    }

    /* 联系方式：地图在上，联系信息在下 */
    .contact-wrapper {
        flex-direction: column;
    }
    .contact-map {
        order: -1;
        margin-bottom: 1.5rem;
    }
    .contact-info {
        width: 100%;
    }
    .contact-item {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        align-items: center;
    }
    .contact-icon {
        margin-bottom: 0.5rem;
    }
    .contact-detail {
        text-align: center;
    }
}