/* ===== 好汇阁产品宣传站 全站样式 ===== */
:root {
    --primary: #1565c0;
    --primary-dark: #0a3d7a;
    --primary-light: #1e88e5;
    --accent-red: #e2231a;
    --gold: #d4af37;
    --gold-dark: #b8941f;
    --text: #2c3e50;
    --text-light: #5f6b7a;
    --bg: #f5f7fa;
    --bg-white: #ffffff;
    --border: #e6eaf0;
    --shadow: 0 4px 20px rgba(20, 40, 80, 0.08);
    --shadow-hover: 0 8px 30px rgba(20, 40, 80, 0.15);
    --radius: 12px;
    --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 顶部导航 ===== */
.site-header {
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 12px 20px;
    gap: 16px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.nav-brand img { height: 44px; width: auto; }
.nav-brand .brand-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent-red);
    letter-spacing: 2px;
    white-space: nowrap;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
.nav-menu a {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    transition: all 0.2s;
    white-space: nowrap;
}
.nav-menu a:hover { background: #eef4fd; color: var(--primary); }
.nav-menu a.active { color: var(--primary); font-weight: 700; }

/* 语言切换：地球图标下拉 */
.lang-switch { position: relative; flex-shrink: 0; }
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    background: #fff;
    padding: 7px 12px;
    border-radius: 20px;
    cursor: pointer;
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    line-height: 1;
    transition: all 0.2s;
}
.lang-toggle:hover { border-color: var(--primary-light); color: var(--primary); }
.lang-toggle .lang-globe { color: var(--primary); flex-shrink: 0; }
.lang-toggle .lang-caret { transition: transform 0.2s; opacity: 0.6; }
.lang-switch.open .lang-toggle .lang-caret { transform: rotate(180deg); }
.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    padding: 6px;
    min-width: 124px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s;
    z-index: 1100;
}
.lang-switch.open .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown button {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 9px 14px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text);
    font-family: inherit;
    transition: all 0.15s;
}
.lang-dropdown button:hover { background: #f3f8ff; color: var(--primary); }
.lang-dropdown button.active { background: var(--primary); color: #fff; font-weight: 600; }

/* 汉堡菜单 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: transparent;
    border: none;
}
.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== 通用区块 ===== */
.section { padding: 70px 0; }
.section-alt { background: var(--bg-white); }
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, #0a3d7a 0%, #1565c0 55%, #1e88e5 100%);
    color: #fff;
    padding: 90px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%);
    border-radius: 50%;
}
.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.25;
    position: relative;
}
.hero p.subtitle {
    font-size: 1.2rem;
    opacity: 0.92;
    max-width: 640px;
    margin: 0 auto 36px;
    position: relative;
}
.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}
.btn {
    display: inline-block;
    padding: 13px 32px;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    border: 2px solid transparent;
}
.btn-primary { background: var(--accent-red); color: #fff; }
.btn-primary:hover { background: #c41810; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(226,35,26,0.35); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #3a2e00; }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); }

/* ===== 功能卡片网格 ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 26px;
    box-shadow: var(--shadow);
    transition: all 0.25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.card .icon {
    font-size: 2rem;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f1fd, #d6e8fb);
    color: var(--primary);
    border-radius: 14px;
    margin-bottom: 18px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--text); }
.card p { color: var(--text-light); font-size: 0.97rem; }
.card ul { margin-top: 12px; }
.card ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 6px;
    color: var(--text-light);
    font-size: 0.93rem;
}
.card ul li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ===== 为什么选择我们 ===== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 28px;
}
.why-item { text-align: center; padding: 16px; }
.why-item .num {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}
.why-item h3 { font-size: 1.15rem; margin-bottom: 8px; }
.why-item p { color: var(--text-light); font-size: 0.95rem; }

/* ===== 用户评价 ===== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}
.review {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
}
.review .stars { color: var(--gold); margin-bottom: 10px; letter-spacing: 2px; }
.review p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 14px; }
.review .reviewer { font-weight: 700; color: var(--text); }

/* ===== 轮播 ===== */
.carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}
.carousel-slide { min-width: 100%; }
.carousel-slide img { width: 100%; height: auto; }
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    transition: background 0.2s;
}
.carousel-btn:hover { background: rgba(0,0,0,0.65); }
.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }
.carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.carousel-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.2s;
}
.carousel-dots span.active { background: #fff; }

/* ===== 内页通用 ===== */
.page-hero {
    background: linear-gradient(135deg, #0a3d7a, #1565c0);
    color: #fff;
    padding: 56px 20px;
    text-align: center;
}
.page-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 10px; }
.page-hero p { opacity: 0.9; font-size: 1.05rem; }

.content-block { max-width: 900px; margin: 0 auto; }
.lead-text {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--text);
    background: var(--bg-white);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 24px 28px;
    box-shadow: var(--shadow);
    margin-bottom: 36px;
}
.media-block { margin-bottom: 30px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.media-block video, .media-block img { width: 100%; height: auto; display: block; }

/* ===== 价格表 ===== */
.price-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}
.price-card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.25s;
}
.price-card:hover { transform: translateY(-5px); border-color: var(--primary-light); box-shadow: var(--shadow-hover); }
.price-card .period { font-size: 1.1rem; font-weight: 600; color: var(--text-light); margin-bottom: 10px; }
.price-card .amount { font-size: 2.2rem; font-weight: 800; color: var(--accent-red); }
.price-card .amount small { font-size: 1rem; color: var(--text-light); font-weight: 500; }
.price-card.featured { border-color: var(--accent-red); position: relative; }
.price-card.featured::before {
    content: "\2605";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-red);
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.notice-box {
    background: #fff8e6;
    border: 1px solid #f0d98a;
    border-radius: var(--radius);
    padding: 22px 26px;
    color: #6b5417;
    font-size: 0.98rem;
    line-height: 1.9;
    margin-top: 30px;
}
.notice-box strong { color: var(--accent-red); }

/* ===== 联系我们 ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}
.contact-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: var(--shadow);
    text-align: center;
}
.contact-wechat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.contact-wechat-card .contact-qr { margin-top: 20px; }
.contact-card .wechat-id {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin: 14px 0;
    letter-spacing: 1px;
}
.contact-qr {
    width: 220px;
    max-width: 80%;
    height: auto;
    margin: 16px auto 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px;
    background: #fff;
}
.services-list li {
    position: relative;
    padding: 12px 0 12px 32px;
    border-bottom: 1px dashed var(--border);
    color: var(--text);
}
.services-list li::before {
    content: counter(svc);
    counter-increment: svc;
    position: absolute;
    left: 0;
    top: 12px;
    width: 22px;
    height: 22px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.services-list { counter-reset: svc; }

/* ===== 黄金套利 ===== */
.gold-showcase { text-align: center; max-width: 560px; margin: 0 auto; }
.gold-showcase img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    margin: 0 auto;
}

/* ===== 页脚 ===== */
.site-footer {
    background: #0a2440;
    color: #aab8c8;
    padding: 40px 20px 28px;
    text-align: center;
}
.site-footer .footer-brand {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.site-footer .footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.site-footer .footer-links a:hover { color: #fff; }
.site-footer .copyright { font-size: 0.88rem; opacity: 0.7; }

/* ===== CTA 区块 ===== */
.cta-band {
    background: linear-gradient(135deg, #1565c0, #1e88e5);
    color: #fff;
    text-align: center;
    padding: 56px 20px;
}
.cta-band h2 { font-size: 1.9rem; margin-bottom: 12px; }
.cta-band p { opacity: 0.9; margin-bottom: 26px; }

/* ===== 响应式 ===== */
@media (max-width: 980px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .nav { position: relative; padding: 10px 16px; }
    .nav-brand img { height: 38px; }
    .nav-brand .brand-text { font-size: 1.2rem; letter-spacing: 1px; }
    .lang-switch { order: 2; margin-left: auto; margin-right: 6px; }
    .lang-toggle { padding: 7px 10px; }
    .menu-toggle { display: flex; order: 3; }

    .nav-menu {
        order: 4;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--bg-white);
        box-shadow: 0 12px 24px rgba(20,40,80,0.12);
        border-top: 1px solid var(--border);
        padding: 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .nav-menu.open { max-height: 460px; padding: 8px; }
    .nav-menu li { width: 100%; }
    .nav-menu a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        padding: 14px 16px;
        margin: 2px 0;
        border-radius: 10px;
        font-size: 1.02rem;
        font-weight: 600;
        color: var(--text);
        border-left: 3px solid transparent;
    }
    .nav-menu a::after {
        content: "\203A";
        font-size: 1.2rem;
        color: #b8c2cf;
        font-weight: 400;
    }
    .nav-menu a:hover { background: #f3f8ff; }
    .nav-menu a.active {
        background: #eef4fd;
        color: var(--primary);
        border-left-color: var(--primary);
    }
    .nav-menu a.active::after { color: var(--primary); }

    .hero { padding: 64px 18px 70px; }
    .hero h1 { font-size: 2rem; }
    .hero p.subtitle { font-size: 1.05rem; }
    .section { padding: 50px 0; }
    .section-title { font-size: 1.6rem; }
    .section-subtitle { font-size: 0.98rem; margin-bottom: 34px; }
    .contact-grid { grid-template-columns: 1fr; gap: 24px; }
    .page-hero { padding: 44px 18px; }
    .page-hero h1 { font-size: 1.7rem; }
    .cta-band { padding: 46px 18px; }
    .cta-band h2 { font-size: 1.5rem; }
    .lead-text { font-size: 1.05rem; line-height: 1.9; padding: 20px 20px; }
    .carousel-btn { width: 38px; height: 38px; font-size: 1.1rem; }
}

@media (max-width: 560px) {
    .card-grid { grid-template-columns: 1fr; }
    .nav-brand img { height: 34px; }
    .nav-brand .brand-text { font-size: 1.1rem; letter-spacing: 0.5px; }
    .lang-toggle { padding: 6px 9px; font-size: 0.82rem; gap: 4px; }
    .hero h1 { font-size: 1.7rem; }
    .hero p.subtitle { font-size: 1rem; }
    .hero-btns { flex-direction: column; align-items: stretch; gap: 12px; }
    .hero-btns .btn { width: 100%; }
    .cta-band .hero-btns { flex-direction: column; align-items: stretch; }
    .cta-band .hero-btns .btn { width: 100%; }
    .btn { padding: 12px 24px; }
    .section { padding: 40px 0; }
    .section-title { font-size: 1.4rem; }
    .price-table { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .why-grid { gap: 18px; }
    .card { padding: 24px 20px; }
    .contact-card { padding: 24px 18px; }
    .notice-box { padding: 18px 18px; font-size: 0.92rem; }
}

@media (max-width: 380px) {
    .price-table { grid-template-columns: 1fr; }
    .nav-brand .brand-text { font-size: 1rem; }
    .lang-toggle .lang-current { display: none; }
}
