/* Base Settings */
:root {
    /* Global Theme Variables */
    --primary-color: #00dc82;
    --hover-color: #00b86e;
    --accent-color: #3b82f6;
    
    /* Light Theme Colors */
    --bg-color: #ffffff;
    --bg-tint: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.92);
    --card-border: rgba(15, 23, 42, 0.10);
    
    --text-main: #0f172a;
    --text-sub: #475569;
    --muted: #64748b;
    
    --shadow-sm: 0 8px 22px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 18px 46px rgba(15, 23, 42, 0.10);
}

body { 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    font-family: 'Inter', system-ui, sans-serif; 
    line-height: 1.6;
}

.gradient-text { background: linear-gradient(to right, #00dc82, #3b82f6); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.glass-card { 
    background: var(--card-bg); 
    backdrop-filter: blur(12px); 
    border: 1px solid var(--card-border); 
    box-shadow: var(--shadow-sm); 
}

.nav-glass { 
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid var(--card-border);
}

/* Light theme helpers */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* --- Multi-language Engine --- */
body [lang] { display: none; } 

/* English Mode */
html.lang-en [lang="en"] { display: block; }
html.lang-en [lang="en-inline"] { display: inline; }

/* Chinese Mode */
html.lang-zh [lang="zh"] { display: block; }
html.lang-zh [lang="zh-inline"] { display: inline; }

/* Spanish Mode */
html.lang-es [lang="es"] { display: block; }
html.lang-es [lang="es-inline"] { display: inline; }

/* --- Region Lock Logic --- */
/* .show-cn-only: Only show in Chinese mode */
html:not(.lang-zh) .show-cn-only { display: none !important; }

/* .show-global-only: Only show in non-Chinese mode */
html.lang-zh .show-global-only { display: none !important; }

/* Category Button Active State */
.category-btn.active { background-color: #00dc82; color: #052e1b; font-weight: 800; border-color: #00dc82; }

/* --- Category Filter: cohesive colors --- */
/* 浅色主题下，active 使用更深的绿黑，读数更清晰 */
.category-btn.active i { color: #052e1b !important; }

/* 统一各分类图标颜色（与页面整体品牌绿+辅助色一致） */
.category-btn .icon-bandwidth { color: #00dc82; }
.category-btn .icon-compute { color: #3b82f6; }
.category-btn .icon-tasks { color: #facc15; }
.category-btn .icon-surveys { color: #a78bfa; }

/* hover 时轻微增强对比（不改变整体色调） */
.category-btn:hover .icon-bandwidth,
.category-btn:hover .icon-compute,
.category-btn:hover .icon-tasks,
.category-btn:hover .icon-surveys {
	filter: brightness(1.1);
}

/* hover 时按钮边框与背景微提升（适配浅色底） */
.category-btn:hover { background-color: rgba(15, 23, 42, 0.03); }

/* --- Common Page Layout Components (extracted from Traffmonetizer) --- */

.page-container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 110px; /* offset fixed navbar */
    padding-bottom: 20px;
}

/* Article Header */
.article-header {
    text-align: center;
    margin-bottom: 40px;
}
.article-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.article-subtitle {
    font-size: 1.25rem;
    color: var(--text-sub);
    max-width: 700px;
    margin: 0 auto;
}

/* Typography Helpers */
h1, h2, h3 { line-height: 1.25; color: var(--text-main); }
h2 { margin-top: 0; font-size: 1.6rem; color: var(--text-main); }
h3 { font-size: 1.18rem; margin-bottom: 10px; color: var(--text-main); }
p { margin: 12px 0; color: var(--text-sub); }
strong { color: var(--text-main); font-weight: 800; }

/* Hero Section */
.hero {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 56px 32px;
    box-shadow: var(--shadow-md);
    text-align: center;
    margin-bottom: 36px;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    background-image:
        radial-gradient(rgba(0, 220, 130, 0.10) 1px, transparent 1px),
        radial-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px);
    background-size: 26px 26px;
    background-position: 0 0, 13px 13px;
}
.hero p { font-size: 1.18rem; margin-bottom: 26px; max-width: 680px; margin-left: auto; margin-right: auto; }

/* Trust Badges */
.trust-badges {
    margin-top: 26px;
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-sub);
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.80);
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

/* CTA Button */
.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 34px;
    background: var(--primary-color);
    color: #052e1b;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(0, 220, 130, 0.22);
    transition: all 0.18s ease;
}
.cta:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(0, 220, 130, 0.18);
}

/* Content Sections */
.section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 26px 22px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
    margin-top: 18px;
}
.section-title {
    font-size: clamp(1.75rem, 2.2vw, 2.1rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 14px;
}
@media (max-width: 860px) {
    .features-grid { grid-template-columns: 1fr; }
    .hero { padding: 44px 18px; }
}
.feature-card {
    background: rgba(248, 250, 252, 0.72);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 18px 16px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}
.feature-icon { font-size: 1.35rem; display: block; margin-bottom: 10px; }

/* Earnings Box */
.earnings-box {
    margin-top: 14px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    overflow: hidden;
    background: rgba(255,255,255,0.75);
}
.earnings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    gap: 12px;
}
.earnings-row:last-child { border-bottom: 0; }
.earn-device { 
    color: var(--text-sub); 
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.earn-value { 
    font-weight: 900; 
    color: var(--text-main);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Steps & Tabs */
.step {
    background: rgba(248, 250, 252, 0.72);
    padding: 18px;
    border-radius: 16px;
    border: 1px dashed rgba(15, 23, 42, 0.16);
    margin-bottom: 26px;
}

/* FAQ Details */
details {
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 14px;
    padding: 12px 14px;
}
details + details { margin-top: 12px; }
details summary { font-weight: 600; cursor: pointer; }

/* Light theme helpers */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
