/* ============================================
   山海镜花-归来 官网样式
   暗黑东方美学 · 暗蓝黑主调 · 金色点缀
   ============================================ */

/* ----- 基础重置 ----- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* ---- 全局水墨纹理背景 ---- */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    pointer-events: none;
    background:
        /* 水墨云雾 - 左上方 */
        radial-gradient(ellipse 800px 600px at 15% 20%, rgba(70, 80, 120, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 600px 500px at 85% 30%, rgba(60, 70, 110, 0.10) 0%, transparent 70%),
        /* 水墨云雾 - 中部 */
        radial-gradient(ellipse 1000px 400px at 50% 55%, rgba(50, 60, 100, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 700px 300px at 25% 70%, rgba(80, 70, 60, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 500px 400px at 75% 65%, rgba(60, 70, 110, 0.07) 0%, transparent 70%),
        /* 暗纹纹理 - 模拟水墨纸纹 */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.008) 2px,
            rgba(255, 255, 255, 0.008) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 3px,
            rgba(255, 255, 255, 0.005) 3px,
            rgba(255, 255, 255, 0.005) 6px
        );
}

/* ---- 水墨飞鸟装饰（全页飘浮） ---- */
@keyframes birdFloat1 {
    0% { transform: translate(5vw, 15vh) rotate(-3deg); opacity: 0.15; }
    50% { transform: translate(8vw, 12vh) rotate(2deg); opacity: 0.25; }
    100% { transform: translate(5vw, 15vh) rotate(-3deg); opacity: 0.15; }
}

@keyframes birdFloat2 {
    0% { transform: translate(80vw, 25vh) rotate(5deg); opacity: 0.12; }
    50% { transform: translate(83vw, 22vh) rotate(-2deg); opacity: 0.22; }
    100% { transform: translate(80vw, 25vh) rotate(5deg); opacity: 0.12; }
}

body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    pointer-events: none;
    background:
        /* 飞鸟1 */
        radial-gradient(1px 2px at 8% 14%, transparent 40%, rgba(200, 200, 220, 0.5) 70%, transparent 100%) 5vw 15vh / 20px 10px no-repeat,
        /* 飞鸟2 */
        radial-gradient(1px 2px at 50% 50%, transparent 40%, rgba(200, 200, 220, 0.4) 70%, transparent 80%) 82vw 24vh / 18px 9px no-repeat,
        /* 远山轮廓 - 底部 */
        linear-gradient(180deg, transparent 85%, rgba(30, 33, 55, 0.3) 95%, rgba(20, 22, 40, 0.5) 100%);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ----- 容器 ----- */
.container {
    width: 100%;
    max-width: 1265px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ----- 顶部导航 ----- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
    background: rgba(16, 18, 38, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background: rgba(16, 18, 38, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.header-inner {
    max-width: 1265px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-weight: 700;
}

.logo-text {
    font-size: 1.35rem;
    color: #d4af37;
    letter-spacing: 2px;
}

.logo-sub {
    font-size: 0.85rem;
    color: #a0a0b8;
    letter-spacing: 1px;
}

/* 导航链接 */
.nav {
    display: flex;
    gap: 36px;
}

.nav-link {
    position: relative;
    font-size: 0.95rem;
    color: #9a9ab0;
    letter-spacing: 1px;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #d4af37;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: #d4af37;
    transition: transform 0.3s ease;
}

.nav-link.active::after,
.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #d4af37;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ----- Hero 大图区 ----- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background: 
        url('../images/hero-bg.jpg') center/auto 100% no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    display: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.4) 30%, #ffffff 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ---- Hero 水墨山峰装饰 ---- */
.hero-mountains {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-mountains::before {
    display: none;
}

/* 山峰上的云霭 */
.hero-mountains::after {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 55vh;
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    margin-bottom: 24px;
}

.title-main {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: 8px;
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.3), 0 4px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.title-sub {
    display: block;
    font-size: 2rem;
    font-weight: 300;
    color: #8a8aaa;
    letter-spacing: 12px;
    margin-top: 4px;
}

.hero-slogan {
    font-size: 1.25rem;
    color: #b0b0c8;
    letter-spacing: 4px;
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ----- 按钮 ----- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    border: 2px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-gold {
    background: linear-gradient(135deg, #d4af37, #b8961e);
    color: #0d0f24;
    border-color: #d4af37;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #e6c44d, #d4af37);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: #0d0f24;
    color: #d4af37;
    border-color: #d4af37;
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

/* 向下滚动提示 */
.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.scroll-line {
    display: block;
    width: 2px;
    height: 32px;
    background: linear-gradient(to bottom, #d4af37, transparent);
}

.scroll-text {
    font-size: 0.75rem;
    color: #6a6a88;
    letter-spacing: 2px;
}

/* ----- 通用区块 ----- */
.section {
    padding: 100px 0;
    position: relative;
}

.section:nth-child(even) {
    background: rgba(20, 22, 40, 0.5);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: 4px;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #d4af37;
}

.section-desc {
    font-size: 1rem;
    color: #8a8aaa;
    letter-spacing: 1px;
    margin-top: 24px;
}

/* ----- 区块标题 ----- */
.intro-block {
    margin-bottom: 64px;
}

.intro-block:last-child {
    margin-bottom: 0;
}

.block-title {
    font-size: 1.3rem;
    color: #c8c8e0;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-icon {
    color: #d4af37;
    font-size: 1rem;
}

/* ----- 时间线 ----- */
.worldview-timeline {
    position: relative;
    padding-left: 30px;
}

.worldview-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #d4af37, rgba(212, 175, 55, 0.1));
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
    padding-left: 36px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -28px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d4af37;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: #d4af37;
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 0.95rem;
    color: #a0a0b8;
    line-height: 1.6;
}

/* ----- 玩法网格 ----- */
.gameplay-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gameplay-card {
    background: rgba(30, 33, 55, 0.6);
    border: 1px solid rgba(100, 110, 160, 0.15);
    border-radius: 4px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.gameplay-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.gameplay-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    position: relative;
}

.gameplay-icon::after {
    content: '';
    position: absolute;
    inset: 12px;
    background: #d4af37;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.icon-battle::after {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 2l-2 2m-7.5 2.5L8 10l-2 2-3-3L5 7l5 5-2 2 3 3 4-4 5-5-2-3 3-3z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 2l-2 2m-7.5 2.5L8 10l-2 2-3-3L5 7l5 5-2 2 3 3 4-4 5-5-2-3 3-3z'/%3E%3C/svg%3E");
}

.icon-nurture::after {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2L2 22h20L12 2zm0 4l6 14H6l6-14z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2L2 22h20L12 2zm0 4l6 14H6l6-14z'/%3E%3C/svg%3E");
}

.icon-summon::after {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
}

.icon-pvp::after {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h6v6H3V3zm12 0h6v6h-6V3zM3 15h6v6H3v-6zm12 0h6v6h-6v-6z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h6v6H3V3zm12 0h6v6h-6V3zM3 15h6v6H3v-6zm12 0h6v6h-6v-6z'/%3E%3C/svg%3E");
}

.icon-equip::after {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5'/%3E%3C/svg%3E");
}

.icon-qitan::after {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm-1 15l-5-5 1.5-1.5L11 14l5.5-5.5L18 10l-7 7z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm-1 15l-5-5 1.5-1.5L11 14l5.5-5.5L18 10l-7 7z'/%3E%3C/svg%3E");
}

.gameplay-card h4 {
    font-size: 1.1rem;
    color: #e0e0f0;
    margin-bottom: 8px;
}

.gameplay-card p {
    font-size: 0.9rem;
    color: #8a8aaa;
    line-height: 1.5;
}

/* ----- 角色卡片 ----- */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.char-card {
    background: rgba(30, 33, 55, 0.5);
    border: 1px solid rgba(100, 110, 160, 0.12);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.char-card:hover {
    border-color: rgba(212, 175, 55, 0.35);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.char-img-wrapper {
    height: 600px;
    background: linear-gradient(180deg, #1a1e38 0%, #252850 40%, #1e2242 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.char-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    display: block;
    padding: 10px;
}

/* 角色占位风格 */
.placeholder-huanglong {
    background: linear-gradient(135deg, #2a1f15, #4a3520);
    position: relative;
}

.placeholder-huanglong::after {
    content: '黄';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(212, 175, 55, 0.3);
    font-weight: 700;
}

.placeholder-baize {
    background: linear-gradient(135deg, #1a2235, #2a3a55);
}

.placeholder-baize::after {
    content: '白';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(180, 200, 240, 0.3);
    font-weight: 700;
}

.placeholder-tusizi {
    background: linear-gradient(135deg, #1a2a1a, #2a4a2a);
}

.placeholder-tusizi::after {
    content: '菟';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(150, 200, 150, 0.3);
    font-weight: 700;
}

.placeholder-chongming {
    background: linear-gradient(135deg, #2a1525, #4a2540);
}

.placeholder-chongming::after {
    content: '重';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(220, 160, 200, 0.3);
    font-weight: 700;
}

.char-info {
    padding: 16px 20px;
}

.char-info h4 {
    font-size: 1.1rem;
    color: #d4af37;
    margin-bottom: 6px;
}

.char-info p {
    font-size: 0.85rem;
    color: #8a8aaa;
    line-height: 1.5;
}

/* ----- SSR 镜灵网格 ----- */
.ssr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.ssr-item {
    background: rgba(30, 33, 55, 0.5);
    border: 1px solid rgba(100, 110, 160, 0.1);
    border-radius: 2px;
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.ssr-item:hover {
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(35, 38, 62, 0.7);
}

.ssr-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #d4af37;
    border: 1px solid #d4af37;
    border-radius: 2px;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.ssr-name {
    font-size: 0.95rem;
    color: #e0e0f0;
    font-weight: 600;
}

.ssr-desc {
    font-size: 0.8rem;
    color: #7a7a99;
    margin-left: auto;
}

.roster-note {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: #6a6a88;
    letter-spacing: 1px;
}


/* ----- 镜灵图鉴轮播 ----- */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 28px;
}

.gallery-tab {
    background: transparent;
    border: 1px solid rgba(100, 110, 160, 0.3);
    color: #7a7a99;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 8px 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.gallery-tab:first-child {
    border-radius: 4px 0 0 4px;
}

.gallery-tab:last-child {
    border-radius: 0 4px 4px 0;
}

.gallery-tab:hover {
    color: #d4af37;
    border-color: rgba(212, 175, 55, 0.4);
}

.gallery-tab.active {
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    border-color: #d4af37;
}

/* 轮播容器 */
.gallery-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    user-select: none;
    -webkit-user-select: none;
}

.carousel-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: 4px;
}

.carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* 镜灵卡片 */
.gallery-card {
    flex: 0 0 calc(100% / 6);
    min-width: 0;
    padding: 6px;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
}

.gallery-card-inner {
    background: rgba(30, 33, 55, 0.6);
    border: 1px solid rgba(100, 110, 160, 0.12);
    border-radius: 4px;
    padding: 18px 12px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.gallery-card:hover .gallery-card-inner {
    border-color: rgba(212, 175, 55, 0.45);
    background: rgba(35, 38, 62, 0.8);
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.gallery-card-badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 2px;
    letter-spacing: 1px;
    border: 1px solid;
}

.gallery-card-badge.ssr {
    color: #d4af37;
    border-color: #d4af37;
}

.gallery-card-badge.sr {
    color: #9b7fd4;
    border-color: #9b7fd4;
}

.gallery-card-badge.r {
    color: #4a90d9;
    border-color: #4a90d9;
}

.gallery-card-badge.n {
    color: #888888;
    border-color: #888888;
}

.gallery-card-name {
    font-size: 1rem;
    color: #e0e0f0;
    font-weight: 600;
    letter-spacing: 1px;
}

.gallery-card-desc {
    font-size: 0.78rem;
    color: #7a7a99;
}

/* 轮播箭头 */
.carousel-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(30, 33, 55, 0.7);
    border: 1px solid rgba(100, 110, 160, 0.2);
    border-radius: 50%;
    color: #d4af37;
    font-size: 1.6rem;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    font-family: serif;
}

.carousel-arrow:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.5);
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.carousel-prev {
    margin-right: 12px;
}

.carousel-next {
    margin-left: 12px;
}

/* 指示器圆点 */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(100, 110, 160, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: #d4af37;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.carousel-dot:hover {
    background: rgba(212, 175, 55, 0.5);
}

/* ----- 新闻资讯 ----- */
.news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.news-card {
    background: rgba(30, 33, 55, 0.5);
    border: 1px solid rgba(100, 110, 160, 0.12);
    border-radius: 4px;
    padding: 24px;
    transition: all 0.3s ease;
}

.news-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.news-date {
    font-size: 0.8rem;
    color: #6a6a88;
    margin-bottom: 12px;
}

.news-title {
    font-size: 1.05rem;
    color: #e0e0f0;
    margin-bottom: 8px;
}

.news-excerpt {
    font-size: 0.9rem;
    color: #8a8aaa;
    margin-bottom: 16px;
    line-height: 1.5;
}

.news-link {
    font-size: 0.9rem;
    color: #d4af37;
    transition: color 0.3s;
}

.news-link:hover {
    color: #e6c44d;
}

/* ----- 游戏特色 ----- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: rgba(30, 33, 55, 0.5);
    border: 1px solid rgba(100, 110, 160, 0.12);
    border-radius: 4px;
    padding: 36px 28px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(212, 175, 55, 0.15);
    margin-bottom: 12px;
    line-height: 1;
}

.feature-card h4 {
    font-size: 1.15rem;
    color: #e0e0f0;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.9rem;
    color: #8a8aaa;
    line-height: 1.6;
}

/* ----- 下载专区 ----- */
.download-section {
    background: linear-gradient(to bottom, #181a2f, #151730);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.download-card {
    background: rgba(30, 33, 55, 0.5);
    border: 1px solid rgba(100, 110, 160, 0.15);
    border-radius: 4px;
    padding: 40px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.download-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.download-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 16px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.25);
    position: relative;
}

.download-icon::after {
    content: '';
    position: absolute;
    inset: 14px;
    background: #d4af37;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.icon-ios::after {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.7 12.8c-.1-2.3 1.9-3.4 2-3.5-1.1-1.6-2.8-1.8-3.4-1.8-1.4-.1-2.7.8-3.4.8-.6 0-1.6-.8-2.6-.7-1.3 0-2.5.8-3.2 1.9-1.4 2.4-.4 5.9 1 7.8.6 1 1.4 2.1 2.4 2 .9-.1 1.3-.6 2.4-.6 1.2 0 1.5.6 2.5.6 1.1 0 1.7-1 2.4-2 .7-1.1 1-2.2 1.1-2.2-.1-.1-1.9-.8-1.8-3.3zm-1.7-6c.7-.8 1.1-1.9 1-3-.9 0-2 .6-2.7 1.4-.6.7-1.1 1.7-1 2.8 1 .1 2-.5 2.7-1.2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.7 12.8c-.1-2.3 1.9-3.4 2-3.5-1.1-1.6-2.8-1.8-3.4-1.8-1.4-.1-2.7.8-3.4.8-.6 0-1.6-.8-2.6-.7-1.3 0-2.5.8-3.2 1.9-1.4 2.4-.4 5.9 1 7.8.6 1 1.4 2.1 2.4 2 .9-.1 1.3-.6 2.4-.6 1.2 0 1.5.6 2.5.6 1.1 0 1.7-1 2.4-2 .7-1.1 1-2.2 1.1-2.2-.1-.1-1.9-.8-1.8-3.3zm-1.7-6c.7-.8 1.1-1.9 1-3-.9 0-2 .6-2.7 1.4-.6.7-1.1 1.7-1 2.8 1 .1 2-.5 2.7-1.2z'/%3E%3C/svg%3E");
}

.icon-taptap::after {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.5 2h-11A2.5 2.5 0 004 4.5v15A2.5 2.5 0 006.5 22h11a2.5 2.5 0 002.5-2.5v-15A2.5 2.5 0 0017.5 2zM16 20H8v-1h8v1zm0-3H8v-1h8v1zm0-3H8v-1h8v1zm0-3H8V7h8v4z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.5 2h-11A2.5 2.5 0 004 4.5v15A2.5 2.5 0 006.5 22h11a2.5 2.5 0 002.5-2.5v-15A2.5 2.5 0 0017.5 2zM16 20H8v-1h8v1zm0-3H8v-1h8v1zm0-3H8v-1h8v1zm0-3H8V7h8v4z'/%3E%3C/svg%3E");
}

.icon-apk::after {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z'/%3E%3C/svg%3E");
}

.download-card h4 {
    font-size: 1.15rem;
    color: #e0e0f0;
    margin-bottom: 8px;
}

.download-card p {
    font-size: 0.85rem;
    color: #7a7a99;
    margin-bottom: 24px;
}

.download-extra {
    text-align: center;
    padding: 24px;
    border-top: 1px solid rgba(100, 110, 160, 0.1);
}

.download-extra p {
    font-size: 0.95rem;
    color: #8a8aaa;
}

.download-extra strong {
    color: #d4af37;
}

/* ----- 页脚 ----- */
.footer {
    background: #f5f5f5;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 48px 0 32px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: 2px;
}

.footer-logo-sub {
    font-size: 0.8rem;
    color: #6a6a88;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    font-size: 0.9rem;
    color: #8a8aaa;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #d4af37;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(100, 110, 160, 0.06);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #5a5a77;
    line-height: 2;
}

.footer-rating {
    color: #4a4a66 !important;
    font-size: 0.8rem !important;
}

/* ----- 滚动动效 ----- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ----- 镜灵详情页 · 立绘展示区 ----- */
.art-display {
    max-width: 1800px;
    margin: 0 auto;
}

.art-panel {
    display: none;
}

.art-panel.active {
    display: block;
    animation: artFadeIn 0.5s ease;
}

@keyframes artFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.art-img {
    width: 100%;
    max-height: 1700px;
    object-fit: contain;
    border-radius: 4px;
}

/* ----- 响应式布局 ----- */
@media (max-width: 1024px) {
    .title-main {
        font-size: 3rem;
        letter-spacing: 4px;
    }

    .title-sub {
        font-size: 1.5rem;
        letter-spacing: 6px;
    }

    .gameplay-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .characters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-card {
        flex: 0 0 calc(100% / 6);
    }
    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .download-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header-inner {
        padding: 0 16px;
    }

    .nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(16, 18, 38, 0.98);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 16px 0;
        border-bottom: 1px solid rgba(212, 175, 55, 0.15);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .nav.open {
        transform: translateY(0);
    }

    .nav-link {
        padding: 14px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(100, 110, 160, 0.06);
    }

    .menu-toggle {
        display: flex;
    }

    .title-main {
        font-size: 2.2rem;
        letter-spacing: 3px;
    }

    .title-sub {
        font-size: 1.2rem;
        letter-spacing: 4px;
    }

    .hero-slogan {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .gameplay-grid {
        grid-template-columns: 1fr;
    }

    .characters-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-card {
        flex: 0 0 calc(100% / 3);
    }
    .carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }
    .carousel-prev {
        margin-right: 6px;
    }
    .carousel-next {
        margin-left: 6px;
    }
    .gallery-card-inner {
        padding: 14px 8px;
    }
    .gallery-card-name {
        font-size: 0.85rem;
    }
    .gallery-card-desc {
        font-size: 0.7rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .btn {
        padding: 12px 32px;
    }
}

@media (max-width: 480px) {
    .title-main {
        font-size: 1.8rem;
    }

    .title-sub {
        font-size: 1rem;
    }

    .characters-grid {
        grid-template-columns: 1fr;
    }

    .gallery-tab {
        padding: 6px 20px;
        font-size: 0.85rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-main {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }
}

/* ----- 滚动条美颜 ----- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #181a2f;
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.5);
}
