/* ==========================================================================
   年年红 · 基础样式（变量 / 排版 / 头部 / 首屏 / 通用组件）
   ========================================================================== */

/* 中文标题字体：Noto Serif SC 子集，仅包含站点实际用字 */
@font-face {
    font-family: "Niannianhong Serif";
    src: url("../fonts/nanaholy-serif.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #1b1714;
    --ink-2: #241f1a;
    --ink-3: #3a3129;
    --paper: #f7f3ec;
    --paper-2: #efe7da;
    --paper-3: #e4d8c5;
    --white: #fffdf9;
    --brass: #b08a56;
    --brass-2: #c9a978;
    --brass-3: #8f6c3f;
    --wood: #6f4a2e;
    --muted: #7c7165;
    --muted-2: #9b9084;
    --line: rgba(27, 23, 20, 0.14);
    --line-soft: rgba(27, 23, 20, 0.08);
    --line-light: rgba(255, 250, 242, 0.18);
    --font-serif: "Niannianhong Serif", "Source Han Serif SC", "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
    --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
    --container: 1280px;
    --gutter: clamp(20px, 4vw, 48px);
    --header-h: 84px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.is-locked {
    overflow: hidden;
}

body:not(.page-home) main {
    padding-top: var(--header-h);
}

h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd {
    margin: 0;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0.01em;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    font: inherit;
    color: inherit;
    border: 0;
    background: none;
    cursor: pointer;
}

input, textarea, select {
    font: inherit;
    color: inherit;
}

::selection {
    background: var(--brass);
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 3px;
}

.icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 17px; height: 17px; }

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 300;
    padding: 10px 18px;
    background: var(--ink);
    color: var(--paper);
    transform: translateY(-150%);
    transition: transform 0.2s;
}
.skip-link:focus {
    transform: none;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: clamp(72px, 9vw, 132px);
    position: relative;
}

.display {
    font-size: clamp(32px, 4.2vw, 56px);
    line-height: 1.38;
    letter-spacing: 0.01em;
}
.display em {
    font-style: normal;
    color: var(--brass-3);
}
.display-light {
    color: var(--paper);
}
.display-light em {
    color: var(--brass-2);
}

.overline {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--brass-3);
    display: flex;
    align-items: center;
    gap: 14px;
}
.overline::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
}
.overline-light {
    color: var(--brass-2);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head-main {
    max-width: 780px;
}
.section-index {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 10px;
    letter-spacing: 0.3em;
    color: var(--muted);
    margin-bottom: 22px;
}
.section-index span {
    color: var(--brass-3);
}
.section-index i {
    width: 44px;
    height: 1px;
    background: var(--line);
}
.section-index em {
    font-style: normal;
    color: var(--muted-2);
}
.section-title {
    font-size: clamp(28px, 3.4vw, 46px);
    line-height: 1.4;
}
.section-desc {
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
    max-width: 560px;
}
.section-head .text-link {
    white-space: nowrap;
    margin-bottom: 8px;
}
.is-light .section-title {
    color: var(--paper);
}
.is-light .section-desc,
.is-light .section-index {
    color: rgba(247, 243, 236, 0.62);
}
.is-light .section-index i {
    background: var(--line-light);
}
.is-center {
    justify-content: center;
    text-align: center;
}
.is-center .section-head-main {
    margin-inline: auto;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--ink);
    padding-bottom: 4px;
    border-bottom: 1px solid var(--line);
    transition: color 0.25s, border-color 0.25s, gap 0.25s;
}
.text-link:hover {
    color: var(--brass-3);
    border-color: var(--brass);
    gap: 16px;
}
.text-link-button {
    background: none;
    border-left: 0;
    border-right: 0;
    border-top: 0;
}
.is-light .text-link {
    color: var(--paper);
    border-color: var(--line-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 28px;
    border: 1px solid transparent;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.35s var(--ease), background 0.35s, color 0.35s, box-shadow 0.35s;
    white-space: nowrap;
}
.btn .icon {
    transition: transform 0.35s var(--ease);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(27, 23, 20, 0.16);
}
.btn:hover .icon {
    transform: translateX(4px);
}
.btn-brass {
    background: var(--brass);
    color: #171310;
}
.btn-brass:hover {
    background: var(--brass-2);
}
.btn-dark {
    background: var(--ink);
    color: var(--paper);
}
.btn-outline {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}
.btn-outline:hover {
    border-color: var(--ink);
    background: transparent;
}
.btn-ghost {
    background: rgba(255, 250, 242, 0.06);
    border-color: rgba(255, 250, 242, 0.4);
    color: var(--paper);
    backdrop-filter: blur(4px);
}
.btn-ghost:hover {
    background: rgba(255, 250, 242, 0.14);
    border-color: var(--paper);
}
.btn-sm {
    min-height: 40px;
    padding: 0 18px;
    font-size: 11px;
    letter-spacing: 0.1em;
}
.btn-block {
    width: 100%;
}
.circle-btn {
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--ink);
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.circle-btn:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}
.circle-btn:disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-h);
    background: rgba(247, 243, 236, 0.92);
    border-bottom: 1px solid var(--line-soft);
    backdrop-filter: blur(14px);
    transition: height 0.4s var(--ease), background 0.4s, color 0.4s, border-color 0.4s;
}
.header-inner {
    height: 100%;
    max-width: 1480px;
    margin-inline: auto;
    padding-inline: var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex: none;
}
.brand-mark {
    width: 42px;
    height: 42px;
    border: 1px solid var(--brass);
    display: grid;
    place-items: center;
    font-family: var(--font-serif);
    font-size: 21px;
    line-height: 1;
    color: var(--brass-3);
    position: relative;
}
.brand-mark::after {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(176, 138, 86, 0.28);
    pointer-events: none;
}
.brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.brand-text strong {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.14em;
    line-height: 1.1;
}
.brand-text small {
    font-size: 7.5px;
    letter-spacing: 0.34em;
    color: var(--muted);
    line-height: 1;
}
.main-nav {
    margin-left: auto;
}
.main-nav > ul {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.2vw, 34px);
}
.nav-item > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13.5px;
    letter-spacing: 0.08em;
    padding: 10px 0;
    white-space: nowrap;
}
.nav-item > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease);
}
.nav-item > a:hover::after,
.nav-item > a.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
}
.main-nav .icon {
    opacity: 0.6;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: none;
}
.header-phone {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    gap: 2px;
}
.header-phone span {
    font-size: 9px;
    letter-spacing: 0.24em;
    color: var(--muted);
}
.header-phone strong {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.04em;
}
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 12px 8px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}
.nav-toggle span {
    display: block;
    height: 1px;
    width: 100%;
    background: currentColor;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* 首页透明头部 */
body.page-home .site-header {
    background: transparent;
    border-color: transparent;
    color: var(--paper);
}
body.page-home .site-header .brand-mark {
    color: var(--brass-2);
    border-color: rgba(201, 169, 120, 0.8);
}
body.page-home .site-header .brand-text small,
body.page-home .site-header .header-phone span {
    color: rgba(247, 243, 236, 0.6);
}
body.page-home .site-header.is-solid {
    background: rgba(247, 243, 236, 0.94);
    border-color: var(--line-soft);
    color: var(--ink);
    height: 72px;
}
body.page-home .site-header.is-solid .brand-mark {
    color: var(--brass-3);
    border-color: var(--brass);
}
body.page-home .site-header.is-solid .brand-text small,
body.page-home .site-header.is-solid .header-phone span {
    color: var(--muted);
}

/* 移动菜单打开时头部切换为深色 */
body.menu-open .site-header {
    background: var(--ink);
    color: var(--paper);
    border-color: transparent;
}
body.menu-open .site-header .brand-mark {
    color: var(--brass-2);
    border-color: rgba(201, 169, 120, 0.8);
}
body.menu-open .site-header .brand-text small {
    color: rgba(247, 243, 236, 0.5);
}

/* Mega menu */
.has-mega {
    position: relative;
}
.mega-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translate(-50%, 8px);
    width: min(760px, 80vw);
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 30px 80px rgba(27, 23, 20, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.35s var(--ease), visibility 0.3s;
}
.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}
.mega-inner {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 36px;
    padding: 36px;
}
.mega-cats .overline {
    margin-bottom: 20px;
}
.mega-cats ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 24px;
}
.mega-cats a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-soft);
    font-family: var(--font-serif);
    font-size: 18px;
    transition: color 0.25s;
}
.mega-cats a em {
    font-family: var(--font-sans);
    font-style: normal;
    font-size: 8px;
    letter-spacing: 0.18em;
    color: var(--muted-2);
}
.mega-cats a:hover {
    color: var(--brass-3);
}
.mega-feature {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--ink);
    color: var(--paper);
}
.mega-feature img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}
.mega-feature:hover img {
    transform: scale(1.04);
}
.mega-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 12, 10, 0.8), transparent 65%);
}
.mega-feature-text {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mega-feature-text small {
    font-size: 8px;
    letter-spacing: 0.28em;
    color: var(--brass-2);
}
.mega-feature-text strong {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 400;
}
.mega-feature-text span {
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(247, 243, 236, 0.7);
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 95;
    background: var(--ink);
    color: var(--paper);
    overflow-y: auto;
    padding: calc(var(--header-h) + 32px) var(--gutter) 48px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}
.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
}
.mobile-menu-inner {
    max-width: 560px;
    margin-inline: auto;
}
.mobile-menu .overline {
    color: var(--brass-2);
    margin-bottom: 18px;
}
.mobile-nav-list {
    border-top: 1px solid var(--line-light);
}
.mobile-nav-list li {
    border-bottom: 1px solid var(--line-light);
}
.mobile-nav-list a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 14px 0;
    font-family: var(--font-serif);
    font-size: 26px;
}
.mobile-nav-list a small {
    font-family: var(--font-sans);
    font-size: 8px;
    letter-spacing: 0.26em;
    color: var(--muted-2);
}
.mobile-nav-list a.is-active {
    color: var(--brass-2);
}
.mobile-menu-sub {
    margin-top: 34px;
}
.mobile-cats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
}
.mobile-cats a {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 14px;
    color: rgba(247, 243, 236, 0.82);
}
.mobile-cats small {
    font-size: 7px;
    letter-spacing: 0.2em;
    color: var(--muted-2);
}
.mobile-menu-contact {
    margin-top: 36px;
    display: flex;
    gap: 12px;
}
.mobile-menu-contact a,
.mobile-menu-contact button {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border: 1px solid var(--line-light);
    font-size: 12px;
    letter-spacing: 0.08em;
}
.mobile-menu-contact button {
    background: var(--brass);
    color: var(--ink);
    border-color: var(--brass);
}

/* Hero */
.hero {
    position: relative;
    height: 100svh;
    min-height: 640px;
    max-height: 980px;
    overflow: hidden;
    background: var(--ink);
    color: var(--paper);
}
.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}
.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s var(--ease), visibility 1.2s;
}
.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}
.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}
.hero-slide.is-active .hero-img {
    animation: heroZoom 16s ease-out forwards;
}
@keyframes heroZoom {
    from { transform: scale(1.02); }
    to { transform: scale(1.1); }
}
.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(14, 11, 9, 0.72) 0%, rgba(14, 11, 9, 0.32) 48%, rgba(14, 11, 9, 0.18) 100%),
        linear-gradient(to top, rgba(14, 11, 9, 0.62) 0%, transparent 45%),
        linear-gradient(to bottom, rgba(14, 11, 9, 0.35), transparent 28%);
}
.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: var(--header-h);
    max-width: calc(var(--container) + var(--gutter) * 2);
}
.hero-overline {
    font-size: 10px;
    letter-spacing: 0.4em;
    color: var(--brass-2);
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.hero-overline::before {
    content: "";
    width: 42px;
    height: 1px;
    background: var(--brass-2);
}
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(46px, 7vw, 96px);
    line-height: 1.12;
    letter-spacing: 0.05em;
    margin-bottom: 26px;
    max-width: 900px;
}
.hero-title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
}
.hero-slide.is-active .hero-title-line {
    animation: heroLine 1.1s var(--ease-out) forwards;
    animation-delay: calc(var(--d) + 180ms);
}
@keyframes heroLine {
    to { opacity: 1; transform: none; }
}
.hero-sub {
    max-width: 520px;
    color: rgba(247, 243, 236, 0.78);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 38px;
    text-wrap: pretty;
}
.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.hero-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 32px;
    z-index: 4;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}
.hero-dots {
    display: flex;
    gap: 18px;
}
.hero-dot {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 74px;
    padding: 0;
    color: rgba(247, 243, 236, 0.45);
    text-align: left;
    transition: color 0.3s;
}
.hero-dot:hover,
.hero-dot.is-active {
    color: var(--paper);
}
.dot-num {
    font-size: 9px;
    letter-spacing: 0.2em;
}
.dot-bar {
    height: 2px;
    width: 100%;
    background: rgba(247, 243, 236, 0.22);
    position: relative;
    overflow: hidden;
}
.dot-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--brass-2);
    transform: scaleX(0);
    transform-origin: left;
}
.hero-dot.is-active .dot-bar::after {
    animation: heroProgress 9s linear forwards;
}
@keyframes heroProgress {
    to { transform: scaleX(1); }
}
.hero-scroll {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 9px;
    letter-spacing: 0.3em;
    color: rgba(247, 243, 236, 0.6);
    writing-mode: vertical-rl;
}
.hero-scroll i {
    display: block;
    width: 1px;
    height: 62px;
    background: linear-gradient(to bottom, rgba(247, 243, 236, 0.6), transparent);
    position: relative;
    overflow: hidden;
}
.hero-scroll i::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 1px;
    height: 100%;
    background: var(--brass-2);
    animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
    0% { top: -100%; }
    60%, 100% { top: 100%; }
}
.hero-side {
    position: absolute;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    writing-mode: vertical-rl;
    text-orientation: upright;
    width: 22px;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 0.38em;
    color: rgba(247, 243, 236, 0.5);
}

/* Wood strip */
.wood-strip {
    background: var(--paper);
    border-bottom: 1px solid var(--line-soft);
    overflow: hidden;
}
.wood-strip-inner {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 40px);
    padding-block: 18px;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}
.wood-strip-inner::-webkit-scrollbar {
    display: none;
}
.wood-strip-label {
    font-size: 9px;
    letter-spacing: 0.26em;
    color: var(--brass-3);
    padding-right: 18px;
    border-right: 1px solid var(--line);
}
.wood-strip-item {
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--muted);
}
.wood-strip-item + .wood-strip-item::before {
    content: "·";
    margin-right: clamp(18px, 3vw, 40px);
    color: var(--brass);
}
.wood-strip-extra {
    color: var(--ink-3);
}

/* Footer */
.site-footer {
    position: relative;
    background: #14110f;
    color: var(--paper);
    overflow: hidden;
    padding-top: clamp(64px, 8vw, 100px);
}
.footer-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(176, 138, 86, 0.08), transparent 65%);
    pointer-events: none;
}
.footer-top {
    position: relative;
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 0.7fr 0.7fr 1.1fr;
    gap: clamp(24px, 3vw, 50px);
    padding-bottom: clamp(48px, 6vw, 76px);
}
.brand-light .brand-mark {
    color: var(--brass-2);
    border-color: rgba(201, 169, 120, 0.65);
}
.brand-light .brand-text strong {
    color: var(--paper);
}
.brand-light .brand-text small {
    color: rgba(247, 243, 236, 0.45);
}
.footer-slogan {
    font-family: var(--font-serif);
    font-size: clamp(22px, 2.2vw, 28px);
    line-height: 1.5;
    margin: 24px 0 12px;
    color: var(--paper);
}
.footer-intro {
    font-size: 11.5px;
    line-height: 1.9;
    color: rgba(247, 243, 236, 0.48);
}
.footer-qr {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 24px;
}
.footer-qr img {
    width: 78px;
    height: 78px;
    background: var(--paper);
    padding: 5px;
}
.footer-qr div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.footer-qr strong {
    font-size: 11px;
    letter-spacing: 0.1em;
    color: rgba(247, 243, 236, 0.8);
}
.footer-qr span {
    font-size: 9.5px;
    color: rgba(247, 243, 236, 0.4);
}
.footer-qr .copy-link {
    align-self: flex-start;
    margin-top: 3px;
    color: var(--brass-2);
    font-size: 9px;
}
.footer-col h3 {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.24em;
    color: var(--brass-2);
    margin-bottom: 20px;
}
.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-col li a {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 12px;
    color: rgba(247, 243, 236, 0.62);
    transition: color 0.25s;
}
.footer-col li a:hover {
    color: var(--paper);
}
.footer-col li a span {
    font-size: 8px;
    letter-spacing: 0.1em;
    color: rgba(247, 243, 236, 0.25);
}
.footer-contact p {
    display: flex;
    gap: 8px;
    font-size: 11.5px;
    line-height: 1.8;
    color: rgba(247, 243, 236, 0.58);
    margin-bottom: 10px;
}
.footer-contact .icon {
    width: 14px;
    height: 14px;
    margin-top: 3px;
    color: var(--brass-2);
}
.footer-phone a {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--paper) !important;
    letter-spacing: 0.03em;
}
.footer-map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--brass-2);
    border-bottom: 1px solid rgba(201, 169, 120, 0.35);
    padding-bottom: 3px;
}
.footer-bottom {
    position: relative;
    border-top: 1px solid rgba(247, 243, 236, 0.1);
    padding-block: 22px 90px;
}
.footer-bottom-inner {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 9.5px;
    letter-spacing: 0.04em;
    color: rgba(247, 243, 236, 0.32);
}
.footer-note {
    color: rgba(247, 243, 236, 0.22);
}
.footer-watermark {
    position: absolute;
    right: -20px;
    bottom: -40px;
    font-family: var(--font-serif);
    font-size: clamp(160px, 24vw, 320px);
    line-height: 0.8;
    color: rgba(247, 243, 236, 0.03);
    pointer-events: none;
    white-space: nowrap;
}

/* Mobile bar / back to top */
.mobile-bar {
    display: none;
}
.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 28px;
    z-index: 80;
    width: 44px;
    height: 44px;
    background: rgba(27, 23, 20, 0.85);
    color: var(--paper);
    border: 1px solid rgba(247, 243, 236, 0.2);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
    backdrop-filter: blur(6px);
}
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* 已登录后台时，前台显示「编辑此页」入口 */
.admin-quick-edit {
    position: fixed;
    right: 22px;
    bottom: 84px;
    z-index: 80;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: rgba(27, 23, 20, .9);
    color: #f4efe6;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
    transition: background .2s, transform .2s;
}
.admin-quick-edit:hover {
    background: var(--brass);
    color: #1c1917;
    transform: translateY(-2px);
}
.back-to-top:hover {
    background: var(--brass);
    color: var(--ink);
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 24px;
}
.modal[hidden] {
    display: none;
}
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 12, 10, 0.72);
    backdrop-filter: blur(6px);
}
.modal-panel {
    position: relative;
    z-index: 2;
    width: min(400px, 92vw);
    background: var(--paper);
    color: var(--ink);
    padding: 38px 32px 32px;
    text-align: center;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}
.modal-panel .overline {
    justify-content: center;
    margin-bottom: 12px;
}
.modal-panel h2 {
    font-size: 26px;
    margin-bottom: 20px;
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: var(--muted);
}
.wechat-qr img {
    width: 200px;
    height: 200px;
    margin-inline: auto;
    background: var(--white);
    padding: 8px;
    border: 1px solid var(--line);
}
.wechat-id {
    margin-top: 16px;
    font-size: 12px;
    color: var(--muted);
}
.wechat-id strong {
    color: var(--ink);
    font-weight: 500;
    letter-spacing: 0.04em;
}
.wechat-id .copy-btn {
    font-size: 9px;
    letter-spacing: 0.1em;
    color: var(--brass-3);
    border-bottom: 1px solid currentColor;
    margin-left: 6px;
}
.modal-hint {
    margin-top: 14px;
    font-size: 10px;
    line-height: 1.8;
    color: var(--muted-2);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 220;
    background: rgba(10, 8, 6, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox[hidden] {
    display: none;
}
.lightbox-figure {
    max-width: 88vw;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.lightbox-figure img {
    max-width: 88vw;
    max-height: 78vh;
    object-fit: contain;
}
.lightbox-figure figcaption {
    color: rgba(247, 243, 236, 0.6);
    font-size: 11px;
    letter-spacing: 0.08em;
}
.lightbox-close,
.lightbox-nav {
    position: absolute;
    z-index: 2;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--paper);
    border: 1px solid rgba(247, 243, 236, 0.2);
    border-radius: 50%;
    transition: background 0.3s, color 0.3s;
}
.lightbox-close:hover,
.lightbox-nav:hover {
    background: var(--brass);
    color: var(--ink);
}
.lightbox-close {
    top: 22px;
    right: 22px;
}
.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
}
.lightbox-nav.prev {
    left: 22px;
}
.lightbox-nav.next {
    right: 22px;
}
.lightbox-count {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(247, 243, 236, 0.5);
    font-size: 10px;
    letter-spacing: 0.2em;
}

/* Toast */
.toast-stack {
    position: fixed;
    top: calc(var(--header-h) + 16px);
    right: 20px;
    z-index: 250;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 340px;
}
.toast {
    background: var(--ink);
    color: var(--paper);
    padding: 12px 18px;
    font-size: 12px;
    line-height: 1.6;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
    animation: toastIn 0.4s var(--ease-out);
}
.toast-success {
    border-left: 2px solid var(--brass-2);
}
.toast-error {
    border-left: 2px solid #a33b2c;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateY(-8px); }
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
.product-grid .reveal:nth-child(2),
.news-grid .reveal:nth-child(2),
.case-grid .reveal:nth-child(2) {
    transition-delay: 0.08s;
}
.product-grid .reveal:nth-child(3),
.news-grid .reveal:nth-child(3),
.case-grid .reveal:nth-child(3) {
    transition-delay: 0.16s;
}
