/* style.css (最终修复版 - 完整代码) */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 动态背景效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Header */
header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 0 20px; /* 调整内边距以适应新的布局 */
    text-align: center;
}

.logo-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 0; /* 调整为垂直内边距 */
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    background: linear-gradient(135deg, #00d4ff, #5a67d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.header-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.telegram-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #0088cc, #229ed9);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 136, 204, 0.3);
    box-shadow: 0 2px 10px rgba(0, 136, 204, 0.2);
}

.telegram-link:hover {
    background: linear-gradient(135deg, #229ed9, #0088cc);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4);
}

.telegram-link svg {
    flex-shrink: 0;
}

.language-toggle {
    display: flex;
    align-items: center;
}

.lang-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.lang-btn:active {
    transform: translateY(-1px) scale(1.02);
}

header h1 {
    font-size: 3.5em;
    font-weight: 800;
    text-align: center;
    margin-top: 0; /* 移除顶部外边距 */
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, #a8edea, #fed6e3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { text-shadow: 0 0 20px rgba(255, 255, 255, 0.3); }
    to { text-shadow: 0 0 30px rgba(168, 237, 234, 0.5), 0 0 40px rgba(254, 214, 227, 0.3); }
}

header p {
    color: #b8c6db;
    font-size: 1.3em;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 300;
    opacity: 0.9;
}

/* Sections */
section {
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

section:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

h2 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h3 {
    color: #ffffff;
    margin-bottom: 12px;
    font-size: 1.3em;
    font-weight: 600;
}

/* FAQ Section */
.faq-item {
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.faq-header h3 {
    color: #667eea;
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    flex: 1;
    padding-right: 15px;
}

.faq-toggle {
    color: #667eea;
    font-size: 1.5em;
    font-weight: bold;
    transition: transform 0.3s ease;
}

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

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.faq-item.active .faq-content {
    max-height: 500px;
    padding: 0 20px 20px 20px;
}

.faq-content p {
    color: #e2e8f0;
    line-height: 1.6;
    font-size: 0.95em;
    margin: 0;
}

/* How to buy section */
.how-to-buy ol {
    padding-left: 20px;
    list-style: none;
    counter-reset: step-counter;
}

.how-to-buy li {
    margin-bottom: 15px;
    padding-left: 50px;
    font-size: 1em;
    color: #e2e8f0;
    padding: 15px;
    padding-left: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 3px solid #667eea;
    counter-increment: step-counter;
    position: relative;
}

.how-to-buy li::before {
    content: counter(step-counter);
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9em;
}

/* Buy options */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.option {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 20px;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.energy-amount {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 10px;
}

.price {
    font-size: 1.8em;
    font-weight: 800;
}

.discount-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.original-price {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: line-through;
}

.discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    animation: pulse 2s infinite;
    align-self: center;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Buy TRX Section */
.buy-trx-section {
    text-align: center;
    margin-top: 40px;
}

.trx-option {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.service-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 30px 40px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-width: 320px;
    max-width: 520px;
    width: 100%;
}

.service-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.service-title {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-rate {
    font-size: 1.6em;
    font-weight: 800;
    margin-bottom: 10px;
}

.service-note {
    font-size: 0.9em;
    opacity: 0.9;
    font-style: italic;
}

/* Calculator */
.calculator {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.calculator-title {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

.calculator-result {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    font-size: 1.2em;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
}

#trx-result {
    color: #f093fb;
    font-weight: 700;
    margin: 0 5px;
}

.currency {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 5px;
}

.amount-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.amount-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.amount-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.amount-btn.selected {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #0088cc, #229ed9);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 136, 204, 0.3);
    box-shadow: 0 2px 10px rgba(0, 136, 204, 0.2);
    margin-top: 20px; /* 与卡片内容保持距离 */
}

.contact-link:hover {
    background: linear-gradient(135deg, #229ed9, #0088cc);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4);
}

.contact-link svg {
    flex-shrink: 0;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ========================================================= */
/* === Wiki Page Styles === */
/* ========================================================= */

.page-header {
    text-align: center;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.8em;
    margin-top: 0;
}

.page-header p {
    font-size: 1.1em;
    color: #b8c6db;
    margin-top: 10px;
}

.wiki-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.wiki-sidebar {
    position: sticky;
    top: 20px;
    width: 240px;
    flex-shrink: 0;
}

.wiki-sidebar h3 {
    font-size: 1.2em;
    color: #667eea;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wiki-sidebar ul {
    list-style: none;
}

.wiki-sidebar li a {
    display: block;
    color: #e2e8f0;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.wiki-sidebar li a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.wiki-sidebar li a.active {
    background-color: #667eea;
    color: #ffffff;
    font-weight: 600;
}

.wiki-content {
    flex-grow: 1;
}

.wiki-content section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    scroll-margin-top: 20px; /* Offset for sticky sidebar */
}

.wiki-content h2 {
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.wiki-content p, .wiki-content li {
    font-size: 1.1em;
    line-height: 1.8;
    color: #e2e8f0;
    margin-bottom: 15px;
}

.wiki-content ol, .wiki-content ul {
    padding-left: 20px;
}

.wiki-content strong {
    color: #00d4ff;
    font-weight: 600;
}

/* ========================================================= */
/* === 代开Telegram会员模块 - 样式修复区 === */
/* ========================================================= */

.tg-premium-section {
    text-align: center;
    margin-top: 40px;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.premium-option {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 25px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 
        0 8px 25px rgba(79, 172, 254, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.premium-option:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(79, 172, 254, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.premium-option.selected {
    border-color: #00ff88;
    box-shadow: 
        0 8px 25px rgba(79, 172, 254, 0.3),
        0 0 20px rgba(0, 255, 136, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.selection-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #00ff88;
    color: #0c825a; /* 让对勾颜色更深，更易见 */
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px; /* 增大对勾大小 */
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.premium-option.selected .selection-indicator {
    opacity: 1;
    transform: scale(1);
}

.selected-plan {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 212, 255, 0.2));
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.selected-info {
    font-size: 1.1em;
    font-weight: 600;
    color: #00ff88;
}

.premium-duration {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.premium-price {
    font-size: 1.8em;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.premium-trx {
    font-size: 0.9em;
    opacity: 0.9;
}

/* ========================================================= */
/* === 用户名输入模块 - 样式修复区 === */
/* ========================================================= */



/* ========================================================= */
/* === 其他区域样式 === */
/* ========================================================= */

/* Address section */
.address-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.address-text {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.95em;
    word-break: break-all;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    color: #00d4ff;
}

.copy-btn {
    background: linear-gradient(135deg, #00d4ff, #5b86e5);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    align-self: flex-start;
}

.copy-btn.copied {
    background: linear-gradient(135deg, #00ff88, #00d4ff);
}

/* QR Code */
.qr-code {
    width: 180px;
    height: 180px;
    margin: 20px auto;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.qr-code img {
    border-radius: 8px;
    width: 100%;
    height: 100%;
}

/* Timer section */
.timer-display {
    font-size: 3em;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, #00d4ff, #5b86e5, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #5b86e5, #667eea);
    border-radius: 4px;
    transition: width 1s linear;
    width: 100%;
}

/* Important notes */
.important-notes {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 16px;
}

.important-notes h3 {
    color: #ffc107;
    font-size: 1.2em;
}

.important-notes ul {
    padding-left: 0;
    list-style: none;
}

.important-notes li {
    margin-bottom: 10px;
    color: #fff3cd;
    padding: 12px;
    background: rgba(255, 193, 7, 0.05);
    border-radius: 10px;
    border-left: 3px solid #ffc107;
    position: relative;
    padding-left: 40px;
    font-size: 0.9em;
}

.important-notes li::before {
    content: '⚠️';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1em;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    color: #b8c6db;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
}

footer p {
    margin-bottom: 8px;
    opacity: 0.8;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    .logo-section {
        padding: 15px 0;
    }
    header {
        padding-top: 20px;
    }
    header h1 {
        margin-top: 0; /* Updated from 20px */
        font-size: 2.2em;
    }
    section {
        padding: 20px 15px;
    }
    .amount-options {
        grid-template-columns: repeat(3, 1fr);
    }
    .wiki-container {
        flex-direction: column;
    }
    .wiki-sidebar {
        position: static;
        width: 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5em;
    }
    header h1 {
        font-size: 1.8em;
    }
    .amount-options {
        grid-template-columns: repeat(2, 1fr);
    }
    .copy-btn {
        width: 100%;
        text-align: center;
    }
    .header-links .telegram-link span {
        display: none;
    }
    .header-links .telegram-link {
        padding: 8px;
    }
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}