/* ============================================================
    - 公共样式 common.css
   轻奢高级商务风
   ============================================================ */

/* ---------- 字体引入 ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* ---------- 变量 ---------- */
:root {
    --bg-dark: #0c0c0c;
    --bg-dark-2: #141414;
    --bg-dark-3: #1c1c1c;
    --bg-card: #181818;
    --gold: #c9a96a;
    --gold-light: #e0c789;
    --gold-dark: #a8894a;
    --text-light: #f1ece1;
    --text-base: #d8d2c4;
    --text-muted: #8a8377;
    --border: rgba(201, 169, 106, 0.18);
    --border-strong: rgba(201, 169, 106, 0.45);
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    --serif: 'Playfair Display', 'Noto Serif SC', serif;
    --sans: 'Noto Sans SC', 'Segoe UI', 'Microsoft YaHei', sans-serif;
    --max: 1280px;
}

/* ---------- reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--sans);
    background: var(--bg-dark);
    color: var(--text-base);
    line-height: 1.7;
    font-size: 15px;
    overflow-x: hidden;
    padding-top: 148px; /* PC端固定头部高度：顶栏92 + 导航56 */
}
a { color: inherit; text-decoration: none; transition: color .3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- 容器 ---------- */
.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- 通用标题 ---------- */
.section-head { text-align: center; margin-bottom: 50px; }
.section-head .eyebrow {
    font-family: var(--serif);
    color: var(--gold);
    letter-spacing: 4px;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 14px;
    display: inline-block;
}
.section-head h2 {
    font-family: var(--serif);
    color: var(--text-light);
    font-size: 34px;
    font-weight: 600;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 18px;
}
.section-head h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-head p {
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    font-size: 14px;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    font-size: 14px;
    letter-spacing: 2px;
    border: 1px solid var(--gold);
    color: var(--gold-light);
    background: transparent;
    transition: all .35s ease;
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: translateX(-101%);
    transition: transform .35s ease;
    z-index: 0;
}
.btn span, .btn i { position: relative; z-index: 1; }
.btn:hover { color: #0c0c0c; }
.btn:hover::before { transform: translateX(0); }
.btn-solid {
    background: var(--gold);
    color: #0c0c0c;
    border-color: var(--gold);
}
.btn-solid::before { background: var(--gold-light); }

/* ============================================================
   头部
   ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-top {
    background: linear-gradient(180deg, #080808, #0c0c0c);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 92px;
}
.logo a { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 4px;
}
.logo-main span { color: var(--gold); }
.logo-sub {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-top: 5px;
    font-family: var(--serif);
}

.header-contact { display: flex; align-items: center; gap: 28px; }
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 18px;
    border-left: 1px solid var(--border);
}
.contact-item .ic {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    font-size: 17px;
    flex-shrink: 0;
}
.contact-info { display: flex; flex-direction: column; line-height: 1.2; }
.contact-label { font-size: 11px; color: var(--text-muted); letter-spacing: 2px; }
.contact-value {
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 1px;
}

.menu-toggle {
    display: none;
    width: 44px; height: 44px;
    border: 1px solid var(--border);
    color: var(--gold);
    font-size: 20px;
    border-radius: 4px;
    align-items: center;
    justify-content: center;
}

/* ---------- 主导航 ---------- */
.main-nav {
    background: #0a0a0a;
    border-bottom: 1px solid var(--border);
}
.nav-list {
    display: flex;
    align-items: center;
    height: 56px;
}
.nav-list li { position: relative; }
.nav-list a {
    display: block;
    padding: 0 26px;
    line-height: 56px;
    color: var(--text-base);
    font-size: 15px;
    letter-spacing: 2px;
    position: relative;
}
.nav-list a::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 0;
    width: 0; height: 2px;
    background: var(--gold);
    transform: translateX(-50%);
    transition: width .3s ease;
}
.nav-list a:hover, .nav-list li.active a { color: var(--gold-light); }
.nav-list a:hover::after, .nav-list li.active a::after { width: 28px; }

/* ============================================================
   尾部
   ============================================================ */
.site-footer {
    background: #080808;
    border-top: 1px solid var(--border);
    margin-top: 80px;
}
.footer-top { padding: 60px 0 40px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
}
.footer-brand .logo-main { font-size: 24px; }
.footer-brand p {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 18px;
    line-height: 1.9;
}
.footer-soc { display: flex; gap: 12px; margin-top: 22px; }
.footer-soc a {
    width: 40px; height: 40px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    transition: all .3s ease;
}
.footer-soc a:hover { color: var(--gold); border-color: var(--gold); }

.footer-col h4 {
    font-family: var(--serif);
    color: var(--text-light);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 14px;
}
.footer-col h4::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 28px; height: 2px; background: var(--gold);
}
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: var(--text-muted); font-size: 13px; }
.footer-col a:hover { color: var(--gold-light); padding-left: 5px; }

.footer-contact li {
    display: flex; gap: 12px; margin-bottom: 16px;
    color: var(--text-muted); font-size: 13px;
}
.footer-contact i { color: var(--gold); margin-top: 4px; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
}
.footer-bottom p { color: var(--text-muted); font-size: 12px; letter-spacing: 1px; }
.footer-bottom a { color: var(--gold-dark); }

/* ============================================================
   通用页面 banner (内页)
   ============================================================ */
.page-banner {
    height: 280px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #111;
}
.page-banner::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(12,12,12,.7), rgba(12,12,12,.85));
    z-index: 1;
}
.page-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-banner .pb-inner { position: relative; z-index: 2; }
.page-banner h1 {
    font-family: var(--serif);
    font-size: 40px;
    color: var(--text-light);
    letter-spacing: 6px;
    font-weight: 600;
}
.page-banner .crumb {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 2px;
}
.page-banner .crumb a:hover { color: var(--gold); }
.page-banner .crumb i { margin: 0 8px; font-size: 9px; color: var(--gold); }

/* ---------- 通用区块 ---------- */
.section { padding: 70px 0; }
.section-alt { background: var(--bg-dark-2); }

/* ---------- 动画 ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: all .8s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 回到顶部 ---------- */
.back-top {
    position: fixed;
    right: 24px; bottom: 24px;
    width: 48px; height: 48px;
    background: var(--gold);
    color: #0c0c0c;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    border-radius: 4px;
    z-index: 90;
    opacity: 0; visibility: hidden;
    transform: translateY(20px);
    transition: all .35s ease;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--gold-light); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
    body { padding-top: 132px; } /* 顶栏76 + 导航56 */
    .header-inner { height: 76px; }
    .logo-main { font-size: 22px; }
    .contact-item { padding: 8px 12px; }
    .contact-value { font-size: 18px; }
    .section-head h2 { font-size: 28px; }
}

@media (max-width: 768px) {
    body { padding-top: 64px; } /* 移动端仅顶栏64，导航为下拉浮层 */
    .container { padding: 0 18px; }
    .header-inner { height: 64px; }
    .header-contact { display: none; }
    .menu-toggle { display: flex; }

    /* 移动端导航：点击展开 */
    .main-nav {
        position: fixed;
        top: 64px; left: 0;
        width: 100%;
        background: #0a0a0a;
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height .4s ease;
        z-index: 99;
    }
    .main-nav.open { max-height: 420px; }
    .nav-list { flex-direction: column; height: auto; }
    .nav-list li { width: 100%; border-bottom: 1px solid var(--border); }
    .nav-list a { line-height: 50px; padding: 0 24px; }
    .nav-list a::after { display: none; }

    .logo-main { font-size: 19px; letter-spacing: 3px; }
    .logo-sub { font-size: 9px; }

    .section { padding: 50px 0; }
    .section-head { margin-bottom: 34px; }
    .section-head h2 { font-size: 24px; letter-spacing: 1px; }

    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-top { padding: 44px 0 28px; }

    .page-banner { height: 200px; }
    .page-banner h1 { font-size: 26px; letter-spacing: 4px; }

    .back-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

@media (max-width: 480px) {
    .section-head h2 { font-size: 21px; }
    .page-banner h1 { font-size: 22px; }
}
