/* ========================================
   DNF 多版本怀旧专题站
   纯 HTML + CSS，不使用 JavaScript
======================================== */

:root {
    color-scheme: dark;
    --bg: #080b12;
    --bg-soft: #0d121d;
    --panel: rgba(18, 24, 36, 0.92);
    --panel-light: rgba(29, 37, 54, 0.82);
    --text: #f5f7fb;
    --text-soft: #aab3c5;
    --border: rgba(255, 255, 255, 0.1);
    --header-height: 72px;
    --radius: 18px;
    --shadow: 0 20px 55px rgba(0, 0, 0, 0.36);
    --accent: #e7b75d;
    --accent-rgb: 231, 183, 93;
    --accent-two: #ff7849;
    --hero-image: url("");
}

body.theme-home {
    --accent: #e8b85d;
    --accent-rgb: 232, 184, 93;
    --accent-two: #e95e48;
    --hero-image: url("../images/body_v23.jpg");
}

body.theme-60 {
    --accent: #f0bd61;
    --accent-rgb: 240, 189, 97;
    --accent-two: #d95d39;
    --hero-image: url("../images/body_v60.jpg");
}

body.theme-70 {
    --accent: #66d9c1;
    --accent-rgb: 102, 217, 193;
    --accent-two: #4e91ff;
    --hero-image: url("../images/body_v70.jpg");
}

body.theme-86 {
    --accent: #ff7657;
    --accent-rgb: 255, 118, 87;
    --accent-two: #b83b45;
    --hero-image: url("../images/body_v86.jpg");
}

body.theme-90 {
    --accent: #9a86ff;
    --accent-rgb: 154, 134, 255;
    --accent-two: #4ec5ff;
    --hero-image: url("../images/body_v90.jpg");
}

/* 基础重置 */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 28px);
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 18%, rgba(var(--accent-rgb), 0.07), transparent 30%),
        radial-gradient(circle at 88% 80%, rgba(var(--accent-rgb), 0.06), transparent 30%),
        var(--bg);
    font-family:
        "Microsoft YaHei",
        "PingFang SC",
        "Noto Sans CJK SC",
        Arial,
        sans-serif;
    line-height: 1.75;
}

body::selection {
    color: #071018;
    background: var(--accent);
}

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

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

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

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

/* 顶部导航 */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: var(--header-height);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 10, 16, 0.86);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

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

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 38px;
    color: #11151d;
    background: linear-gradient(135deg, var(--accent), var(--accent-two));
    border-radius: 8px 14px 8px 14px;
    box-shadow: 0 8px 28px rgba(var(--accent-rgb), 0.25);
    font-family: Georgia, serif;
    letter-spacing: -1px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 16px;
    letter-spacing: 2px;
}

.brand-text small {
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 500;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    flex-wrap: wrap;
}

.nav-link {
    padding: 9px 13px;
    color: var(--text-soft);
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 14px;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
    color: var(--text);
    border-color: rgba(var(--accent-rgb), 0.35);
    background: rgba(var(--accent-rgb), 0.12);
}

/* 英雄区域 */

.hero {
    position: relative;
    min-height: 690px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image:
        linear-gradient(90deg, rgba(5, 8, 14, 0.97) 0%, rgba(5, 8, 14, 0.82) 42%, rgba(5, 8, 14, 0.25) 100%),
        linear-gradient(0deg, var(--bg) 0%, transparent 35%),
        var(--hero-image);
    background-position: center;
    background-size: cover;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 170px;
    background: linear-gradient(transparent, var(--bg));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    padding: 100px 0 130px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 38px;
    height: 2px;
    background: var(--accent);
}

.hero h1 {
    margin: 0;
    font-family: Georgia, "Microsoft YaHei", serif;
    font-size: clamp(48px, 8vw, 92px);
    line-height: 1.05;
    letter-spacing: -3px;
    text-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.hero h1 span {
    display: block;
    margin-top: 8px;
    color: var(--accent);
    font-family: "Microsoft YaHei", sans-serif;
    font-size: clamp(20px, 3vw, 34px);
    letter-spacing: 8px;
}

.hero-description {
    max-width: 680px;
    margin: 25px 0 0;
    color: #d2d8e3;
    font-size: 17px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    color: #12151b;
    background: linear-gradient(135deg, var(--accent), var(--accent-two));
    border: 1px solid transparent;
    border-radius: 10px;
    box-shadow: 0 12px 35px rgba(var(--accent-rgb), 0.2);
    font-size: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 42px rgba(var(--accent-rgb), 0.3);
}

.button-outline {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.hero-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.hero-stats li {
    min-width: 120px;
    padding: 13px 17px;
    background: rgba(8, 12, 19, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.hero-stats strong {
    display: block;
    color: var(--accent);
    font-size: 21px;
    line-height: 1.2;
}

.hero-stats span {
    color: var(--text-soft);
    font-size: 12px;
}

/* 通用区块 */

.section {
    padding: 92px 0;
}

.section-small {
    padding: 65px 0;
}

.section-muted {
    border-block: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(135deg, rgba(var(--accent-rgb), 0.045), transparent 55%),
        var(--bg-soft);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 42px;
}

.section-heading.center {
    margin-inline: auto;
    text-align: center;
}

.section-heading .kicker {
    display: block;
    margin-bottom: 9px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    font-family: Georgia, "Microsoft YaHei", serif;
    font-size: clamp(31px, 5vw, 48px);
    line-height: 1.2;
}

.section-heading p {
    margin: 16px 0 0;
    color: var(--text-soft);
}

.card-grid,
.event-grid,
.version-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

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

.card,
.event-card,
.guide-panel,
.tip-card,
.media-card,
.version-card {
    border: 1px solid var(--border);
    background:
        linear-gradient(145deg, rgba(var(--accent-rgb), 0.055), transparent 45%),
        var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card {
    padding: 28px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover,
.version-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--accent-rgb), 0.42);
}

.card-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.12);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    border-radius: 14px;
    font-size: 24px;
}

.card h3,
.event-card h3,
.tip-card h3,
.guide-panel h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.card p,
.event-card p,
.tip-card p,
.guide-panel p {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.tag-list li,
.tag {
    display: inline-flex;
    padding: 5px 10px;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
    border: 1px solid rgba(var(--accent-rgb), 0.22);
    border-radius: 999px;
    font-size: 12px;
}

/* 版本入口卡片 */

.version-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.version-card img {
    width: 100%;
    height: 195px;
    object-fit: cover;
    filter: saturate(0.9) contrast(1.05);
}

.version-card-content {
    padding: 24px;
}

.version-number {
    color: var(--accent);
    font-family: Georgia, serif;
    font-size: 46px;
    font-weight: 800;
    line-height: 1;
}

.version-card h3 {
    margin: 10px 0 8px;
    font-size: 20px;
}

.version-card p {
    min-height: 76px;
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
}

.text-link {
    display: inline-flex;
    margin-top: 19px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 800;
}

.text-link::after {
    content: "→";
    margin-left: 8px;
    transition: transform 0.2s ease;
}

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

/* 活动 */

.event-card {
    position: relative;
    overflow: hidden;
    padding: 29px;
}

.event-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-two));
}

.event-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.event-label {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.event-time {
    color: var(--text-soft);
    font-size: 12px;
}

.reward-list,
.check-list,
.steps {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.reward-list li,
.check-list li {
    position: relative;
    margin-top: 9px;
    padding-left: 22px;
    color: #d5dbe7;
    font-size: 13px;
}

.reward-list li::before,
.check-list li::before {
    content: "◆";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 10px;
}

/* 攻略与表格 */

.guide-grid {
    display: grid;
    grid-template-columns: 0.86fr 1.4fr;
    gap: 24px;
    align-items: start;
}

.guide-panel {
    padding: 30px;
}

.steps {
    counter-reset: step;
}

.steps li {
    position: relative;
    min-height: 48px;
    margin-top: 15px;
    padding: 2px 0 0 58px;
    color: var(--text-soft);
    font-size: 14px;
}

.steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #11151b;
    background: var(--accent);
    border-radius: 50%;
    font-weight: 900;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.data-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    background: rgba(14, 19, 29, 0.95);
}

.data-table th,
.data-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
    font-size: 13px;
}

.data-table th {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.08);
    font-size: 12px;
    letter-spacing: 1px;
}

.data-table td {
    color: var(--text-soft);
}

.data-table td strong {
    color: var(--text);
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.callout {
    margin-top: 24px;
    padding: 20px 22px;
    color: #dce2ec;
    background: rgba(var(--accent-rgb), 0.09);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    font-size: 14px;
}

/* 副本区域 */

.dungeon-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: stretch;
}

.media-card {
    overflow: hidden;
}

.media-card img {
    width: 100%;
    height: 330px;
    object-fit: cover;
}

.media-card-content {
    padding: 26px;
}

.media-card-content h3 {
    margin: 0 0 10px;
    font-size: 23px;
}

.media-card-content p {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
}

.tip-stack {
    display: grid;
    gap: 16px;
}

.tip-card {
    padding: 22px 24px;
}

.tip-number {
    display: inline-flex;
    margin-bottom: 9px;
    color: var(--accent);
    font-family: Georgia, serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

/* 说明模块 */

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

.notice-item {
    padding: 22px;
    border-left: 3px solid var(--accent);
    background: rgba(255, 255, 255, 0.035);
}

.notice-item strong {
    display: block;
    margin-bottom: 7px;
}

.notice-item p {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
}

/* 页脚 */

.site-footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
    background: #06080e;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 42px;
}

.footer-title {
    margin: 0 0 15px;
    color: var(--text);
    font-size: 16px;
}

.footer-about {
    max-width: 520px;
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: var(--text-soft);
    font-size: 13px;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 45px;
    padding-top: 24px;
    color: #717b8e;
    border-top: 1px solid var(--border);
    font-size: 12px;
}

.footer-version-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-version-links a:hover {
    color: var(--accent);
}

/* 响应式 */

@media (max-width: 1020px) {
    .version-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .guide-grid,
    .dungeon-layout {
        grid-template-columns: 1fr;
    }

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

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 780px) {
    :root {
        --header-height: auto;
    }

    .site-header {
        position: relative;
    }

    .header-inner {
        padding: 15px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .main-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-link {
        padding: 7px 10px;
    }

    .hero {
        min-height: 620px;
        background-image:
            linear-gradient(90deg, rgba(5, 8, 14, 0.92), rgba(5, 8, 14, 0.58)),
            linear-gradient(0deg, var(--bg), transparent 45%),
            var(--hero-image);
    }

    .hero-content {
        padding: 90px 0 120px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero h1 span {
        letter-spacing: 4px;
    }

    .section {
        padding: 70px 0;
    }

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

@media (max-width: 620px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .version-grid,
    .card-grid,
    .event-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid > div:first-child {
        grid-column: auto;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .hero-stats li {
        min-width: 0;
    }

    .button {
        width: 100%;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .media-card img {
        height: 240px;
    }
}

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

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}