/* 独贝兑换 - 微信换支付宝平台 主样式表 */
/* Mobile-First 响应式设计 */

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #1a9f6c;
    --primary-dark: #158a5c;
    --primary-light: #e8f8f0;
    --secondary: #1677ff;
    --secondary-light: #e8f3ff;
    --text: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg: #ffffff;
    --bg-gray: #f9fafb;
    --bg-dark: #111827;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0,0,0,.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,.1);
    --radius: 8px;
    --radius-lg: 16px;
    --max-width: 1200px;
    --header-height: 64px;
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    padding-bottom: 60px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }
.section { padding: 48px 0; }
.section-title { font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 8px; color: var(--text); }
.section-subtitle { font-size: .95rem; color: var(--text-secondary); text-align: center; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    border: 2px solid transparent;
    line-height: 1.4;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: var(--shadow);
    height: var(--header-height);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}
.logo:hover { color: var(--primary-dark); }
.logo-icon { font-size: 1.6rem; }
.nav { display: none; }
.nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: var(--shadow-md);
    padding: 16px;
    gap: 4px;
    z-index: 999;
}
.nav-link {
    padding: 12px 16px;
    color: var(--text);
    font-size: .95rem;
    border-radius: var(--radius);
    transition: all .2s;
}
.nav-link:hover, .nav-link.active { background: var(--primary-light); color: var(--primary); }

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all .3s;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Banner */
.banner {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    padding: 40px 0 32px;
}
.banner-content { margin-bottom: 24px; }
.banner h1 { font-size: 1.6rem; font-weight: 800; color: var(--text); line-height: 1.3; margin-bottom: 16px; }
.banner-desc { font-size: .95rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 24px; }
.banner-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.banner-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.banner-image img { width: 100%; }

/* Services */
.services-section { background: var(--bg); }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all .3s;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}
.service-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.service-card p { font-size: .9rem; color: var(--text-secondary); line-height: 1.8; }

/* Advantages */
.advantages-section { background: var(--bg-gray); }
.advantages-image { text-align: center; margin-bottom: 32px; border-radius: var(--radius-lg); overflow: hidden; }
.advantages-image img { max-width: 500px; margin: 0 auto; border-radius: var(--radius-lg); }
.advantages-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.advantage-item { text-align: center; padding: 24px 16px; }
.advantage-icon { font-size: 2rem; margin-bottom: 12px; }
.advantage-item h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.advantage-item p { font-size: .88rem; color: var(--text-secondary); line-height: 1.8; }

/* Process */
.process-section { background: var(--bg); }
.process-steps { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.step {
    text-align: center;
    padding: 24px 20px;
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    width: 100%;
}
.step-number {
    display: inline-block;
    width: 48px;
    height: 48px;
    line-height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.step p { font-size: .88rem; color: var(--text-secondary); line-height: 1.7; }
.step-arrow { font-size: 1.5rem; color: var(--primary); }

/* Security */
.security-section { background: var(--bg-gray); }
.security-layout { display: flex; flex-direction: column; gap: 24px; }
.security-image { border-radius: var(--radius-lg); overflow: hidden; }
.security-content h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.security-content p { font-size: .92rem; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.8; }
.security-list { list-style: none; }
.security-list li {
    padding: 12px 0 12px 28px;
    position: relative;
    font-size: .9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    border-bottom: 1px solid var(--border);
}
.security-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
}
.security-list li:last-child { border-bottom: none; }
.security-list li strong { color: var(--text); }

/* Scenarios */
.scenarios-section { background: var(--bg); }
.scenarios-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.scenario-card {
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all .3s;
}
.scenario-card:hover { box-shadow: var(--shadow-md); }
.scenario-icon { font-size: 2rem; margin-bottom: 12px; }
.scenario-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.scenario-card p { font-size: .88rem; color: var(--text-secondary); line-height: 1.8; }

/* Mobile */
.mobile-section { background: var(--bg-gray); }
.mobile-layout { display: flex; flex-direction: column; gap: 24px; }
.mobile-content h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.mobile-content p { font-size: .92rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 20px; }
.mobile-features { list-style: none; }
.mobile-features li {
    padding: 10px 0 10px 28px;
    position: relative;
    font-size: .9rem;
    color: var(--text-secondary);
}
.mobile-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}
.mobile-image { border-radius: var(--radius-lg); overflow: hidden; }

/* Stats */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 48px 0;
}
.stats-section .section-title { color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; text-align: center; }
.stat-number { font-size: 1.6rem; font-weight: 800; margin-bottom: 4px; }
.stat-label { font-size: .85rem; opacity: .85; }

/* Reviews */
.reviews-section { background: var(--bg); }
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.review-card {
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
}
.review-stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: 12px; }
.review-text { font-size: .9rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 12px; font-style: italic; }
.review-author { font-size: .85rem; color: var(--text-light); font-weight: 600; }

/* FAQ */
.faq-preview-section { background: var(--bg-gray); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}
.faq-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.faq-item p { font-size: .88rem; color: var(--text-secondary); line-height: 1.8; }

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    text-align: center;
    padding: 56px 0;
}
.cta-section h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 16px; color: var(--text); }
.cta-section p { font-size: .95rem; color: var(--text-secondary); margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.8; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer { background: var(--bg-dark); color: #d1d5db; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }
.footer-col h3 { color: #fff; font-size: 1.05rem; font-weight: 700; margin-bottom: 16px; }
.footer-col p { font-size: .85rem; line-height: 1.8; color: #9ca3af; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #9ca3af; font-size: .88rem; transition: color .2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-col ul li:not(:has(a)) { font-size: .88rem; color: #9ca3af; }
.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 24px;
    text-align: center;
}
.footer-bottom p { font-size: .8rem; color: #6b7280; margin-bottom: 4px; }
.footer-icp { font-size: .75rem; color: #4b5563; }

/* Mobile Bottom Nav */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 8px rgba(0,0,0,.08);
    display: flex;
    justify-content: space-around;
    z-index: 1000;
    padding: 6px 0;
    padding-bottom: env(safe-area-inset-bottom, 6px);
}
.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: .7rem;
    color: var(--text-secondary);
    padding: 4px 8px;
    transition: color .2s;
}
.mobile-nav-item.active { color: var(--primary); }
.mobile-nav-icon { font-size: 1.2rem; margin-bottom: 2px; }

/* ==================== Tablet (768px+) ==================== */
@media (min-width: 768px) {
    .container { padding: 0 24px; }
    .section { padding: 64px 0; }
    .section-title { font-size: 1.8rem; }

    .menu-toggle { display: none; }
    .nav {
        display: flex !important;
        flex-direction: row;
        position: static;
        background: none;
        box-shadow: none;
        padding: 0;
        gap: 4px;
    }

    .banner { padding: 56px 0 48px; }
    .banner h1 { font-size: 2.2rem; }
    .banner-desc { font-size: 1.05rem; }

    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .process-steps { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .step { max-width: 220px; }
    .step-arrow { display: flex; align-items: center; }

    .security-layout { flex-direction: row; align-items: flex-start; }
    .security-image { width: 45%; flex-shrink: 0; }
    .security-content { width: 55%; }

    .scenarios-grid { grid-template-columns: repeat(2, 1fr); }

    .mobile-layout { flex-direction: row; align-items: center; }
    .mobile-content { width: 55%; }
    .mobile-image { width: 45%; }

    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .stat-number { font-size: 2rem; }

    .reviews-grid { grid-template-columns: repeat(3, 1fr); }

    .footer-grid { grid-template-columns: repeat(2, 1fr); }

    .mobile-nav { display: none; }
    body { padding-bottom: 0; }
}

/* ==================== Desktop (1024px+) ==================== */
@media (min-width: 1024px) {
    .container { padding: 0 32px; }
    .section { padding: 80px 0; }
    .section-title { font-size: 2rem; }
    .section-subtitle { font-size: 1rem; }

    .banner .container { display: flex; align-items: center; gap: 48px; }
    .banner-content { width: 55%; margin-bottom: 0; }
    .banner-image { width: 45%; }
    .banner h1 { font-size: 2.6rem; }
    .banner-desc { font-size: 1.1rem; }

    .service-card { padding: 36px 28px; }
    .advantage-item { padding: 32px 24px; }

    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }

    .nav-link { padding: 8px 16px; }
}

/* ==================== Page Banner ==================== */
.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 48px 0 40px;
    text-align: center;
}
.page-banner h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.page-banner p { font-size: .95rem; opacity: .9; }

/* About Page */
.about-content p { font-size: .95rem; color: var(--text-secondary); line-height: 1.9; margin-bottom: 20px; }

.timeline { position: relative; padding-left: 28px; max-width: 700px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--primary); }
.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-dot { position: absolute; left: -24px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--primary); }
.timeline-content h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.timeline-content p { font-size: .88rem; color: var(--text-secondary); line-height: 1.7; }

.values-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.value-card { background: var(--bg-gray); border-radius: var(--radius-lg); padding: 28px 24px; text-align: center; }
.value-icon { font-size: 2.2rem; margin-bottom: 12px; }
.value-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.value-card p { font-size: .88rem; color: var(--text-secondary); line-height: 1.8; }

.team-features { display: grid; grid-template-columns: 1fr; gap: 20px; }
.team-feature { background: var(--bg); border-radius: var(--radius-lg); padding: 28px 24px; border: 1px solid var(--border); }
.team-feature h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--primary); }
.team-feature p { font-size: .88rem; color: var(--text-secondary); line-height: 1.8; }

.compliance-content p { font-size: .95rem; color: var(--text-secondary); line-height: 1.9; margin-bottom: 24px; max-width: 800px; margin-left: auto; margin-right: auto; }
.compliance-list { display: grid; grid-template-columns: 1fr; gap: 20px; }
.compliance-item { background: var(--bg-gray); border-radius: var(--radius-lg); padding: 28px 24px; }
.compliance-item h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.compliance-item p { font-size: .88rem; color: var(--text-secondary); line-height: 1.8; }

.bg-gray { background: var(--bg-gray); }

/* Service Page */
.service-detail { display: flex; flex-direction: column; gap: 24px; margin-bottom: 48px; }
.service-detail:nth-child(even) { flex-direction: column; }
.service-detail-img { border-radius: var(--radius-lg); overflow: hidden; }
.service-detail-content h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.service-detail-content p { font-size: .92rem; color: var(--text-secondary); line-height: 1.9; margin-bottom: 16px; }
.service-features { list-style: none; }
.service-features li { padding: 8px 0 8px 28px; position: relative; font-size: .9rem; color: var(--text-secondary); line-height: 1.7; }
.service-features li::before { content: "\2713"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

.rate-table { width: 100%; border-collapse: collapse; margin: 24px 0; border-radius: var(--radius); overflow: hidden; }
.rate-table th { background: var(--primary); color: #fff; padding: 14px 16px; font-size: .9rem; font-weight: 600; text-align: left; }
.rate-table td { padding: 12px 16px; font-size: .88rem; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.rate-table tr:nth-child(even) td { background: var(--bg-gray); }

/* FAQ Page */
.faq-page-list { max-width: 800px; margin: 0 auto; }
.faq-page-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.faq-page-item summary { padding: 18px 24px; font-size: 1rem; font-weight: 600; color: var(--text); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-page-item summary::after { content: "+"; font-size: 1.3rem; color: var(--primary); font-weight: 700; transition: transform .3s; }
.faq-page-item[open] summary::after { content: "-"; }
.faq-page-item .faq-answer { padding: 0 24px 20px; }
.faq-page-item .faq-answer p { font-size: .9rem; color: var(--text-secondary); line-height: 1.8; }

/* Contact Page */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.contact-card { background: var(--bg-gray); border-radius: var(--radius-lg); padding: 28px 24px; text-align: center; }
.contact-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.contact-card p { font-size: .9rem; color: var(--text-secondary); line-height: 1.7; }
.contact-card .contact-icon { font-size: 2rem; margin-bottom: 12px; }
.contact-tips { max-width: 800px; margin: 0 auto; }
.contact-tips h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 20px; text-align: center; }
.tips-list { list-style: none; }
.tips-list li { padding: 14px 0 14px 32px; position: relative; font-size: .92rem; color: var(--text-secondary); line-height: 1.7; border-bottom: 1px solid var(--border); }
.tips-list li::before { content: "!"; position: absolute; left: 0; width: 22px; height: 22px; line-height: 22px; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-weight: 700; text-align: center; font-size: .75rem; }

/* Tablet+ */
@media (min-width: 768px) {
    .page-banner { padding: 64px 0 52px; }
    .page-banner h1 { font-size: 2.2rem; }

    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .team-features { grid-template-columns: repeat(3, 1fr); }
    .compliance-list { grid-template-columns: repeat(3, 1fr); }

    .service-detail { flex-direction: row; align-items: flex-start; }
    .service-detail:nth-child(even) { flex-direction: row-reverse; }
    .service-detail-img { width: 45%; flex-shrink: 0; }
    .service-detail-content { width: 55%; }

    .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .values-grid { grid-template-columns: repeat(4, 1fr); }
    .contact-grid { grid-template-columns: repeat(4, 1fr); }
}
