@import url('variables.css');

/* ===== 基础样式 ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== 粒子背景 ===== */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.75rem 2rem;
    background: rgba(10, 10, 15, 0.95);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: var(--shadow-glow); }
    50% { transform: scale(1.05); box-shadow: 0 0 60px rgba(var(--particle-color), 0.5); }
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

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

/* 导航栏专属空间特殊效果 */
.nav-link-space {
    background: linear-gradient(135deg, var(--accent) 0%, #667eea 100%);
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    animation: space-glow 2s ease-in-out infinite;
}

.nav-link-space::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    animation: space-shine 3s linear infinite;
}

.nav-link-space::after {
    display: none;
}

.nav-link-space .space-icon-wrapper {
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
}

.nav-link-space .space-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-link-space:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(32, 201, 151, 0.4);
    color: white !important;
}

@keyframes space-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(32, 201, 151, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(32, 201, 151, 0.5);
    }
}

@keyframes space-shine {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 移动端专属空间 */
.mobile-link-space {
    background: linear-gradient(135deg, var(--accent) 0%, #667eea 100%);
    color: white !important;
    padding: 12px 20px !important;
    border-radius: 25px;
    margin: 8px 16px;
    text-align: center;
    animation: space-glow 2s ease-in-out infinite;
}

.mobile-link-space .space-icon-wrapper {
    margin-right: 8px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ===== 主题切换器 ===== */
.theme-switcher {
    position: relative;
}

.theme-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    background: rgba(var(--particle-color), 0.1);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    background: rgba(var(--particle-color), 0.2);
    color: var(--text-primary);
}

.theme-btn .fa-chevron-down {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.theme-switcher.active .theme-btn .fa-chevron-down {
    transform: rotate(180deg);
}

.theme-name {
    font-weight: 500;
}

.theme-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-height: 70vh;
    overflow-y: auto;
}

.theme-section {
    padding: 0.25rem 0;
}

.theme-section:not(:last-child) {
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    margin-bottom: 0.25rem;
}

.theme-section-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem 0.25rem;
    font-weight: 600;
}

.theme-switcher.active .theme-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-option:hover {
    background: rgba(var(--particle-color), 0.1);
}

.theme-option.active {
    background: rgba(var(--particle-color), 0.15);
}

.theme-preview {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.theme-option.active .theme-preview {
    border-color: var(--accent);
}

.theme-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.theme-option.active .theme-label {
    color: var(--text-primary);
}

.join-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-accent);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    padding: 1rem;
    z-index: 999;
    border-bottom: 1px solid var(--border);
}

.mobile-menu.active {
    display: block;
}

.mobile-link {
    display: block;
    padding: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.mobile-link:hover,
.mobile-link.active {
    color: var(--text-primary);
    background: rgba(var(--particle-color), 0.1);
}

.mobile-theme-switcher {
    padding: 1rem;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
}

.mobile-theme-switcher span {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.mobile-theme-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.mobile-theme-options .theme-option {
    padding: 0.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-theme-options .theme-preview {
    width: 36px;
    height: 36px;
}

/* ===== Hero区域 ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 5% 80px;
    max-width: 1400px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    background: rgba(var(--particle-color), 0.15);
    border: 1px solid rgba(var(--particle-color), 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--primary-light);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease;
}

.hero-badge i {
    color: var(--accent);
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.1s backwards;
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sub-title {
    color: var(--text-primary);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}
.hero-description .hero-highlight {
    display: inline;
    color: var(--text-primary);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.3s backwards;
}

.primary-btn,
.secondary-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn {
    background: var(--gradient-accent);
    border: none;
    color: white;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

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

.secondary-btn:hover {
    background: rgba(var(--particle-color), 0.1);
    border-color: var(--accent);
}

.hero-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease 0.5s backwards;
}

.orbit-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.center-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: var(--shadow-glow);
    animation: corePulse 3s ease-in-out infinite;
}

@keyframes corePulse {
    0%, 100% {
        box-shadow: 0 0 40px rgba(var(--particle-color), 0.4),
                    0 0 80px rgba(var(--particle-color), 0.2);
    }
    50% {
        box-shadow: 0 0 60px rgba(var(--particle-color), 0.6),
                    0 0 120px rgba(var(--particle-color), 0.3);
    }
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(var(--particle-color), 0.2);
    border-radius: 50%;
    animation: rotate linear infinite;
}

.orbit-1 {
    width: 200px;
    height: 200px;
    margin: -100px 0 0 -100px;
    animation-duration: 8s;
}

.orbit-2 {
    width: 300px;
    height: 300px;
    margin: -150px 0 0 -150px;
    animation-duration: 12s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 380px;
    height: 380px;
    margin: -190px 0 0 -190px;
    animation-duration: 16s;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.orbit-dot {
    position: absolute;
    top: -6px;
    left: 50%;
    margin-left: -6px;
    width: 12px;
    height: 12px;
    background: var(--orbit-1);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--orbit-1);
}

.orbit-2 .orbit-dot {
    background: var(--orbit-2);
    box-shadow: 0 0 20px var(--orbit-2);
}

.orbit-3 .orbit-dot {
    background: var(--orbit-3);
    box-shadow: 0 0 20px var(--orbit-3);
}

/* ===== 数据统计区 ===== */
.stats-section {
    padding: 4rem 5%;
    background: linear-gradient(180deg, transparent 0%, rgba(var(--particle-color), 0.03) 100%);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--particle-color), 0.3);
    box-shadow: 0 20px 60px rgba(var(--particle-color), 0.15);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: rgba(var(--particle-color), 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
}

.stat-value {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===== 核心理念 ===== */
.concept-section {
    padding: 6rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

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

.concept-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    cursor: default;
}

.concept-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--particle-color), 0.3);
    background: var(--bg-card-hover);
}

.concept-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-accent);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    transition: transform 0.3s ease;
}

.concept-card:hover .concept-icon {
    transform: scale(1.1) rotate(5deg);
}

.concept-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.concept-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== 模块展示 ===== */
.modules-section {
    padding: 6rem 5%;
    background: linear-gradient(180deg, rgba(var(--particle-color), 0.03) 0%, transparent 100%);
}

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

.module-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    cursor: pointer;
    transition: all 0.4s ease;
    overflow: hidden;
}

.module-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
                rgba(var(--particle-color), 0.15), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.module-card:hover .module-glow {
    opacity: 1;
}

.module-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--particle-color), 0.4);
    box-shadow: 0 20px 60px rgba(var(--particle-color), 0.15);
}

.module-content {
    flex: 1;
}

.module-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.module-card:hover .module-icon {
    transform: scale(1.1);
}

.module-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.module-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.module-tags {
    display: flex;
    gap: 0.5rem;
}

.tag {
    padding: 0.35rem 0.75rem;
    background: rgba(var(--particle-color), 0.1);
    border: 1px solid rgba(var(--particle-color), 0.2);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--primary-light);
}

.module-arrow {
    width: 50px;
    height: 50px;
    background: rgba(var(--particle-color), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--accent);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.module-card:hover .module-arrow {
    background: var(--gradient-accent);
    color: white;
    transform: translateX(5px);
}

/* ===== CTA区域 ===== */
.cta-section {
    padding: 6rem 5%;
    position: relative;
    overflow: hidden;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1.25rem 2.5rem;
    background: var(--gradient-accent);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.cta-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--particle-color), 0.15), transparent 70%);
    pointer-events: none;
}

/* ===== 页脚 ===== */
.footer {
    padding: 4rem 5% 2rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.4rem 0;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--accent);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== 弹窗 ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    max-width: 400px;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    animation: modalIconPulse 2s ease-in-out infinite;
}

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

.modal-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* 联系信息弹窗 */
.contact-info-modal {
    text-align: center;
}
.contact-info-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 1.5rem 0;
}
.contact-info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-dark);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-primary);
}
.contact-info-item i {
    font-size: 1.2rem;
    color: var(--accent);
}

.modal-close {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.875rem 2rem;
    background: var(--gradient-accent);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.modal-cancel {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-cancel:hover {
    background: rgba(var(--particle-color), 0.1);
}

.modal-confirm {
    flex: 1;
    padding: 12px;
    background: var(--gradient-accent);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-confirm:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.modal-confirm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }

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

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .orbit-container {
        width: 300px;
        height: 300px;
        margin-top: 2rem;
    }

    .orbit-1 { width: 150px; height: 150px; margin: -75px 0 0 -75px; }
    .orbit-2 { width: 220px; height: 220px; margin: -110px 0 0 -110px; }
    .orbit-3 { width: 280px; height: 280px; margin: -140px 0 0 -140px; }

    .center-core {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .navbar .nav-right {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
        justify-content: center;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 2.5rem;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .module-card {
        flex-direction: column;
        text-align: center;
    }

    .module-tags {
        justify-content: center;
    }

    .module-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }

    .hero {
        padding: 100px 1.5rem 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }
}

/* ===== 平台价值看板 ===== */
.value-section {
    padding: 4rem 5%;
    background: linear-gradient(180deg, transparent 0%, rgba(var(--particle-color), 0.05) 100%);
}

.value-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: all 0.4s ease;
}

.value-card.main-value {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(var(--particle-color), 0.1) 100%);
    border-color: rgba(var(--particle-color), 0.3);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(var(--particle-color), 0.15);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.value-content {
    flex: 1;
}

.value-amount {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 0.5rem;
}

.value-amount .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
}

.value-amount .number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.value-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.value-formula {
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.value-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.value-note {
    max-width: 1000px;
    margin: 1.5rem auto 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.value-note i {
    color: var(--accent);
}

/* ===== 资助计划 ===== */
.sponsor-section {
    padding: 5rem 5%;
    background: var(--bg-card);
}

.sponsor-section > .section-header,
.sponsor-section > .sponsor-main,
.sponsor-section > #sponsorTiersContainer,
.sponsor-section > .sponsor-learn-more,
.sponsor-section > .view-all-btn {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.sponsor-section .section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.sponsor-section .section-title i {
    color: #ef4444;
}

.sponsor-main {
    max-width: 500px;
    margin: 0 auto 3rem;
    text-align: center;
}

.sponsor-total {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.sponsor-total .sponsor-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.sponsor-total .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ef4444;
}

.sponsor-total .number {
    font-size: 3rem;
    font-weight: 900;
    color: #ef4444;
}

.sponsor-total .sponsor-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.sponsor-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.sponsor-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sponsor-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
}

.sponsor-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.sponsor-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: var(--border);
}

.sponsor-divider span {
    background: var(--bg-card);
    padding: 0 1.5rem;
    position: relative;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.sponsor-list {
    max-width: 900px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.sponsor-card {
    transition: all 0.3s ease;
}

/* 共建者宣传图（已弃用，保留兼容） */
.sponsor-promo {
    margin-top: 10px;
    width: 100%;
}

.sponsor-promo-img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.sponsor-promo-img:hover {
    opacity: 0.85;
}

.sponsor-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.sponsor-info {
    flex: 1;
    min-width: 0;
}

.sponsor-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.sponsor-amount {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
}

.sponsor-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== 任务区域 ===== */
.tasks-section {
    padding: 5rem 5%;
}

.tasks-grid {
    max-width: 1200px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.task-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.75rem;
    transition: all 0.4s ease;
    cursor: pointer;
}

.task-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--particle-color), 0.4);
    box-shadow: 0 20px 50px rgba(var(--particle-color), 0.15);
}

.task-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 0.8rem;
    background: rgba(var(--particle-color), 0.1);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.task-category i {
    font-size: 0.7rem;
}

.task-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.task-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.task-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.task-meta > div {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.task-meta i {
    font-size: 0.75rem;
}

.task-reward {
    color: var(--accent) !important;
    font-weight: 600;
}

.task-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--gradient-accent);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.view-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    padding: 0.875rem 2rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: rgba(var(--particle-color), 0.1);
    border-color: var(--accent);
}

/* ===== 实时收益 ===== */
.live-feed-section {
    padding: 3rem 5%;
    background: rgba(var(--particle-color), 0.03);
}

.live-feed-section .section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.25rem;
}

.live-indicator {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.live-feed-container {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.live-feed {
    display: flex;
    gap: 1rem;
    animation: scrollFeed 30s linear infinite;
}

@keyframes scrollFeed {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.feed-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.75rem 1.25rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.feed-avatar {
    width: 32px;
    height: 32px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.feed-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.feed-user {
    font-weight: 600;
    color: var(--text-primary);
}

.feed-action {
    color: var(--text-secondary);
}

.feed-reward {
    color: var(--accent);
    font-weight: 600;
}

/* ===== 用户故事 ===== */
.stories-section {
    padding: 5rem 5%;
}

.stories-carousel {
    max-width: 700px;
    margin: 0 auto 2rem;
    position: relative;
}

.story-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    display: none;
}

.story-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.story-quote {
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.story-text {
    font-size: 1.25rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.story-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

.author-info {
    text-align: left;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.author-detail {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.story-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.story-dots .dot {
    width: 10px;
    height: 10px;
    background: var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.story-dots .dot.active {
    background: var(--accent);
    width: 30px;
    border-radius: 5px;
}

/* ===== 为什么选择我们 ===== */
.why-section {
    padding: 5rem 5%;
    background: var(--bg-card);
}

.why-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.why-card {
    background: rgba(var(--particle-color), 0.03);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--particle-color), 0.3);
    background: rgba(var(--particle-color), 0.08);
}

.why-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.25rem;
    background: var(--gradient-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: transform 0.3s ease;
}

.why-card:hover .why-icon {
    transform: scale(1.1);
}

.why-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.why-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== 登录按钮 ===== */
.login-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.login-btn:hover {
    background: rgba(var(--particle-color), 0.1);
    border-color: var(--accent);
}

/* ===== 资助弹窗 ===== */
.sponsor-modal {
    max-width: 450px;
}

.sponsor-modal .modal-icon.heart {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* ===== 提现弹窗 ===== */
.withdraw-modal {
    max-width: 560px !important;
    padding: 1.5rem !important;
}

.sponsor-modal-desc {
    font-size: 0.95rem;
    line-height: 1.6;
}

.sponsor-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.sponsor-option {
    padding: 0.75rem;
    background: rgba(var(--particle-color), 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sponsor-option:hover,
.sponsor-option.active {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.sponsor-anonymous {
    margin-bottom: 1.5rem;
}

.sponsor-anonymous label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sponsor-anonymous input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.sponsor-contact {
    background: rgba(var(--particle-color), 0.05);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.sponsor-contact p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.sponsor-contact p:last-child {
    margin-bottom: 0;
}

.sponsor-contact strong {
    color: var(--accent);
}

/* ===== 移动端认证按钮 ===== */
.mobile-auth-btns {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.mobile-auth-btns .login-btn {
    flex: 1;
    justify-content: center;
    margin: 0;
}

.mobile-auth-btns .join-btn {
    flex: 1;
    justify-content: center;
}

/* ===== Hero优化 ===== */
.hero-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== 响应式补充 ===== */
@media (max-width: 992px) {
    .value-container {
        grid-template-columns: 1fr;
    }

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

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

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

@media (max-width: 768px) {
    .tasks-grid {
        grid-template-columns: 1fr;
    }

    .sponsor-list {
        grid-template-columns: 1fr;
    }

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

    .story-card {
        padding: 2rem;
    }

    .story-text {
        font-size: 1.1rem;
    }

    .live-feed {
        animation-duration: 15s;
    }
}

/* ===== Hero Stats Bar ===== */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.hero-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.hero-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.hero-stat-divider {
    width: 1px;
    height: 30px;
    background: var(--border);
}

/* ===== Vision Section ===== */
.vision-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.vision-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.vision-problem,
.vision-solution {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    max-width: 600px;
    text-align: center;
}

.vision-problem h3,
.vision-solution h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.vision-problem h3 i { color: var(--secondary); }
.vision-solution h3 i { color: var(--accent); }

.vision-problem p,
.vision-solution p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.vision-solution .highlight {
    color: var(--accent);
    font-weight: 600;
}

.vision-arrow {
    color: var(--accent);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.vision-how {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.vision-how h3 {
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.vision-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.vision-step {
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--bg-dark);
    margin: 0 auto 1rem;
    font-size: 1.1rem;
}

.vision-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.vision-difference h3 {
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.difference-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.diff-item {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.diff-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.diff-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.3rem;
    color: white;
}

.diff-item h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.diff-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== Sponsor Tiers ===== */
.sponsor-tier {
    margin-top: 0;
}

.sponsor-tier + .sponsor-tier {
    margin-top: 2.5rem;
}

.tier-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gold-tier .tier-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.partner-tier .tier-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.supporter-tier .tier-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

/* --- 守护者 (Gold) --- */
.sponsor-card.gold {
    background: var(--bg-card);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sponsor-card.gold:hover {
    border-color: rgba(255,215,0,0.45);
    box-shadow: 0 4px 20px rgba(255,215,0,0.1);
}

.gold-banner {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.gold-banner-placeholder {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, rgba(255,215,0,0.08), rgba(255,215,0,0.03));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,215,0,0.3);
    font-size: 2rem;
}

.gold-footer {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sponsor-card.gold .sponsor-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffd700, #ffb700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    flex-shrink: 0;
}

.sponsor-card.gold .gold-info {
    flex: 1;
    min-width: 0;
}

.sponsor-card.gold .sponsor-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffd700;
}

.sponsor-card.gold .sponsor-contribution {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sponsor-card.gold .sponsor-message {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-style: italic;
}

.sponsor-card.gold .sponsor-links {
    display: flex;
    gap: 6px;
}

.sponsor-card.gold .sponsor-links a {
    width: 28px;
    height: 28px;
    background: rgba(255,215,0,0.08);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,215,0,0.5);
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s;
}

.sponsor-card.gold .sponsor-links a:hover {
    background: rgba(255,215,0,0.2);
    color: #ffd700;
}

/* --- 合作者 (Partner/Blue) --- */
.sponsor-card.partner {
    background: rgba(59,130,246,0.04);
    border: 1px solid rgba(59,130,246,0.15);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.25s ease;
}

.sponsor-card.partner:hover {
    border-color: rgba(59,130,246,0.3);
    background: rgba(59,130,246,0.07);
}

.sponsor-card.partner .sponsor-avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.sponsor-card.partner .sponsor-info {
    flex: 1;
    min-width: 0;
}

.sponsor-card.partner .sponsor-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 0.15rem;
}

.sponsor-card.partner .sponsor-contribution {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sponsor-card.partner .sponsor-links {
    display: flex;
    gap: 4px;
}

.sponsor-card.partner .sponsor-links a {
    width: 26px;
    height: 26px;
    background: rgba(59,130,246,0.08);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(59,130,246,0.5);
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.2s;
}

.sponsor-card.partner .sponsor-links a:hover {
    background: rgba(59,130,246,0.2);
    color: #60a5fa;
}

/* --- 伙伴 (Supporter/Green) --- */
.sponsor-card.mini {
    background: rgba(32,201,151,0.04);
    border: 1px solid rgba(32,201,151,0.12);
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
    position: relative;
    cursor: default;
    flex: 0 0 auto;
}

.sponsor-card.mini:hover {
    border-color: rgba(32,201,151,0.35);
    background: rgba(32,201,151,0.08);
}

.sponsor-avatar.small {
    width: 24px;
    height: 24px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--bg-dark);
    flex-shrink: 0;
}

.sponsor-card.mini .sponsor-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.sponsor-card.mini .mini-msg {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sponsor-card.mini .mini-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card-hover);
    border: 1px solid rgba(32,201,151,0.25);
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    min-width: 160px;
    max-width: 260px;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.sponsor-card.mini .mini-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(32,201,151,0.25);
}

.sponsor-card.mini .mini-tooltip .tip-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.sponsor-card.mini .mini-tooltip .tip-msg {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    white-space: normal;
}

.sponsor-card.mini:hover .mini-tooltip {
    display: block;
}

.sponsor-card.mini .sponsor-contribution {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sponsor-links {
    display: flex;
    gap: 0.5rem;
}

.sponsor-links a {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s;
}

.sponsor-links a:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

.sponsor-message {
    width: 100%;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

/* ===== Story Quote Cards ===== */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.story-quote-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.story-quote-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.quote-icon {
    color: var(--accent);
    font-size: 2rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.quote-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quote-author .author-avatar {
    width: 45px;
    height: 45px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-weight: 600;
}

.quote-author .author-name { color: var(--text-primary); font-weight: 500; }
.quote-author .author-detail { color: var(--text-muted); font-size: 0.85rem; }

/* ===== Responsive Updates ===== */
@media (max-width: 992px) {
    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .hero-stat-divider { display: none; }
    .vision-steps,
    .difference-grid { grid-template-columns: repeat(2, 1fr); }
    .tier-list.compact { grid-template-columns: repeat(2, 1fr); }
    .stories-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-stats { padding: 0.75rem 1rem; }
    .hero-stat-value { font-size: 0.95rem; }
    .vision-steps,
    .difference-grid { grid-template-columns: 1fr; }
}
/* ===== 方案C文案更新补充样式 ===== */

/* Hero徽章样式优化 */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-badge i {
    font-size: 0.85rem;
}

/* 副标题样式 */
.sub-title {
    display: block;
    font-size: 0.5em;
    font-weight: 300;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* 按钮文字调整 */
.hero-actions .join-btn span {
    font-size: 0.95rem;
}

/* 在这里你可以 - 卡片网格 */
.can-do-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.can-do-card {
    background: var(--bg-card);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.can-do-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.can-do-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    color: var(--bg-dark);
}

.can-do-card h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.can-do-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* 理念说明文字 */
.vision-note {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(var(--accent), 0.05);
    border-radius: 12px;
    border: 1px dashed var(--border);
}

.vision-note p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 任务卡片优化 - 次要位置显示金额 */
.task-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}

.task-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.task-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    width: fit-content;
}

.task-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.task-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.task-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.task-meta > div {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.task-meta > div i {
    font-size: 0.8rem;
}

/* 金额次要显示 */
.task-reward {
    opacity: 0.7;
    font-size: 0.8rem !important;
}

.task-reward::after {
    content: "惊喜";
    margin-left: 0.25rem;
    font-size: 0.75rem;
    color: var(--accent);
}

.task-slots {
    color: var(--secondary) !important;
}

.task-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--gradient-accent);
    border: none;
    border-radius: 10px;
    color: var(--bg-dark);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.task-btn:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

/* 直播流优化 - 弱化金额 */
.feed-reward {
    font-size: 0.75rem;
    opacity: 0.6;
    color: var(--accent);
}

.feed-extra {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--secondary);
    background: rgba(59, 130, 246, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    margin-left: 0.5rem;
}

/* 共建区域优化 */
.sponsor-main {
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: 20px;
    margin-bottom: 2rem;
}

.sponsor-total {
    margin-bottom: 1rem;
}

.sponsor-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
}

.sponsor-amount .currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.sponsor-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.sponsor-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.sponsor-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--gradient-accent);
    border: none;
    border-radius: 50px;
    color: var(--bg-dark);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sponsor-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

/* CTA区域优化 */
.cta-section {
    position: relative;
    padding: 6rem 2rem;
    text-align: center;
    overflow: hidden;
}

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

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: var(--gradient-accent);
    border: none;
    border-radius: 50px;
    color: var(--bg-dark);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(var(--accent-rgb), 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* 隐藏元素 */
.hidden {
    display: none !important;
}

/* 响应式补充 */
@media (max-width: 992px) {
    .can-do-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .can-do-grid {
        grid-template-columns: 1fr;
    }

    .gold-tier .tier-list,
    .partner-tier .tier-list {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }
}

/* ===== 专属空间页面 ===== */
.space-section {
    min-height: 100vh;
    padding: 100px 20px 60px;
    background: var(--bg-dark);
}

.space-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* 已登录状态 - 双栏布局 */
.space-logged-in {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* 第一行:身份卡 + 收益卡 并排 */
.space-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

/* 身份卡 & 收益卡由基础样式控制，此处不再覆盖 */

/* 第一行并排布局 */
.space-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}

/* 第二行:任务大厅 */
/* 未登录状态 */
.space-header {
    text-align: center;
    margin-bottom: 40px;
}

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

.space-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.space-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
}

/* 功能介绍卡片 */
.space-intro {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.intro-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 16px;
    transition: all 0.3s ease;
}

.intro-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.intro-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.intro-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.intro-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* 访客任务预览 */
.guest-tasks-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 40px;
}

.guest-tasks-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-align: center;
}

.guest-tasks-title i {
    color: var(--accent);
    margin-right: 6px;
}

.guest-tasks-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 20px;
}

.guest-task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guest-task-loading {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
    font-size: 0.85rem;
}

.guest-task-item {
    cursor: default !important;
}

.guest-more {
    text-align: center;
    padding: 12px 0 4px;
    font-size: 0.85rem;
    color: var(--accent);
    cursor: pointer;
    transition: opacity 0.2s;
}

.guest-more:hover {
    opacity: 0.8;
}

/* 身份等级 */
.space-levels {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 40px;
}

.levels-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: center;
}

.levels-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.level-card {
    text-align: center;
    padding: 16px;
}

.level-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 12px;
}

.level-badge.visitor {
    background: var(--bg-card-hover);
    color: var(--text-muted);
    border: 2px dashed var(--border);
}

.level-badge.participant {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: #fff;
}

.level-badge.member {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.level-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.level-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.level-arrow {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* 登录注册表单 */
.space-auth {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: var(--gradient-accent);
    border-color: transparent;
    color: white;
    font-weight: 600;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--particle-color), 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.code-input {
    display: flex;
    gap: 12px;
}

.code-input input {
    flex: 1;
}

.send-code-btn {
    padding: 0 20px;
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 10px;
    color: var(--accent);
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.send-code-btn:hover {
    background: var(--accent);
    color: white;
}

.auth-submit {
    width: 100%;
    padding: 16px;
    background: var(--gradient-accent);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.auth-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ===== 已登录状态 ===== */
.space-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

/* ===== 身份卡 & 收益卡 - 方案B 网格信息块 ===== */
.space-logged-in .space-card {
    display: flex;
    flex-direction: column;
}

/* --- 身份卡 --- */
.identity-card {
    background: var(--bg-card) !important;
    background-image: none !important;
    padding: 14px 16px !important;
}

.id-row-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    border-radius: 8px;
    padding: 4px;
    transition: background 0.2s;
}
.id-row-top:hover {
    background: rgba(var(--particle-color), 0.05);
}

.id-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent);
}

.id-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.id-badge {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 10px;
    margin-left: auto;
}

.id-badge.participant { background: rgba(255,215,0,0.12); color: #ffd700; }
.id-badge.member { background: rgba(167,139,250,0.12); color: #a78bfa; }
.id-badge.admin { background: rgba(239,68,68,0.12); color: #ef4444; }

.id-row-mid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.id-stat {
    background: rgba(var(--particle-color), 0.06);
    border-radius: 10px;
    padding: 10px 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.id-stat.accent {
    background: rgba(102, 126, 234, 0.1);
}

.id-stat-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.id-stat.accent .id-stat-val {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.id-stat-lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.id-row-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.id-row-bottom .progress-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.id-row-bottom .progress-hint strong {
    color: var(--accent);
    font-weight: 600;
}

.progress-bar-mini {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-mini .progress-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.apply-member-btn {
    padding: 4px 14px;
    background: var(--gradient-accent);
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    display: none;
    align-items: center;
    gap: 4px;
}

.apply-member-btn:hover {
    transform: scale(1.05);
}

/* --- 收益卡（对角线张力布局）--- */
.earnings-card {
    padding: 14px 16px !important;
    background: var(--bg-card) !important;
    display: flex;
    flex-direction: column;
}

.earn-row-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.earn-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    align-self: flex-end;
}

.earn-label i {
    color: var(--accent);
}

.earn-big {
    text-align: right;
}

.earn-currency {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cash-text);
    margin-right: 2px;
}

.earn-amount {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--cash-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.earn-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}

.earn-row-bottom {
    display: flex;
    align-items: center;
    gap: 16px;
}

.earn-detail {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.earn-detail-lbl {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.earn-detail-val {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cash-text);
}

.earn-action {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.earn-action:hover {
    text-decoration: underline;
}

/* ===== 卡片通用头部 ===== */
/* 卡片通用头部 */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h3 i {
    color: var(--accent);
}

.view-all {
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
}

.view-all:hover {
    text-decoration: underline;
}

/* 任务大厅 */

/* 任务大厅 */
.task-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --- 任务行：色条 + 三列布局 --- */
.task-item {
    display: flex;
    align-items: stretch;
    border-radius: 10px;
    overflow: hidden;
    transition: filter 0.2s;
}
.task-item:hover { filter: brightness(1.06); }
.task-item.cash:hover .item-body { background: rgba(255,215,0,0.06); }
.task-item.starstone:hover .item-body { background: rgba(139,92,246,0.06); }
.task-item.contribution:hover .item-body { background: rgba(32,201,151,0.06); }

.task-item .left-bar {
    width: 4px;
    flex-shrink: 0;
}
.task-item.cash .left-bar { background: var(--cash-gradient); }
.task-item.starstone .left-bar { background: var(--stone-gradient); }
.task-item.contribution .left-bar { background: var(--contrib-gradient); }

.task-item .item-body {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    min-width: 0;
}
.task-item.cash .item-body { background: var(--cash-bg); }
.task-item.starstone .item-body { background: var(--stone-bg); }
.task-item.contribution .item-body { background: var(--contrib-bg); }

/* 左列：类型标签 + 总额 */
.task-left-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 118px;
    flex-shrink: 0;
}

.task-tag {
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    width: fit-content;
}
.task-item.cash .task-tag { background: var(--cash-tag-bg); color: var(--cash-text); }
.task-item.starstone .task-tag { background: var(--stone-tag-bg); color: var(--stone-text); }
.task-item.contribution .task-tag { background: var(--contrib-tag-bg); color: var(--contrib-text); }
/* 兼容旧 class 引用 */
.task-tag.cash { background: var(--cash-tag-bg); color: var(--cash-text); }
.task-tag.starstone { background: var(--stone-tag-bg); color: var(--stone-text); }
.task-tag.contribution { background: var(--contrib-tag-bg); color: var(--contrib-text); }

/* 总奖励池 badge */
.pool-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}
.task-item.cash .pool-badge { background: var(--cash-pool-bg); border: 1px solid var(--cash-pool-border); color: var(--cash-text); }
.task-item.starstone .pool-badge { background: var(--stone-pool-bg); border: 1px solid var(--stone-pool-border); color: var(--stone-text); }
.task-item.contribution .pool-badge { background: var(--contrib-pool-bg); border: 1px solid var(--contrib-pool-border); color: var(--contrib-text); }
.pool-badge.unlimited { border-style: dashed; }

/* 竖分隔线 */
.v-sep {
    width: 1px;
    align-self: stretch;
    flex-shrink: 0;
}
.task-item.cash .v-sep { background: var(--cash-border); }
.task-item.starstone .v-sep { background: var(--stone-border); }
.task-item.contribution .v-sep { background: var(--contrib-border); }

/* 中间：标题 + meta */
.task-info {
    flex: 1;
    min-width: 0;
}

.task-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.task-meta i {
    margin-right: 3px;
}

/* meta 小标签 */
.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
}
.meta-tag.public { background: rgba(32,201,151,0.1); color: #20c997; }
.meta-tag.private { background: rgba(108,117,125,0.12); color: #6c757d; }
.meta-tag.review { background: rgba(102,126,234,0.1); color: #667eea; }

/* 右列：金额 + 按钮（右对齐） */
.task-right-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    min-width: 100px;
    flex-shrink: 0;
}

.reward-amount {
    display: flex;
    align-items: baseline;
    gap: 1px;
}
.reward-amount .cur {
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0.6;
}
.reward-amount .val {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}
.reward-amount .unit {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.55;
    margin-right: 2px;
}

.task-item.cash .reward-amount .cur,
.task-item.cash .reward-amount .val {
    background: var(--cash-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.task-item.starstone .reward-amount .val {
    background: var(--stone-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.task-item.starstone .reward-amount .unit { color: var(--stone-text); opacity: 0.5; }
.task-item.contribution .reward-amount .val {
    background: var(--contrib-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.task-item.contribution .reward-amount .unit { color: var(--contrib-text); opacity: 0.5; }

/* 任务按钮 - 固定宽度，按类型着色 */
.task-btn {
    width: 80px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    border: none;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    align-self: flex-end;
}
/* 可领取：实心渐变 */
.task-item.cash .task-btn { background: var(--cash-gradient); color: #000; }
.task-item.cash .task-btn:hover { box-shadow: 0 2px 10px rgba(255,215,0,0.3); transform: translateY(-1px); }
.task-item.starstone .task-btn { background: var(--stone-gradient); color: #fff; }
.task-item.starstone .task-btn:hover { box-shadow: 0 2px 10px rgba(139,92,246,0.3); transform: translateY(-1px); }
.task-item.contribution .task-btn { background: var(--contrib-gradient); color: #fff; }
.task-item.contribution .task-btn:hover { box-shadow: 0 2px 10px rgba(32,201,151,0.3); transform: translateY(-1px); }

/* 已领取：半透明描边 */
.task-btn.done {
    background: transparent !important;
    color: var(--accent) !important;
    border: 1.5px solid var(--accent) !important;
    cursor: default;
    box-shadow: none !important;
    opacity: 0.8;
}

/* 已满员：半透明描边+红色 */
.task-btn.full {
    background: transparent !important;
    color: #f87171 !important;
    border: 1.5px solid rgba(248,113,113,0.35) !important;
    cursor: default;
    box-shadow: none !important;
}

/* 已结束：纯灰底 */
.task-btn.disabled {
    background: rgba(255,255,255,0.05) !important;
    color: var(--text-muted) !important;
    border: none !important;
    cursor: default;
    box-shadow: none !important;
    opacity: 0.6;
}
[data-theme="minimal"] .task-btn.disabled {
    background: rgba(0,0,0,0.05) !important;
}

/* 已结束分隔线 */
.ended-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 6px;
    padding: 0 4px;
}
.ended-divider-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}
.ended-divider-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.7;
}

/* 兼容旧 class（任务详情面板等处仍使用） */
.task-reward-display {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    margin: 4px 0 2px;
    display: block;
}
.task-join-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 8px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.task-join-btn:hover {
    background: var(--accent);
    color: white;
}

/* 记录列表 */
.record-list {
    min-height: 100px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-text {
    font-size: 0.9rem;
}

/* 更多功能 - 紧凑版 */
.more-card {
    margin-bottom: 0;
}

/* 标题旁的注解文案 */
.more-header-intro {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 12px;
    opacity: 0.8;
}

.more-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.more-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: var(--bg-dark);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.more-item:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.more-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 6px;
}

.more-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

/* 功能状态标签 */
.more-status {
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.more-status.dev {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.more-status.active {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

/* 卡片间距统一 */
.space-row {
    margin-bottom: 20px;
}

.tasks-card,
.more-card {
    margin-bottom: 20px;
}

.tasks-card:last-child,
.more-card:last-child {
    margin-bottom: 0;
}

/* 响应式 */
@media (max-width: 768px) {
    .space-section {
        padding: 80px 16px 40px;
    }

    .space-container {
        padding: 0 8px;
    }

    .space-intro {
        grid-template-columns: 1fr;
    }

    .guest-tasks-section {
        padding: 16px;
    }

    .levels-grid {
        flex-direction: column;
        gap: 8px;
    }

    .level-arrow {
        transform: rotate(90deg);
    }

    .space-row {
        grid-template-columns: 1fr;
    }

    .space-logged-in .identity-card,
    .space-logged-in .earnings-card {
        padding: 10px 12px !important;
    }

    .id-row-mid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .id-stat-val {
        font-size: 0.9rem;
    }

    .id-stat-lbl {
        font-size: 0.55rem;
    }

    .id-row-bottom .progress-hint {
        font-size: 0.65rem;
    }

    .earn-amount {
        font-size: 1.4rem;
    }

    .earn-row-bottom {
        flex-wrap: wrap;
        gap: 10px;
    }

    .more-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .more-item {
        padding: 10px 6px;
    }

    .more-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .more-name {
        font-size: 0.75rem;
    }

    .more-status {
        font-size: 0.55rem;
        padding: 1px 4px;
    }

    .more-header-intro {
        display: block;
        margin-left: 0;
        margin-top: 4px;
    }

    .task-item .item-body {
        flex-wrap: wrap;
        gap: 6px;
        padding: 10px 12px;
    }

    /* 移动端：隐藏竖分隔线 */
    .task-item .v-sep { display: none; }

    /* 左列（类型标签+总额）移到标题上方，变为横排 */
    .task-left-col {
        min-width: 0;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
        flex-basis: 100%;
        order: -1;
    }

    /* 中间标题区占满 */
    .task-info {
        flex: 1;
        min-width: 0;
    }
    .task-title {
        font-size: 0.85rem;
    }

    /* 右列（金额+按钮）紧缩 */
    .task-right-col {
        min-width: auto;
        flex-shrink: 0;
        gap: 4px;
    }
    .reward-amount .val {
        font-size: 1.2rem;
    }

    .task-btn {
        width: 64px;
        height: 26px;
        font-size: 0.7rem;
    }

}

/* ===== 共建弹窗新样式 ===== */
.sponsor-custom-amount {
    margin: 0 0 1rem;
}

.sponsor-custom-amount input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(var(--particle-color), 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.sponsor-custom-amount input:focus {
    outline: none;
    border-color: #ef4444;
}

.sponsor-message-area {
    margin-bottom: 1rem;
}

.sponsor-message-area textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(var(--particle-color), 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.sponsor-message-area textarea:focus {
    outline: none;
    border-color: #ef4444;
}

.sponsor-message-area textarea::placeholder {
    color: var(--text-muted);
}

.sponsor-char-count {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.sponsor-submit-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.sponsor-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

.sponsor-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 守护者头像图片 */
.sponsor-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.sponsor-avatar-img.small {
    width: 24px;
    height: 24px;
}

/* 了解更多文案 */
.sponsor-learn-more {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 1.5rem 0 1rem;
    font-style: italic;
}

/* ===== 协议相关样式 ===== */

/* 注册协议勾选 */
.agreement-check {
    margin-top: 4px;
}

.agreement-check label {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.5;
}

.agreement-check input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.agreement-check a {
    color: var(--accent);
    text-decoration: none;
}

.agreement-check a:hover {
    text-decoration: underline;
}

/* 协议弹窗 */
.agreement-modal-content {
    max-width: 700px;
    max-height: 80vh;
    text-align: left;
}

.agreement-modal-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.agreement-body {
    max-height: 55vh;
    overflow-y: auto;
    padding: 0 0.5rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.agreement-body h1,
.agreement-body h2,
.agreement-body h3 {
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.agreement-body h1 { font-size: 1.3rem; }
.agreement-body h2 { font-size: 1.15rem; }
.agreement-body h3 { font-size: 1.05rem; }

.agreement-body ul,
.agreement-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.agreement-body li {
    margin-bottom: 0.5rem;
}

.agreement-body p {
    margin-bottom: 0.75rem;
}

.agreement-body strong {
    color: var(--text-primary);
}

/* 管理后台协议编辑 */
.agreement-editor-wrapper {
    display: flex;
    gap: 16px;
    height: calc(100vh - 260px);
    min-height: 400px;
}

.agreement-editor-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.agreement-editor-pane label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
}

.agreement-editor-pane textarea {
    flex: 1;
    width: 100%;
    padding: 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    resize: none;
    line-height: 1.6;
}

.agreement-editor-pane textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.agreement-preview-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.agreement-preview-pane .preview-content {
    flex: 1;
    padding: 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow-y: auto;
    line-height: 1.7;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.agreement-preview-pane .preview-content h1,
.agreement-preview-pane .preview-content h2,
.agreement-preview-pane .preview-content h3 {
    color: var(--text-primary);
}

.agreement-editor-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .agreement-editor-wrapper {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }

    .agreement-editor-pane textarea {
        min-height: 200px;
    }

    .agreement-modal-content {
        max-width: 95vw;
    }

    .agreement-body {
        max-height: 60vh;
    }
}


/* ===== 提现弹窗优化 ===== */
.withdraw-modal {
    max-width: 560px !important;
    padding: 1.5rem !important;
}

.withdraw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.withdraw-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.withdraw-balance {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.withdraw-balance strong {
    color: var(--accent);
    font-size: 1rem;
}

.withdraw-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 0;
}

.withdraw-grid .qr-preview {
    min-height: 80px;
    padding: 16px;
}

.withdraw-grid .qr-preview i {
    font-size: 1.2rem;
}

.withdraw-grid .qr-preview span {
    font-size: 0.75rem;
}

@media (max-width: 600px) {
    .withdraw-grid {
        grid-template-columns: 1fr;
    }
    .withdraw-modal {
        max-width: 95vw !important;
    }
}

.qr-upload-area {
    cursor: pointer;
    transition: all 0.3s ease;
}

.qr-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    background: var(--bg-dark);
    border: 2px dashed var(--border);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    min-height: 100px;
    transition: border-color 0.3s;
}

.qr-preview:hover {
    border-color: var(--accent);
}

.qr-preview i {
    font-size: 1.5rem;
    color: var(--accent);
}

.qr-preview img {
    max-width: 120px;
    max-height: 120px;
    border-radius: 8px;
    object-fit: contain;
}

.qr-preview.has-image {
    padding: 12px;
}

.qr-preview.has-image i,
.qr-preview.has-image span {
    display: none;
}

/* ===== Toast 通知 ===== */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 8px;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
    color: white;
}
.toast-success { background: #20c997; }
.toast-error { background: #dc3545; }
.toast-info { background: #17a2b8; }

/* ===== 星石（已合并到身份卡片，日志列表样式保留） ===== */
.starstone-overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}
.starstone-balance {
    display: flex;
    align-items: center;
    gap: 8px;
}
.starstone-icon {
    font-size: 1.5rem;
}
.starstone-value {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.recharge-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}
.recharge-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
}
.starstone-log-list {
    margin-top: 12px;
    border-top: 1px solid var(--border);
    max-height: 200px;
    overflow-y: auto;
}
.starstone-log-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.starstone-log-item:last-child {
    border-bottom: none;
}
.starstone-log-item .log-desc {
    font-size: 0.8rem;
    color: var(--text-primary);
}
.starstone-log-item .log-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.starstone-log-item .log-amount {
    font-size: 0.9rem;
    font-weight: 600;
}
.starstone-log-item .log-amount.positive {
    color: #20c997;
}
.starstone-log-item .log-amount.negative {
    color: #dc3545;
}

/* ===== 星石充值弹窗 ===== */
.starstone-recharge-modal {
    max-width: 400px;
    text-align: center;
    padding: 32px 24px;
}
.starstone-recharge-modal .modal-icon.gem {
    font-size: 2rem;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.starstone-recharge-modal h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}
.starstone-rate {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.starstone-packages {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}
.starstone-package {
    flex: 1;
    padding: 16px 8px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: var(--card-bg);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.starstone-package:hover {
    border-color: rgba(102, 126, 234, 0.5);
}
.starstone-package.recommended {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}
.starstone-package .package-badge {
    position: absolute;
    top: -8px;
    right: -4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 10px;
}
.starstone-package .package-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}
.starstone-package .package-amount span {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-muted);
}
.starstone-package .package-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #667eea;
    margin-top: 4px;
}
.starstone-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    font-size: 0.75rem;
    margin-bottom: 16px;
}
.starstone-recharge-close {
    background: var(--border);
    color: var(--text-secondary);
    border: none;
    padding: 8px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
}

/* 响应式：小屏幕星石套餐纵向排列 */
@media (max-width: 480px) {
    .starstone-packages {
        flex-direction: column;
    }
    .id-row-mid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== 任务分页 ===== */
.task-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.page-btn {
    min-width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-btn:hover:not(:disabled) {
    background: rgba(var(--particle-color), 0.1);
    border-color: var(--accent);
    color: var(--accent);
}
.page-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    font-weight: 600;
}
.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== 任务详情底部面板 ===== */
.task-detail-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    pointer-events: none;
    visibility: hidden;
}
.task-detail-panel.active {
    pointer-events: auto;
    visibility: visible;
}
.panel-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity 0.3s;
}
.task-detail-panel.active .panel-backdrop {
    opacity: 1;
}
.panel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 70vh;
    background: var(--bg-card);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.35s ease;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
    overscroll-behavior: contain;
}
.task-detail-panel.active .panel-content {
    transform: translateY(0);
}
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 12px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.panel-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}
.panel-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.panel-close:hover {
    background: var(--border);
    color: var(--text-primary);
}
.panel-body {
    padding: 16px 24px 24px;
    overflow-y: auto;
    flex: 1;
}
.panel-meta .meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.panel-meta .meta-row i {
    margin-right: 4px;
}
.meta-tag {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(var(--particle-color), 0.1);
    color: var(--accent);
}
.meta-reward {
    color: var(--accent);
    font-weight: 600;
}
.meta-repeat {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}
.panel-desc {
    margin: 12px 0;
}
.desc-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    white-space: pre-wrap;
}
.panel-participants {
    margin: 12px 0;
}
/* 提交内容展示 */
.submissions-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.submissions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}
.submission-card {
    background: var(--bg-dark);
    border-radius: 10px;
    padding: 10px 12px;
}
.sub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.sub-user {
    display: flex;
    align-items: center;
    gap: 6px;
}
.sub-user img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}
.sub-nickname {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}
.sub-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sub-status {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 8px;
}
.sub-status.approved { background: rgba(34,197,94,0.15); color: #22c55e; }
.sub-status.pending { background: rgba(251,191,36,0.15); color: #fbbf24; }
.sub-time {
    font-size: 0.65rem;
    color: var(--text-muted);
}
.sub-content-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 6px;
    white-space: pre-wrap;
    word-break: break-word;
}
.sub-content-image img {
    max-width: 100%;
    max-height: 160px;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
    object-fit: cover;
}
.sub-content-image img:hover { opacity: 0.85; }

/* 图片全屏预览 */
.image-preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: fadeIn 0.2s ease;
}
.image-preview-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

/* 提交区域 */
.panel-submit-area {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.submit-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.submit-form textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    resize: vertical;
    font-family: inherit;
    min-height: 80px;
}
.submit-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.submit-image-upload {
    cursor: pointer;
}
.image-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg-dark);
    border: 2px dashed var(--border);
    border-radius: 12px;
    color: var(--text-muted);
    gap: 8px;
    transition: border-color 0.2s;
}
.image-upload-placeholder:hover {
    border-color: var(--accent);
}
.image-upload-placeholder i {
    font-size: 1.5rem;
}
.submit-btn {
    padding: 12px;
    background: var(--gradient-accent);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}
.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.submit-btn.direct {
    background: var(--gradient-accent);
    width: 100%;
}
.submit-login-hint, .submit-closed-hint {
    text-align: center;
    padding: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: var(--bg-dark);
    border-radius: 10px;
}

/* 任务卡片增强标签 */
.task-repeat-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    background: rgba(251,191,36,0.15);
    color: #fbbf24;
    margin-left: 8px;
}
.task-slots {
    color: var(--secondary) !important;
    font-weight: 600;
}
.task-slots.full {
    color: #dc3545 !important;
}
.task-countdown {
    color: #dc3545 !important;
    font-weight: 600;
    animation: countdownPulse 1s ease-in-out infinite;
}
@keyframes countdownPulse {
    0%,100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.task-join-btn.checked {
    background: var(--border);
    color: var(--text-muted);
    cursor: default;
}
.task-join-btn.ended,
.task-join-btn.full,
.task-join-btn.done {
    background: transparent;
    border-color: var(--border);
    color: var(--text-muted);
    cursor: pointer;
}
.task-join-btn.ended:hover,
.task-join-btn.full:hover,
.task-join-btn.done:hover {
    background: rgba(var(--particle-color), 0.05);
    color: var(--text-muted);
}

/* 响应式面板 */
@media (max-width: 768px) {
    .panel-content {
        max-height: 85vh;
    }
    .panel-body {
        padding: 12px 16px 20px;
    }
}

/* ===== CSP: 替代内联样式的工具类 ===== */
.is-hidden { display: none; }
.theme-teal-preview { background: linear-gradient(135deg, #20c997 0%, #0d1518 100%); }
.theme-minimal-preview { background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%); border: 1px solid #e0e0e0; }
.captcha-canvas { cursor: pointer; border-radius: 6px; vertical-align: middle; }
.progress-fill-init { width: 0%; }
.icp-link { color: inherit; }
.feedback-hint { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 16px; }
.feedback-textarea { width: 100%; min-height: 120px; padding: 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-primary); color: var(--text-primary); resize: vertical; font-size: 0.95rem; }
.feedback-char-count { text-align: right; font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.task-item-clickable { cursor: pointer; }
.load-more-subs-btn { width: 100%; padding: 10px; margin-top: 8px; background: var(--bg-dark); border: 1px solid var(--border); border-radius: 8px; color: var(--text-secondary); font-size: 0.85rem; cursor: pointer; transition: all 0.2s; }
.sub-preview-img { max-height: 120px; border-radius: 8px; }
.record-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.record-type-tag { font-size: 0.7rem; padding: 2px 8px; border-radius: 10px; background: rgba(var(--particle-color),0.08); color: var(--accent); white-space: nowrap; }
.record-content { flex: 1; min-width: 0; }
.record-title { font-size: 0.88rem; color: var(--text-primary); font-weight: 500; }
.record-date { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.placeholder-center { text-align: center; color: var(--text-muted); }
.placeholder-padding { padding: 40px 0; }
.placeholder-sm { font-size: 0.85rem; }
.ss-header { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 8px; }
.ss-count { font-size: 2rem; font-weight: 700; background: linear-gradient(135deg,#667eea,#764ba2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.ss-label { font-size: 0.9rem; color: var(--text-muted); }
.ss-balance-count { font-size: 2rem; font-weight: 700; color: #22c55e; }
.ss-log-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.ss-log-desc { font-size: 0.8rem; color: var(--text-primary); }
.ss-log-time { font-size: 0.65rem; color: var(--text-muted); }
.ss-log-amount { font-size: 0.9rem; font-weight: 600; }
.amount-positive { color: #20c997; }
.amount-negative { color: #dc3545; }
.bl-log-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.bl-log-left { display: flex; align-items: center; gap: 8px; }
.bl-log-icon { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.bl-log-icon.income { background: rgba(34,197,94,0.15); }
.bl-log-icon.withdrawal { background: rgba(245,158,11,0.15); }
.bl-log-icon-inner { font-size: 0.65rem; }
.bl-log-desc { font-size: 0.8rem; color: var(--text-primary); }
.bl-log-time { font-size: 0.65rem; color: var(--text-muted); }
.bl-log-amount { font-size: 0.9rem; font-weight: 600; }
.recharge-btn-full { width: 100%; margin-top: 12px; padding: 12px; background: linear-gradient(135deg,#667eea,#764ba2); border: none; border-radius: 10px; color: white; font-size: 0.95rem; font-weight: 600; cursor: pointer; }
.detail-placeholder { text-align: center; color: var(--text-muted); padding: 20px 0; }
.pe-container { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pe-avatar-wrap { position: relative; cursor: pointer; }
.pe-avatar-img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); }
.pe-avatar-edit { position: absolute; bottom: 0; right: 0; width: 28px; height: 28px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.pe-avatar-icon { font-size: 0.7rem; color: white; }
.pe-form-wrap { width: 100%; max-width: 300px; }
.pe-label { display: block; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 6px; }
.pe-input { width: 100%; padding: 12px; background: var(--bg-dark); border: 1px solid var(--border); border-radius: 10px; color: var(--text-primary); font-size: 1rem; }
.pe-input:focus { outline: none; border-color: var(--accent); }
.pe-error { font-size: 0.75rem; color: #ef4444; margin-top: 4px; }
.pe-save-btn { padding: 12px 40px; background: var(--gradient-accent); border: none; border-radius: 10px; color: white; font-size: 1rem; font-weight: 600; cursor: pointer; }
.pe-pwd-section { width: 100%; max-width: 300px; margin-top: 20px; border-top: 1px solid var(--border); padding-top: 16px; }
.pe-pwd-toggle { background: none; border: none; color: var(--text-secondary); font-size: 0.85rem; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.pe-pwd-chevron { font-size: 0.6rem; transition: transform 0.2s; }
.pe-pwd-form { margin-top: 12px; }
.pe-pwd-field { margin-bottom: 10px; }
.pe-pwd-field:last-of-type { margin-bottom: 12px; }
.pe-pwd-label { display: block; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 4px; }
.pe-pwd-input { width: 100%; padding: 10px; background: var(--bg-dark); border: 1px solid var(--border); border-radius: 8px; color: var(--text-primary); font-size: 0.9rem; }
.pe-pwd-input:focus { outline: none; border-color: var(--accent); }
.pe-pwd-error { font-size: 0.75rem; color: #ef4444; margin-bottom: 8px; }
.pe-pwd-btn { width: 100%; padding: 10px; background: var(--gradient-accent); border: none; border-radius: 8px; color: white; font-size: 0.9rem; font-weight: 600; cursor: pointer; }

.status-badge { font-size: 0.75rem; padding: 2px 8px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.status-badge.approved { background: rgba(32,201,151,0.15); color: #20c997; }
.status-badge.rejected { background: rgba(239,68,68,0.15); color: #ef4444; }
.status-badge.pending { background: rgba(255,193,7,0.15); color: #ffc107; }
.status-badge.in_progress { background: rgba(102,126,234,0.15); color: #667eea; }

/* ripple 动画 */
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
