/* ========================================
   DotTile 雀噬 - 国风游戏官网样式
   ======================================== */

/* CSS变量 */
:root {
    /* 国风配色 - 墨绿主题 */
    --cinnabar: #2D5A4A;
    --cinnabar-light: #3D7A5A;
    --cinnabar-dark: #1D3A2A;
    --ink: #1a1a2e;
    --ink-light: #2d2d44;
    --gold: #D4A574;
    --gold-light: #E8C9A0;
    --gold-dark: #B8935F;
    --jade: #5B9A6D;
    --jade-light: #7AB88A;
    --cream: #F5F0E8;
    --cream-dark: #E8E0D5;
    --paper: #FDF8F0;

    /* 稀有度颜色 - 调整顺序：绿色基础，蓝色稀有 */
    --rarity-green: #5B9A6D;
    --rarity-blue: #5B8DB8;
    --rarity-purple: #8B5B9E;
    --rarity-golden: #D4A574;

    /* 字体 */
    --font-display: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
    --font-body: 'Noto Serif SC', 'Microsoft YaHei', serif;

    /* 间距 */
    --section-padding: 100px;
    --container-max: 1200px;
}

/* 重置样式 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.8;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

/* ========================================
   背景装饰
   ======================================== */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.cloud {
    position: absolute;
    background: linear-gradient(135deg, rgba(45, 90, 74, 0.08) 0%, rgba(45, 90, 74, 0.02) 100%);
    border-radius: 50%;
    filter: blur(60px);
}

.cloud-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.cloud-2 {
    width: 400px;
    height: 400px;
    top: 40%;
    left: -150px;
    animation: float 25s ease-in-out infinite reverse;
}

.cloud-3 {
    width: 500px;
    height: 500px;
    bottom: 10%;
    right: -200px;
    animation: float 22s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

.mahjong-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(45, 90, 74, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(91, 154, 109, 0.05) 0%, transparent 50%);
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
    position: fixed;
    top: var(--banner-height, 0px);
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(196, 92, 72, 0.3));
}

.logo-text {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--cinnabar);
    letter-spacing: 4px;
}

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

.nav-links a {
    font-size: 16px;
    color: var(--ink);
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cinnabar);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--cinnabar);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-download {
    background: var(--cinnabar);
    color: white !important;
    padding: 10px 24px;
    border-radius: 25px;
    transition: all 0.3s !important;
}

.nav-download::after {
    display: none !important;
}

.nav-download:hover {
    background: var(--cinnabar-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(196, 92, 72, 0.4);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--ink);
    transition: all 0.3s;
}

/* ========================================
   Hero区域
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--banner-height, 0px) + 120px) 30px 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    text-align: center;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--cinnabar) 0%, var(--cinnabar-light) 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.title-main {
    display: block;
    font-family: var(--font-display);
    font-size: 80px;
    font-weight: 900;
    color: var(--cinnabar);
    text-shadow: 4px 4px 0 rgba(196, 92, 72, 0.1);
    letter-spacing: 20px;
    margin-bottom: 10px;
}

.title-sub {
    display: block;
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--gold-dark);
    letter-spacing: 8px;
}

.hero-tagline {
    font-size: 28px;
    color: var(--ink-light);
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-desc {
    font-size: 18px;
    color: var(--ink-light);
    opacity: 0.8;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cinnabar) 0%, var(--cinnabar-dark) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(196, 92, 72, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(196, 92, 72, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--ink-light);
}

.btn-secondary:hover {
    background: var(--ink);
    color: white;
    border-color: var(--ink);
}

.btn-icon {
    font-size: 20px;
}

.btn-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    color: var(--cinnabar);
}

.stat-label {
    font-size: 14px;
    color: var(--ink-light);
    opacity: 0.7;
}

/* Hero视觉 */
.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
}

.tile-showcase {
    position: relative;
    width: 300px;
    height: 300px;
}

.tile {
    position: absolute;
    width: 70px;
    height: 100px;
    background: linear-gradient(135deg, #fff 0%, #f5f0e8 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: tileFloat 4s ease-in-out infinite;
}

.tile-wan {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.tile-tong {
    top: 10%;
    right: 20%;
    animation-delay: 0.5s;
}

.tile-tiao {
    bottom: 30%;
    left: 5%;
    animation-delay: 1s;
}

.tile-wind {
    bottom: 20%;
    right: 15%;
    animation-delay: 1.5s;
}

.tile-dragon {
    top: 45%;
    left: 35%;
    animation-delay: 2s;
    z-index: 1;
}

@keyframes tileFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

.floating-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(45, 90, 74, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   通用区域样式
   ======================================== */
.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 30px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.light {
    color: var(--cream);
}

.section-header.light .section-title {
    color: var(--cream);
}

.section-header.light .section-desc {
    color: rgba(245, 240, 232, 0.8);
}

.section-badge {
    display: inline-block;
    background: rgba(196, 92, 72, 0.1);
    color: var(--cinnabar);
    padding: 6px 16px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-header.light .section-badge {
    background: rgba(245, 240, 232, 0.15);
    color: var(--gold-light);
}

.section-title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 15px;
}

.section-desc {
    font-size: 18px;
    color: var(--ink-light);
    opacity: 0.8;
}

/* ========================================
   游戏介绍
   ======================================== */
.about {
    padding: var(--section-padding) 0;
    background: var(--paper);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(196, 92, 72, 0.1) 0%, rgba(196, 92, 72, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--ink);
}

.feature-card p {
    font-size: 15px;
    color: var(--ink-light);
    line-height: 1.7;
}

/* ========================================
   牌张系统
   ======================================== */
.tiles-system {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-light) 100%);
    position: relative;
    overflow: hidden;
}

.tiles-system::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.tiles-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    position: relative;
    z-index: 1;
}

.tile-category {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s;
}

.tile-category:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.category-icon.wan { background: linear-gradient(135deg, #C45C48 0%, #A34535 100%); }
.category-icon.tong { background: linear-gradient(135deg, #5B8DB8 0%, #4A7AA3 100%); }
.category-icon.tiao { background: linear-gradient(135deg, #5B9A6D 0%, #4A855C 100%); }
.category-icon.honor { background: linear-gradient(135deg, #8B5B9E 0%, #7A4A8D 100%); }

.tile-category h3 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--cream);
}

.category-desc {
    font-size: 14px;
    color: rgba(245, 240, 232, 0.6);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-effect {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: rgba(245, 240, 232, 0.8);
}

.effect-tag {
    background: rgba(212, 165, 116, 0.2);
    color: var(--gold-light);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* ========================================
   役种展示
   ======================================== */
.yaku {
    padding: var(--section-padding) 0;
    background: var(--paper);
}

.yaku-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.yaku-tab {
    padding: 12px 30px;
    border: 2px solid var(--cinnabar);
    background: transparent;
    color: var(--cinnabar);
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-body);
}

.yaku-tab:hover,
.yaku-tab.active {
    background: var(--cinnabar);
    color: white;
}

.yaku-content {
    position: relative;
}

.yaku-panel {
    display: none;
}

.yaku-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.yaku-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.yaku-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.yaku-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.yaku-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--cinnabar) 0%, var(--gold) 100%);
}

.yaku-card.yakuman-card::before {
    background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-dark) 100%);
}

.yaku-han {
    display: inline-block;
    background: var(--cinnabar);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.yaku-han.yakuman {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    color: var(--ink);
}

.yaku-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--ink);
}

.yaku-card p {
    font-size: 14px;
    color: var(--ink-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.yaku-effect {
    background: rgba(196, 92, 72, 0.08);
    color: var(--cinnabar);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.yakuman-card .yaku-effect {
    background: rgba(212, 165, 116, 0.15);
    color: var(--gold-dark);
}

/* ========================================
   道具图鉴
   ======================================== */
.items {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, #2d2d44 0%, #1a1a2e 100%);
    position: relative;
}

.items::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(212, 165, 116, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(196, 92, 72, 0.05) 0%, transparent 50%);
}

.rarity-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.rarity-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    color: rgba(245, 240, 232, 0.8);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    pointer-events: auto;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.rarity-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.rarity-tab.active {
    background: rgba(255, 255, 255, 0.25);
    color: var(--cream);
    border-color: var(--cream);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.rarity-tab.active[data-rarity="green"] {
    border-color: var(--rarity-green);
    background: rgba(91, 154, 109, 0.3);
    box-shadow: 0 4px 20px rgba(91, 154, 109, 0.3);
}

.rarity-tab.active[data-rarity="blue"] {
    border-color: var(--rarity-blue);
    background: rgba(91, 141, 184, 0.3);
    box-shadow: 0 4px 20px rgba(91, 141, 184, 0.3);
}

.rarity-tab.active[data-rarity="purple"] {
    border-color: var(--rarity-purple);
    background: rgba(139, 91, 158, 0.3);
    box-shadow: 0 4px 20px rgba(139, 91, 158, 0.3);
}

.rarity-tab.active[data-rarity="golden"] {
    border-color: var(--rarity-golden);
    background: rgba(212, 165, 116, 0.3);
    box-shadow: 0 4px 20px rgba(212, 165, 116, 0.3);
}

.rarity-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.rarity-dot.blue { background: var(--rarity-blue); box-shadow: 0 0 10px var(--rarity-blue); }
.rarity-dot.green { background: var(--rarity-green); box-shadow: 0 0 10px var(--rarity-green); }
.rarity-dot.purple { background: var(--rarity-purple); box-shadow: 0 0 10px var(--rarity-purple); }
.rarity-dot.golden { background: var(--rarity-golden); box-shadow: 0 0 10px var(--rarity-golden); }

.items-content {
    position: relative;
    z-index: 1;
}

.items-panel {
    display: none;
}

.items-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.item-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.item-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.item-card.blue { border-top: 3px solid var(--rarity-blue); }
.item-card.green { border-top: 3px solid var(--rarity-green); }
.item-card.purple { border-top: 3px solid var(--rarity-purple); }
.item-card.golden { border-top: 3px solid var(--rarity-golden); }

.item-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.item-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--cream);
    margin-bottom: 10px;
}

.item-card p {
    font-size: 14px;
    color: rgba(245, 240, 232, 0.7);
    line-height: 1.6;
}

/* ========================================
   Boss介绍
   ======================================== */
.boss {
    padding: var(--section-padding) 0;
    background: var(--cream);
}

.boss-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.boss-card {
    display: flex;
    gap: 30px;
    background: white;
    border-radius: 16px;
    padding: 35px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.boss-card:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.boss-number {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 900;
    color: var(--cinnabar);
    opacity: 0.2;
    line-height: 1;
}

.boss-content {
    flex: 1;
}

.boss-content h3 {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--ink);
    margin-bottom: 12px;
}

.boss-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.boss-tag {
    background: rgba(196, 92, 72, 0.1);
    color: var(--cinnabar);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
}

.boss-content p {
    font-size: 15px;
    color: var(--ink-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.boss-phases {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phase {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--ink-light);
}

.phase span {
    background: rgba(0, 0, 0, 0.05);
    padding: 6px 14px;
    border-radius: 8px;
}

/* ========================================
   下载区域
   ======================================== */
.download {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--cinnabar) 0%, var(--cinnabar-dark) 100%);
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.download-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.download-title {
    font-family: var(--font-display);
    font-size: 42px;
    color: white;
    margin-bottom: 20px;
}

.download-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.btn-download-main {
    background: white;
    color: var(--cinnabar);
    padding: 20px 40px;
    border-radius: 12px;
    gap: 15px;
}

.btn-download-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.btn-icon-large {
    font-size: 32px;
}

.btn-download-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-download-title {
    font-size: 18px;
    font-weight: 700;
}

.btn-download-meta {
    font-size: 13px;
    opacity: 0.7;
}

.btn-download-alt {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 20px 40px;
}

.btn-download-alt:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.download-note {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.extract-code {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    color: white;
    letter-spacing: 2px;
}

/* ========================================
   页脚
   ======================================== */
.footer {
    padding: 40px 0;
    background: var(--ink);
    text-align: center;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    font-size: 28px;
}

.footer-logo .logo-text {
    font-size: 24px;
    color: var(--cream);
}

.footer-copyright {
    font-size: 14px;
    color: rgba(245, 240, 232, 0.6);
    margin-bottom: 8px;
}

.footer-note {
    font-size: 13px;
    color: rgba(245, 240, 232, 0.4);
}

/* ========================================
   流光溢彩横幅
   ======================================== */
.award-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1002;
    padding: 11px 55px 11px 20px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(
        90deg,
        #ff4e4e, #ff9742, #ffd642, #4dcc8a, #4dabf7, #9b59f7, #f059d8,
        #ff4e4e, #ff9742, #ffd642, #4dcc8a, #4dabf7, #9b59f7, #f059d8
    );
    background-size: 300% 100%;
    animation: rainbowFlow 6s linear infinite;
    transition: height 0.4s ease, padding 0.4s ease, opacity 0.4s ease;
}

.award-banner.dismissed {
    height: 0 !important;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    pointer-events: none;
}

.award-banner-shimmer {
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
    animation: shimmerSweep 2.8s ease-in-out infinite;
    pointer-events: none;
}

.award-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.award-icon {
    font-size: 17px;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.8));
    flex-shrink: 0;
}

.award-text {
    font-family: var(--font-body);
    font-size: 14px;
    color: white;
    text-shadow: 0 1px 4px rgba(0,0,0,0.45);
    letter-spacing: 0.5px;
}

.award-text strong {
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 14px rgba(255,255,255,0.9), 0 1px 4px rgba(0,0,0,0.45);
}

.award-close-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
    line-height: 1;
    padding: 0;
}

.award-close-btn:hover {
    background: rgba(0, 0, 0, 0.45);
    transform: translateY(-50%) scale(1.1);
}

@keyframes rainbowFlow {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

@keyframes shimmerSweep {
    0%   { left: -60%; }
    100% { left: 160%; }
}

/* ========================================
   随机事件系统
   ======================================== */
.events-section {
    padding: var(--section-padding) 0;
    background: var(--paper);
}

.events-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.events-feature-card {
    background: white;
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.events-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.events-feature-icon {
    font-size: 36px;
    margin-bottom: 16px;
    display: block;
}

.events-feature-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--ink);
}

.events-feature-card p {
    font-size: 14px;
    color: var(--ink-light);
    line-height: 1.7;
}

.events-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.event-item-card {
    background: white;
    border-radius: 14px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 3px solid var(--cinnabar);
    transition: all 0.3s;
}

.event-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.event-item-chain  { border-top-color: var(--gold-dark); }
.event-item-continuous { border-top-color: var(--jade); }
.event-item-special { border-top-color: var(--rarity-purple); }

.event-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.event-badge-normal {
    background: rgba(45, 90, 74, 0.1);
    color: var(--cinnabar);
}

.event-badge-chain {
    background: rgba(212, 165, 116, 0.15);
    color: var(--gold-dark);
}

.event-badge-continuous {
    background: rgba(91, 154, 109, 0.15);
    color: var(--jade);
}

.event-badge-special {
    background: rgba(139, 91, 158, 0.12);
    color: var(--rarity-purple);
}

.event-item-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--ink);
    margin-bottom: 8px;
}

.event-item-card p {
    font-size: 14px;
    color: var(--ink-light);
    line-height: 1.7;
}

/* ========================================
   三幕地图系统
   ======================================== */
.nodemap-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, #16213e 0%, var(--ink) 100%);
    position: relative;
    overflow: hidden;
}

.nodemap-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 50%, rgba(91, 154, 109, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(212, 165, 116, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 50% 85%, rgba(91, 141, 184, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.nodemap-stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.nodemap-stat {
    text-align: center;
    padding: 0 10px;
}

.nodemap-stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.nodemap-stat-label {
    font-size: 13px;
    color: rgba(245, 240, 232, 0.65);
    margin-top: 6px;
    display: block;
    letter-spacing: 1px;
}

.nodemap-stat-divider {
    font-size: 28px;
    color: rgba(245, 240, 232, 0.2);
    padding-bottom: 22px;
}

.nodemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
    position: relative;
    z-index: 1;
}

.node-type-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 28px 20px;
    transition: all 0.3s;
    text-align: center;
}

.node-type-card:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.node-type-icon {
    font-size: 34px;
    margin-bottom: 13px;
    display: block;
}

.node-type-card h3 {
    font-family: var(--font-display);
    font-size: 19px;
    color: var(--cream);
    margin-bottom: 8px;
}

.node-type-card p {
    font-size: 13px;
    color: rgba(245, 240, 232, 0.68);
    line-height: 1.65;
    margin-bottom: 15px;
}

.node-type-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(245, 240, 232, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.node-battle  { border-top: 3px solid #e74c3c; }
.node-hard    { border-top: 3px solid #c0392b; }
.node-event   { border-top: 3px solid var(--gold); }
.node-rest    { border-top: 3px solid var(--jade); }
.node-reward  { border-top: 3px solid var(--gold-light); }
.node-shop    { border-top: 3px solid var(--rarity-blue); }
.node-boss    { border-top: 3px solid var(--rarity-purple); }

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }

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

    .tiles-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .events-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(253, 248, 240, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .title-main {
        font-size: 56px;
        letter-spacing: 10px;
    }

    .title-sub {
        font-size: 24px;
    }

    .hero-tagline {
        font-size: 22px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

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

    .tiles-categories {
        grid-template-columns: 1fr;
    }

    .boss-card {
        flex-direction: column;
    }

    .boss-number {
        font-size: 48px;
    }

    .phase {
        flex-wrap: wrap;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 32px;
    }

    .yaku-tabs {
        flex-wrap: wrap;
    }

    .rarity-tabs {
        flex-wrap: wrap;
    }

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

    .nodemap-stats-row {
        gap: 8px;
    }

    .nodemap-stat-num {
        font-size: 36px;
    }

    .award-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px;
    }

    .title-main {
        font-size: 42px;
        letter-spacing: 6px;
    }

    .section-title {
        font-size: 28px;
    }

    .download-title {
        font-size: 28px;
    }
}
