/* ==========================================================
   纽约亚裔健身协会 New York Asian Fitness Association
   全站样式表 — 暖橙 + 米白 + 深绿
   ========================================================== */

:root {
    --primary-color: #C75B2A;      /* 暖橙 */
    --primary-dark: #A6461B;
    --primary-light: #F0A878;
    --accent-color: #D9A441;       /* 金 */
    --dark-color: #1E4E3C;         /* 深绿 */
    --dark-deep: #143529;
    --cream: #FCF8F2;              /* 米白 */
    --cream-2: #F5EDE2;
    --white: #FFFFFF;
    --text: #2B2622;
    --text-soft: #5C544C;
    --border: #E7DCCC;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 6px 24px rgba(30, 78, 60, .08);
    --shadow-lg: 0 14px 44px rgba(30, 78, 60, .14);
    --transition: all .3s ease;
    --max: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.85;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary-color); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

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

/* ---------- 通用排版 ---------- */
h1, h2, h3, h4 { line-height: 1.4; font-weight: 700; color: var(--dark-color); }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.25rem; }

.section { padding: 4.5rem 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--dark-color); color: rgba(255,255,255,.88); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 2.8rem; }
.section-head .eyebrow {
    display: inline-block;
    font-size: .85rem;
    letter-spacing: .18em;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: .6rem;
}
.section-head h2 { margin-bottom: .9rem; }
.section-head p { color: var(--text-soft); }

.lead { font-size: 1.08rem; color: var(--text-soft); }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-block;
    padding: .85rem 1.9rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}
.btn-primary { background: var(--primary-color); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); }
.btn-outline { border-color: var(--dark-color); color: var(--dark-color); background: transparent; }
.btn-outline:hover { background: var(--dark-color); color: var(--white); }
.btn-light { background: var(--white); color: var(--dark-color); }
.btn-light:hover { background: var(--accent-color); color: var(--dark-deep); }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- 顶部导航 ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(252, 248, 242, .97);
    border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; flex-wrap: wrap; }
.logo { flex: none; }
nav { flex: 1 1 auto; }

.logo a { display: flex; align-items: center; gap: .7rem; color: var(--dark-color); }
.logo a:hover { opacity: .85; }
.logo-mark {
    width: 44px; height: 44px; flex: none;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em;
}
.logo-text { display: block; font-weight: 700; font-size: 1.06rem; color: var(--dark-color); line-height: 1.25; }
.logo-sub { display: block; font-size: .68rem; letter-spacing: .06em; color: var(--text-soft); text-transform: uppercase; }

nav ul { list-style: none; display: flex; gap: 1.35rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
nav a { color: var(--text); font-size: .95rem; font-weight: 500; padding: .35rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
nav a:hover, nav a.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }

.nav-cta { padding: .55rem 1.25rem; background: var(--primary-color); color: var(--white) !important; border-radius: 100px; border: none !important; }
.nav-cta:hover { background: var(--primary-dark); }

.menu-toggle {
    display: none; background: none; border: 0; cursor: pointer;
    width: 42px; height: 42px; flex-direction: column; justify-content: center; gap: 5px; padding: 0 8px;
}
.menu-toggle span { display: block; height: 2px; background: var(--dark-color); border-radius: 2px; transition: var(--transition); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 560px;
    display: flex; align-items: center;
    color: var(--white);
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(20,53,41,.92) 0%, rgba(30,78,60,.78) 45%, rgba(199,91,42,.55) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 4.5rem 0; max-width: 720px; }
.hero h1 { color: var(--white); font-size: 2.9rem; margin-bottom: 1rem; }
.hero .hero-sub { font-size: 1.15rem; color: rgba(255,255,255,.92); margin-bottom: .6rem; }
.hero .hero-en { font-size: .95rem; color: rgba(255,255,255,.7); letter-spacing: .02em; margin-bottom: 1.8rem; }
.hero .btn-group { margin-top: 1.6rem; }

/* 内页小 hero */
.page-hero {
    position: relative; color: var(--white); overflow: hidden;
    background: var(--dark-color);
}
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.page-hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(20,53,41,.88) 0%, rgba(20,53,41,.62) 55%, rgba(20,53,41,.35) 100%);
}
.page-hero .container { position: relative; z-index: 2; padding: 3.4rem 20px; }
.page-hero h1 { color: var(--white); margin-bottom: .7rem; }
.page-hero p { color: rgba(255,255,255,.86); max-width: 720px; }
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.65); margin-bottom: .9rem; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: var(--accent-color); }

/* ---------- 关键词标签 ---------- */
.keyword-row { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.6rem; }
.keyword-tag {
    background: var(--white); border: 1px solid var(--border);
    padding: .45rem 1.05rem; border-radius: 100px;
    font-size: .88rem; color: var(--dark-color); font-weight: 600;
}
.hero .keyword-row { justify-content: flex-start; }
.hero .keyword-tag { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }

/* ---------- 数字条 ---------- */
.stats { background: var(--dark-color); color: var(--white); padding: 2.6rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.6rem; text-align: center; }
.stat-num { font-size: 2.3rem; font-weight: 700; color: var(--accent-color); line-height: 1.2; }
.stat-label { font-size: .92rem; color: rgba(255,255,255,.8); }

/* ---------- 卡片 ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: .6rem; }
.card-body p { color: var(--text-soft); font-size: .96rem; flex: 1; }
.card-link { margin-top: 1rem; font-weight: 700; font-size: .94rem; }
.card-link::after { content: " →"; }

.icon-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.9rem 1.5rem; box-shadow: var(--shadow); }
.icon-card .icon { font-size: 1.9rem; margin-bottom: .8rem; display: block; }
.icon-card h3 { margin-bottom: .55rem; font-size: 1.12rem; }
.icon-card p { color: var(--text-soft); font-size: .95rem; }

/* ---------- 图文两栏 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.split-text h2 { margin-bottom: 1rem; }
.split-text p { margin-bottom: 1rem; color: var(--text-soft); }
.split-text p:last-child { margin-bottom: 0; }
.split.reverse .split-media { order: 2; }

/* ---------- 列表 ---------- */
.check-list { list-style: none; margin: 1.2rem 0; }
.check-list li { position: relative; padding-left: 1.7rem; margin-bottom: .65rem; color: var(--text-soft); }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: .68em;
    width: 8px; height: 8px; border-radius: 50%; background: var(--primary-color);
}
.check-list strong { color: var(--text); }

/* ---------- 引言 ---------- */
.pull-quote {
    border-left: 4px solid var(--primary-color);
    background: var(--cream-2);
    padding: 1.5rem 1.8rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 1.08rem;
    color: var(--dark-color);
    margin: 1.8rem 0;
}
.pull-quote cite { display: block; margin-top: .7rem; font-size: .9rem; color: var(--text-soft); font-style: normal; }

/* ---------- 时间线 ---------- */
.timeline { position: relative; margin-top: 2rem; }
.timeline::before { content: ""; position: absolute; left: 92px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 2rem; padding-bottom: 2.2rem; }
.tl-date { text-align: right; font-weight: 700; color: var(--primary-color); font-size: .92rem; padding-top: .1rem; }
.tl-body { position: relative; }
.tl-body::before {
    content: ""; position: absolute; left: -2.5rem; top: .55rem;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--white); border: 3px solid var(--primary-color);
    transform: translateX(-1px);
}
.tl-body h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.tl-body p { color: var(--text-soft); font-size: .96rem; }
.tl-media { margin-top: .9rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; max-width: 520px; }
.tl-media img { border-radius: var(--radius-sm); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* ---------- 相册 ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.gallery-grid figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--cream-2); box-shadow: var(--shadow); }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s ease; }
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figcaption { padding: .7rem .9rem; font-size: .86rem; color: var(--text-soft); background: var(--white); }

/* ---------- 跑马灯 ---------- */
.marquee { overflow: hidden; padding: .5rem 0; }
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: marquee 46s linear infinite; }
.marquee-track img { width: 300px; height: 200px; object-fit: cover; border-radius: var(--radius-sm); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; background: var(--white); min-width: 560px; }
th, td { padding: .9rem 1rem; border-bottom: 1px solid var(--border); text-align: left; font-size: .95rem; }
th { background: var(--cream-2); color: var(--dark-color); font-weight: 700; white-space: nowrap; }
td { color: var(--text-soft); }

/* ---------- FAQ ---------- */
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .9rem; overflow: hidden; }
.faq-item summary {
    cursor: pointer; padding: 1.1rem 1.4rem; font-weight: 700; color: var(--dark-color);
    list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--primary-color); font-size: 1.3rem; flex: none; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 1.4rem 1.2rem; color: var(--text-soft); font-size: .96rem; }

/* ---------- CTA ---------- */
.cta {
    background: linear-gradient(120deg, var(--dark-color), var(--dark-deep));
    color: var(--white); text-align: center; padding: 3.6rem 0;
}
.cta h2 { color: var(--white); margin-bottom: .8rem; }
.cta p { color: rgba(255,255,255,.85); max-width: 640px; margin: 0 auto 1.8rem; }
.cta .btn-group { justify-content: center; }

/* ---------- 表单 ---------- */
.contact-form { display: grid; gap: 1rem; background: var(--white); padding: 2rem; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; padding: .85rem 1rem; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-family: inherit; font-size: 1rem; color: var(--text); background: var(--cream);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--primary-color); background: var(--white);
}
.contact-form button { justify-self: start; }
.form-note { font-size: .86rem; color: var(--text-soft); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.info-block { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.info-block h3 { margin-bottom: 1rem; }
.info-block p { margin-bottom: .9rem; color: var(--text-soft); }
.info-block strong { color: var(--text); display: block; }

.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- 合作伙伴 ---------- */
.partner-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.partner-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; font-size: .95rem; color: var(--text-soft); }
.partner-item strong { display: block; color: var(--dark-color); font-size: 1rem; margin-bottom: .2rem; }

/* ---------- 页脚 ---------- */
footer { background: var(--dark-deep); color: rgba(255,255,255,.82); padding: 3rem 0 1.2rem; margin-top: 0; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-section h3 { color: var(--white); margin-bottom: 1rem; font-size: 1.1rem; }
.footer-section p, .footer-section a { color: rgba(255,255,255,.78); line-height: 1.9; font-size: .94rem; }
.footer-section a:hover { color: var(--accent-color); }
.footer-section strong { color: var(--white); }
.footer-bottom { text-align: center; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.6); font-size: .9rem; }
.footer-bottom p { margin-bottom: .5rem; }
.footer-partner { margin-top: 1rem; font-size: .9rem; color: rgba(255,255,255,.7); }
.footer-partner a { color: var(--accent-color); }
.footer-partner a:hover { color: var(--white); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
    .menu-toggle { display: flex; }
    nav {
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--cream); border-bottom: 1px solid var(--border);
        max-height: 0; overflow: hidden; transition: max-height .35s ease;
        box-shadow: var(--shadow);
    }
    nav.open { max-height: 80vh; overflow-y: auto; }
    nav { flex: 1 1 100%; }
    nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 20px 1.2rem; flex-wrap: nowrap; }
    nav li { border-bottom: 1px solid var(--border); }
    nav li:last-child { border-bottom: 0; padding-top: .8rem; }
    nav a { display: block; padding: .85rem 0; border-bottom: 0; }
    .nav-cta { display: inline-block; }
    .split { grid-template-columns: 1fr; gap: 2rem; }
    .split.reverse .split-media { order: 0; }
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.55rem; }
    .hero { min-height: 480px; }
    .hero h1 { font-size: 2.1rem; }
    .section { padding: 3.2rem 0; }
    .timeline::before { left: 6px; }
    .tl-item { grid-template-columns: 1fr; gap: .4rem; padding-left: 2rem; }
    .tl-date { text-align: left; }
    .tl-body::before { left: -2rem; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .marquee-track img { width: 220px; height: 150px; }
    .contact-form { padding: 1.4rem; }
    .stat-num { font-size: 1.9rem; }
}

/* ---------- 灯箱 ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(20, 53, 41, .93);
    display: none; align-items: center; justify-content: center;
    flex-direction: column; gap: 1rem; padding: 3rem 1.2rem;
}
.lightbox.show { display: flex; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 78vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox-cap { color: rgba(255,255,255,.85); font-size: .92rem; text-align: center; max-width: 720px; }
.lightbox-close {
    position: absolute; top: 1rem; right: 1.2rem;
    background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer;
}

/* ---------- 滚动淡入 ---------- */
.fade-up { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .fade-up { opacity: 1; transform: none; transition: none; }
    .marquee-track { animation: none; }
    html { scroll-behavior: auto; }
}

/* ==========================================================
   顶栏 + Google 翻译语言切换
   ========================================================== */
.topbar {
    background: var(--dark-deep);
    color: rgba(255, 255, 255, .78);
    font-size: .85rem;
    line-height: 1.6;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .5rem 0;
    flex-wrap: wrap;
}
.topbar-info { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: .35rem; }
.topbar-info a { color: rgba(255, 255, 255, .85); }
.topbar-info a:hover { color: var(--accent-color); }

.lang-switch { display: flex; align-items: center; gap: .5rem; flex: none; }
.lang-switch-label { color: rgba(255, 255, 255, .6); font-size: .8rem; white-space: nowrap; }

/* Google 翻译小工具外观定制（原生 select） */
#google_translate_element { display: inline-block; }
#google_translate_element .goog-te-gadget {
    display: inline-block !important;
    font-size: 0 !important;
    color: transparent !important;
    line-height: 1;
}
#google_translate_element .goog-te-gadget > span,
#google_translate_element .goog-te-gadget-icon { display: none !important; }

#google_translate_element select.goog-te-combo {
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
    font-size: .84rem !important;
    line-height: 1.5;
    color: #fff;
    background-color: rgba(255, 255, 255, .1);
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23D9A441' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .8rem center;
    background-size: 10px 7px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 100px;
    padding: .28rem 2rem .28rem .95rem;
    margin: 0 !important;
    height: auto;
    cursor: pointer;
    transition: var(--transition);
}
#google_translate_element select.goog-te-combo:hover {
    background-color: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .5);
}
#google_translate_element select.goog-te-combo:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 1px;
}
/* 下拉展开项使用浅色，避免系统深色背景下看不清 */
#google_translate_element select.goog-te-combo option {
    color: #2B2622;
    background: #fff;
}

/* 屏蔽 Google 注入的顶部横幅，避免顶开 sticky 导航 */
body { top: 0 !important; }
body > .skiptranslate,
iframe.goog-te-banner-frame,
.goog-te-banner-frame { display: none !important; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

@media (max-width: 1080px) {
    .topbar-inner { justify-content: center; gap: .5rem; }
    .topbar-info { justify-content: center; gap: 1rem; font-size: .8rem; }
    .lang-switch-label { display: none; }
}
@media (max-width: 520px) {
    .topbar-info .topbar-addr { display: none; }
}
