/* ============================================================
   大梦江湖 · 江湖古风样式表
   ============================================================ */

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

:root {
    --gold-1: #fff7cc;
    --gold-2: #ffe27a;
    --gold-3: #f5c842;
    --gold-4: #c8922a;
    --gold-5: #8a5a12;
    --red-1: #c0392b;
    --red-2: #8b1a1a;
    --red-deep: #4a0e0e;
    --ink: #1a0f0a;
    --ink-2: #2b1810;
    --parchment: #f4e4bc;
    --flame-orange: #ff6a00;
    --flame-red: #ff1a00;
    --lightning-blue: #4fc3f7;
    --lightning-purple: #b388ff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", "STKaiti", "KaiTi", "华文行楷", serif;
    color: #f0e6d2;
    background: #0d0705;
    overflow-x: hidden;
    line-height: 1.7;
}

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

/* ========== 全局背景（清晰可见） ========== */
.bg-layer {
    position: fixed;
    inset: 0;
    background: url("sctp/ztbj.png") no-repeat center center / cover;
    z-index: -3;
    filter: brightness(0.95) contrast(1.08) saturate(1.15);
}

.bg-overlay {
    position: fixed;
    inset: 0;
    /* 仅边缘轻微暗角，保证主图清晰可见 */
    background:
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0.02) 30%, rgba(20, 8, 4, 0.18) 80%, rgba(10, 5, 3, 0.35) 100%);
    z-index: -2;
}

/* ========== 飘粒子 ========== */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(255, 200, 120, 0.9), transparent 70%);
    border-radius: 50%;
    animation: floatUp linear infinite;
    opacity: 0.7;
}

@keyframes floatUp {
    0% {
        transform: translateY(110vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.8; }
    90% { opacity: 0.6; }
    100% {
        transform: translateY(-10vh) translateX(40px) rotate(360deg);
        opacity: 0;
    }
}

/* ========== 顶部导航 ========== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(30, 10, 6, 0.92) 0%, rgba(20, 6, 4, 0.75) 100%);
    border-bottom: 1px solid rgba(200, 150, 60, 0.35);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--red-1), var(--red-2));
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(192, 57, 43, 0.6), inset 0 0 0 2px rgba(255, 220, 150, 0.4);
    transform: rotate(-4deg);
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--gold-2);
    text-shadow: 0 0 10px rgba(245, 200, 66, 0.5);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 36px;
}

.nav-link {
    font-size: 16px;
    color: #e8d9b8;
    position: relative;
    padding: 6px 4px;
    transition: color 0.3s;
    letter-spacing: 1px;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-3), var(--red-1));
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-2);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-download-top {
    padding: 8px 22px;
    background: linear-gradient(135deg, var(--gold-3), var(--gold-4));
    color: #2b1810;
    border-radius: 4px;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 220, 150, 0.6);
    box-shadow: 0 0 12px rgba(245, 200, 66, 0.5);
    transition: all 0.3s;
}

.btn-download-top:hover {
    background: linear-gradient(135deg, #ffe066, var(--gold-3));
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    transform: translateY(-1px);
}

.btn-register-top {
    padding: 8px 22px;
    background: linear-gradient(135deg, var(--red-1), var(--red-2));
    color: #ffe8b0;
    border-radius: 4px;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 200, 100, 0.4);
    box-shadow: 0 0 12px rgba(192, 57, 43, 0.5);
    transition: all 0.3s;
}

.btn-register-top:hover {
    background: linear-gradient(135deg, #e05246, #a52424);
    box-shadow: 0 0 20px rgba(255, 100, 60, 0.7);
    transform: translateY(-1px);
}

/* ========== Hero 首屏 ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
    overflow: hidden;
}

/* 火焰层 */
.flame-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.flame {
    position: absolute;
    bottom: 10%;
    width: 120px;
    height: 200px;
    background: radial-gradient(ellipse at bottom,
        rgba(255, 200, 50, 0.9) 0%,
        rgba(255, 100, 0, 0.7) 30%,
        rgba(255, 30, 0, 0.5) 55%,
        transparent 75%);
    border-radius: 50% 50% 20% 20% / 60% 60% 40% 40%;
    filter: blur(8px);
    animation: flicker 1.8s ease-in-out infinite alternate;
    opacity: 0.7;
}

.flame-1 { left: 8%; animation-delay: 0s; transform: scale(1.1); }
.flame-2 { left: 22%; animation-delay: 0.4s; transform: scale(0.8); height: 160px; }
.flame-3 { right: 22%; animation-delay: 0.2s; transform: scale(0.9); }
.flame-4 { right: 8%; animation-delay: 0.6s; transform: scale(1.0); height: 180px; }

@keyframes flicker {
    0%, 100% {
        transform: scaleY(1) scaleX(1) translateY(0);
        opacity: 0.6;
    }
    25% {
        transform: scaleY(1.15) scaleX(0.92) translateY(-10px);
        opacity: 0.85;
    }
    50% {
        transform: scaleY(0.92) scaleX(1.08) translateY(5px);
        opacity: 0.5;
    }
    75% {
        transform: scaleY(1.1) scaleX(0.95) translateY(-6px);
        opacity: 0.75;
    }
}

/* 雷电层 */
.lightning-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.lightning-bolt {
    position: absolute;
    top: 0;
    width: 3px;
    background: linear-gradient(180deg, transparent, #fff, var(--lightning-blue), var(--lightning-purple), transparent);
    opacity: 0;
    box-shadow: 0 0 8px #fff, 0 0 20px var(--lightning-blue), 0 0 40px var(--lightning-purple);
    transform-origin: top center;
}

@keyframes strike {
    0% { opacity: 0; }
    5% { opacity: 1; }
    10% { opacity: 0.2; }
    15% { opacity: 1; }
    20% { opacity: 0; }
    100% { opacity: 0; }
}

/* 烫金大字 */
.title-wrap {
    position: relative;
    z-index: 10;
    margin-bottom: 20px;
}

.gold-title {
    display: flex;
    gap: 12px;
    position: relative;
}

.char {
    font-family: "STKaiti", "KaiTi", "华文行楷", "Microsoft YaHei", serif;
    font-size: clamp(80px, 14vw, 200px);
    font-weight: 900;
    line-height: 1;
    cursor: default;
    position: relative;
    display: inline-block;

    /* 纯金色质感 —— 无棕色，鲜艳明亮 */
    background: linear-gradient(180deg,
        #fffbe6 0%,
        #fff3b0 18%,
        #ffd700 40%,
        #ffc107 62%,
        #ffa500 82%,
        #ffb300 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;

    /* 金色描边 + 立体阴影，保持霸气且不发棕 */
    -webkit-text-stroke: 2px rgba(184, 134, 11, 0.9);
    filter:
        drop-shadow(0 3px 1px rgba(120, 80, 0, 0.85))
        drop-shadow(0 6px 4px rgba(80, 50, 0, 0.7))
        drop-shadow(0 0 24px rgba(255, 180, 30, 0.75));

    animation: goldShimmer 4s ease-in-out infinite, floatChar 5s ease-in-out infinite;
}

.char:nth-child(2) { animation-delay: 0.3s, 0.5s; }
.char:nth-child(3) { animation-delay: 0.6s, 1.0s; }
.char:nth-child(4) { animation-delay: 0.9s, 1.5s; }

@keyframes goldShimmer {
    0%, 100% {
        filter:
            drop-shadow(0 3px 1px rgba(120, 80, 0, 0.85))
            drop-shadow(0 6px 4px rgba(80, 50, 0, 0.7))
            drop-shadow(0 0 24px rgba(255, 180, 30, 0.75));
    }
    50% {
        filter:
            drop-shadow(0 3px 1px rgba(120, 80, 0, 0.85))
            drop-shadow(0 6px 4px rgba(80, 50, 0, 0.7))
            drop-shadow(0 0 42px rgba(255, 215, 0, 0.95))
            drop-shadow(0 0 65px rgba(255, 165, 0, 0.6));
    }
}

@keyframes floatChar {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

/* 鼠标悬停字符冒火焰 */
.char:hover {
    animation: goldShimmer 0.8s ease-in-out infinite, charBurn 0.6s ease-in-out infinite alternate;
}

@keyframes charBurn {
    from { filter: drop-shadow(0 4px 2px rgba(80, 30, 5, 0.8)) drop-shadow(0 0 25px rgba(255, 140, 0, 0.9)); }
    to { filter: drop-shadow(0 4px 2px rgba(80, 30, 5, 0.8)) drop-shadow(0 0 50px rgba(255, 60, 0, 1)) drop-shadow(0 -20px 30px rgba(255, 200, 0, 0.6)); }
}

.title-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(ellipse at center, rgba(255, 180, 60, 0.25), transparent 65%);
    z-index: -1;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.08); }
}

/* 副标题 */
.subtitle {
    font-size: clamp(16px, 2.2vw, 24px);
    color: #e8d9b8;
    letter-spacing: 8px;
    margin-top: 10px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
    position: relative;
    z-index: 10;
    font-family: "STKaiti", "KaiTi", serif;
}

/* CTA 按钮组 */
.cta-group {
    display: flex;
    gap: 28px;
    margin-top: 50px;
    position: relative;
    z-index: 10;
}

.btn-primary,
.btn-secondary,
.btn-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 48px;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 4px;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--red-1) 0%, var(--red-2) 100%);
    color: #ffe8b0;
    box-shadow: 0 0 20px rgba(192, 57, 43, 0.6), inset 0 0 0 1px rgba(255, 200, 100, 0.4);
    border: 1px solid rgba(255, 200, 100, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(255, 100, 50, 0.9), inset 0 0 0 1px rgba(255, 220, 150, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--gold-2);
    border: 1.5px solid var(--gold-3);
    box-shadow: inset 0 0 15px rgba(245, 200, 66, 0.15);
}

.btn-secondary:hover {
    background: rgba(245, 200, 66, 0.12);
    box-shadow: 0 0 20px rgba(245, 200, 66, 0.5), inset 0 0 15px rgba(245, 200, 66, 0.25);
    transform: translateY(-3px);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s;
}

.btn-primary:hover .btn-shine,
.btn-submit:hover .btn-shine {
    left: 120%;
}

/* 滚动提示 */
.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #c9b88a;
    font-size: 13px;
    letter-spacing: 3px;
    z-index: 10;
    animation: scrollBob 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 18px;
    height: 18px;
    border-right: 2px solid var(--gold-3);
    border-bottom: 2px solid var(--gold-3);
    transform: rotate(45deg);
}

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

/* ========== 通用章节标题 ========== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 40px;
}

.section-title {
    font-family: "STKaiti", "KaiTi", "华文行楷", serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    letter-spacing: 12px;
    background: linear-gradient(180deg, var(--gold-1), var(--gold-3) 50%, var(--gold-5));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0.8px rgba(120, 70, 15, 0.6);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.header-deco {
    color: var(--gold-3);
    font-size: 18px;
    text-shadow: 0 0 8px rgba(245, 200, 66, 0.6);
}

/* ========== 门派介绍 ========== */
.intro-section {
    position: relative;
    padding: 100px 24px;
    z-index: 5;
}

.intro-content {
    max-width: 1100px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(40, 20, 12, 0.82), rgba(25, 12, 8, 0.88));
    border: 1px solid rgba(200, 150, 60, 0.35);
    border-radius: 10px;
    padding: 50px 60px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.7), inset 0 0 60px rgba(80, 40, 10, 0.2);
}

.intro-title {
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 30px;
    color: var(--gold-2);
    margin-bottom: 24px;
    letter-spacing: 4px;
    text-align: center;
    text-shadow: 0 0 12px rgba(245, 200, 66, 0.4);
}

.intro-para {
    font-size: 17px;
    color: #e8d9b8;
    margin-bottom: 18px;
    text-indent: 2em;
    line-height: 2;
    letter-spacing: 1px;
}

/* ---------- 游戏设置区块 ---------- */
.setting-block {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px dashed rgba(200, 150, 60, 0.25);
}

.setting-block:last-of-type {
    border-bottom: none;
}

.setting-title {
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 22px;
    color: var(--gold-2);
    margin-bottom: 16px;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 10px rgba(245, 200, 66, 0.35);
}

.setting-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--red-1), var(--red-2));
    color: #ffe8b0;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(192, 57, 43, 0.6);
    flex-shrink: 0;
}

.setting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: rgba(60, 30, 15, 0.45);
    border: 1px solid rgba(200, 150, 60, 0.25);
    border-radius: 6px;
    transition: all 0.3s;
}

.setting-item:hover {
    border-color: rgba(245, 200, 66, 0.6);
    background: rgba(80, 40, 20, 0.55);
    box-shadow: 0 0 12px rgba(245, 200, 66, 0.2);
}

.setting-label {
    color: #c9b88a;
    font-size: 15px;
    letter-spacing: 1px;
}

.setting-value {
    color: var(--gold-2);
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
}

.setting-note {
    color: #e8d9b8;
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.setting-note b {
    color: var(--gold-2);
    font-weight: bold;
}

.setting-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 14px;
    font-size: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(200, 150, 60, 0.3);
}

.setting-table thead th {
    background: linear-gradient(180deg, var(--gold-4), var(--gold-5));
    color: #2b1810;
    padding: 12px 16px;
    text-align: left;
    letter-spacing: 2px;
    font-weight: bold;
}

.setting-table tbody td {
    padding: 11px 16px;
    background: rgba(50, 25, 12, 0.5);
    border-bottom: 1px solid rgba(200, 150, 60, 0.15);
    color: #e8d9b8;
}

.setting-table tbody tr:nth-child(even) td {
    background: rgba(65, 33, 16, 0.5);
}

.setting-table tbody tr:hover td {
    background: rgba(120, 60, 25, 0.6);
    color: var(--gold-1);
}

.setting-table tbody td:last-child {
    color: var(--gold-2);
    font-weight: bold;
}

.setting-bonus {
    color: #e8d9b8;
    font-size: 15px;
    line-height: 2;
    letter-spacing: 1px;
    padding: 12px 16px;
    background: rgba(40, 20, 10, 0.5);
    border-left: 3px solid var(--gold-3);
    border-radius: 4px;
}

.bonus-tag {
    display: inline-block;
    padding: 2px 10px;
    margin-right: 6px;
    background: linear-gradient(135deg, var(--red-1), var(--red-2));
    color: #ffe8b0;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    vertical-align: middle;
}

.intro-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(200, 150, 60, 0.25);
}

.feature-item {
    text-align: center;
    padding: 20px 12px;
    background: rgba(60, 30, 15, 0.4);
    border: 1px solid rgba(200, 150, 60, 0.2);
    border-radius: 8px;
    transition: all 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 200, 66, 0.6);
    box-shadow: 0 0 20px rgba(245, 200, 66, 0.25);
    background: rgba(80, 40, 20, 0.5);
}

.feature-icon {
    font-size: 38px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 6px rgba(245, 200, 66, 0.5));
}

.feature-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--gold-2);
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.feature-desc {
    font-size: 13px;
    color: #b8a880;
    letter-spacing: 1px;
}

/* ========== 侠影录 轮播 ========== */
.gallery-section {
    position: relative;
    padding: 80px 24px 100px;
    z-index: 5;
}

.carousel {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 0 2px rgba(200, 150, 60, 0.4);
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.carousel-item {
    flex: 0 0 100%;
    height: 500px;
    background: #0a0504;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(200, 150, 60, 0.6);
    background: rgba(30, 12, 6, 0.75);
    color: var(--gold-2);
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 5;
    line-height: 1;
}

.carousel-btn:hover {
    background: rgba(192, 57, 43, 0.8);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 100, 50, 0.6);
}

.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(200, 150, 60, 0.3);
    border: 1px solid rgba(200, 150, 60, 0.6);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--gold-3);
    box-shadow: 0 0 10px var(--gold-3);
    transform: scale(1.3);
}

/* ========== 背景音乐播放器 ========== */
.music-player {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(40, 16, 10, 0.92), rgba(25, 10, 6, 0.92));
    border: 1px solid rgba(200, 150, 60, 0.45);
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 18px rgba(245, 200, 66, 0.2);
    backdrop-filter: blur(6px);
    max-width: 360px;
    transition: all 0.3s;
}

.music-player:hover {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.7), 0 0 24px rgba(245, 200, 66, 0.35);
}

.music-toggle,
.music-volume-btn,
.music-next {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(200, 150, 60, 0.5);
    background: linear-gradient(135deg, var(--red-1), var(--red-2));
    color: #ffe8b0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s;
    position: relative;
}

.music-toggle:hover,
.music-volume-btn:hover,
.music-next:hover {
    background: linear-gradient(135deg, #e05246, #a52424);
    box-shadow: 0 0 14px rgba(255, 100, 50, 0.7);
    transform: translateY(-1px);
}

.music-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 13px;
}

.pause-icon { display: none; letter-spacing: 1px; }

.music-toggle.playing .play-icon { display: none; }
.music-toggle.playing .pause-icon { display: inline; }

/* 播放时按钮旋转光晕 */
.music-toggle.playing {
    animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(245, 200, 66, 0.4); }
    50% { box-shadow: 0 0 20px rgba(245, 200, 66, 0.9); }
}

.music-info {
    flex: 1;
    min-width: 0;
}

.music-title {
    font-size: 13px;
    color: var(--gold-2);
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    font-family: "STKaiti", "KaiTi", serif;
}

.music-progress {
    width: 100%;
    height: 4px;
    background: rgba(200, 150, 60, 0.2);
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
}

.music-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold-3), var(--red-1));
    border-radius: 2px;
    transition: width 0.1s linear;
    box-shadow: 0 0 6px var(--gold-3);
}

.music-volume-panel {
    display: none;
    position: absolute;
    bottom: 56px;
    right: 0;
    background: rgba(30, 12, 6, 0.95);
    border: 1px solid rgba(200, 150, 60, 0.4);
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.music-volume-panel.show { display: block; }

.music-volume-panel input[type="range"] {
    width: 90px;
    accent-color: var(--gold-3);
    cursor: pointer;
}

/* ========== 页脚 ========== */
.footer {
    position: relative;
    padding: 50px 24px 30px;
    background: linear-gradient(180deg, transparent, rgba(10, 5, 3, 0.95));
    border-top: 1px solid rgba(200, 150, 60, 0.3);
    z-index: 5;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.footer-title {
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 28px;
    color: var(--gold-2);
    letter-spacing: 8px;
    margin-bottom: 12px;
    text-shadow: 0 0 12px rgba(245, 200, 66, 0.5);
}

.footer-desc {
    color: #c9b88a;
    font-size: 15px;
    letter-spacing: 2px;
    margin-bottom: 18px;
    font-family: "STKaiti", "KaiTi", serif;
}

.footer-copy {
    color: #6a5a3a;
    font-size: 12px;
    letter-spacing: 1px;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .nav-inner { padding: 12px 16px; }
    .logo-text { font-size: 18px; }
    .gold-title { gap: 4px; }
    .char { -webkit-text-stroke: 1px rgba(120, 70, 15, 0.9); }
    .cta-group { flex-direction: column; gap: 16px; width: 100%; max-width: 280px; }
    .btn-primary, .btn-secondary { width: 100%; padding: 14px 24px; font-size: 16px; }
    .intro-content { padding: 32px 20px; }
    .intro-features { grid-template-columns: repeat(2, 1fr); }
    .carousel-item { height: 300px; }
    .carousel-btn { width: 38px; height: 38px; font-size: 22px; }
    .section-title { letter-spacing: 6px; }
    .music-player { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 8px 12px; gap: 8px; }
    .music-title { font-size: 12px; }
    .music-toggle, .music-volume-btn, .music-next { width: 34px; height: 34px; }
}

@media (max-width: 480px) {
    .intro-features { grid-template-columns: 1fr; }
    .subtitle { letter-spacing: 4px; }
}
