/* =========================================
   1. 全局变量与基础重置
   ========================================= */
:root {
    --clr-green-main: #84C061;
    --clr-green-hover: #6fa84e;
    --clr-orange-main: #ff9d3d;
    --clr-blue-sky: #6bb8e8;
    --clr-text-light: #ffffff;
    --clr-text-muted: #e8f4f0;
    --bg-overlay: rgba(45, 85, 65, 0.75);
    --bg-glass: rgba(40, 60, 50, 0.15);
    --border-glass: rgba(255, 255, 255, 0.3);
    --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--clr-text-light);
    line-height: 1.6;
    background-image: url('image_a991b9.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.3) 100%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-green { color: var(--clr-green-main); }
.text-orange { color: var(--clr-orange-main); }

/* =========================================
   2. 按钮组件
   ========================================= */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: var(--clr-green-main);
    color: #ffffff;
    box-shadow: 0 4px 0 var(--clr-green-hover);
}

.btn-primary:hover {
    background-color: var(--clr-green-hover);
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--clr-green-hover);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.125rem;
    border-radius: 12px;
}

/* =========================================
   3. 顶部导航栏 (Header)
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 50, 40, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 16px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

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

.nav-menu a {
    color: var(--clr-text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--clr-green-main);
}

/* =========================================
   4. 区块公共样式 & 首屏 (Hero)
   ========================================= */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--clr-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 48px;
}

.hero-text {
    text-align: left;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8);
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--clr-text-light);
    margin-bottom: 40px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

.badge {
    display: inline-block;
    background: rgba(132, 192, 97, 0.3);
    color: var(--clr-green-main);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 24px;
    border: 2px solid rgba(132, 192, 97, 0.6);
    box-shadow: 0 0 30px rgba(132, 192, 97, 0.4);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
    margin-bottom: 24px;
    border: 2px solid rgba(132, 192, 97, 0.5);
    box-shadow: 0 0 20px rgba(132, 192, 97, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}



.hero-card p {
    font-size: 1.25rem;
    color: var(--clr-text-muted);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
    border: 3px solid rgba(132, 192, 97, 0.3);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.hero-actions {
    margin-top: 20px;
}

/* =========================================
   5. 游戏特色 (Features)
   ========================================= */
.features-section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-glass);
    border: 2px solid var(--border-glass);
    border-radius: 20px;
    padding: 40px 32px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(40, 60, 50, 0.3);
    border-color: rgba(132, 192, 97, 0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.feature-card p {
    color: var(--clr-text-muted);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.shop-status {
    margin-top: 24px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.shop-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.shop-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.shop-item strong {
    display: block;
    color: #fff;
    font-size: 1.05rem;
}

.stock-list {
    display: block;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 4px;
}

.timer-badge {
    background: rgba(132, 192, 97, 0.25);
    color: var(--clr-green-main);
    padding: 6px 12px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: bold;
    border: 2px solid rgba(132, 192, 97, 0.5);
    min-width: 70px;
    text-align: center;
    box-shadow: 0 0 15px rgba(132, 192, 97, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.timer-badge.text-orange {
    color: var(--clr-orange-main);
    background: rgba(255, 157, 61, 0.25);
    border-color: rgba(255, 157, 61, 0.5);
    box-shadow: 0 0 15px rgba(255, 157, 61, 0.3);
}

/* =========================================
   6. 玩法指南 (How to Play)
   ========================================= */
.live-tracker-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.15), transparent);
}

.tracker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.tracker-card {
    background: var(--bg-glass);
    border: 2px solid var(--border-glass);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tracker-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-glass);
}

.tracker-header h3 {
    font-size: 1.25rem;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.refresh-timer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.timer-label {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timer-display {
    font-family: monospace;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--clr-green-main);
    text-shadow: 0 0 10px rgba(132, 192, 97, 0.5);
}

.stock-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stock-item {
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.stock-item:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: scale(1.02);
}

.stock-item.common {
    border-left: 3px solid #94a3b8;
}

.stock-item.uncommon {
    border-left: 3px solid #22c55e;
}

.stock-item.rare {
    border-left: 3px solid #3b82f6;
}

.stock-item.epic {
    border-left: 3px solid #a855f7;
}

.item-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
}

.item-stock {
    font-family: monospace;
    font-weight: bold;
    color: var(--clr-green-main);
    font-size: 1rem;
}

.weather-card {
    grid-column: span 1;
}

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

.weather-icon {
    font-size: 2rem;
}

.weather-name {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--clr-green-main);
}

.weather-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.weather-effect,
.weather-next {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.weather-effect strong,
.weather-next strong {
    display: block;
    color: var(--clr-text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.weather-effect span,
.weather-next span {
    color: #fff;
    font-size: 1.05rem;
}

.tracker-note {
    background: rgba(132, 192, 97, 0.15);
    border: 2px solid rgba(132, 192, 97, 0.3);
    border-radius: 16px;
    padding: 20px 32px;
    text-align: center;
}

.tracker-note p {
    color: var(--clr-text-light);
    font-size: 1rem;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.what-is-section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.what-is-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-glass);
    border: 2px solid var(--border-glass);
    border-radius: 20px;
    padding: 48px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.what-is-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--clr-text-muted);
    margin-bottom: 24px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.what-is-content p:last-child {
    margin-bottom: 0;
}

.how-to-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.2), transparent);
}

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

.step-card {
    text-align: center;
    padding: 32px;
    background: var(--bg-glass);
    border-radius: 20px;
    border: 2px solid var(--border-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--clr-orange-main), #ffb366);
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    box-shadow: 0 0 30px rgba(255, 157, 61, 0.5);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #fff;
}

.step-card p {
    color: var(--clr-text-muted);
}

/* =========================================
   7. FAQ (常见问题解答)
   ========================================= */
.why-section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

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

.why-card {
    background: var(--bg-glass);
    border: 2px solid var(--border-glass);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.why-card:hover {
    transform: translateY(-8px);
    background: rgba(40, 60, 50, 0.3);
    border-color: rgba(132, 192, 97, 0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 24px;
}

.why-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.why-card p {
    color: var(--clr-text-muted);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    line-height: 1.6;
}

.faq-section {
    padding: 100px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-glass);
    border: 2px solid var(--border-glass);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question .icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: var(--clr-green-main);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(0, 0, 0, 0.15);
}

.faq-answer p {
    padding: 0 24px 24px 24px;
    color: var(--clr-text-muted);
}

/* 手风琴展开状态 */
.faq-item.active .faq-answer {
    max-height: 200px; /* 足够容纳文本的高度 */
}

.faq-item.active .faq-question .icon {
    transform: rotate(45deg);
}

/* =========================================
   8. 页脚 (Footer) & 响应式适配
   ========================================= */
.footer {
    padding: 40px 0;
    border-top: 2px solid var(--border-glass);
    background: rgba(30, 50, 40, 0.3);
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.footer-content p {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-content .disclaimer {
    font-size: 0.8rem;
    color: #64748b;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hero-content { 
        grid-template-columns: 1fr;
        padding: 40px 24px;
        gap: 32px;
    }
    .hero-text {
        text-align: center;
    }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-text p { font-size: 1.1rem; }
    .section-header h2 { font-size: 2rem; }
    .what-is-content { padding: 32px 24px; }
    .what-is-content p { font-size: 1rem; }
    .tracker-grid { grid-template-columns: 1fr; }
    .stock-grid { grid-template-columns: 1fr; }
    .codes-grid { grid-template-columns: 1fr; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); background: rgba(132, 192, 97, 0.2); }
}

/* =========================================
   Codes Page Styles
   ========================================= */
.codes-section {
    min-height: 100vh;
    padding: 120px 0 80px;
}

.codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.code-card {
    background: var(--bg-glass);
    border: 2px solid var(--border-glass);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.code-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.code-icon {
    font-size: 2.5rem;
}

.code-header h3 {
    font-size: 1.75rem;
    color: var(--clr-green-main);
    margin: 0;
    font-family: monospace;
    text-shadow: 0 0 10px rgba(132, 192, 97, 0.5);
}

.code-rewards {
    margin-bottom: 20px;
}

.reward-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-bottom: 8px;
    border-left: 3px solid rgba(132, 192, 97, 0.5);
}

.reward-icon {
    font-size: 1.5rem;
}

.reward-item span:last-child {
    color: var(--clr-text-light);
    font-weight: 600;
    font-size: 1rem;
}

.code-description {
    color: var(--clr-text-muted);
    font-size: 1.05rem;
    margin-bottom: 16px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.code-requirement {
    background: rgba(255, 157, 61, 0.15);
    border: 2px solid rgba(255, 157, 61, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--clr-orange-main);
}

.requirement-icon {
    font-size: 1.2rem;
}

.code-copy {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.code-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-glass);
    border-radius: 12px;
    padding: 12px 16px;
    color: #fff;
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
}

.btn-copy {
    background: rgba(132, 192, 97, 0.25);
    border: 2px solid rgba(132, 192, 97, 0.5);
    border-radius: 12px;
    padding: 12px 24px;
    color: var(--clr-green-main);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
    font-size: 1rem;
}

.btn-copy:hover {
    background: rgba(132, 192, 97, 0.4);
    transform: scale(1.05);
}

.code-status {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
}

.code-status.active {
    background: rgba(132, 192, 97, 0.25);
    color: var(--clr-green-main);
    border: 2px solid rgba(132, 192, 97, 0.5);
}

.codes-info {
    background: var(--bg-glass);
    border: 2px solid var(--border-glass);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 32px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.codes-info h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 24px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.redeem-steps {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
}

.redeem-steps li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 60px;
    margin-bottom: 20px;
    color: var(--clr-text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.redeem-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: -4px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--clr-orange-main), #ffb366);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(255, 157, 61, 0.4);
}

.codes-note {
    background: rgba(132, 192, 97, 0.15);
    border: 2px solid rgba(132, 192, 97, 0.3);
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 32px;
}

.codes-note p {
    color: var(--clr-text-light);
    font-size: 1rem;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.codes-cta {
    text-align: center;
}
