/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00d4ff;
    --secondary-color: #0099cc;
    --accent-color: #ff6b35;
    --background-dark: #0a0a0a;
    --background-light: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #333333;
    --success-color: #00ff88;
    --error-color: #ff4757;
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

/* 背景动画 */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 15s linear infinite;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
}

.nav-link:hover i,
.nav-link.active i {
    transform: scale(1.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 主要内容 */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* 英雄区域 */
.hero-section {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

.subtitle {
    display: block;
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 0.5rem;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8)); }
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 英雄按钮 */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-btn.primary {
    font-family: 'Orbitron', monospace;
    background: var(--gradient-primary);
    color: black;
    box-shadow: var(--shadow-glow);
}

.hero-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.hero-btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.hero-btn.secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* 统计容器 */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
    margin-bottom: 3.5rem !important;
}

.investment-divider {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2.5rem auto;
    border-bottom: 2px solid var(--primary-color);
    opacity: 0.12;
    border-radius: 2px;
    box-shadow: 0 2px 16px 0 var(--primary-color), 0 0 0 0 transparent;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 250px;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.stat-item1 {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 300px;
}

.stat-item1:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.stat-number {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.7rem;
}

.stat-icon i {
    color: var(--primary-color);
    font-size: 2.2rem;
    filter: drop-shadow(0 0 8px #00d4ff55);
}

.stat-unit {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-left: 0.2em;
    font-family: 'Orbitron', monospace;
}

/* Faucet区域 */
.faucet-section {
    padding: 4rem 2rem;
    background: rgba(26, 26, 26, 0.8);
}

.faucet-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(10, 10, 10, 0.9);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
}

.faucet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.faucet-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.timer-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.timer-container i {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 表单样式 */
.faucet-form {
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    inset-inline-start: 1rem;
    color: var(--primary-color);
    z-index: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* 验证码样式 */
.captcha-container {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.captcha-box {
    flex: 1;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.refresh-captcha {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-captcha:hover {
    transform: rotate(180deg);
    box-shadow: var(--shadow-glow);
}

/* 领取按钮 */
.claim-button {
    font-family: 'Orbitron', monospace;
    width: 100%;
    padding: 1.2rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    color: black;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.claim-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.claim-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 领取信息 */
.claim-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-item i {
    color: var(--primary-color);
}

/* 特性区域 */
.features-section {
    padding: 4rem 2rem;
    text-align: center;
}

.features-section h3 {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

/* 页脚 */
.footer {
    background: rgba(10, 10, 10, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: 'Orbitron', monospace;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 100px;
    inset-inline-end: 20px;
    background: var(--success-color);
    color: var(--background-light);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
    transition: transform 0.3s ease;
    z-index: 1001;
}

:dir(ltr) .notification {
  transform: translateX(4000px);
}

:dir(rtl) .notification {
  transform: translateX(-4000px);
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background: var(--error-color);
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.3);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-btn {
        width: 200px;
        justify-content: center;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .faucet-container {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .faucet-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .captcha-container {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .faucet-container {
        padding: 1.5rem;
    }
    
    .claim-info {
        grid-template-columns: 1fr;
    }
}

.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 1rem;
}

.nav-menu.active .nav-link {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.nav-menu.active .nav-link:hover {
    background: rgba(0, 212, 255, 0.15);
}

/* How To Earn Section */
.howto-section {
    padding: 4rem 2rem;
    text-align: center;
}

.howto-section h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.features-section h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.howto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.howto-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.howto-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.howto-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.howto-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 0;
}

.howto-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

@media (max-width: 768px) {
    .howto-section h2 {
        font-size: 2rem;
    }
    .howto-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .howto-card {
        padding: 1.5rem;
    }
}

.community-section {
    padding: 4rem 2rem;
    text-align: center;
    background: none;
}
.community-section h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}
.community-slider {
    display: flex;
    justify-content: center;
    align-items: stretch;
    position: relative;
    overflow: visible;
    max-width: 1100px;
    margin: 0 auto 2rem;
    min-height: 0;
}
.community-slide {
    width: 100%;
    max-width: 400px;
    background: rgba(255,255,255,0.07);
    border-radius: 20px;
    margin: 0 auto;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-align: left;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s cubic-bezier(.4,2,.6,1);
    position: static;
    z-index: 1;
    pointer-events: none;
    display: none;
    min-width: 0;
}
.community-slide.active {
    opacity: 1;
    transform: scale(1.03);
    z-index: 2;
    pointer-events: auto;
    display: block;
}
.community-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 0 0 4px var(--primary-color);
    background: var(--gradient-primary);
    display: inline-block;
}
.community-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.community-content {
    margin-left: 0;
}
.community-name {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.community-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}
.community-arrows {
    margin-top: 1rem;
}
.community-arrows button {
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin: 0 0.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: box-shadow 0.3s;
    box-shadow: var(--shadow-glow);
}
.community-arrows button:hover {
    box-shadow: 0 0 20px var(--primary-color);
}
.community-pagination {
    margin-top: 1rem;
}
.community-pagination span {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--border-color);
    border-radius: 50%;
    margin: 0 4px;
    cursor: pointer;
    transition: background 0.3s;
}
.community-pagination .active {
    background: var(--primary-color);
}
@media (max-width: 900px) {
    .community-slide {
        max-width: 95vw;
        padding: 1.5rem 1rem;
    }
}

.lang-switcher {
    margin-left: 1rem;
    display: flex;
    align-items: center;
}
.lang-switcher i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-inline-end: 0.5rem;
}
#langSelect {
    background: rgba(10, 10, 10, 0.95);
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    border-radius: 8px;
    padding: 0.4rem 1.5rem 0.4rem 1.2rem;
    font-size: 1rem;
    font-family: 'Segoe UI', 'Orbitron', sans-serif;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 8px rgba(0,212,255,0.08);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
#langSelect:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.claim-hero-section {
    padding: 3rem 2rem 1rem;
    text-align: center;
}
.claim-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.claim-description {
    color: var(--text-secondary);
    font-size: 1.2rem;
}
.claim-status-section {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}
.claim-status-card {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 520px;
    min-width: 400px;
    max-width: 100%;
    margin: 0 auto;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 2rem 3rem;
    gap: 0.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}
.claim-status-item {
    flex: 1;
    min-width: 0;
    text-align: center;
}
.claim-status-label {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: block;
}
.claim-status-value {
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    color: var(--primary-color);
    font-weight: bold;
}
.claim-status-unit {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-left: 0.2rem;
}
.claim-form-section {
    width: 520px;
    min-width: 400px;
    max-width: 100%;
    margin: 0 auto 2rem;
    background: rgba(10,10,10,0.9);
    border-radius: 18px;
    padding: 0.5rem 2rem 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}
.claim-form .input-group {
    margin-bottom: 1.5rem;
}
.claim-form .input-group label {
    color: var(--text-secondary);
    font-weight: 500;
}
.claim-form .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.claim-form .input-wrapper i {
    position: absolute;
    inset-inline-start: 1rem;
    color: var(--primary-color);
    z-index: 1;
}
.claim-form .input-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}
.claim-form .input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}
.captcha-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.5rem;
}
.captcha-box {
    flex: 1;
    height: 50px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.refresh-captcha {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.refresh-captcha:hover {
    transform: rotate(180deg);
    box-shadow: var(--shadow-glow);
}

.claim-rules {
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.claim-rules ul {
    padding-left: 1.2rem;
    margin: 0;
}
.claim-rules li {
    margin-bottom: 0.5rem;
}
@media (max-width: 600px) {
    .claim-status-card {
        width: 100%;
        min-width: 0;
    }
    .claim-form-section {
        padding: 1rem 2rem;
    }
}

/* 移动端侧边栏样式 */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-mobile {
    position: fixed;
    top: 0;
    width: 300px;
    height: 100vh;
    background: var(--background-dark);
    border-right: 1px solid var(--border-color);
    z-index: 9999;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

:dir(ltr) .nav-mobile {
  left: -300px;
  transition: left 0.3s ease;
}

:dir(rtl) .nav-mobile {
  right: -300px;
  transition: right 0.3s ease;
}

:dir(ltr) .nav-mobile.active {
  left: 0;
}

:dir(rtl) .nav-mobile.active {
  right: 0;
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.nav-header h4 {
    color: var(--primary-color);
    font-family: 'Orbitron', monospace;
    margin: 0;
}

.close-sidebar-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.close-sidebar-btn:hover {
    color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
}

.user-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.username {
    font-family: 'Orbitron', monospace;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.7rem;
}

.balance {
    font-size: 1.08rem;
    color: #fff;
    font-weight: 500;
    background: rgba(0,212,255,0.3);
    border-radius: 999px;
    padding: 0.5rem 1.2rem;
    display: inline-block;
    margin: 0 auto;
}
.balance span {
    color: var(--primary-color);
    font-size: 0.98em;
    margin-left: 0.2em;
}

.nav-mobile .nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-mobile .nav-link:hover,
.nav-mobile .nav-link.active {
    color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
}

.nav-mobile .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.language-selector i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.language-switcher {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 0.5rem;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
}

.language-switcher:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.1);
}

.logout-link {
    margin-top: auto;
    color: var(--error-color) !important;
}

.logout-link:hover {
    background: rgba(255, 71, 87, 0.1) !important;
}

/* 桌面端导航隐藏移动端元素 */
@media (min-width: 769px) {
    .nav-mobile,
    .sidebar-overlay {
        display: none;
    }
}

/* 移动端隐藏桌面端导航菜单 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
}

/* 修复移动端语言选择器下拉项字体颜色 */
.language-switcher option {
    color: var(--primary-color) !important;
    background: #111 !important;
}

/* 桌面端导航下拉菜单 Earn */
.nav-dropdown {
    position: relative;
    display: inline-block;
}
.nav-dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    min-width: 180px;
    background: rgba(10,10,10,0.98);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    z-index: 1002;
    padding: 0.5rem 0;
    flex-direction: column;
    animation: fadeIn 0.2s;
}
.nav-dropdown-menu .nav-link {
    color: var(--text-secondary);
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    background: none;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1rem;
}
.nav-dropdown-menu .nav-link:hover,
.nav-dropdown-menu .nav-link.active {
    color: var(--primary-color);
    background: rgba(0,212,255,0.08);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown .nav-dropdown-toggle.active + .nav-dropdown-menu {
    display: flex;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
    .nav-dropdown { display: none; }
}

/* Referral 页面专用样式 */
.referral-stats-row {
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
.referral-stat-item {
    background: rgba(0,212,255,0.07);
    border-radius: 14px;
    box-shadow: var(--shadow-glow);
}
.referral-stats-card {
    max-width: 1200px;
    margin: 2.5rem auto 0;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    padding: 2rem 1.5rem 1.5rem;
}
.referral-stats-title {
    color: var(--primary-color);
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}
.referral-stats-table-wrap {
    overflow-x: auto;
}
.referral-stats-table {
    width: 100%;
    border-collapse: collapse;
}
.referral-stats-table thead tr {
    background: var(--primary-color);
    color: #222;
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
}
.referral-stats-table th,
.referral-stats-table td {
    width: auto !important;
    padding: 1.1rem 1.2rem !important;
    font-size: 1.08rem;
    line-height: 1.7;
    text-align: center;
    word-break: break-all;
}
.referral-stats-table th {
    font-weight: bold;
    height: 48px;
    padding: 1.2rem 0.5rem;
}
.referral-stats-table td {
    font-weight: 500;
    height: 44px;
    padding: 1.1rem 0.5rem;
}
.referral-stats-table tbody {
    background: rgba(255,255,255,0.01);
    color: var(--text-primary);
    font-size: 1.05rem;
}
.referral-stats-table td {
    padding: 0.7rem 0.5rem;
}
.referral-stats-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}
.referral-stats-table tbody tr:last-child {
    border-bottom: none;
}

.referral-section {
    max-width: 1200px;
    margin: 0 auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.referral-link-card {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.referral-link-group {
    width: 100%;
}
.referral-link-label {
    color: var(--primary-color);
    font-weight: 600;
}
.referral-link-wrapper {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
}
.referral-link-input {
    flex: 1;
    text-align: left;
    font-size: 1.08rem;
    background: rgba(0,212,255,0.04);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 12px 0 0 12px;
    padding: 0.85rem 1.2rem;
    height: 48px;
    box-shadow: none;
    outline: none;
    transition: border-color 0.2s;
}
.referral-link-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}
.copy-btn-gradient {
    border-radius: 0 12px 12px 0;
    height: 48px;
    padding: 0 2rem;
    font-size: 1.08rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    box-shadow: none;
    background: linear-gradient(90deg,#00d4ff 0%,#0099cc 100%);
    color: #000000;
    cursor: pointer;
    transition: background 0.2s,box-shadow 0.2s;
    font-family: 'Orbitron', monospace;
}

:dir(rtl) .copy-btn-gradient {
  border-radius: 12px 0 0 12px;
}

.copy-btn-gradient:hover {
    background: linear-gradient(90deg,#00d4ff 0%,#00ff88 100%);
    box-shadow: 0 0 12px #00d4ff99;
}

.referral-share-wrap {
    width: 100%;
    margin-top: 2.2rem;
}
.referral-share-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.08rem;
}
.share-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.3rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    background: #232a36;
    color: #fff;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 10px rgba(0,212,255,0.08);
    margin-bottom: 0.5rem;
}
.share-btn:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 16px var(--primary-color);
}
.share-btn i {
    font-size: 1.2rem;
}

.referral-how-card {
    max-width: 1200px;
    margin: 2.5rem auto 2.5rem;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow-card);
}
.referral-how-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.referral-how-list {
    font-size: 1.05rem;
}

@media (max-width: 900px) {
    .referral-section {
        max-width: 100%;
        padding: 0 1rem;
    }
    .referral-stats-card {
        padding: 2rem 1.5rem;
    }
}
@media (max-width: 600px) {
    .referral-link-input, .copy-btn-gradient {
        font-size: 0.98rem;
        height: 40px;
        padding: 0 1rem;
    }
    .referral-link-card {
        padding: 1.2rem 0.5rem;
    }
    .referral-how-card {
        padding: 2rem 1.5rem;
    }
    .share-btn-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        justify-items: center;
        align-items: center;
    }
    .share-btn {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        justify-content: center;
        text-align: center;
        height: 48px;
        display: flex;
        align-items: center;
    }
}

.referral-list-card {
    max-width: 1200px;
    margin: 2.5rem auto 2.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    padding: 2rem 1.5rem;
}
.referral-list-table-wrap {
    overflow-x: auto;
}
.referral-list-table {
    width: 100%;
    border-collapse: collapse;
}
.referral-list-table thead tr {
    background: var(--primary-color);
    color: #222;
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
}
.referral-list-table th,
.referral-list-table td {
    width: 25%;
    text-align: center;
    padding: 1.1rem 0.5rem;
}
.referral-list-table th {
    font-weight: bold;
    height: 48px;
}
.referral-list-table td {
    font-weight: 500;
    height: 44px;
}
.referral-list-table tbody {
    background: rgba(255,255,255,0.01);
    color: var(--text-primary);
    font-size: 1.05rem;
}
.referral-list-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}
.referral-list-table tbody tr:last-child {
    border-bottom: none;
}
.referral-status.success {
    color: var(--success-color);
    font-weight: bold;
}
.referral-status.pending {
    color: var(--accent-color);
    font-weight: bold;
}

.referral-title-icon {
    color: var(--primary-color);
    font-size: 1.25em;
    margin-inline-end: 0.5em;
    vertical-align: middle;
}

.ptc-title-icon {
    color: var(--primary-color);
    font-size: 1.3em;
    margin-inline-end: 0.5em;
    vertical-align: middle;
}

.nav-avatar {
    display: flex;
    align-items: center;
    margin-left: 1.2rem;
    position: relative;
}
.nav-avatar img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2.5px solid var(--primary-color);
    object-fit: cover;
    background: var(--background-dark);
    transition: box-shadow 0.2s;
    cursor: pointer;
}
.nav-avatar img:hover {
    box-shadow: 0 0 0 4px var(--primary-color), 0 0 16px #00d4ff55;
}
.nav-avatar-dropdown {
    display: none;
    position: absolute;
    top: 120%;
    right: 0;
    min-width: 180px;
    background: rgba(10,18,30,0.98);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,212,255,0.18), 0 2px 8px #0008;
    border: 1.5px solid var(--primary-color);
    padding: 1.2rem 1.2rem 1rem 1.2rem;
    z-index: 1003;
    text-align: center;
    animation: fadeIn 0.2s;
}
.nav-avatar:hover .nav-avatar-dropdown,
.nav-avatar:focus-within .nav-avatar-dropdown {
    display: block;
}
.nav-avatar-dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    right: 22px;
    border-width: 0 10px 12px 10px;
    border-style: solid;
    border-color: transparent transparent var(--primary-color) transparent;
    filter: drop-shadow(0 2px 4px #00d4ff55);
}
.nav-avatar-username {
    font-family: 'Orbitron', monospace;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.7rem;
}

.nav-avatar-balance {
    font-size: 1.08rem;
    color: #fff;
    font-weight: 500;
    background: rgba(0,212,255,0.3);
    border-radius: 999px;
    padding: 0.5rem 1.2rem;
    display: inline-block;
    margin: 0 auto;
}
.nav-avatar-balance span {
    color: var(--primary-color);
    font-size: 0.98em;
    margin-left: 0.2em;
}

.withdraw-card {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(10,18,30,0.98);
    border-radius: 22px;
    border: 1.5px solid var(--primary-color);
    box-shadow: 0 8px 32px rgba(0,212,255,0.13), 0 2px 8px #0008;
    padding: 2.5rem 2rem 2rem 2rem;
    color: var(--text-primary);
    position: relative;
}
.withdraw-balance {
    text-align: center;
    margin-bottom: 2rem;
}
.withdraw-balance i {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    display: block;
}
.withdraw-balance-label {
    color: var(--text-secondary);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.2rem;
}
.withdraw-balance-value {
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.withdraw-balance-value span {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-left: 0.2em;
}
.withdraw-history-card {
    max-width: 1200px;
    margin: 2.5rem auto 2.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    border: 1.5px solid var(--primary-color);
    box-shadow: 0 4px 18px rgba(0,212,255,0.08);
    padding: 2rem 1.5rem;
}
.withdraw-history-card h3 {
    color: var(--primary-color);
    font-family: 'Orbitron', monospace;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.withdraw-card h3 {
    color: var(--primary-color);
    font-family: 'Orbitron', monospace;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.withdraw-history-list {
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 1.5rem;
    min-height: 80px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.withdraw-help-link {
    margin-top: 1.2rem;
}
.withdraw-help-link a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.08rem;
    transition: color 0.2s;
    align-items: center;
    gap: 0.4em;
}
.withdraw-help-link a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}
.withdraw-help-link i {
    font-size: 1em;
    margin-left: 0.2em;
}

.withdraw-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    background: none;
}
.withdraw-table th, .withdraw-table td {
    text-align: center;
    padding: 0.9rem 0.5rem;
    font-size: 1.05rem;
}
.withdraw-table thead tr {
    background: var(--primary-color);
    color: #222;
    font-family: 'Orbitron', monospace;
}
.withdraw-table th {
    font-weight: bold;
    border-radius: 8px 8px 0 0;
}
.withdraw-table tbody {
    background: rgba(255,255,255,0.01);
    color: var(--text-primary);
}
.withdraw-table tr {
    border-bottom: 1px solid var(--border-color);
}
.withdraw-table tr:last-child {
    border-bottom: none;
}
.withdraw-status.success {
    color: var(--success-color);
    font-weight: bold;
}
.withdraw-status.pending {
    color: var(--accent-color);
    font-weight: bold;
}
.withdraw-status.failed {
    color: var(--error-color);
    font-weight: bold;
}

.table-responsive,
.referral-stats-table-wrap,
.referral-list-table-wrap,
.withdraw-history-list {
    overflow-x: auto;
    width: 100%;
}
@media (max-width: 900px) {
    .referral-stats-table,
    .referral-list-table,
    .withdraw-table {
        min-width: 600px;
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 0 0.5rem;
    }
    .feature-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
        padding: 1.2rem 2rem;
    }
    .feature-card > div[style*="display:flex"] {
        flex-direction: column !important;
        gap: 0.7rem !important;
    }
    .feature-card .hero-btn,
    .feature-card button {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
        justify-content: center;
    }
}

.stat-action-btn {
    display: inline-block;
    margin-top: 1em;
    padding: 0.5em 1.5em;
    background: var(--primary-color, #00eaff);
    color: #111;
    border: none;
    border-radius: 2em;
    font-weight: bold;
    font-family: 'Segoe UI', 'Orbitron', sans-serif;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,234,255,0.15);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    text-align: center;
}
.stat-action-btn:hover {
    background: #fff;
    color: var(--primary-color, #00eaff);
    box-shadow: 0 4px 16px rgba(0,234,255,0.25);
}

@media (max-width: 768px) {
    .claim-status-card {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
        padding: 1rem 1rem;
    }
}