/* ========== AysonGlobal 样式表 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e2a3a;
    background-color: #f0f4f8;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600" opacity="0.03"><path fill="none" stroke="%231e3a5f" stroke-width="1.5" d="M150,200 L200,180 L260,200 L300,170 L340,190 L390,160 L430,180 L470,150 L520,170 L560,140 L610,160 L650,190 L700,170 L730,200 L680,230 L630,250 L580,230 L530,260 L480,240 L440,270 L390,250 L340,280 L290,260 L240,290 L190,270 L150,300 L120,280 L80,300 L40,270 L60,230 L100,210 L150,200Z M200,350 L250,330 L300,360 L350,340 L400,370 L450,350 L500,380 L550,360 L600,390 L560,420 L510,400 L460,430 L410,410 L360,440 L310,420 L260,450 L210,430 L160,460 L120,440 L80,460 L60,420 L100,390 L150,370 L200,350Z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(30, 58, 95, 0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(30, 58, 95, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.navbar, .hero, .section, footer {
    position: relative;
    z-index: 2;
}

/* 导航栏 */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(15, 35, 60, 0.95);
    backdrop-filter: blur(8px);
    z-index: 100;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #F5A623, #FFD166);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #e2e8f0;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #F5A623;
}

/* 语言切换器 */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 40px;
}

.lang-btn {
    background: none;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    padding: 0.2rem 0.6rem;
    border-radius: 30px;
    transition: all 0.2s;
}

.lang-btn.active {
    background: #F5A623;
    color: #0f233c;
}

/* Hero区域 */
.hero {
    background: linear-gradient(135deg, rgba(15,35,60,0.92), rgba(30,58,95,0.88));
    padding: 6rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    background: linear-gradient(135deg, #FFF, #FFD166);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: #cbd5e6;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #F5A623, #e69500);
    color: #0f233c;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245,166,35,0.3);
}

.section {
    padding: 5rem 2rem;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1e3a5f;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s;
    border-top: 4px solid #F5A623;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #F5A623;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1e3a5f;
}

.service-card .service-summary {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.learn-more {
    display: inline-block;
    margin-top: 0.5rem;
    color: #F5A623;
    text-decoration: none;
    font-weight: 500;
}

.learn-more:hover {
    text-decoration: underline;
}

/* 页脚 */
footer {
    background: #0a1929;
    color: #8ba0bc;
    padding: 3rem 2rem 2rem;
    margin-top: 2rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #F5A623, #FFD166);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.footer-company-name {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.footer-email, .footer-address {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-email i, .footer-address i {
    width: 1.5rem;
    color: #F5A623;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    color: #cbd5e1;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: #F5A623;
}

.footer-right .contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-right .contact-form input,
.footer-right .contact-form textarea {
    padding: 0.7rem;
    border: none;
    border-radius: 0.5rem;
    background: #1e2a3a;
    color: #fff;
    font-family: inherit;
}

.footer-right .contact-form input::placeholder,
.footer-right .contact-form textarea::placeholder {
    color: #8ba0bc;
}

.footer-right .contact-form button {
    align-self: flex-start;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #1e2a3a;
    font-size: 0.8rem;
}

/* 详情页样式 */
.detail-section {
    padding: 4rem 2rem;
}

.detail-container {
    max-width: 1280px;
    margin: 0 auto;
}

.detail-container h1 {
    font-size: 2.5rem;
    color: #1e3a5f;
    margin-bottom: 1rem;
}

.detail-description {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* 表格样式 */
.region-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-top: 1rem;
}

.region-table th,
.region-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.region-table th {
    background: #f1f5f9;
    font-weight: 600;
    color: #1e3a5f;
}

.region-table tr:last-child td {
    border-bottom: none;
}

/* 4个分项样式 */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-item h3 {
    font-size: 1.2rem;
    color: #1e3a5f;
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.95rem;
    color: #4a5568;
}

/* ========== 移动端响应式适配 ========== */
@media (max-width: 768px) {
    /* ----- 移动端整体字号缩小 ----- */
    html {
        font-size: 13px;
    }

    /* ----- 禁止页面横向滚动（修复滑动露出汉堡菜单问题） ----- */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    /* ----- 全局容器内边距（确保所有模块左右留白一致） ----- */
    .container {
        padding: 0 1rem;
    }

    /* 服务卡片改为单列 */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* 页脚两列改为单列 */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* 表格移动端堆叠显示 */
    .region-table,
    .region-table thead,
    .region-table tbody,
    .region-table tr,
    .region-table th,
    .region-table td {
        display: block;
    }
    .region-table tr {
        margin-bottom: 1rem;
        border: 1px solid #e2e8f0;
        border-radius: 0.5rem;
    }
    .region-table th {
        display: none;
    }
    .region-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #eef2f6;
    }
    .region-table td:before {
        content: attr(data-label);
        font-weight: 600;
        width: 40%;
        color: #1e3a5f;
    }

    /* Hero 区域移动端 */
    .hero {
        padding: 4rem 1.5rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }

    /* 章节标题移动端 */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    /* 通用内边距调整 */
    .section {
        padding: 3rem 1.5rem;
    }

    /* ============================================================ */
    /* 1. 导航栏 - 顶部固定，Logo左 + 汉堡菜单右 */
    /* ============================================================ */
    .nav-container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.25rem;
        padding: 0;
        position: relative;
        z-index: 1001; /* 确保在菜单之上 */
    }

    .logo {
        font-size: 1.3rem;
        flex: 0 0 auto;
        order: 1;
    }

    /* 汉堡菜单按钮（由 JS 生成） */
    .menu-toggle {
        display: block !important;
        order: 3;
        font-size: 1.6rem;
        color: #F5A623;
        cursor: pointer;
        background: none;
        border: none;
        padding: 0.2rem 0.3rem;
        z-index: 1002;
        line-height: 1;
        flex: 0 0 auto;
        margin-left: auto; /* 确保在最右侧 */
    }

    /* 隐藏原有的伪元素汉堡按钮（如果有） */
    .nav-container::before {
        display: none !important;
    }

    /* ============================================================ */
    /* 2. 语言切换器 - Logo下方，左对齐，长度由内容撑开 */
    /* ============================================================ */
    .language-switcher {
        order: 2;
        flex-basis: auto;           /* 修改：从 100% 改为 auto，避免占满整行 */
        display: inline-flex;
        width: auto;
        justify-content: flex-start;
        margin: 0.2rem 0 0 0.2rem;
        padding: 0.15rem 0.5rem;
        gap: 0.6rem;
        background: rgba(255,255,255,0.1);
        border-radius: 40px;
    }

    .language-switcher .lang-btn {
        font-size: 0.8rem;
        padding: 0.1rem 0.3rem;
        color: #cbd5e1;
    }

    .language-switcher .lang-btn.active {
        background: #F5A623;
        color: #0f233c;
    }

    /* ============================================================ */
    /* 3. 右侧滑出菜单 + 遮罩 */
    /* ============================================================ */
    .nav-links {
        position: fixed;
        top: 60px; /* 顶部栏高度，避开 Logo + 语言切换器 */
        right: 0;
        width: 70%;                 /* 修改：从 75% 改为 70% */
        height: auto;               /* 修改：从固定高度改为自适应内容 */
        max-height: calc(100vh - 60px);
        max-height: calc(100dvh - 60px);
        background: rgba(15, 35, 60, 0.98);
        backdrop-filter: blur(8px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 1.5rem 2rem 0.5rem;  /* 底部从 2rem 改为 0.5rem，压缩留白 */
        gap: 0.25rem;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        display: flex !important;
        overflow-y: auto;
        border-radius: 0;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
        text-align: left;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        list-style: none;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        font-size: 1.1rem;
        color: #e2e8f0;
        padding: 0.15rem 0;
        transition: color 0.2s;
    }

    .nav-links a:hover {
        color: #F5A623;
    }

    /* 下拉菜单 - 移动端（修正：确保父级撑开，子菜单不覆盖） */
    .dropdown {
        position: relative;
        width: 100%;
        display: block;
        overflow: visible;
    }

    .dropdown-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        padding-left: 0.8rem;
        margin-top: 0.1rem;
        background: transparent;
        box-shadow: none;
        display: block !important;
        position: relative;         /* 修改：从 static 改为 relative，确保在文档流中占位 */
        border-radius: 0;
        width: 100%;
    }

    .dropdown-menu.open {
        max-height: 400px;
    }

    .dropdown-menu li {
        padding: 0.3rem 0 !important;
        border-bottom: none !important;
    }

    .dropdown-menu li a {
        font-size: 0.95rem !important;
        color: #cbd5e1 !important;
        padding: 0.1rem 0 !important;
    }

    .dropdown-menu li a:hover {
        color: #F5A623 !important;
    }

    /* 父级菜单箭头旋转 */
    .dropdown > a .fa-chevron-down {
        display: inline-block;
        transition: transform 0.3s ease;
        font-size: 0.75rem;
        margin-left: 0.3rem;
    }

    .dropdown > a.open .fa-chevron-down {
        transform: rotate(180deg);
    }

    /* 遮罩 */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* ============================================================ */
    /* 4. 核心优势卡片 - 单列垂直排列（1×4） */
    /* ============================================================ */
    .advantages-grid {
        grid-template-columns: 1fr !important;  /* 增加 !important 强制覆盖 */
        gap: 0.75rem;
    }

    .advantage-card {
        width: 100%;
        min-width: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0.8rem 0.5rem;
        text-align: center;
        box-sizing: border-box;
    }

    .advantage-card i {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }

    .advantage-card h4 {
        width: 100%;
        font-size: 0.85rem;
        margin-bottom: 0.15rem;
        line-height: 1.3;
        word-break: break-word;
    }

    .advantage-card p {
        width: 100%;
        font-size: 0.7rem;
        line-height: 1.2;
        word-break: break-word;
    }

    /* ============================================================ */
    /* 5. About区域留白修复 */
    /* ============================================================ */
    .about-container {
        flex-direction: column;
        padding: 0 0.5rem;
    }

    .about-left,
    .about-right {
        padding: 1rem;
        width: 100%;
    }

    .about-left p {
        font-size: 0.85rem;
        text-align: left;
    }

    /* 表格内引导语（门到门双清专线） */
    .guide-text {
        font-size: 0.8rem;
        margin: 0.3rem 0 0.3rem;
    }

    /* ============================================================ */
    /* 7. Contact 区域 - 保持原顺序，仅调整内边距 */
    /* ============================================================ */
    .contact-inner {
        flex-direction: column;
        padding: 1rem;
    }

    .contact-left,
    .contact-right {
        width: 100%;
        padding: 0.5rem 0;
    }

    .contact-form button {
        width: 100%;
    }

    /* ============================================================ */
    /* 8. 社交媒体图标 - 移动端放大 */
    /* ============================================================ */
    .contact-social a {
        font-size: 1.8rem !important;  /* 增加 !important 强制覆盖 */
    }

    /* ============================================================ */
    /* 9. 门到门双清 - 移动端卡片折叠样式 */
    /* ============================================================ */
    
    /* 竖屏（≤768px）：显示卡片，隐藏表格 */
    .region-cards {
        display: block;
        margin-top: 0.75rem;
    }
    
    .region-table-wrapper {
        display: none !important;
    }
    
    /* 每张卡片 */
    .region-card {
        background: #f8fafc;
        border-radius: 0.5rem;
        padding: 0.8rem 1rem;
        margin-bottom: 0.5rem;
        border: 1px solid #e2e8f0;
        transition: background 0.2s;
        cursor: pointer;
    }
    
    .region-card:active {
        background: #edf2f7;
    }
    
    /* 卡片头部 - 国家/地区 + 国旗 */
    .region-card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-weight: 700;
        font-size: 0.95rem;
        color: #1e3a5f;
    }
    
    .region-card-header .country-name {
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }
    
    .region-card-header .country-flag {
        font-size: 1.1rem;
        line-height: 1;
    }
    
    .region-card-header .toggle-icon {
        font-size: 1rem;
        color: #F5A623;
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }
    
    .region-card-header .toggle-icon.open {
        transform: rotate(180deg);
    }
    
    /* 卡片运输方式 - 标签 */
    .region-card-options {
        font-size: 0.75rem;
        color: #F5A623;
        background: rgba(245, 166, 35, 0.12);
        display: inline-block;
        padding: 0.1rem 0.6rem;
        border-radius: 20px;
        margin-top: 0.3rem;
        font-weight: 500;
        letter-spacing: 0.02em;
    }
    
    /* 卡片详情 - 默认折叠 */
    .region-card-detail {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        padding-top: 0;
    }
    
    .region-card-detail.open {
        max-height: 400px;
        padding-top: 0.5rem;
    }
    
    .region-card-detail p {
        font-size: 0.8rem;
        color: #4a5568;
        line-height: 1.5;
        margin: 0;
        padding: 0;
    }

    /* ============================================================ */
    /* 其他已有样式保持不变 */
    /* ============================================================ */
    .service-block h3 {
        font-size: 1.1rem;
        white-space: normal;
    }

    .service-block li {
        font-size: 0.9rem;
    }

    .learn-more {
        font-size: 0.9rem;
    }

    .footer-company-name,
    .footer-email,
    .footer-address {
        font-size: 0.8rem;
    }
}

/* 平板端适配（769px - 1024px） */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* ============================================================ */
/* 10. 门到门双清 - 横屏/桌面端表格显示 */
/* ============================================================ */
@media (min-width: 769px) {
    .region-cards {
        display: none !important;
    }
    .region-table-wrapper {
        display: block !important;
    }
}