﻿:root {
    --bg1: #eef8ff;
    --bg2: #e8f7f0;
    --card: rgba(255,255,255,.18);
    --card-strong: rgba(255,255,255,.26);
    --border: rgba(255,255,255,.28);
    --text: #2d4058;
    --muted: #7c8da5;
    --blue: #4f8fd6;
    --blue2: #7db5ff;
    --shadow: 0 8px 24px rgba(80,120,170,.12);
    --shadow-hover: 0 18px 38px rgba(70,130,210,.26);
    --glow: 0 0 22px rgba(127,184,255,.38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei","PingFang SC",sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.9) 0 1px, transparent 1px 100%), radial-gradient(circle at 60% 30%, rgba(255,255,255,.75) 0 1px, transparent 1px 100%), radial-gradient(circle at 80% 70%, rgba(255,255,255,.8) 0 1px, transparent 1px 100%), linear-gradient(135deg,var(--bg1),var(--bg2));
    background-attachment: fixed;
    overflow-x: hidden;
}

    body::before {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(circle at 20% 30%, rgba(210,240,255,.35), transparent 28%), radial-gradient(circle at 75% 20%, rgba(220,255,235,.22), transparent 26%), radial-gradient(circle at 60% 80%, rgba(240,250,255,.18), transparent 30%);
        filter: blur(26px);
        z-index: -1;
    }

/* 顶栏 */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    backdrop-filter: blur(18px);
    background: rgba(255,255,255,.14);
    border-bottom: 1px solid rgba(255,255,255,.22);
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-name {
    font-size: 28px;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: 2px;
}

.brand-sub {
    font-size: 12px;
    letter-spacing: 4px;
    color: #8ea8c8;
}

.nav {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

    .nav a {
        position: relative;
        text-decoration: none;
        color: var(--text);
        font-weight: 600;
        padding: 6px 0;
    }

        .nav a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -2px;
            width: 0;
            height: 2px;
            border-radius: 999px;
            background: linear-gradient(90deg,var(--blue),var(--blue2));
            transition: width .3s ease;
        }

        .nav a:hover::after {
            width: 100%;
        }

/* 横幅 */
.hero {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    box-shadow: none;
}

.hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.06) 55%, rgba(255,255,255,.12) 100%);
    z-index: 1;
}

.hero-title {
    position: absolute;
    left: 70px;
    bottom: 120px;
    z-index: 2;
}

    .hero-title h1 {
        margin: 0;
        font-size: 72px;
        line-height: 1;
        color: #4f8fd6;
        font-weight: 800;
        letter-spacing: 2px;
    }

    .hero-title p {
        margin: 16px 0 0;
        font-size: 28px;
        color: #8ba0bd;
        font-weight: 500;
    }

.hero-avatar {
    position: absolute;
    right: 80px;
    bottom: 40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,.85);
    box-shadow: none;
    z-index: 2;
}

    .hero-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* 通用 section */
.section {
    width: min(1200px, calc(100% - 40px));
    margin: 40px auto;
    padding: 28px;
    background: rgba(255,255,255,.14);
    backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.section-title {
    margin-bottom: 20px;
}

    .section-title h2 {
        margin: 0;
        font-size: 30px;
        color: var(--blue);
        letter-spacing: 1px;
    }

    .section-title p {
        margin: 8px 0 0;
        color: var(--muted);
        font-size: 14px;
    }

/* 基础信息 */
.basic-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 16px;
}

.basic-box {
    padding: 20px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.22);
    border: 1px solid rgba(255,255,255,.32);
    box-shadow: var(--shadow);
}

    .basic-box span {
        display: block;
        color: #7b8ea8;
        font-size: 13px;
        margin-bottom: 10px;
    }

    .basic-box strong {
        font-size: 20px;
        color: var(--text);
    }

.intro-text {
    margin-top: 22px;
    padding: 22px;
    border-radius: 18px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.24);
}

    .intro-text h3 {
        margin: 0 0 10px;
        color: var(--blue);
    }

    .intro-text p {
        margin: 0;
        line-height: 1.8;
        color: #55667d;
    }

/* 外貌 */
.appearance-row {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 22px;
    align-items: center;
}

.appearance-text {
    padding: 24px;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

    .appearance-text h3 {
        margin: 0 0 12px;
        color: var(--blue);
        font-size: 22px;
    }

    .appearance-text p {
        margin: 0 0 12px;
        line-height: 1.9;
        color: #55667d;
    }

.appearance-image {
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
}

    .appearance-image img {
        width: 100%;
        display: block;
        object-fit: cover;
    }

/* 服装展示 */
.outfit-carousel {
    overflow: hidden;
    width: 100%;
}

.outfit-track {
    display: flex;
    gap: 18px;
    will-change: transform;
}

.outfit-item {
    position: relative;
    flex: 0 0 auto;
    width: 260px;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.24);
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .outfit-item:hover {
        transform: scale(1.04);
        box-shadow: var(--shadow-hover);
    }

    .outfit-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.outfit-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px;
    background: linear-gradient(180deg, transparent, rgba(18,28,44,.72));
    color: #fff;
}

    .outfit-caption h3 {
        margin: 0 0 6px;
        font-size: 18px;
    }

    .outfit-caption p {
        margin: 0;
        font-size: 13px;
        opacity: .9;
    }

/* 世界观 */
.world-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 16px;
}

.world-card {
    padding: 22px;
    border-radius: 18px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.24);
    box-shadow: var(--shadow);
}

    .world-card h3 {
        margin: 0 0 10px;
        color: var(--blue);
    }

    .world-card p {
        margin: 0;
        line-height: 1.8;
        color: #55667d;
    }

/* Gear */
.gear-layout {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: start;
}

.gear-main-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gear-main-card {
    padding: 20px;
    border-radius: 22px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.24);
    box-shadow: var(--shadow);
}

.gear-main-image-wrap {
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
    cursor: pointer;
    background: rgba(255,255,255,.12);
}

    .gear-main-image-wrap img {
        width: 100%;
        display: block;
        object-fit: cover;
        transition: transform .25s ease;
    }

    .gear-main-image-wrap:hover img {
        transform: scale(1.02);
    }

.gear-main-info {
    margin-top: 16px;
}

    .gear-main-info h3 {
        margin: 0 0 8px;
        color: var(--blue);
        font-size: 22px;
    }

    .gear-main-info p {
        margin: 0;
        line-height: 1.8;
        color: #55667d;
    }

.gear-dot-bar {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.gear-dot {
    border: none;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.22);
    color: #56708f;
    font-weight: 700;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all .25s ease;
    white-space: nowrap;
}

    .gear-dot.active {
        background: linear-gradient(135deg,var(--blue),var(--blue2));
        color: #fff;
        box-shadow: var(--shadow-hover), var(--glow);
    }

.gear-arrow {
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,.22);
    color: var(--blue);
    font-size: 30px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform .2s ease, background .2s ease;
    margin-top: 180px;
}

    .gear-arrow:hover {
        transform: scale(1.06);
        background: rgba(255,255,255,.34);
    }

.gear-thumb-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.gear-thumb {
    overflow: hidden;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    cursor: pointer;
    opacity: .72;
    transition: transform .22s ease, opacity .22s ease, filter .22s ease;
}

    .gear-thumb.active {
        opacity: 1;
        filter: saturate(1.08);
    }

    .gear-thumb:hover {
        transform: translateY(-6px);
        opacity: 1;
    }

    .gear-thumb img {
        width: 100%;
        aspect-ratio: 1/1;
        object-fit: cover;
        display: block;
        border-radius: 0;
        box-shadow: none;
    }

/* 展开大图区域 */
.gear-expand-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, opacity .35s ease, margin-top .35s ease;
    opacity: 0;
    margin-top: 0;
}

    .gear-expand-panel.open {
        max-height: 1200px;
        opacity: 1;
        margin-top: 14px;
    }

.gear-expand-inner {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.24);
    box-shadow: var(--shadow);
}

    .gear-expand-inner img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
        border-radius: 16px;
        background: rgba(255,255,255,.85);
    }

/* Footer */
.footer {
    padding: 30px 20px 40px;
    text-align: center;
    color: #7d8fa9;
    font-size: 13px;
}

/* 响应式 */
@media (max-width: 1024px) {
    .basic-row {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .appearance-row {
        grid-template-columns: 1fr;
    }

    .world-grid {
        grid-template-columns: 1fr;
    }

    .gear-layout {
        grid-template-columns: 1fr;
    }

    .gear-arrow {
        display: none;
    }

    .hero-title h1 {
        font-size: 56px;
    }

    .hero-title p {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .topbar {
        padding: 16px 18px;
        gap: 12px;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        gap: 16px;
    }

    .hero {
        height: 420px;
    }

    .hero-title {
        left: 20px;
        bottom: 100px;
    }

        .hero-title h1 {
            font-size: 44px;
        }

        .hero-title p {
            font-size: 18px;
        }

    .hero-avatar {
        right: 20px;
        bottom: 24px;
        width: 150px;
        height: 150px;
    }

    .section {
        width: calc(100% - 24px);
        padding: 18px;
        border-radius: 18px;
    }

    .basic-row {
        grid-template-columns: 1fr;
    }

    .outfit-item {
        width: 78vw;
    }

    .gear-dot-bar {
        flex-wrap: wrap;
    }
}
