/* ══════════════════════════════════════════════════════════════════════
   互行 HOSIN · 站点统一页头页尾(site chrome)
   ══════════════════════════════════════════════════════════════════════
   2026-09-29 建立 —— 用于把全部子页面统一为首页大气版风格

   设计原则(重要):
   1. 所有规则用 .hs- 前缀隔离,绝不与页面原有 .nav-container / .logo 冲突
   2. 子页面无全屏 Hero → 页头直接采用「深色实底」状态(首页滚动后的样子)
   3. 页头 fixed,页面顶部预留 76px 空间

   用法(子页面):
     <link rel="stylesheet" href="/css/site-chrome.css">
     <header class="hs-header"> ... </header>   ← 页面最前
     <footer class="hs-footer"> ... </footer>   ← 页面最后
   ══════════════════════════════════════════════════════════════════════ */

:root {
    --hs-orange: #D63D0F;
    --hs-dark: #0C0D0F;
    --hs-white: #FFFFFF;
}

/* ── 页面顶部预留(页头 fixed) ─────────────────────────────────────── */
body { padding-top: 76px; }
@media (max-width: 900px) { body { padding-top: 68px; } }

/* ══ 页头 ══════════════════════════════════════════════════════════ */
.hs-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(12, 13, 15, .92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transition: background .3s ease;
}
.hs-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 72px);
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
@media (max-width: 900px) { .hs-header-inner { height: 68px; } }

/* 品牌区 */
.hs-brand {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; flex: 0 0 auto;
}
.hs-brand img {
    width: 44px !important; height: 44px !important;
    max-width: 44px !important; max-height: 44px !important;
    object-fit: contain !important;
    filter: brightness(1.12) drop-shadow(0 1px 2px rgba(0,0,0,.4));
}
.hs-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.hs-brand-name { font-size: 19px; font-weight: 700; color: #fff; letter-spacing: .02em; }
.hs-brand-name span { font-weight: 400; }
.hs-brand-sub { font-size: 11px; color: rgba(255,255,255,.58); margin-top: 2px; }

/* 主导航 */
.hs-nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); }
.hs-nav a {
    color: rgba(255,255,255,.8) !important;
    text-decoration: none !important;
    font-size: 14.5px !important;
    font-weight: 500;
    letter-spacing: .01em;
    white-space: nowrap;
    transition: color .25s ease;
}
.hs-nav a:hover { color: #fff; }
.hs-nav a.hs-current { color: #fff; }

/* 右侧动作区 */
.hs-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.hs-cta {
    background: var(--hs-orange);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 2px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .03em;
    text-decoration: none;
    white-space: nowrap;
    clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
    transition: transform .25s cubic-bezier(.2,.9,.3,1.4), box-shadow .25s, background .25s;
}
.hs-cta:hover {
    background: #c0350b;
    transform: translateX(4px) skewX(-6deg);
    box-shadow: 0 10px 26px rgba(214,61,15,.42);
}
.hs-lang { display: flex; gap: 6px; }
/* 语言按钮:用 .hs-header 提高特异性,压过页面原有的 button/nav 样式 */
.hs-header .hs-lang button,
.hs-header .hs-lang > button {
    background: rgba(255,255,255,.14) !important;
    border: 1px solid rgba(255,255,255,.32) !important;
    color: rgba(255,255,255,.92) !important;
    padding: 6px 13px !important;
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    border-radius: 2px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: background .25s, color .25s !important;
}
.hs-header .hs-lang button:hover,
.hs-header .hs-lang > button:hover {
    background: rgba(255,255,255,.24) !important;
    color: #fff !important;
}
.hs-header .hs-lang button.active,
.hs-header .hs-lang > button.active {
    background: var(--hs-orange) !important;
    border-color: var(--hs-orange) !important;
    color: #fff !important;
}

/* 移动端汉堡 */
.hs-menu-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 6px;
}
.hs-menu-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; }

@media (max-width: 1024px) {
    .hs-nav { display: none; }
    .hs-menu-toggle { display: flex; }
    .hs-lang { display: none; }
}
/* 移动端展开态 */
.hs-header.hs-open .hs-nav {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px clamp(20px, 4vw, 72px) 20px;
    background: rgba(12,13,15,.98);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.hs-header.hs-open .hs-nav a { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.hs-header.hs-open .hs-lang { display: flex; padding: 14px clamp(20px, 4vw, 72px) 20px; background: rgba(12,13,15,.98); }

/* ══ 页尾 ══════════════════════════════════════════════════════════ */
.hs-footer {
    background: var(--hs-dark);
    color: #fff;
    padding: clamp(56px, 7vw, 88px) clamp(20px, 4vw, 72px) 34px;
    margin-top: clamp(60px, 8vw, 120px);
}
.hs-footer-inner {
    max-width: 1400px; margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: clamp(28px, 4vw, 56px);
    padding-bottom: 44px;
}
@media (max-width: 900px) { .hs-footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .hs-footer-inner { grid-template-columns: 1fr; } }

.hs-footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.hs-footer-brand img { width: 44px !important; height: 44px !important; max-width: 44px !important; max-height: 44px !important; object-fit: contain !important; }
.hs-footer-brand-name { font-size: 19px; font-weight: 700; }
.hs-footer-brand-name span { font-weight: 400; }
.hs-footer-slogan { color: rgba(255,255,255,.62); line-height: 1.9; font-size: 14.5px; }
.hs-footer h4 { font-size: 15px; font-weight: 600; margin-bottom: 18px; letter-spacing: .04em; }
.hs-footer ul { list-style: none; margin: 0; padding: 0; }
.hs-footer ul li { margin-bottom: 11px; }
.hs-footer a { color: rgba(255,255,255,.68); text-decoration: none; font-size: 14px; transition: color .25s; }
.hs-footer a:hover { color: #fff; }
.hs-footer-bottom {
    max-width: 1400px; margin: 0 auto;
    padding-top: 26px;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    color: rgba(255,255,255,.5); font-size: 13px;
}
.hs-footer-bottom a { color: rgba(255,255,255,.5); }
