@charset "UTF-8";

:root {
    --bg: #090d0b;
    --bg-soft: #0e1411;
    --surface: #121a15;
    --surface-2: #17221b;
    --line: rgba(218, 238, 220, 0.12);
    --line-strong: rgba(218, 238, 220, 0.22);
    --text: #edf3e9;
    --muted: #97a59a;
    --green: #a4e66f;
    --green-bright: #c2ff85;
    --green-dark: #172813;
    --amber: #f2c66d;
    --violet: #c0a6ff;
    --danger: #ff8f79;
    --radius: 18px;
    --radius-sm: 11px;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
    --font: Inter, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

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

[hidden] {
    display: none !important;
}

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

body {
    min-width: 320px;
    background:
        radial-gradient(circle at 82% 8%, rgba(119, 173, 79, 0.09), transparent 28rem),
        radial-gradient(circle at 8% 42%, rgba(100, 139, 91, 0.06), transparent 26rem),
        var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 48px 48px;
    content: "";
    pointer-events: none;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}

body.modal-open {
    overflow: hidden;
}

::selection {
    background: var(--green);
    color: #0a100b;
}

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

button,
input {
    color: inherit;
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 2px solid var(--green-bright);
    outline-offset: 4px;
}

svg {
    display: block;
}

.container-wide {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--green);
    color: #0a100b;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    background: rgba(9, 13, 11, 0.74);
    backdrop-filter: blur(18px);
    transition: border-color 0.25s, background 0.25s;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(9, 13, 11, 0.94);
}

.navbar {
    position: relative;
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(194, 255, 133, 0.34);
    background: var(--green-dark);
    box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.13);
    transform: rotate(45deg);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
    position: absolute;
    background: var(--green);
    content: "";
}

.brand-mark::before {
    width: 8px;
    height: 8px;
    top: 8px;
    left: 8px;
}

.brand-mark::after {
    width: 8px;
    height: 8px;
    right: 8px;
    bottom: 8px;
}

.brand-mark span {
    width: 8px;
    height: 8px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-copy strong {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.brand-copy small,
.brand-sub {
    margin-top: 5px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.12em;
}

/* ===== 简化版首页 ===== */
.home-hero-simple {
    display: flex;
    min-height: 62vh;
    padding-block: 110px 70px;
    align-items: center;
}

.hero-copy-simple {
    max-width: 860px;
}

.hero-title-simple {
    margin-top: 22px;
    font-size: clamp(50px, 9vw, 100px);
    font-weight: 850;
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-title-simple span {
    color: var(--green-bright);
}

.hero-lead-simple {
    max-width: 600px;
    margin-top: 26px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.9;
}

.home-featured {
    padding-block: 30px 120px;
}

.home-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.featured-card {
    position: relative;
    display: flex;
    padding: 36px;
    flex-direction: column;
    min-height: 260px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(155deg, rgba(24, 34, 27, 0.9), rgba(12, 18, 14, 0.96));
    transition: transform 0.28s, border-color 0.28s;
}

.featured-card:hover {
    border-color: rgba(164, 230, 111, 0.32);
    transform: translateY(-4px);
}

.featured-tag {
    color: var(--green);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.featured-card h3 {
    margin-top: 14px;
    font-size: 28px;
    letter-spacing: -0.03em;
}

.featured-card p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

.featured-arrow {
    margin-top: auto;
    padding-top: 24px;
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
}

.featured-card-placeholder {
    border-style: dashed;
    border-color: rgba(218, 238, 220, 0.14);
    opacity: 0.78;
    cursor: default;
}

.featured-card-placeholder:hover {
    border-color: rgba(164, 230, 111, 0.22);
    transform: none;
}

/* ===== 项目列表页 ===== */
.projects-hero {
    padding-block: 90px 50px;
}

.projects-hero .hero-title {
    font-size: clamp(44px, 6vw, 72px);
}

.project-catalog {
    padding-block: 40px 110px;
}

.project-card {
    display: grid;
    margin-bottom: 20px;
    grid-template-columns: 1fr auto;
    gap: 32px;
    padding: 34px 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(155deg, rgba(24, 34, 27, 0.88), rgba(12, 18, 14, 0.96));
    transition: transform 0.28s, border-color 0.28s;
}

.project-card:hover {
    border-color: rgba(164, 230, 111, 0.32);
    transform: translateY(-4px);
}

.project-card-placeholder {
    border-style: dashed;
    border-color: rgba(218, 238, 220, 0.14);
    opacity: 0.72;
    cursor: default;
}

.project-card-placeholder:hover {
    border-color: rgba(164, 230, 111, 0.22);
    transform: none;
}

.project-card h2 {
    font-size: 28px;
    letter-spacing: -0.03em;
}

.project-card .tagline {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

.project-card .tech-stack {
    display: flex;
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 6px;
}

.project-card .tech-stack span {
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: #b8c3b9;
    font-family: var(--mono);
    font-size: 10px;
}

.project-card .project-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
}

/* ===== 项目详情页 ===== */
.project-detail {
    padding-block: 20px 100px;
}

.project-detail-header {
    margin-bottom: 50px;
}

.project-detail-header .tech-stack {
    display: flex;
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 6px;
}

.project-detail-header .tech-stack span {
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: #b8c3b9;
    font-family: var(--mono);
    font-size: 10px;
}

.project-detail-section {
    margin-bottom: 46px;
}

.project-detail-section h3 {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
    letter-spacing: -0.02em;
}

.project-detail-section p {
    color: #bdc8be;
    font-size: 14px;
    line-height: 2;
}

/* ---------- 项目截图 ---------- */
.project-shots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
    
}

.project-shot {
    margin: 0;
    overflow: hidden;
    max-width: 800px;
    margin-inline: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.project-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.project-shot figcaption {
    padding: 10px 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 20px;
    letter-spacing: 0.04em;
}

.project-shots.is-single {
    grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 760px) {
    .project-shots {
        grid-template-columns: minmax(0, 1fr);
    }
}

.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.feature-list li {
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13px;
}

.feature-list li::before {
    content: "▸ ";
    color: var(--green);
}

.setup-steps {
    list-style: none;
    counter-reset: step;
}

.setup-steps li {
    position: relative;
    padding: 14px 0 14px 50px;
    border-bottom: 1px solid var(--line);
    counter-increment: step;
    color: #bdc8be;
    font-size: 13px;
    line-height: 1.9;
}

.setup-steps li::before {
    position: absolute;
    left: 0;
    top: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    background: var(--surface);
    color: var(--green);
    content: "0" counter(step);
    font-family: var(--mono);
    font-size: 10px;
    display: grid;
    place-items: center;
}

.setup-steps code {
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--surface-2);
    color: var(--green);
    font-family: var(--mono);
    font-size: 11px;
}

.action-bar {
    display: inline-flex;
    flex-wrap: wrap;
    max-width: 100%;
    gap: 12px;
    padding: 20px 24px;
    border: 1px solid rgba(164, 230, 111, 0.22);
    border-radius: 12px;
    background: rgba(23, 40, 19, 0.6);
}

.action-bar .btn {
    flex: 0 0 auto;
    min-width: 0;
}

.file-tree {
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.9;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    overflow-x: auto;
    color: #b0bfb1;
    white-space: pre;
}

.file-tree .folder { color: var(--green-bright); }
.file-tree .java { color: #f2c66d; }
.file-tree .vue { color: #78b3ff; }
.file-tree .config { color: #c0a6ff; }
.file-tree .sql { color: #ff9e88; }

@media (max-width: 800px) {
    .home-featured-grid { grid-template-columns: 1fr; }
    .project-card { grid-template-columns: 1fr; padding: 26px; }
    .project-card .project-actions { flex-direction: row; }
    .feature-list { grid-template-columns: 1fr; }
    .action-bar .btn { min-width: 100%; }
}


.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links > a {
    position: relative;
    padding: 10px 14px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links > a:not(.nav-cta)::after {
    position: absolute;
    right: 14px;
    bottom: 4px;
    left: 14px;
    height: 2px;
    background: var(--green);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s;
}

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

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

.nav-links .nav-cta {
    display: inline-flex;
    margin-left: 12px;
    padding: 10px 17px;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--text);
}

.nav-links .nav-cta:hover {
    border-color: rgba(164, 230, 111, 0.5);
    background: rgba(164, 230, 111, 0.07);
}

.nav-toggle {
    position: relative;
    z-index: 112;
    display: none;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    padding: 11px;
    border: 1px solid rgba(194, 255, 133, 0.42);
    border-radius: 10px;
    background: #1a281d;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.28);
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    background: var(--text);
    transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--green);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(164, 230, 111, 0.09), 0 0 18px rgba(164, 230, 111, 0.55);
    animation: status-pulse 2.4s ease-in-out infinite;
}

h1,
h2,
h3 {
    line-height: 1.16;
}

.hero-title {
    max-width: 760px;
    margin-top: 24px;
    font-size: clamp(45px, 6.4vw, 82px);
    font-weight: 850;
    letter-spacing: -0.055em;
}

.hero-title span {
    color: var(--green-bright);
}

.hero-lead {
    max-width: 650px;
    margin-top: 26px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    margin-top: 34px;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    min-height: 48px;
    padding: 12px 20px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 750;
    transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--green);
    color: #0a110b;
    box-shadow: 0 10px 30px rgba(125, 185, 81, 0.14);
}

.btn-primary:hover {
    background: var(--green-bright);
    box-shadow: 0 14px 34px rgba(125, 185, 81, 0.22);
}

.btn-secondary {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: rgba(164, 230, 111, 0.4);
    background: rgba(164, 230, 111, 0.05);
}

.hero-stats {
    display: flex;
    margin-top: 48px;
    list-style: none;
    gap: 0;
}

.hero-stats li {
    display: flex;
    min-width: 124px;
    padding-right: 50px;
    flex-direction: column;
}

.hero-stats li + li {
    padding-left: 50px;
    border-left: 1px solid var(--line);
}

.hero-stats strong {
    font-family: var(--mono);
    font-size: 23px;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.hero-stats span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

/* 首页 */
.home-hero,
.mod-hero {
    display: grid;
    min-height: 660px;
    padding-block: 80px 92px;
    align-items: center;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
    gap: 72px;
}

.hero-art {
    position: relative;
    display: grid;
    min-height: 440px;
    place-items: center;
    perspective: 1000px;
}

.world-card {
    position: relative;
    width: min(100%, 410px);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(25, 37, 28, 0.94), rgba(12, 18, 14, 0.97));
    box-shadow: var(--shadow);
    transform: rotateY(-5deg) rotateX(3deg);
}

.world-card::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 30%);
    content: "";
    pointer-events: none;
}

.world-card-header,
.world-card-footer {
    display: flex;
    padding: 18px 20px;
    align-items: center;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
}

.world-card-header {
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
}

.live-pill::before {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.world-card-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.world-card-footer strong {
    color: var(--amber);
    font-weight: 600;
}

.voxel-stage {
    position: relative;
    display: grid;
    height: 310px;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(164, 230, 111, 0.11), transparent 48%),
        linear-gradient(rgba(164, 230, 111, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(164, 230, 111, 0.05) 1px, transparent 1px);
    background-size: auto, 28px 28px, 28px 28px;
    perspective: 700px;
}

.voxel-stage::after {
    position: absolute;
    right: 0;
    bottom: 24px;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(164, 230, 111, 0.28), transparent);
    content: "";
}

.voxel-cube {
    position: relative;
    width: 116px;
    height: 116px;
    transform: rotateX(-24deg) rotateY(38deg);
    transform-style: preserve-3d;
    animation: cube-float 5s ease-in-out infinite;
}

.cube-face {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(220, 255, 191, 0.28);
    background-color: #6b9d4d;
    background-image:
        linear-gradient(45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0, 0, 0, 0.07) 25%, transparent 25%);
    background-size: 29px 29px;
    backface-visibility: visible;
}

.cube-front { transform: translateZ(58px); }
.cube-back { transform: rotateY(180deg) translateZ(58px); }
.cube-right { transform: rotateY(90deg) translateZ(58px); filter: brightness(0.7); }
.cube-left { transform: rotateY(-90deg) translateZ(58px); filter: brightness(0.82); }
.cube-top { transform: rotateX(90deg) translateZ(58px); background-color: #9ac870; filter: brightness(1.08); }
.cube-bottom { transform: rotateX(-90deg) translateZ(58px); filter: brightness(0.5); }

.orbit {
    position: absolute;
    width: 250px;
    height: 250px;
    border: 1px dashed rgba(164, 230, 111, 0.19);
    border-radius: 50%;
    animation: orbit-spin 16s linear infinite;
}

.orbit::before,
.orbit::after {
    position: absolute;
    width: 9px;
    height: 9px;
    background: var(--green);
    box-shadow: 0 0 18px rgba(164, 230, 111, 0.6);
    content: "";
}

.orbit::before { top: 28px; left: 34px; }
.orbit::after { right: 17px; bottom: 66px; }

.floating-note {
    position: absolute;
    z-index: 2;
    min-width: 145px;
    padding: 12px 15px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: rgba(15, 23, 17, 0.91);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
}

.floating-note span,
.floating-note strong {
    display: block;
}

.floating-note span {
    color: var(--muted);
    font-size: 10px;
}

.floating-note strong {
    margin-top: 3px;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 500;
}

.note-one {
    top: 46px;
    right: -8px;
    animation: note-float 4s ease-in-out infinite;
}

.note-two {
    bottom: 46px;
    left: -10px;
    animation: note-float 4s 1s ease-in-out infinite;
}

.section-heading {
    display: flex;
    margin-bottom: 28px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.section-heading h2 {
    margin-top: 10px;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.035em;
}

.text-link {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
}

.text-link svg {
    transition: transform 0.2s;
}

.text-link:hover svg {
    transform: translateX(4px);
}

.home-mods {
    padding-block: 30px 110px;
}

.home-mod-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mini-mod {
    position: relative;
    display: flex;
    min-height: 230px;
    padding: 24px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(23, 33, 26, 0.86), rgba(14, 20, 16, 0.94));
    transition: transform 0.25s, border-color 0.25s, background 0.25s;
}

.mini-mod::after {
    position: absolute;
    right: -40px;
    bottom: -65px;
    width: 160px;
    height: 160px;
    border: 1px solid var(--line);
    content: "";
    transform: rotate(45deg);
    transition: border-color 0.25s, transform 0.4s;
}

.mini-mod:hover {
    border-color: rgba(164, 230, 111, 0.36);
    background: linear-gradient(145deg, rgba(29, 43, 32, 0.94), rgba(14, 20, 16, 0.98));
    transform: translateY(-5px);
}

.mini-mod:hover::after {
    border-color: rgba(164, 230, 111, 0.2);
    transform: rotate(60deg);
}

.mini-mod-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mini-number {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
}

.mini-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(164, 230, 111, 0.07);
    color: var(--green);
}

.mini-mod h3 {
    margin-top: 24px;
    font-size: 20px;
}

.mini-mod p {
    max-width: 280px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.mini-mod .mini-arrow {
    position: absolute;
    right: 23px;
    bottom: 22px;
    z-index: 1;
    color: var(--green);
}

.home-banner {
    margin-bottom: 100px;
}

.home-banner-inner {
    position: relative;
    display: flex;
    padding: 38px 42px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    overflow: hidden;
    border: 1px solid rgba(164, 230, 111, 0.23);
    border-radius: var(--radius);
    background: var(--green-dark);
}

.home-banner-inner::after {
    position: absolute;
    top: -80px;
    right: 20%;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(164, 230, 111, 0.1);
    content: "";
    transform: rotate(45deg);
}

.home-banner h2 {
    font-size: clamp(24px, 3.5vw, 35px);
    letter-spacing: -0.03em;
}

.home-banner p {
    margin-top: 8px;
    color: #a8b7a4;
    font-size: 14px;
}

.home-banner .btn {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* Mod 下载页 */
.mod-hero {
    min-height: 620px;
    padding-block: 72px 80px;
}

.mod-hero .hero-title {
    font-size: clamp(44px, 5.8vw, 74px);
}

.mod-hero-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(24, 35, 27, 0.96), rgba(12, 18, 14, 0.98));
    box-shadow: var(--shadow);
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.16s ease-out;
}

.mod-hero-panel::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    content: "";
    opacity: 0.6;
}

.protocol-header,
.protocol-footer {
    display: flex;
    padding: 21px 23px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.protocol-header {
    border-bottom: 1px solid var(--line);
}

.protocol-header > div {
    display: flex;
    flex-direction: column;
}

.protocol-header small {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.13em;
}

.protocol-header strong {
    margin-top: 3px;
    font-size: 16px;
}

.protocol-count {
    color: var(--green);
    font-family: var(--mono);
    font-size: 10px;
}

.protocol-list {
    padding: 8px 14px;
}

.protocol-item {
    display: grid;
    width: 100%;
    padding: 17px 10px;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    align-items: center;
    border-bottom: 1px solid rgba(218, 238, 220, 0.07);
    grid-template-columns: 30px 38px 1fr auto;
    gap: 12px;
    transition: background 0.2s;
}

.protocol-item:last-child {
    border-bottom: 0;
}

.protocol-item:hover {
    background: rgba(164, 230, 111, 0.035);
}

.protocol-number {
    color: #657269;
    font-family: var(--mono);
    font-size: 10px;
}

.protocol-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--green);
}

.protocol-name strong,
.protocol-name small {
    display: block;
}

.protocol-name strong {
    font-size: 13px;
    font-weight: 650;
}

.protocol-name small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
}

.protocol-state {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
    font-family: var(--mono);
    font-size: 9px;
}

.protocol-state::before {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.protocol-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
}

.protocol-footer > span:nth-child(2) {
    display: flex;
    margin-right: auto;
    align-items: center;
    gap: 9px;
}

.protocol-footer .status-dot {
    width: 5px;
    height: 5px;
}

.mod-catalog {
    padding-block: 82px 100px;
    border-top: 1px solid var(--line);
    background: rgba(13, 19, 15, 0.55);
}

.catalog-heading {
    margin-bottom: 30px;
}

.result-count {
    flex-shrink: 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 12px;
}

.result-count strong {
    color: var(--green);
    font-size: 20px;
    font-weight: 500;
}

.mod-toolbar {
    display: flex;
    margin-bottom: 26px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.search-box {
    display: flex;
    width: min(100%, 330px);
    min-height: 46px;
    padding: 0 13px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    color: var(--muted);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
    border-color: rgba(164, 230, 111, 0.5);
    box-shadow: 0 0 0 3px rgba(164, 230, 111, 0.07);
}

.search-box input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 13px;
}

.search-box input::placeholder {
    color: #748177;
}

.search-box kbd {
    display: grid;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
}

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

.filter-btn {
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.filter-btn span {
    margin-left: 5px;
    color: #6f7e72;
    font-family: var(--mono);
    font-size: 9px;
}

.filter-btn:hover {
    color: var(--text);
    border-color: var(--line-strong);
}

.filter-btn.active {
    border-color: rgba(164, 230, 111, 0.34);
    background: rgba(164, 230, 111, 0.09);
    color: var(--green-bright);
}

.filter-btn.active span {
    color: var(--green);
}

/* ======== 分组标题与徽章 ======== */
.group-title {
    grid-column: 1 / -1;
    margin: 36px 0 14px;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #dfe7df;
    letter-spacing: 0;
}

.group-title:first-child {
    margin-top: 8px;
}

.group-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.group-badge-self {
    background: rgba(164, 230, 111, 0.14);
    color: #a4e66f;
    border: 1px solid rgba(164, 230, 111, 0.3);
}

.group-badge-found {
    background: rgba(159, 199, 255, 0.12);
    color: #9fc7ff;
    border: 1px solid rgba(159, 199, 255, 0.28);
}

.group-badge-save {
    background: rgba(255, 200, 112, 0.12);
    color: #ffc870;
    border: 1px solid rgba(255, 200, 112, 0.28);
}

.mod-grid-group {
    display: contents;
}

.mod-card--self .mod-visual {
    border-color: rgba(164, 230, 111, 0.22);
}
.mod-card--found .mod-visual {
    border-color: rgba(159, 199, 255, 0.2);
}
.mod-card--save .mod-visual {
    border-color: rgba(255, 200, 112, 0.2);
}

/* ======== 分组分页控件 ======== */
.group-pagination {
    grid-column: 1 / -1;
    margin: 14px 0 28px;
    padding: 14px 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(218, 238, 220, 0.08);
    border-radius: 12px;
    background: rgba(10, 16, 12, 0.5);
}

.page-btn {
    min-width: 36px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(218, 238, 220, 0.12);
    border-radius: 8px;
    background: rgba(20, 32, 24, 0.5);
    color: #b8c4bb;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.12s;
}

.page-btn:hover:not(:disabled):not(.page-active) {
    border-color: rgba(164, 230, 111, 0.4);
    color: #dfe7df;
    background: rgba(164, 230, 111, 0.08);
}

.page-btn:active:not(:disabled) {
    transform: translateY(1px);
}

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

.page-btn.page-active {
    border-color: rgba(164, 230, 111, 0.55);
    background: rgba(164, 230, 111, 0.15);
    color: #a4e66f;
    font-weight: 700;
}

.page-prev, .page-next {
    font-size: 12px;
}

.page-dots {
    padding: 0 6px;
    color: #6b7771;
    font-size: 14px;
    user-select: none;
}

.page-info {
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px dashed rgba(218, 238, 220, 0.12);
    color: #6b7771;
    font-size: 12px;
    white-space: nowrap;
}

/* ======== 下载量显示 ======== */
.dl-counter {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 8px;
    border-radius: 100px;
    background: rgba(164, 230, 111, 0.1);
    border: 1px solid rgba(164, 230, 111, 0.25);
    color: #a4e66f;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* 详情页的下载量条 */
.action-bar .dl-counter {
    background: rgba(164, 230, 111, 0.08);
    border-color: rgba(164, 230, 111, 0.22);
    font-size: 12px;
    padding: 4px 10px;
}
.action-bar .dl-counter strong {
    font-size: 14px;
}

.mod-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.mod-card {
    --accent: var(--green);
    --accent-rgb: 164, 230, 111;
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 520px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(155deg, rgba(24, 34, 27, 0.96), rgba(13, 19, 15, 0.98));
    transition: transform 0.28s, border-color 0.28s, box-shadow 0.28s;
}

.mod-card--gravity {
    --accent: var(--violet);
    --accent-rgb: 192, 166, 255;
}

.mod-card--reality {
    --accent: var(--amber);
    --accent-rgb: 242, 198, 109;
}

.mod-card:hover {
    border-color: rgba(var(--accent-rgb), 0.34);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(-6px);
}

.mod-visual {
    position: relative;
    display: grid;
    height: 148px;
    flex-shrink: 0;
    place-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 50% 65%, rgba(var(--accent-rgb), 0.14), transparent 52%),
        linear-gradient(rgba(var(--accent-rgb), 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--accent-rgb), 0.045) 1px, transparent 1px);
    background-size: auto, 24px 24px, 24px 24px;
    color: var(--accent);
}

.mod-visual::before,
.mod-visual::after {
    position: absolute;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(var(--accent-rgb), 0.18);
    content: "";
    transform: rotate(45deg);
}

.mod-visual::before { top: -34px; left: 28px; }
.mod-visual::after { right: 25px; bottom: -38px; }

.mod-visual > svg {
    width: 70px;
    height: 70px;
    filter: drop-shadow(0 10px 20px rgba(var(--accent-rgb), 0.14));
    transition: transform 0.3s;
}

.mod-card:hover .mod-visual > svg {
    transform: translateY(-4px) rotate(-2deg) scale(1.04);
}

.mod-index {
    position: absolute;
    top: 15px;
    right: 17px;
    color: rgba(var(--accent-rgb), 0.6);
    font-family: var(--mono);
    font-size: 10px;
}

.mod-card-body {
    display: flex;
    padding: 23px 23px 18px;
    flex: 1;
    flex-direction: column;
}

.mod-labels {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mod-category {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.mod-version {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
}

.mod-card h3 {
    margin-top: 13px;
    font-size: 21px;
    letter-spacing: -0.025em;
}

.mod-summary {
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.85;
}

.mod-feature-preview {
    display: flex;
    margin-top: 17px;
    flex-wrap: wrap;
    list-style: none;
    gap: 6px;
}

.mod-feature-preview li {
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: #acb8ae;
    font-size: 10px;
}

.mod-spec-row {
    display: flex;
    margin: 0 23px;
    padding: 14px 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
}

.mod-spec-row strong {
    color: var(--text);
    font-weight: 500;
}

.mod-card-actions {
    display: grid;
    padding: 0 23px 23px;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.details-btn,
.download-btn {
    display: inline-flex;
    min-height: 43px;
    padding: 10px 12px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.details-btn {
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--text);
}

.details-btn:hover {
    border-color: rgba(var(--accent-rgb), 0.45);
    background: rgba(var(--accent-rgb), 0.05);
}

.download-btn {
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #10140f;
}

.download-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.empty-state {
    padding: 70px 20px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    text-align: center;
}

.empty-state[hidden] {
    display: none;
}

.empty-state svg {
    margin: 0 auto 18px;
    color: var(--muted);
}

.empty-state h3 {
    font-size: 20px;
}

.empty-state p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.empty-state button {
    margin-top: 20px;
}

.install-section {
    padding-block: 100px;
}

.install-layout {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 80px;
}

.install-copy h2 {
    margin-top: 14px;
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -0.04em;
}

.install-copy > p {
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

.compatibility-list {
    display: flex;
    margin-top: 26px;
    flex-wrap: wrap;
    list-style: none;
    gap: 8px;
}

.compatibility-list li {
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: #b8c3b9;
    font-family: var(--mono);
    font-size: 10px;
}

.install-steps {
    list-style: none;
    counter-reset: install;
}

.install-step {
    position: relative;
    display: grid;
    padding: 0 0 30px 58px;
    counter-increment: install;
}

.install-step:not(:last-child)::before {
    position: absolute;
    top: 35px;
    bottom: 0;
    left: 18px;
    width: 1px;
    background: var(--line-strong);
    content: "";
}

.install-step::after {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    width: 37px;
    height: 37px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    color: var(--green);
    content: "0" counter(install);
    font-family: var(--mono);
    font-size: 10px;
}

.install-step h3 {
    padding-top: 6px;
    font-size: 16px;
}

.install-step p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.install-step code {
    padding: 2px 5px;
    border-radius: 4px;
    background: var(--surface-2);
    color: var(--green);
    font-family: var(--mono);
    font-size: 11px;
}

.safety-note {
    display: flex;
    margin-top: 2px;
    padding: 16px;
    align-items: flex-start;
    gap: 11px;
    border: 1px solid rgba(242, 198, 109, 0.2);
    border-radius: 9px;
    background: rgba(242, 198, 109, 0.045);
    color: #c9b78f;
    font-size: 12px;
}

.safety-note svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--amber);
}

/* Mod 详情弹窗 */
.mod-dialog {
    width: min(680px, calc(100% - 32px));
    max-height: min(820px, calc(100dvh - 48px));
    margin: auto;
    overflow: auto;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: #111914;
    color: var(--text);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65);
}

.mod-dialog::backdrop {
    background: rgba(3, 6, 4, 0.78);
    backdrop-filter: blur(7px);
}

.mod-dialog[open] {
    animation: dialog-in 0.24s ease-out;
}

.dialog-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    display: grid;
    width: 37px;
    height: 37px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: rgba(9, 13, 11, 0.7);
    color: var(--muted);
    transition: color 0.2s, background 0.2s;
}

.dialog-close:hover {
    background: var(--surface-2);
    color: var(--text);
}

.dialog-hero {
    --accent: var(--green);
    --accent-rgb: 164, 230, 111;
    position: relative;
    display: flex;
    padding: 34px;
    align-items: center;
    gap: 22px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 12% 50%, rgba(var(--accent-rgb), 0.13), transparent 45%),
        linear-gradient(rgba(var(--accent-rgb), 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--accent-rgb), 0.035) 1px, transparent 1px);
    background-size: auto, 24px 24px, 24px 24px;
}

.dialog-hero.gravity {
    --accent: var(--violet);
    --accent-rgb: 192, 166, 255;
}

.dialog-hero.reality {
    --accent: var(--amber);
    --accent-rgb: 242, 198, 109;
}

.dialog-icon {
    display: grid;
    width: 86px;
    height: 86px;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid rgba(var(--accent-rgb), 0.26);
    border-radius: 16px;
    background: rgba(var(--accent-rgb), 0.06);
    color: var(--accent);
}

.dialog-icon > svg {
    width: 58px;
    height: 58px;
}

.dialog-heading .mod-category {
    color: var(--accent);
}

.dialog-heading h2 {
    margin-top: 8px;
    padding-right: 20px;
    font-size: 27px;
    letter-spacing: -0.035em;
}

.dialog-heading p {
    margin-top: 7px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
}

.dialog-body {
    padding: 30px 34px 34px;
}

.dialog-description {
    color: #bdc8be;
    font-size: 14px;
    line-height: 1.95;
}

.dialog-section-title {
    margin-top: 26px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dialog-features {
    display: grid;
    margin-top: 13px;
    list-style: none;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.dialog-features li {
    display: flex;
    padding: 11px 12px;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: #c1ccc2;
    font-size: 12px;
}

.dialog-features li::before {
    width: 5px;
    height: 5px;
    flex-shrink: 0;
    background: var(--green);
    content: "";
}

.dialog-specs {
    display: grid;
    margin-top: 13px;
    border: 1px solid var(--line);
    border-radius: 9px;
    grid-template-columns: repeat(2, 1fr);
    overflow: hidden;
}

.dialog-spec {
    padding: 13px 15px;
    border-bottom: 1px solid var(--line);
}

.dialog-spec:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.dialog-spec:nth-last-child(-n+2) {
    border-bottom: 0;
}

.dialog-spec span,
.dialog-spec strong {
    display: block;
}

.dialog-spec span {
    color: var(--muted);
    font-size: 10px;
}

.dialog-spec strong {
    margin-top: 3px;
    overflow-wrap: anywhere;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
}

.dialog-download {
    width: 100%;
    margin-top: 26px;
}

.dialog-filename {
    margin-top: 11px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    text-align: center;
    overflow-wrap: anywhere;
}

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 300;
    display: flex;
    max-width: min(390px, calc(100% - 32px));
    padding: 14px 17px;
    align-items: center;
    gap: 11px;
    border: 1px solid rgba(164, 230, 111, 0.3);
    border-radius: 10px;
    background: #17221b;
    box-shadow: var(--shadow);
    color: var(--text);
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition: opacity 0.25s, transform 0.25s;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast svg {
    flex-shrink: 0;
    color: var(--green);
}

/* 关于页 */
.subpage-hero {
    padding-block: 90px 65px;
    border-bottom: 1px solid var(--line);
}

.subpage-hero .hero-title {
    max-width: 800px;
    font-size: clamp(42px, 6vw, 68px);
}

.subpage-hero .hero-lead {
    max-width: 660px;
}

.about-content {
    display: grid;
    padding-block: 80px 110px;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 70px;
}

.about-article .eyebrow {
    margin-bottom: 20px;
}

.about-article h2 {
    font-size: 29px;
    letter-spacing: -0.03em;
}

.about-article > p {
    margin-top: 20px;
    color: #aab7ac;
    font-size: 15px;
    line-height: 2;
}

.about-credit {
    margin-top: 24px;
    padding: 10px 14px;
    border-top: 1px dashed rgba(164, 230, 111, 0.14);
    color: #6b7771 !important;
    font-size: 12px !important;
    line-height: 1.7 !important;
    font-style: italic;
}

.about-quote {
    margin-top: 34px;
    padding: 24px 26px;
    border-left: 2px solid var(--green);
    background: rgba(164, 230, 111, 0.04);
    color: #d9e5d7;
    font-size: 18px;
    line-height: 1.8;
}

.about-side {
    align-self: start;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.about-side h2 {
    font-size: 18px;
}

.principle-list {
    margin-top: 20px;
    list-style: none;
}

.principle-list li {
    display: grid;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    grid-template-columns: 30px 1fr;
    gap: 10px;
}

.principle-list span {
    color: var(--green);
    font-family: var(--mono);
    font-size: 10px;
}

.principle-list strong {
    display: block;
    font-size: 13px;
}

.principle-list p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.about-side .btn {
    width: 100%;
    margin-top: 18px;
}

/* 赞助按钮与收款码弹窗 */
.about-side .btn-sponsor {
    margin-top: 10px;
    background: var(--amber);
    color: #1b160b;
    box-shadow: 0 10px 26px rgba(242, 198, 109, 0.1);
}

.about-side .btn-sponsor:hover {
    background: #ffda88;
    box-shadow: 0 14px 30px rgba(242, 198, 109, 0.17);
}

.sponsor-note {
    margin-top: 12px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
    text-align: center;
}

.sponsor-dialog {
    width: min(430px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: #111914;
    color: var(--text);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65);
}

.sponsor-dialog::backdrop {
    background: rgba(3, 6, 4, 0.8);
    backdrop-filter: blur(7px);
}

.sponsor-dialog[open] {
    animation: dialog-in 0.24s ease-out;
}

.sponsor-dialog-header {
    padding: 28px 30px 18px;
    text-align: center;
}

.sponsor-badge {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid rgba(120, 173, 255, 0.24);
    border-radius: 999px;
    background: rgba(22, 119, 255, 0.09);
    color: #78adff;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.08em;
}

.sponsor-dialog-header h2 {
    margin-top: 14px;
    font-size: 27px;
    letter-spacing: -0.035em;
}

.sponsor-dialog-header p {
    margin-top: 9px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.sponsor-qr-frame {
    margin: 0 26px;
    padding: 10px;
    border-radius: 14px;
    background: #fff;
}

.sponsor-qr-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.sponsor-dialog-footer {
    padding: 18px 28px 25px;
    text-align: center;
}

.sponsor-dialog-footer strong {
    font-size: 14px;
}

.sponsor-dialog-footer p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}

/* 页脚 */
.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(7, 11, 8, 0.7);
}

.footer-inner {
    display: grid;
    min-height: 140px;
    padding-block: 30px;
    align-items: center;
    grid-template-columns: auto 1fr auto;
    gap: 34px;
}

.footer-inner > p {
    color: var(--muted);
    font-size: 12px;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: #748177;
    font-family: var(--mono);
    font-size: 9px;
    line-height: 1.9;
}

/* 备案信息（备案号下来后由 site.js 自动插入） */
.footer-meta .beian-link {
    color: #748177;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-meta .beian-link:hover {
    color: var(--green);
}

/* 备案号放在页脚中间一栏（左右两个元素之间） */
.beian-bar {
    display: block;
    margin-top: 6px;
    color: #748177;
    font-family: var(--mono);
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}

.beian-bar .beian-link {
    color: #748177;
    text-decoration: none;
    transition: color 0.2s ease;
}

.beian-bar .beian-link:hover {
    color: var(--green);
}

/* 动态效果 */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.mod-grid [data-reveal]:nth-child(2),
.home-mod-grid [data-reveal]:nth-child(2) {
    transition-delay: 0.08s;
}

.mod-grid [data-reveal]:nth-child(3),
.home-mod-grid [data-reveal]:nth-child(3) {
    transition-delay: 0.16s;
}

@keyframes status-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes cube-float {
    0%, 100% { transform: rotateX(-24deg) rotateY(38deg) translateY(0); }
    50% { transform: rotateX(-20deg) rotateY(48deg) translateY(-15px); }
}

@keyframes orbit-spin {
    to { transform: rotate(360deg); }
}

@keyframes note-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes dialog-in {
    from { opacity: 0; transform: translateY(15px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1020px) {
    .home-hero,
    .mod-hero {
        min-height: auto;
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
        gap: 38px;
    }

    .hero-title {
        font-size: clamp(43px, 6vw, 64px);
    }

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

    .mod-grid[data-count="3"] .mod-card:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 9px);
        justify-self: center;
    }

    .install-layout {
        gap: 45px;
    }

    .floating-note {
        min-width: 125px;
    }

    .note-one { right: 0; }
    .note-two { left: 0; }
}

@media (max-width: 800px) {
    .container-wide {
        width: min(100% - 36px, 650px);
    }

    .navbar {
        min-height: 72px;
        gap: 12px;
    }

    .nav-toggle {
        display: block;
        visibility: visible;
        opacity: 1;
    }

    .nav-toggle:hover {
        border-color: var(--green);
        background: #223422;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        z-index: 110;
        display: none;
        max-height: calc(100vh - 90px);
        padding: 10px;
        align-items: stretch;
        overflow-y: auto;
        border: 1px solid var(--line-strong);
        border-radius: 12px;
        background: #101812;
        box-shadow: 0 18px 38px rgba(0, 0, 0, 0.5);
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
    }

    .nav-links > a {
        display: flex;
        min-height: 44px;
        padding: 11px 14px;
        align-items: center;
        border-radius: 8px;
        color: #c8d3c9;
    }

    .nav-links > a:not(.nav-cta)::after {
        display: none;
    }

    .nav-links > a.active {
        border-radius: 7px;
        background: rgba(164, 230, 111, 0.1);
        color: var(--green-bright);
    }

    .nav-links .nav-cta {
        margin: 6px 0 0;
        justify-content: center;
        color: var(--text);
    }

    .home-hero,
    .mod-hero {
        padding-block: 65px 75px;
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .hero-copy,
    .mod-hero-copy {
        text-align: center;
    }

    .hero-copy .eyebrow,
    .mod-hero-copy .eyebrow,
    .hero-actions,
    .hero-stats {
        justify-content: center;
    }

    .hero-lead {
        margin-inline: auto;
    }

    .hero-art {
        min-height: 390px;
    }

    .world-card {
        transform: none;
    }

    .mod-hero-panel {
        width: min(100%, 480px);
        margin-inline: auto;
        text-align: left;
    }

    .home-mod-grid {
        grid-template-columns: 1fr;
    }

    .mini-mod {
        min-height: 200px;
    }

    .home-banner-inner {
        padding: 30px;
        flex-direction: column;
        align-items: flex-start;
    }

    .mod-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }

    .mod-grid[data-count="3"] .mod-card:last-child {
        width: auto;
        grid-column: auto;
    }

    .install-layout,
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

    .footer-inner > p {
        display: none;
    }

    /* 有备案号时保留中间一栏，让备案号显示在左右两个元素之间 */
    .footer-inner.has-beian {
        grid-template-columns: auto 1fr auto;
    }

    .footer-inner > p.footer-middle {
        display: block;
    }
}

@media (max-width: 580px) {
    .container-wide {
        width: calc(100% - 28px);
    }

    .brand-copy small,
    .brand-sub {
        display: none;
    }

    .hero-title,
    .mod-hero .hero-title {
        font-size: clamp(39px, 12vw, 55px);
    }

    .hero-lead {
        font-size: 14px;
    }

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

    .hero-stats {
        margin-top: 38px;
    }

    .hero-stats li {
        min-width: 0;
        padding-right: 16px;
        flex: 1;
    }

    .hero-stats li + li {
        padding-left: 16px;
    }

    .hero-stats strong {
        font-size: 19px;
    }

    .hero-stats span {
        font-size: 10px;
    }

    .hero-art {
        min-height: 350px;
    }

    .world-card {
        width: calc(100% - 12px);
    }

    .voxel-stage {
        height: 260px;
    }

    .voxel-cube {
        width: 96px;
        height: 96px;
    }

    .cube-front { transform: translateZ(48px); }
    .cube-back { transform: rotateY(180deg) translateZ(48px); }
    .cube-right { transform: rotateY(90deg) translateZ(48px); }
    .cube-left { transform: rotateY(-90deg) translateZ(48px); }
    .cube-top { transform: rotateX(90deg) translateZ(48px); }
    .cube-bottom { transform: rotateX(-90deg) translateZ(48px); }

    .orbit {
        width: 210px;
        height: 210px;
    }

    .floating-note {
        min-width: 112px;
        padding: 9px 11px;
    }

    .note-one { top: 18px; }
    .note-two { bottom: 18px; }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .catalog-heading {
        flex-direction: row;
        align-items: flex-end;
    }

    .home-mods,
    .mod-catalog,
    .install-section,
    .about-content {
        padding-block: 65px;
    }

    .home-banner {
        margin-bottom: 65px;
    }

    .home-banner-inner .btn {
        width: 100%;
    }

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

    .filter-btn {
        padding-inline: 8px;
    }

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

    .mod-card {
        min-height: 0;
    }

    .mod-card-body {
        padding-inline: 20px;
    }

    .mod-spec-row {
        margin-inline: 20px;
    }

    .mod-card-actions {
        padding-inline: 20px;
    }

    .dialog-hero {
        padding: 68px 24px 25px;
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .dialog-icon {
        width: 70px;
        height: 70px;
    }

    .dialog-body {
        padding: 24px;
    }

    .dialog-features {
        grid-template-columns: 1fr;
    }

    .dialog-specs {
        grid-template-columns: 1fr;
    }

    .dialog-spec,
    .dialog-spec:nth-child(odd),
    .dialog-spec:nth-last-child(-n+2) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .dialog-spec:last-child {
        border-bottom: 0;
    }

    .subpage-hero {
        padding-block: 65px 50px;
    }

    .footer-inner {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .footer-inner > p.footer-middle {
        width: 100%;
        text-align: center;
    }

    .footer-meta {
        align-items: flex-start;
    }

    .toast {
        right: 16px;
        bottom: 16px;
        left: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ============ 联系页 ============ */
.contact-layout {
        display: grid;
        grid-template-columns: 0.9fr 1.1fr;
        gap: 22px;
        align-items: start;
        padding-bottom: 80px;
    }
    .contact-col {
        display: grid;
        gap: 22px;
        align-content: start;
    }
    .support-btn {
        margin-top: 16px;
    }
    .contact-card {
        padding: 26px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--surface);
    }
    .contact-card h2 {
        margin: 6px 0 10px;
        font-size: 20px;
    }
    .contact-card > p {
        color: var(--muted);
        font-size: 14px;
    }
    .contact-mail {
        display: inline-block;
        margin: 18px 0 4px;
        color: var(--green);
        font-family: var(--mono);
        font-size: clamp(18px, 2.2vw, 24px);
        text-decoration: none;
        word-break: break-all;
    }
    .contact-mail:hover {
        text-decoration: underline;
    }
    .contact-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 16px;
    }
    .contact-meta {
        margin-top: 16px;
        color: var(--muted);
        font-size: 13px;
    }
    .contact-form .field {
        margin-top: 14px;
    }
    .contact-form label {
        display: block;
        margin-bottom: 6px;
        color: var(--muted);
        font-size: 13px;
    }
    .contact-form label span {
        opacity: 0.72;
    }
    .contact-form input:not([type="checkbox"]):not(.hp),
    .contact-form select,
    .contact-form textarea {
        width: 100%;
        min-height: 46px;
        padding: 11px 13px;
        border: 1px solid #c4cec5;
        border-radius: 10px;
        background: #f5f8f3;
        color: #121713;
        caret-color: #121713;
        color-scheme: light;
        font: inherit;
        font-size: 14px;
        outline: none;
        box-shadow: inset 0 1px 2px rgba(15, 27, 18, 0.06);
        transition: border-color 0.2s, box-shadow 0.2s;
    }
    .contact-form input::placeholder,
    .contact-form textarea::placeholder {
        color: #6c776e;
        opacity: 1;
    }
    .contact-form input:not([type="checkbox"]):not(.hp):focus,
    .contact-form select:focus,
    .contact-form textarea:focus {
        border-color: #72ad52;
        box-shadow: 0 0 0 3px rgba(164, 230, 111, 0.2);
    }
    .contact-form textarea {
        min-height: 150px;
        resize: vertical;
    }
    .contact-form .hp {
        position: absolute;
        left: -9999px;
        width: 1px;
        height: 1px;
        opacity: 0;
    }
    .contact-submit {
        width: 100%;
        margin-top: 18px;
    }
    .contact-submit[disabled] {
        opacity: 0.6;
        cursor: not-allowed;
    }
    .form-status {
        min-height: 20px;
        margin-top: 12px;
        font-size: 13px;
    }
    .form-status.ok {
        color: var(--green);
    }
    .form-status.err {
        color: var(--danger);
    }
    .form-note {
        margin-top: 8px;
        color: var(--muted);
        font-size: 12px;
    }
    @media (max-width: 900px) {
        .contact-layout {
            grid-template-columns: 1fr;
        }
    }


/* ============ NEW 角标（7 天内新内容）============ */
[data-added] {
    position: relative;
}
.badge-new {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    padding: 3px 9px;
    border-radius: 100px;
    background: var(--green);
    color: #0a110b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.5;
    box-shadow: 0 6px 18px rgba(164, 230, 111, 0.28);
    animation: badgePulse 2.4s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 6px 18px rgba(164, 230, 111, 0.28); }
    50% { box-shadow: 0 6px 24px rgba(164, 230, 111, 0.5); }
}
@media (prefers-reduced-motion: reduce) {
    .badge-new { animation: none; }
}

/* ===== 匿名提交 ===== */
.contact-form .anon-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0 4px;
    padding: 12px 14px;
    border: 1px dashed rgba(164, 230, 111, 0.38);
    border-radius: 10px;
    background: rgba(164, 230, 111, 0.06);
    color: var(--text);
    cursor: pointer;
    font-size: 14px;
}
.contact-form .anon-toggle input[type="checkbox"] {
    display: grid;
    width: 18px;
    height: 18px;
    min-width: 18px;
    flex: 0 0 18px;
    margin: 2px 0 0;
    padding: 0;
    place-content: center;
    appearance: none;
    border: 1px solid #86a978;
    border-radius: 4px;
    background: #f5f8f3;
    cursor: pointer;
}
.contact-form .anon-toggle input[type="checkbox"]::before {
    width: 9px;
    height: 5px;
    margin-top: -2px;
    border-bottom: 2px solid #172813;
    border-left: 2px solid #172813;
    content: "";
    transform: rotate(-45deg) scale(0);
    transition: transform 0.15s ease;
}
.contact-form .anon-toggle input[type="checkbox"]:checked {
    border-color: var(--green);
    background: var(--green);
}
.contact-form .anon-toggle input[type="checkbox"]:checked::before {
    transform: rotate(-45deg) scale(1);
}
.contact-form .anon-toggle > span {
    display: block;
    opacity: 1;
    line-height: 1.5;
}
.contact-form .anon-toggle strong {
    font-weight: 650;
}
.contact-form .anon-toggle em {
    display: block;
    margin-top: 3px;
    color: #adbaae;
    font-size: 12px;
    font-style: normal;
}

/* ===== 账号页 ===== */
.account-page .subpage-hero {
    padding-block: 64px 46px;
}
.account-page .subpage-hero .hero-title {
    margin-top: 18px;
}
.account-page .hero-lead {
    color: #b6c2b7;
}
.account-wrap {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 30px 24px 90px;
}
.account-card {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 30px;
    border: 1px solid rgba(218, 238, 220, 0.2);
    border-radius: 18px;
    background: linear-gradient(145deg, #162019, #111813);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
.account-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #0c120e;
}
.account-tab {
    min-height: 42px;
    flex: 1;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #a9b5aa;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.account-tab:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.035);
}
.account-tab.active {
    border-color: rgba(164, 230, 111, 0.45);
    background: rgba(164, 230, 111, 0.13);
    color: var(--green-bright);
}
.account-form .field {
    margin-bottom: 18px;
}
.account-form label {
    display: block;
    margin-bottom: 7px;
    color: #e8efe7;
    font-size: 14px;
    font-weight: 600;
}
.account-form label span {
    color: #aab6ab;
    font-size: 12px;
    font-weight: 400;
}
.account-form input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 11px 13px;
    border: 1px solid #c4cec5;
    border-radius: 10px;
    outline: none;
    background: #f5f8f3;
    color: #121713;
    caret-color: #121713;
    color-scheme: light;
    font: inherit;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: inset 0 1px 2px rgba(15, 27, 18, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.account-form input::placeholder {
    color: #6c776e;
    opacity: 1;
}
.account-form input:focus {
    border-color: #72ad52;
    box-shadow: 0 0 0 3px rgba(164, 230, 111, 0.22);
}
.account-form input:-webkit-autofill {
    -webkit-text-fill-color: #121713;
    box-shadow: 0 0 0 1000px #f5f8f3 inset;
}
.account-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    font-weight: 700;
}
.account-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}
.account-forgot,
.account-back {
    display: block;
    margin: 12px auto 0;
    padding: 4px 6px;
    border: 0;
    background: none;
    color: #aab6ab;
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.account-forgot:hover,
.account-back:hover {
    color: var(--green-bright);
}
.account-back {
    margin-top: 6px;
}
.code-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}
.code-btn {
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid rgba(164, 230, 111, 0.45);
    border-radius: 10px;
    background: rgba(164, 230, 111, 0.08);
    color: var(--green-bright);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}
.code-btn:hover {
    background: rgba(164, 230, 111, 0.15);
}
.code-btn:disabled {
    opacity: 0.55;
    cursor: default;
}
.account-card .form-note {
    color: #adbaae;
    line-height: 1.7;
}
.account-msg {
    min-height: 20px;
    margin-top: 14px;
    color: #c0cbc1;
    font-size: 13px;
}
.account-msg:empty {
    display: none;
}
.account-msg.err {
    color: #ffab98;
}
.account-msg.ok {
    color: var(--green-bright);
}
.account-user {
    padding-block: 10px 4px;
    text-align: center;
}
.account-user .eyebrow {
    justify-content: center;
}
.account-user h2 {
    margin: 12px 0 5px;
    color: var(--text);
    font-size: 26px;
    overflow-wrap: anywhere;
}
.account-user .mail {
    margin-bottom: 24px;
    color: #b6c2b7;
    font-size: 14px;
    overflow-wrap: anywhere;
}
.account-user .btn {
    width: 100%;
    min-height: 44px;
}

@media (max-width: 580px) {
    .account-page .subpage-hero {
        padding-block: 44px 34px;
    }
    .account-page .subpage-hero .hero-title {
        margin-top: 14px;
    }
    .account-page .hero-lead {
        margin-top: 18px;
        line-height: 1.8;
    }
    .account-wrap {
        padding: 22px 14px 60px;
    }
    .account-card {
        padding: 22px 18px;
        border-radius: 14px;
    }
    .account-tabs {
        margin-bottom: 20px;
    }
    .code-btn {
        padding-inline: 10px;
        font-size: 12px;
    }
    .contact-card {
        padding: 20px 18px;
    }
}

/* ===== 点赞 ===== */
.like-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border: 1px solid var(--line); border-radius: 100px;
    background: transparent; color: var(--muted); font: inherit; font-size: 12px;
    cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.like-btn:hover { color: #ff8f79; border-color: rgba(255, 143, 121, .35); }
.like-btn.is-liked { color: #ff7b8a; border-color: rgba(255, 123, 138, .45); background: rgba(255, 123, 138, .08); }
.like-btn svg { width: 13px; height: 13px; }
.nav-user { opacity: 1; }

/* ===== 鲜农优选：项目文件与在线预览 ===== */
.agri-shop-page .agri-actions {
    display: grid;
    gap: 16px;
    margin-bottom: 50px;
}
.agri-shop-page .agri-action-group {
    padding: 24px;
    border: 1px solid rgba(218, 238, 220, 0.14);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(20, 30, 23, 0.96), rgba(13, 20, 16, 0.96));
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}
.agri-shop-page .agri-action-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}
.agri-shop-page .agri-action-header .eyebrow {
    color: #91ad86;
    font-size: 10px;
}
.agri-shop-page .agri-action-header h2 {
    margin-top: 5px;
    color: #edf3e9;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.agri-shop-page .agri-group-note {
    padding-bottom: 2px;
    color: #8f9e91;
    font-size: 12px;
}
.agri-shop-page .agri-file-grid,
.agri-shop-page .agri-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.agri-shop-page .agri-file-card,
.agri-shop-page .agri-preview-card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
    padding: 16px;
    border: 1px solid rgba(218, 238, 220, 0.13);
    border-radius: 12px;
    background: rgba(9, 15, 11, 0.62);
    color: var(--text);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.agri-shop-page .agri-file-card:hover,
.agri-shop-page .agri-preview-card:hover {
    border-color: rgba(164, 230, 111, 0.42);
    background: rgba(24, 37, 27, 0.9);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}
.agri-shop-page .agri-file-icon,
.agri-shop-page .agri-preview-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid rgba(164, 230, 111, 0.2);
    border-radius: 10px;
    background: rgba(164, 230, 111, 0.07);
    color: #a4e66f;
}
.agri-shop-page .agri-file-copy,
.agri-shop-page .agri-preview-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}
.agri-shop-page .agri-file-copy strong,
.agri-shop-page .agri-preview-copy strong {
    color: #edf3e9;
    font-size: 15px;
    font-weight: 650;
}
.agri-shop-page .agri-file-copy small,
.agri-shop-page .agri-preview-copy small {
    margin-top: 3px;
    color: #97a59a;
    font-size: 12px;
    line-height: 1.5;
}
.agri-shop-page .agri-file-tail {
    display: flex;
    flex-shrink: 0;
    align-items: flex-end;
    flex-direction: column;
    gap: 5px;
}
.agri-shop-page .agri-dl-count {
    color: #89978b;
    font-size: 11px;
    white-space: nowrap;
}
.agri-shop-page .agri-dl-count strong {
    color: #bdc8be;
    font-size: 12px;
    font-weight: 600;
}
.agri-shop-page .agri-file-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #b9ef8d;
    font-size: 12px;
    font-weight: 700;
}
.agri-shop-page .agri-preview-hint {
    margin: -5px 0 16px;
    color: #9eaca0;
    font-size: 13px;
    line-height: 1.7;
}
.agri-shop-page .agri-preview-card {
    padding: 17px 18px;
}
.agri-shop-page .agri-preview-arrow {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 50%;
    background: rgba(164, 230, 111, 0.08);
    color: #a4e66f;
    transition: background 0.2s ease, transform 0.2s ease;
}
.agri-shop-page .agri-preview-card:hover .agri-preview-arrow {
    background: rgba(164, 230, 111, 0.15);
    transform: translateX(3px);
}

@media (max-width: 700px) {
    .agri-shop-page .agri-action-group {
        padding: 19px;
        border-radius: 14px;
    }
    .agri-shop-page .agri-action-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        margin-bottom: 16px;
    }
    .agri-shop-page .agri-group-note {
        padding-bottom: 0;
    }
    .agri-shop-page .agri-file-grid,
    .agri-shop-page .agri-preview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .agri-shop-page .agri-action-group {
        padding: 16px;
    }
    .agri-shop-page .agri-file-card,
    .agri-shop-page .agri-preview-card {
        gap: 10px;
        padding: 13px;
    }
    .agri-shop-page .agri-file-icon,
    .agri-shop-page .agri-preview-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }
}

/* 关于页：站长自写段落（占位文字可直接替换） */
.about-note {
    max-width: 760px;
    margin-inline: auto;
    padding-block: 0 100px;
}
.about-note .eyebrow {
    margin-bottom: 18px;
}
.about-note h2 {
    font-size: 27px;
    letter-spacing: -0.03em;
    line-height: 1.3;
}
.about-note > p {
    margin-top: 20px;
    color: #aab7ac;
    font-size: 15px;
    line-height: 2;
}
.about-note > div{
    padding-right: 20px;
    padding-bottom: 20px;
    border-radius: 8px;
    border: 2px solid var(--line);
}
.about-note > div > p{
    margin-top: 20px;
    color: #aab7ac;
    font-size: 15px;
    line-height: 2;
}
@media (max-width: 768px) {
    .about-note {
        padding-block: 0 70px;
    }
    .about-note h2 {
        font-size: 23px;
    }
}