/* GGM 官网 · 亮色清爽风 */

:root {
    --bg: #faf8f4;
    --bg-alt: #f3eee5;
    --bg-soft: #f7f2ea;
    --card: #ffffff;
    --ink: #1e1a15;
    --ink-2: #5d554a;
    --ink-3: #968c7d;
    --line: #e7dfd2;
    --line-strong: #d7cbb7;
    --gold: #b8862b;
    --gold-light: #d9ac55;
    --gold-soft: #f6ecd8;
    --gold-deep: #8a6414;
    --ok: #2f7d4f;
    --ok-soft: #e9f4ed;
    --shadow-sm: 0 1px 2px rgba(30, 26, 21, 0.05);
    --shadow-md: 0 10px 28px rgba(30, 26, 21, 0.08);
    --shadow-lg: 0 24px 56px rgba(30, 26, 21, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.75;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

button,
input {
    font: inherit;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Navigation ---------- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    background: rgba(250, 248, 244, 0.86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: padding 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.nav.scrolled {
    padding: 12px 0;
    border-bottom-color: var(--line);
    background: rgba(250, 248, 244, 0.96);
    box-shadow: 0 4px 20px rgba(30, 26, 21, 0.06);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ink);
    white-space: nowrap;
}

.logo span {
    color: var(--ink-3);
    font-weight: 400;
    font-size: 15px;
    letter-spacing: 0.04em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    list-style: none;
}

.nav-links a {
    position: relative;
    padding: 8px 0;
    font-size: 14px;
    color: var(--ink-2);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.22s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    height: 2px;
    margin: 4px 0;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(30, 26, 21, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    width: min(320px, 84vw);
    padding: 28px 26px;
    background: var(--card);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-close {
    align-self: flex-end;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink-2);
    cursor: pointer;
    margin-bottom: 8px;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.mobile-nav-links a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 15px;
}

.mobile-menu-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

body.menu-open {
    overflow: hidden;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(180deg, #d3a04a 0%, #b8862b 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(184, 134, 43, 0.28);
}

.btn-primary:hover {
    background: linear-gradient(180deg, #dcaa55 0%, #c08f31 100%);
    box-shadow: 0 8px 22px rgba(184, 134, 43, 0.36);
    transform: translateY(-1px);
}

.btn-outline {
    background: var(--card);
    border-color: var(--line-strong);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold-deep);
    background: var(--gold-soft);
}

.btn.is-disabled {
    background: var(--bg-alt);
    border-color: var(--line);
    color: var(--ink-3);
    box-shadow: none;
    cursor: not-allowed;
}

/* ---------- Section headings ---------- */

.section-header {
    max-width: 720px;
    margin: 0 auto 52px;
    text-align: center;
}

.section-label {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}

.section-title {
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 15px;
    color: var(--ink-2);
    line-height: 1.9;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    padding: 150px 0 100px;
    overflow: hidden;
}

.hero-ggm {
    background:
        radial-gradient(900px 520px at 88% -10%, rgba(217, 172, 85, 0.22), transparent 62%),
        radial-gradient(700px 520px at -6% 18%, rgba(184, 134, 43, 0.1), transparent 60%),
        linear-gradient(180deg, #fdfbf7 0%, var(--bg) 100%);
}

.hero-ggm::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(30, 26, 21, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 26, 21, 0.028) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 78%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 78%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 64px;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px;
    margin-bottom: 26px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    font-size: 12.5px;
    color: var(--ink-2);
}

.hero-badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 4px rgba(47, 125, 79, 0.14);
}

.hero-title {
    font-size: clamp(42px, 5.2vw, 68px);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 22px;
}

.hero-title .gold {
    color: var(--gold);
    background: linear-gradient(120deg, #a9741f 0%, #d9ac55 60%, #b8862b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    max-width: 500px;
    margin-bottom: 34px;
    font-size: 16.5px;
    line-height: 1.95;
    color: var(--ink-2);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 52px;
}

.hero-actions .btn {
    padding: 14px 30px;
    font-size: 15px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.stat-value {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.stat-value::after {
    content: "";
    display: block;
    width: 24px;
    height: 2px;
    margin-top: 8px;
    background: var(--gold);
    border-radius: 2px;
}

.stat-label {
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--ink-3);
}

/* ---------- Client mock panel ---------- */

.hero-visual {
    position: relative;
}

.ggm-panel {
    position: relative;
    background: linear-gradient(165deg, #221e18 0%, #191510 100%);
    border: 1px solid rgba(255, 236, 190, 0.12);
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 42px 90px rgba(30, 26, 21, 0.28),
        0 0 0 8px rgba(255, 255, 255, 0.6);
}

.ggm-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(620px 260px at 85% -10%, rgba(217, 172, 85, 0.16), transparent 70%);
    pointer-events: none;
}

.ggm-panel-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 236, 190, 0.1);
}

.ggm-dots {
    display: inline-flex;
    gap: 6px;
}

.ggm-dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #4a443b;
}

.ggm-dots i:nth-child(1) { background: #b25450; }
.ggm-dots i:nth-child(2) { background: #c09a46; }
.ggm-dots i:nth-child(3) { background: #5c8f6b; }

.ggm-panel-title {
    font-size: 12px;
    letter-spacing: 0.06em;
    color: rgba(245, 240, 232, 0.55);
}

.ggm-panel-body {
    position: relative;
    z-index: 1;
    padding: 24px;
}

.ggm-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px dashed rgba(255, 236, 190, 0.09);
    font-size: 14px;
    color: rgba(245, 240, 232, 0.62);
}

.ggm-row:last-of-type {
    border-bottom: none;
}

.ggm-row b {
    color: #f5f0e8;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.ggm-row b.ok {
    color: #8fce9e;
}

.ggm-divider {
    height: 1px;
    margin: 16px 0;
    background: rgba(255, 236, 190, 0.1);
}

.ggm-mode {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.ggm-mode-tag {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    letter-spacing: 0.04em;
    color: rgba(245, 240, 232, 0.7);
    border: 1px solid rgba(255, 236, 190, 0.18);
}

.ggm-mode-tag.online {
    color: var(--gold-light);
    border-color: rgba(217, 172, 85, 0.45);
    background: rgba(217, 172, 85, 0.1);
}

.ggm-mode-name {
    font-size: 12.5px;
    color: rgba(245, 240, 232, 0.45);
}

.ggm-address {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    font-size: 13px;
    color: rgba(245, 240, 232, 0.55);
}

.ggm-address code {
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 236, 190, 0.14);
    border-radius: 6px;
    color: var(--gold-light);
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
}

.ggm-start {
    width: 100%;
}

.ggm-note {
    margin-top: 12px;
    font-size: 11.5px;
    color: rgba(245, 240, 232, 0.38);
    text-align: center;
}

/* ---------- Scenarios ---------- */

.scenarios {
    padding: 96px 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.scenario-card {
    display: flex;
    flex-direction: column;
    padding: 30px 28px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.scenario-card:hover {
    transform: translateY(-4px);
    border-color: rgba(184, 134, 43, 0.42);
    box-shadow: var(--shadow-md);
}

.scenario-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.scenario-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: var(--gold-soft);
    border: 1px solid rgba(184, 134, 43, 0.22);
    border-radius: 11px;
    color: var(--gold-deep);
}

.scenario-tag {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    border: 1px solid var(--line-strong);
    color: var(--ink-3);
}

.scenario-tag.offline {
    background: var(--bg-soft);
}

.scenario-tag.online {
    background: var(--gold-soft);
    border-color: rgba(184, 134, 43, 0.3);
    color: var(--gold-deep);
}

.scenario-title {
    margin-bottom: 10px;
    font-size: 19px;
    font-weight: 700;
    color: var(--ink);
}

.scenario-desc {
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.9;
    color: var(--ink-2);
}

.scenario-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.scenario-list li {
    position: relative;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--ink-2);
}

.scenario-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

/* ---------- Engine adaptation ---------- */

.engine {
    padding: 96px 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.engine-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 64px;
    align-items: start;
}

.engine-intro {
    position: sticky;
    top: 120px;
}

.engine-intro .section-label {
    margin-bottom: 12px;
}

.engine-lead {
    margin: 18px 0 24px;
    font-size: 15px;
    line-height: 1.95;
    color: var(--ink-2);
}

.engine-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.engine-tags span {
    padding: 6px 14px;
    background: var(--card);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 12.5px;
    color: var(--ink-2);
}

.engine-note {
    padding-left: 16px;
    border-left: 2px solid var(--gold);
    font-size: 13px;
    line-height: 1.85;
    color: var(--ink-3);
}

.engine-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.engine-item {
    padding: 26px 24px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.engine-item:hover {
    transform: translateY(-3px);
    border-color: rgba(184, 134, 43, 0.42);
    box-shadow: var(--shadow-md);
}

.engine-item-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

.engine-step {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}

.engine-item h3 {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--ink);
}

.engine-item p {
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--ink-2);
}

/* ---------- Features ---------- */

.services {
    padding: 96px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    padding: 30px 26px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(184, 134, 43, 0.4);
    box-shadow: var(--shadow-md);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    background: var(--gold-soft);
    border: 1px solid rgba(184, 134, 43, 0.22);
    border-radius: 12px;
    color: var(--gold-deep);
}

.service-title {
    margin-bottom: 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
}

.service-desc {
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--ink-2);
}

/* ---------- Workflow ---------- */

.why-gold {
    padding: 100px 0;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.why-content .section-label {
    margin-bottom: 12px;
}

.why-content .section-title {
    margin-bottom: 28px;
}

.why-list {
    list-style: none;
}

.why-item {
    display: flex;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.why-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.why-number {
    flex: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-soft);
    border: 1px solid rgba(184, 134, 43, 0.24);
    border-radius: 999px;
    color: var(--gold-deep);
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.why-text h4 {
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}

.why-text p {
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--ink-2);
}

.workflow-figure {
    position: relative;
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
}

.workflow-figure img {
    display: block;
    width: 100%;
    min-height: 460px;
    object-fit: cover;
}

.workflow-figure figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 42px 26px 24px;
    background: linear-gradient(180deg, transparent, rgba(20, 17, 13, 0.88));
}

.workflow-figure figcaption strong {
    color: #f5e6c4;
    font-size: 15px;
    font-weight: 600;
}

.workflow-figure figcaption span {
    color: rgba(245, 240, 232, 0.75);
    font-size: 13px;
}

/* ---------- Version library ---------- */

.products {
    padding: 96px 0 100px;
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
}

.version-toolbar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 36px;
}

.version-search {
    position: relative;
    width: 100%;
    max-width: 440px;
}

.version-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-3);
    pointer-events: none;
}

.version-search input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    background: var(--card);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: 14px;
    outline: none;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.version-search input::placeholder {
    color: var(--ink-3);
}

.version-search input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 134, 43, 0.14);
}

.version-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-pill {
    padding: 7px 14px;
    background: var(--card);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--ink-2);
    font-size: 12.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill:hover {
    border-color: var(--gold);
    color: var(--gold-deep);
    background: var(--gold-soft);
}

.filter-pill.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.version-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.version-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.version-card:hover {
    transform: translateY(-5px);
    border-color: rgba(184, 134, 43, 0.45);
    box-shadow: var(--shadow-md);
}

.version-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(160deg, #f2e9d8 0%, #e8ddc7 100%);
    border-bottom: 1px solid var(--line);
}

.version-cover img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.version-card:hover .version-cover img {
    transform: scale(1.05);
}

.version-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.version-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
}

@media (prefers-reduced-motion: reduce) {
    .version-card,
    .version-card:hover .version-cover img {
        transform: none;
        transition: none;
    }
}

.version-cover .cover-fallback,
.detail-main-img .cover-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-fallback {
    font-size: 54px;
    font-weight: 700;
    color: transparent;
    background: linear-gradient(150deg, #c69a44 0%, #9a7428 100%);
    -webkit-background-clip: text;
    background-clip: text;
    letter-spacing: 0.04em;
    user-select: none;
}

.cover-fallback.large {
    font-size: 92px;
}

.version-price {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 4px 11px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--gold-deep);
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    box-shadow: var(--shadow-sm);
}

.version-price.free {
    color: var(--ok);
    border-color: rgba(47, 125, 79, 0.32);
    background: var(--ok-soft);
}

.version-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    padding: 18px 20px 20px;
}

.version-name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.version-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge {
    display: inline-block;
    padding: 3px 9px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink-2);
    font-size: 11.5px;
    line-height: 1.5;
}

.badge.tag {
    background: var(--gold-soft);
    border-color: rgba(184, 134, 43, 0.24);
    color: var(--gold-deep);
}

.version-excerpt {
    color: var(--ink-3);
    font-size: 12.5px;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.version-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    color: var(--ink-3);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.version-empty {
    grid-column: 1 / -1;
    padding: 56px 0;
    text-align: center;
    color: var(--ink-3);
}

.version-status {
    margin-top: 26px;
    text-align: center;
    color: var(--ink-3);
    font-size: 13px;
}

.version-more-wrap {
    margin-top: 34px;
    text-align: center;
}

/* ---------- Version listing page ---------- */

.list-page {
    padding-top: 118px;
}

.list-head {
    margin-bottom: 34px;
}

.list-title {
    margin-bottom: 12px;
    font-size: clamp(28px, 3.2vw, 38px);
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
}

.list-desc {
    max-width: 720px;
    font-size: 14.5px;
    line-height: 1.9;
    color: var(--ink-2);
}

.filter-pill {
    display: inline-block;
    line-height: 1.4;
}

.list-search-note {
    margin: -12px 0 26px;
    font-size: 13.5px;
    color: var(--ink-2);
}

.list-search-note a {
    color: var(--gold-deep);
    margin-left: 6px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 44px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    background: var(--card);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--ink-2);
    font-size: 13.5px;
    font-variant-numeric: tabular-nums;
    transition: all 0.2s ease;
}

a.page-btn:hover {
    border-color: var(--gold);
    color: var(--gold-deep);
    background: var(--gold-soft);
}

.page-btn.current {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.page-btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.pagination-note {
    margin-top: 14px;
    text-align: center;
    font-size: 12.5px;
    color: var(--ink-3);
}

/* ---------- CTA ---------- */

.cta {
    padding: 96px 0;
}

.cta-inner {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 64px 48px;
    text-align: center;
    background:
        radial-gradient(700px 300px at 50% -20%, rgba(217, 172, 85, 0.25), transparent 70%),
        linear-gradient(165deg, #262119 0%, #191510 100%);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.cta-inner .section-label {
    color: var(--gold-light);
}

.cta-title {
    margin-bottom: 16px;
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 700;
    line-height: 1.3;
    color: #f7f2e9;
}

.cta-title .gold {
    color: var(--gold-light);
}

.cta-desc {
    max-width: 560px;
    margin: 0 auto 34px;
    font-size: 15px;
    line-height: 1.9;
    color: rgba(245, 240, 232, 0.68);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.cta-actions .btn-outline {
    background: transparent;
    border-color: rgba(255, 236, 190, 0.26);
    color: #f5f0e8;
    box-shadow: none;
}

.cta-actions .btn-outline:hover {
    border-color: var(--gold-light);
    color: var(--gold-light);
    background: rgba(217, 172, 85, 0.1);
}

.download-meta {
    margin-top: 18px;
    font-size: 12px;
    letter-spacing: 0.05em;
    color: rgba(245, 240, 232, 0.45);
}

/* ---------- Footer ---------- */

.footer {
    padding: 64px 0 32px;
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 14px;
}

.footer-brand p {
    max-width: 380px;
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--ink-2);
}

.footer-title {
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13.5px;
    color: var(--ink-2);
}

.footer-links a:hover {
    color: var(--gold-deep);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.footer-copy {
    font-size: 12.5px;
    color: var(--ink-3);
}

.footer-copy a {
    color: var(--gold-deep);
}

/* ---------- Version detail page ---------- */

.version-main {
    padding: 122px 0 90px;
    min-height: 70vh;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 12.5px;
    color: var(--ink-3);
}

.breadcrumb a {
    color: var(--ink-2);
}

.breadcrumb a:hover {
    color: var(--gold-deep);
}

.breadcrumb .current {
    color: var(--ink);
}

.version-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;   /* 左右等宽：图集与信息各占一半 */
    gap: 52px;
    align-items: start;
}

.detail-main-img {
    position: relative;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 24%, rgba(217, 172, 85, 0.24), transparent 60%),
        linear-gradient(160deg, #f2e9d8 0%, #e8ddc7 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.detail-main-img {
    /* 截图来源画幅不一（1.18 ~ 2.0），固定 16:10 画框 + contain，
       宁可留边也不裁掉界面关键信息。 */
    background: #141210;
}

.detail-main-img img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 缩略图最多三行：版本截图数量不定（3~20 张），按行铺会无限撑高左栏、
   和右栏信息严重错位。这里先竖向填满 3 行再换列，列多了横向滚动。 */
.detail-thumbs {
    display: grid;
    grid-auto-flow: row;
    grid-template-rows: repeat(3, auto);
    /* 列宽随容器自适应；列太多时每列保底 88px，超出部分横向滚动 */
    grid-auto-columns: minmax(96px, 1fr);
    gap: 8px;
    margin-top: 10px;
    padding-bottom: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
}

.detail-thumbs::-webkit-scrollbar {
    height: 6px;
}

.detail-thumbs::-webkit-scrollbar-thumb {
    background: var(--line-strong);
    border-radius: 999px;
}

.detail-thumbs::-webkit-scrollbar-track {
    background: transparent;
}

.detail-thumb {
    width: 100%;
    padding: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.62;
    scroll-snap-align: start;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.detail-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-thumb:hover,
.detail-thumb.active {
    opacity: 1;
    border-color: var(--gold);
}

.detail-thumb:hover {
    transform: translateY(-1px);
}

/* 主图计数器与左右切换 */
.detail-counter {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(20, 16, 12, 0.62);
    color: #f2e9d8;
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
    backdrop-filter: blur(4px);
}

.detail-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 236, 190, 0.18);
    border-radius: 999px;
    background: rgba(20, 16, 12, 0.5);
    color: #f2e9d8;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
    backdrop-filter: blur(4px);
}

.detail-main-img:hover .detail-nav,
.detail-nav:focus-visible {
    opacity: 1;
}

.detail-nav:hover {
    background: rgba(20, 16, 12, 0.76);
}

.detail-nav.prev { left: 12px; }
.detail-nav.next { right: 12px; }

.version-detail-info {
    padding-top: 2px;
}

.detail-head {
    margin-bottom: 26px;
}

.detail-head .version-badges {
    margin-top: 12px;
}

.detail-title {
    margin-bottom: 0;
    font-size: clamp(26px, 2.8vw, 36px);
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
}

.detail-excerpt {
    margin-top: 18px;
    color: var(--ink-2);
    font-size: 14.5px;
    line-height: 1.95;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.detail-actions .btn {
    padding: 13px 28px;
}

.detail-hint {
    margin-top: 14px;
    color: var(--ink-3);
    font-size: 12.5px;
    line-height: 1.75;
}

.detail-description {
    margin-top: 64px;
    padding-top: 44px;
    border-top: 1px solid var(--line);
}

.detail-desc-body {
    margin-top: 20px;
    color: var(--ink-2);
    font-size: 14.5px;
    line-height: 2;
}

.detail-desc-body p {
    margin-bottom: 14px;
}

.detail-related {
    margin-top: 64px;
    padding-top: 44px;
    border-top: 1px solid var(--line);
}

.detail-related .section-title {
    margin-bottom: 28px;
}

/* ---------- Responsive ---------- */

/* 双栏在窄屏下不再硬挤：低于 1040px 就上下堆叠，图集和信息都保持完整宽度。 */
@media (max-width: 1040px) {
    .version-detail {
        grid-template-columns: 1fr;
    }

    /* 单栏时图集占满会变得又高又空：限宽居中，保持和双栏时相近的观感。 */
    .version-detail-gallery {
        max-width: 660px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 1200px) {
    .version-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .version-detail {
        gap: 36px;
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .nav-links,
    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .scenario-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .engine-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .engine-intro {
        position: static;
    }

    .hero {
        padding: 120px 0 72px;
    }

    .hero-grid,
    .why-grid,
    .version-detail {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .hero-content {
        max-width: none;
    }

    .hero-stats {
        gap: 32px;
    }

    .version-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .services,
    .products,
    .why-gold,
    .cta {
        padding: 72px 0;
    }

    .cta-inner {
        padding: 48px 28px;
    }

    .workflow-figure img {
        min-height: 320px;
    }

    .detail-thumbs {
        grid-template-columns: repeat(5, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 560px) {
    .version-grid,
    .services-grid,
    .footer-grid,
    .engine-list {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .stat-value {
        font-size: 26px;
    }

    .hero-actions .btn,
    .detail-actions .btn,
    .cta-actions .btn {
        width: 100%;
    }

    .version-main {
        padding-top: 104px;
    }

    .ggm-address code {
        font-size: 11px;
    }
}

/* ---------- 分水岭对比：以前 / 现在 ---------- */

.compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 40px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.compare-col {
    padding: 28px 30px 30px;
}

.compare-col.is-before {
    background: var(--bg-alt);
    border-right: 1px solid var(--line);
}

.compare-col.is-after {
    background: var(--card);
}

.compare-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.compare-head h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

.compare-tag {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 999px;
}

.is-before .compare-tag {
    background: rgba(30, 26, 21, 0.07);
    color: var(--ink-3);
}

.is-after .compare-tag {
    background: var(--gold-soft);
    border: 1px solid rgba(184, 134, 43, 0.24);
    color: var(--gold-deep);
}

.compare-row {
    display: flex;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 13.5px;
    line-height: 1.8;
}

.compare-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.compare-row .ic {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.is-before .compare-row {
    color: var(--ink-3);
}

.is-before .compare-row .ic {
    background: rgba(30, 26, 21, 0.06);
    color: #a2988a;
}

.is-after .compare-row {
    color: var(--ink-2);
}

.is-after .compare-row .ic {
    background: var(--ok-soft);
    color: var(--ok);
}

/* ---------- 卡片角标 ---------- */

.version-flags {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
}

.version-flag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 3px 9px;
    border-radius: 999px;
    color: #fff;
}

.version-flag.is-new {
    background: rgba(184, 134, 43, 0.94);
}

.version-flag.is-verified {
    background: rgba(47, 125, 79, 0.94);
}

/* ---------- 详情页：部署步骤 ---------- */

.deploy-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.deploy-steps li {
    padding: 12px 14px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    color: var(--ink-2);
}

.deploy-steps li b {
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-deep);
}

/* ---------- 首页：最近更新 ---------- */

.latest-grid {
    grid-template-columns: repeat(3, 1fr);
}

.latest-more {
    margin-top: 28px;
    text-align: center;
}

@media (max-width: 1200px) {
    .latest-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .compare {
        grid-template-columns: 1fr;
    }

    .compare-col.is-before {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .latest-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- 版本库页：四条保证 ---------- */

.assure-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 0 0 34px;
}

.assure {
    padding: 16px 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.assure h4 {
    margin-bottom: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
}

.assure p {
    font-size: 12.5px;
    line-height: 1.72;
    color: var(--ink-2);
}

@media (max-width: 900px) {
    .assure-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .assure-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Hero 截图 ---------- */

.hero-shot {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #1a1613;
    /* 三层：贴合的细金边 + 深投影 + 一圈白色衬底（与页底色呼应） */
    box-shadow:
        0 0 0 1px rgba(255, 236, 190, 0.14),
        0 42px 90px rgba(30, 26, 21, 0.28),
        0 0 0 8px rgba(255, 255, 255, 0.6);
    animation: hero-shot-float 9s ease-in-out infinite;
    will-change: transform;
}

.hero-shot picture,
.hero-shot img {
    display: block;
    width: 100%;
    height: auto;
}

/* 左上角一层极淡的暗角，让标题区不与截图抢注意力 */
.hero-shot::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(200deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 38%);
}

.hero-shot-caption {
    position: absolute;
    left: 14px;
    bottom: 12px;
    z-index: 1;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(20, 16, 12, 0.68);
    border: 1px solid rgba(255, 236, 190, 0.16);
    color: #f0e6d2;
    font-size: 11.5px;
    letter-spacing: 0.02em;
    backdrop-filter: blur(6px);
}

@keyframes hero-shot-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}

@media (max-width: 900px) {
    .hero-shot {
        animation: none;
        box-shadow:
            0 0 0 1px rgba(255, 236, 190, 0.14),
            0 24px 48px rgba(30, 26, 21, 0.22);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-shot { animation: none; }
}

/* ---------- 详情页信息卡：统一「标签 / 值」节奏 ---------- */

.detail-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin-top: 26px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.fact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    background: var(--card);
}

.fact-wide {
    grid-column: 1 / -1;
}

.fact .k {
    font-size: 11.5px;
    letter-spacing: 0.02em;
    color: var(--ink-3);
}

.fact .v {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.fact .v.ok { color: var(--ok); }
.fact .v.warn { color: var(--gold-deep); }
.fact .v.unknown { color: var(--ink-3); font-weight: 400; }

.fact .sub {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    font-weight: 400;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 560px) {
    .detail-facts {
        grid-template-columns: 1fr;
    }
}

/* 缩略图「还有 N 张」提示块 */
.detail-thumb-more {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--ink-3);
    background: var(--bg-soft);
    border-style: dashed;
    opacity: 1;
    cursor: default;
}

.detail-thumb-more:hover {
    transform: none;
    border-color: var(--line);
}

/* 五步流程：宽屏五列，中屏三列，小屏两列 */
@media (max-width: 1200px) {
    .deploy-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .deploy-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ---------- 图片灯箱 ---------- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(12, 10, 8, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    cursor: zoom-out;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
    transform: scale(0.97);
    transition: transform 0.2s ease;
}

.lightbox.open img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #f4efe6;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* 可点击放大的图：给出可点的提示 */
[data-lightbox],
.detail-main-img img {
    cursor: zoom-in;
}

@media (max-width: 560px) {
    .lightbox { padding: 14px; }
}
