/*
Theme Name: QskeNav - 非池AI导航
Theme URI: https://www.qske.com
Author: Qske Team
Author URI: https://www.qske.com
Description: 非池AI导航主题 - AI工具、硬件、元器件导航平台
Version: 2.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qske-nav
Tags: ai, navigation, dark-theme, custom-post-types
*/

/* ========================================
   CSS Variables - Theme Color System
   ======================================== */
:root {
    /* Primary Colors */
    --primary-bg: #0a0e1a;
    --secondary-bg: #131629;
    --tertiary-bg: #1a1d2e;
    --card-bg: rgba(26, 29, 46, 0.8);
    
    /* Accent - Gradient */
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
    --accent-color: #667eea;
    --accent-hover: #764ba2;
    
    /* 文字颜色 */
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    
    /* Border and Shadow */
    --border-color: rgba(102, 126, 234, 0.2);
    --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.3);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    
    /* 尺寸 */
    --header-height: 70px;
    --container-width: 1400px;
    --sidebar-width: 280px;
    --card-radius: 16px;
    --button-radius: 8px;
    
    /* 动画 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Glass Effect */
    --blur-amount: 20px;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--gradient-start);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: transparent;
}

button {
    cursor: pointer;
}

/* ========================================
   Container & Layout
   ======================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    padding-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

.flex-container {
    display: flex;
    gap: 24px;
}

.sidebar-left {
    width: var(--sidebar-width);
    flex-shrink: 0;
}

.content-main {
    flex: 1;
    min-width: 0;
}

/* ========================================
   Header - Top Navigation
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 24px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo img {
    height: 40px;
    width: auto;
}

.site-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 0;
    position: relative;
    transition: color var(--transition-fast);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    transition: width var(--transition-normal);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-primary);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-search {
    position: relative;
}

.header-search input {
    width: 240px;
    height: 40px;
    padding: 0 40px 0 16px;
    background: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.header-search input:focus {
    width: 280px;
    border-color: var(--gradient-start);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.header-search input::placeholder {
    color: var(--text-muted);
}

.header-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.header-search-btn:hover {
    color: var(--gradient-start);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.user-avatar svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ========================================
   Hero Section - Homepage Hero
   ======================================== */
.hero-section {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-badge svg {
    width: 18px;
    height: 18px;
    fill: var(--gradient-start);
}

/* Hero Search */
.hero-search {
    max-width: 700px;
    margin: 0 auto 32px;
    position: relative;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-search-input {
    width: 100%;
    height: 60px;
    padding: 0 70px 0 24px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: all var(--transition-normal);
}

.hero-search-input:focus {
    border-color: var(--gradient-start);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), var(--shadow-glow);
}

.hero-search-input::placeholder {
    color: var(--text-muted);
}

.hero-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-search-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: var(--shadow-glow);
}

.hero-search-btn svg {
    width: 22px;
    height: 22px;
    fill: white;
}

/* Quick Tags */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-tag {
    padding: 8px 18px;
    background: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.hero-tag:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-color: var(--gradient-start);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ========================================
   Section Styles - 区块样式
   ======================================== */
.section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
}

.section-more {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.section-more:hover {
    color: var(--gradient-start);
}

.section-more svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ========================================
   Cards - 卡片样式
   ======================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.cards-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.cards-scroll::-webkit-scrollbar {
    height: 6px;
}

.cards-scroll::-webkit-scrollbar-track {
    background: var(--tertiary-bg);
    border-radius: 3px;
}

.cards-scroll::-webkit-scrollbar-thumb {
    background: var(--gradient-start);
    border-radius: 3px;
}

.cards-scroll > * {
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* Site Card - 工具卡片 */
.site-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.site-card:hover {
    transform: translateY(-4px);
    border-color: var(--gradient-start);
    box-shadow: var(--shadow-glow);
}

.site-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    background: var(--tertiary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-card-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.site-card-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-card-tag {
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.site-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fbbf24;
    font-size: 0.875rem;
}

.site-card-rating svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Scroll Card */
.scroll-card {
    width: 220px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.scroll-card:hover {
    transform: translateY(-4px);
    border-color: var(--gradient-start);
    box-shadow: var(--shadow-glow);
}

.scroll-card-cover {
    width: 100%;
    height: 140px;
    background: var(--tertiary-bg);
    overflow: hidden;
}

.scroll-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.scroll-card:hover .scroll-card-cover img {
    transform: scale(1.05);
}

.scroll-card-content {
    padding: 16px;
}

.scroll-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.scroll-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.scroll-card-price {
    color: var(--gradient-start);
    font-weight: 600;
}

/* ========================================
   News List - 资讯列表
   ======================================== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    transition: all var(--transition-fast);
}

.news-item:hover {
    border-color: var(--gradient-start);
    transform: translateX(4px);
}

.news-item-thumb {
    width: 160px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--tertiary-bg);
}

.news-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item-content {
    flex: 1;
    min-width: 0;
}

.news-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.news-item-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========================================
   Sidebar - Left Sidebar
   ======================================== */
.sidebar {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.category-tree {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.category-item:hover,
.category-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
}

.category-item.active {
    color: var(--gradient-start);
}

.category-item-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.category-item:hover .category-item-name,
.category-item.active .category-item-name {
    color: var(--text-primary);
}

.category-item-count {
    font-size: 0.75rem;
    padding: 2px 8px;
    background: var(--tertiary-bg);
    border-radius: 10px;
    color: var(--text-muted);
}

/* ========================================
   Single Page - Detail Page
   ======================================== */
.single-hero {
    padding: 60px 0 40px;
    background: linear-gradient(180deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
}

.single-header {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
}

.single-icon {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--tertiary-bg);
    flex-shrink: 0;
    border: 2px solid var(--border-color);
}

.single-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-info {
    flex: 1;
}

.single-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.single-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.single-meta-item svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.single-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--button-radius);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: white;
}

.btn-secondary {
    background: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--gradient-start);
    color: var(--gradient-start);
}

.btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Single Content */
.single-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.single-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.content-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 24px;
}

.content-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
}

/* Features */
.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--tertiary-bg);
    border-radius: 12px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--gradient-start);
}

.feature-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Pricing */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.pricing-card {
    padding: 20px;
    background: var(--tertiary-bg);
    border-radius: 12px;
    text-align: center;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.pricing-card:hover,
.pricing-card.popular {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    transform: translateY(-4px);
}

.pricing-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.pricing-period {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Tips/Donate */
.tips-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 24px;
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.tips-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.tips-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.tip-btn {
    padding: 12px;
    background: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.tip-btn:hover,
.tip-btn.active {
    border-color: var(--gradient-start);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
}

.tip-btn .amount {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tip-btn .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--tertiary-bg);
    border-radius: 8px;
}

.tip-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.tip-info {
    flex: 1;
    font-size: 0.85rem;
}

.tip-info strong {
    color: var(--text-primary);
}

.tip-info span {
    color: var(--text-muted);
}

.tip-amount {
    font-size: 0.9rem;
    color: var(--gradient-start);
    font-weight: 600;
}

/* ========================================
   Search Page - Search Results
   ======================================== */
.search-header {
    padding: 40px 0;
    text-align: center;
}

.search-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.search-form-large {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-large {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.search-input-large:focus {
    border-color: var(--gradient-start);
    box-shadow: var(--shadow-glow);
}

.search-results {
    margin-top: 40px;
}

.search-result-count {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ========================================
   Archive Page - Archive List
   ======================================== */
.archive-header {
    padding: 40px 0 24px;
}

.archive-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.archive-desc {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ========================================
   Pagination - 分页
   ======================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.page-numbers:hover,
.page-numbers.current {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-color: transparent;
    color: white;
}

/* ========================================
   Footer - 页脚
   ======================================== */
.site-footer {
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 24px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--gradient-start);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========================================
   Floating Assistant - 悬浮助手
   ======================================== */
.floating-assistant {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 900;
}

.assistant-btn {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.assistant-btn:hover {
    transform: scale(1.1);
}

.assistant-btn svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.assistant-label {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--card-bg);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.assistant-btn:hover + .assistant-label {
    opacity: 1;
}

/* ========================================
   404 Page
   ======================================== */
.error-404 {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.error-404 h1 {
    font-size: 8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.error-404 p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ========================================
   Responsive Design - Mobile Friendly
   ======================================== */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 24px;
    }
    
    .single-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar-left {
        display: none;
    }
}

@media (max-width: 992px) {
    :root {
        --header-height: 60px;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-search input {
        width: 180px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .single-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .single-actions {
        justify-content: center;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 32px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .header-search {
        display: none;
    }
    
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-search-input {
        height: 50px;
        font-size: 1rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-item-thumb {
        width: 100%;
        height: 180px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero-tags {
        gap: 8px;
    }
    
    .hero-tag {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
    
    .single-icon {
        width: 80px;
        height: 80px;
    }
    
    .single-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .floating-assistant {
        bottom: 20px;
        right: 20px;
    }
    
    .assistant-btn {
        width: 48px;
        height: 48px;
    }
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.98);
    z-index: 999;
    display: none;
    flex-direction: column;
    padding: 24px;
}

.mobile-nav-overlay.active {
    display: flex;
}

.mobile-nav-overlay a {
    padding: 16px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.mobile-nav-overlay a:hover {
    color: var(--gradient-start);
}

/* ========================================
   Animations - 动画
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(102, 126, 234, 0.5);
    }
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, var(--tertiary-bg) 25%, rgba(102, 126, 234, 0.1) 50%, var(--tertiary-bg) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s ease infinite;
    border-radius: 8px;
}

@keyframes skeleton {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   Comments & Reviews
   ======================================== */
.comments-section {
    margin-top: 32px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    background: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    resize: vertical;
    transition: border-color var(--transition-fast);
}

.comment-form textarea:focus {
    border-color: var(--gradient-start);
}

.comment-form-actions {
    display: flex;
    justify-content: flex-end;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--tertiary-bg);
    border-radius: 12px;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 4px;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.comment-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Rating Stars */
.rating-stars {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-stars svg {
    width: 18px;
    height: 18px;
    fill: #fbbf24;
}

.rating-stars svg.empty {
    fill: var(--tertiary-bg);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tertiary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.share-btn:hover {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    transform: translateY(-2px);
}

.share-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--text-secondary);
}

.share-btn:hover svg {
    fill: white;
}

/* Related Posts */
.related-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.related-post {
    background: var(--tertiary-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform var(--transition-fast);
}

.related-post:hover {
    transform: translateY(-4px);
}

.related-post-thumb {
    height: 140px;
    background: var(--secondary-bg);
}

.related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-content {
    padding: 16px;
}

.related-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* User Login Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    max-width: 400px;
    width: 100%;
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.form-group input {
    height: 48px;
    padding: 0 16px;
    background: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    transition: border-color var(--transition-fast);
}

.form-group input:focus {
    border-color: var(--gradient-start);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
}

/* Points Badge */
.points-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-radius: 20px;
    font-size: 0.85rem;
}

.points-badge svg {
    width: 14px;
    height: 14px;
    fill: var(--gradient-start);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--gradient-start);
}

.breadcrumb span {
    color: var(--text-muted);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 24px;
    z-index: 3000;
    opacity: 0;
    transition: all var(--transition-normal);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: #10b981;
}

.toast.error {
    border-color: #ef4444;
}

.toast-message {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

/* ========================================
   FORCE RESPONSIVE - Mobile Override
   ======================================== */
@media screen and (max-width: 768px) {
    html, body { min-width: 320px !important; overflow-x: hidden !important; }
    .container { width: 100% !important; max-width: 100% !important; padding: 0 12px !important; box-sizing: border-box !important; }
    .cards-scroll { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; overflow-x: visible !important; flex-wrap: wrap !important; }
    .card-item, .site-card, .scroll-card { min-width: 0 !important; flex: none !important; width: 100% !important; }
    .section { padding: 30px 0 !important; }
    .hero-section { padding: 80px 0 40px !important; }
    .hero-title { font-size: 24px !important; }
    .hero-subtitle { font-size: 14px !important; }
    .flex-container { display: block !important; }
    .sidebar-left { display: none !important; }
    .main-content { width: 100% !important; }
    .site-header { height: 60px !important; }
    .main-nav { display: none !important; }
    .mobile-menu-toggle { display: flex !important; }
    .header-search { display: none !important; }
    .section-title { font-size: 18px !important; }
    .news-item { flex-direction: column !important; }
    .news-item-thumb { width: 100% !important; height: 160px !important; }
}
@media screen and (max-width: 480px) {
    .container { padding: 0 10px !important; }
    .cards-scroll { grid-template-columns: 1fr !important; }
    .hero-title { font-size: 20px !important; }
    .btn { padding: 8px 16px !important; font-size: 13px !important; }
    .pagination { flex-wrap: wrap !important; }
}

/* ========================================
   DETAIL PAGES - Single Post Templates
   ======================================== */

/* Breadcrumb */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}
.breadcrumb a { color: var(--accent-color); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-hover); }
.breadcrumb .sep { color: var(--text-muted); opacity: 0.5; }
.breadcrumb .current { color: var(--text-primary); }

/* Detail Layout */
.detail-layout {
    display: flex;
    gap: 30px;
    padding: 30px 0;
}
.detail-main {
    flex: 1;
    min-width: 0;
}
.detail-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* Detail Header */
.detail-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 24px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.detail-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--tertiary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.detail-icon img { width: 100%; height: 100%; object-fit: cover; }
.detail-icon-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-color); opacity: 0.6;
}
.detail-icon-placeholder svg { width: 40px; height: 40px; }
.detail-info { flex: 1; min-width: 0; }
.detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
}
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}
.meta-item {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--tertiary-bg);
    padding: 4px 10px;
    border-radius: 6px;
}
.meta-item a { color: var(--accent-color); text-decoration: none; }
.meta-item a:hover { text-decoration: underline; }
.meta-price { color: #10b981; background: rgba(16,185,129,0.1); }
.meta-deadline { color: #f59e0b; background: rgba(245,158,11,0.1); }
.meta-expired { color: #ef4444; background: rgba(239,68,68,0.1); }
.detail-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Detail Cover (for activities/courses/works) */
.detail-cover {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}
.detail-cover img { width: 100%; display: block; }
.play-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}
.play-overlay:hover { background: var(--accent-color); }
.play-overlay svg { width: 32px; height: 32px; fill: #fff; margin-left: 4px; }

/* Detail Sections */
.detail-section {
    margin-bottom: 30px;
    padding: 24px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.detail-section-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}
.detail-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}
.detail-content p { margin-bottom: 12px; }
.detail-content img { max-width: 100%; border-radius: 8px; }
.detail-content h2, .detail-content h3 { color: var(--text-primary); margin: 20px 0 10px; }
.detail-content ul, .detail-content ol { padding-left: 20px; margin-bottom: 12px; }
.detail-content a { color: var(--accent-color); }

/* Specs Table */
.specs-table {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}
.specs-table p { margin: 4px 0; }
.specs-table strong { color: var(--text-primary); }

/* Gallery */
.detail-gallery img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Tips / Donate Section */
.tips-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.tips-stats {
    display: flex;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.tips-list {
    margin-top: 16px;
}
.tips-list h4 {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin: 0 0 12px;
}
.tip-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
}
.tip-user { color: var(--accent-color); font-weight: 500; }
.tip-amount { color: #10b981; }
.tip-time { color: var(--text-muted); margin-left: auto; }

/* Related List (Sidebar) */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.related-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--tertiary-bg);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: all 0.2s;
}
.related-item:hover {
    background: var(--accent-color);
    color: #fff;
}
.related-item-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}
.related-item-price {
    color: #10b981;
    font-size: 0.8rem;
    margin-left: 8px;
}
.related-item:hover .related-item-price { color: #fff; }

/* Interaction Buttons */
.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(102,126,234,0.1);
}

/* Points Badge */
.points-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #f59e0b;
    font-size: 0.8rem;
    background: rgba(245,158,11,0.1);
    padding: 4px 10px;
    border-radius: 12px;
}
.points-badge svg { width: 14px; height: 14px; }

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(102,126,234,0.15);
    color: var(--accent-color);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 24px;
}
.hero-badge svg { width: 18px; height: 18px; }

/* User Logged In */
.user-logged-in {
    display: flex;
    align-items: center;
    gap: 12px;
}
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tertiary-bg);
    cursor: pointer;
}
.user-avatar svg { width: 24px; height: 24px; fill: var(--text-muted); }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Footer */
.site-footer {
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
    margin-top: 60px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
}
.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.footer-desc { color: var(--text-muted); font-size: 0.9rem; }
.footer-links {
    display: flex;
    gap: 40px;
    flex: 1;
}
.footer-col h4 {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin: 0 0 12px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; }
.footer-col a:hover { color: var(--accent-color); }
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8rem;
}
.footer-icp { margin-top: 6px; }

/* Floating Assistant */
.floating-assistant {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.assistant-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(102,126,234,0.4);
    transition: transform 0.3s;
}
.assistant-btn:hover { transform: scale(1.1); }
.assistant-btn svg { width: 24px; height: 24px; fill: #fff; }
.assistant-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Sidebar Widget (detail sidebar) */
.detail-sidebar .sidebar-widget {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}
.detail-sidebar .sidebar-title {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

/* Mobile Detail / Footer */
@media screen and (max-width: 768px) {
    .detail-layout { display: block !important; }
    .detail-sidebar { width: 100% !important; margin-top: 30px; }
    .footer-content { flex-direction: column; gap: 20px; }
    .footer-links { flex-direction: column; gap: 20px; }
    .detail-header { flex-direction: column; align-items: center; text-align: center; }
    .detail-icon { width: 60px; height: 60px; }
    .detail-title { font-size: 1.2rem; }
    .tips-section { flex-direction: column; align-items: stretch; text-align: center; }
    .hero-badge { font-size: 0.8rem; padding: 6px 14px; }
}

/* ========================================
   HEADER & NAVIGATION - v8
   ======================================== */
.header-inner { display:flex; align-items:center; justify-content:space-between; height:100%; }
.logo { display:flex; align-items:center; text-decoration:none; gap:8px; }
.logo-text { font-size:1.3rem; font-weight:800; background:linear-gradient(135deg,var(--gradient-start),var(--gradient-end)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; letter-spacing:1px; }
.logo img { max-height:40px; }
.main-nav { display:flex; align-items:center; flex:1; margin-left:30px; }
.nav-menu { display:flex; list-style:none; margin:0; padding:0; gap:4px; }
.nav-menu > li { position:relative; }
.nav-menu > li > a { display:block; padding:10px 16px; color:var(--text-secondary); text-decoration:none; font-size:0.9rem; font-weight:500; border-radius:8px; transition:all 0.2s; }
.nav-menu > li:hover > a, .nav-menu > li.current-menu-item > a, .nav-menu > li.current-menu-parent > a { color:var(--text-primary); background:rgba(102,126,234,0.1); }
.nav-menu .sub-menu { display:none; position:absolute; top:100%; left:0; min-width:180px; background:var(--secondary-bg); border:1px solid var(--border-color); border-radius:12px; padding:8px 0; box-shadow:0 10px 40px rgba(0,0,0,0.3); z-index:1000; list-style:none; margin:0; animation:fadeInDown 0.2s ease; }
@keyframes fadeInDown { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }
.nav-menu li:hover > .sub-menu { display:block; }
.nav-menu .sub-menu a { padding:8px 20px; color:var(--text-secondary); text-decoration:none; font-size:0.85rem; display:block; transition:all 0.15s; }
.nav-menu .sub-menu a:hover { color:#fff; background:var(--accent-color); }
/* ===== HEADER v8.1 - Logo自适应 + 搜索框 + 用户下拉 ===== */
.header-right { display:flex; align-items:center; gap:12px; flex-shrink:0; }

/* 搜索框 - 内联式（在导航右侧） */
.header-search-box { position:relative; display:flex; align-items:center; }
.header-search-box form { display:flex; align-items:center; background:var(--tertiary-bg); border:1px solid var(--border-color); border-radius:24px; padding:0 16px; height:38px; width:220px; transition:all 0.25s ease; }
.header-search-box form:focus-within { border-color:var(--accent-color); box-shadow:0 0 0 3px rgba(102,126,234,0.15); width:280px; }
.header-search-box .search-icon { width:16px; height:16px; fill:var(--text-muted); flex-shrink:0; margin-right:8px; }
.header-search-box input[type="search"] { flex:1; background:none; border:none; outline:none; color:var(--text-primary); font-size:0.85rem; min-width:0; }
.header-search-box input[type="search"]::placeholder { color:var(--text-muted); font-size:0.82rem; }

/* 登录按钮 */
.login-trigger-btn { padding:7px 20px; background:linear-gradient(135deg,var(--gradient-start),var(--gradient-end)); color:#fff; border:none; border-radius:20px; font-size:0.85rem; font-weight:600; cursor:pointer; white-space:nowrap; transition:all 0.25s; letter-spacing:0.5px; }
.login-trigger-btn:hover { transform:translateY(-1px); box-shadow:0 4px 16px rgba(102,126,234,0.4); }

/* 用户头像按钮（已登录） */
.user-dropdown-wrapper { position:relative; }
.user-avatar-btn { width:38px; height:38px; border-radius:50%; overflow:hidden; cursor:pointer; border:2px solid var(--border-color); transition:border-color 0.2s; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#667eea,#764ba2); flex-shrink:0; }
.user-avatar-btn:hover { border-color:var(--accent-color); }
.user-avatar-btn img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.avatar-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:1rem; background:linear-gradient(135deg,#667eea,#764ba2); border-radius:50%; }

/* 用户下拉面板 - 参照aitop100.cn截图样式 */
.user-dropdown-panel { display:none; position:absolute; top:calc(100% + 10px); right:0; width:300px; background:var(--secondary-bg); border:1px solid var(--border-color); border-radius:16px; padding:20px; box-shadow:0 12px 48px rgba(0,0,0,0.4); z-index:2000; animation:fadeInDown 0.2s ease; }
.user-dropdown-wrapper.open .user-dropdown-panel { display:block; }
.dropdown-user-info { display:flex; align-items:center; gap:14px; margin-bottom:16px; padding-bottom:16px; border-bottom:1px solid rgba(255,255,255,0.06); }
.dropdown-avatar { width:52px; height:52px; border-radius:50%; overflow:hidden; flex-shrink:0; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#667eea,#764ba2); color:#fff; font-weight:700; font-size:1.3rem; }
.dropdown-avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.avatar-placeholder-lg { width:100%; height:100%; display:flex; align-items:center; justify-content:center; }
.dropdown-name-level { flex:1; min-width:0; }
.dropdown-name { font-size:1rem; font-weight:600; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dropdown-level-badge { margin-top:2px; }
.lv-tag { display:inline-block; background:linear-gradient(135deg,#f59e0b,#d97706); color:#000; font-size:0.72rem; font-weight:800; padding:1px 8px; border-radius:6px; letter-spacing:0.5px; }

/* 下拉统计行 */
.dropdown-stats-row { display:flex; text-align:center; margin-bottom:14px; }
.stat-item { flex:1; }
.stat-item .stat-label { display:block; font-size:0.75rem; color:var(--text-muted); margin-bottom:2px; }
.stat-item .stat-val { display:block; font-size:0.95rem; font-weight:700; color:#fff; }

/* 积分条 */
.dropdown-points-bar { display:flex; align-items:center; gap:8px; background:rgba(245,158,11,0.1); border:1px solid rgba(245,158,11,0.3); border-radius:10px; padding:8px 12px; margin-bottom:14px; }
.dropdown-points-bar .points-icon { font-size:1rem; }
.dropdown-points-bar .points-num { flex:1; font-weight:700; color:#f59e0b; font-size:0.95rem; }
.recharge-btn { background:linear-gradient(135deg,#f59e0b,#d97706); color:#000; border:none; border-radius:14px; padding:4px 14px; font-size:0.78rem; font-weight:700; cursor:pointer; white-space:nowrap; text-decoration:none; transition:opacity 0.2s; }
.recharge-btn:hover { opacity:0.85; }

/* 下拉链接列表 */
.dropdown-links { display:grid; grid-template-columns:1fr 1fr; gap:4px; margin-bottom:14px; }
.dropdown-link { display:flex; align-items:center; gap:8px; padding:9px 12px; color:var(--text-secondary); text-decoration:none; font-size:0.83rem; border-radius:8px; transition:all 0.15s; }
.dropdown-link:hover { background:rgba(102,126,234,0.1); color:#fff; }
.dropdown-logout { text-align:center; padding-top:12px; border-top:1px solid rgba(255,255,255,0.06); }
.dropdown-logout a { color:var(--text-muted); font-size:0.82rem; text-decoration:none; transition:color 0.15s; }
.dropdown-logout a:hover { color:#ef4444; }
.user-name { font-size:0.85rem; color:var(--text-secondary); max-width:80px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.points-badge { font-size:0.72rem; background:rgba(245,158,11,0.15); color:#f59e0b; padding:2px 8px; border-radius:10px; font-weight:600; }
.user-logged-in { display:flex; align-items:center; gap:8px; }
.user-avatar { width:32px; height:32px; border-radius:50%; background:linear-gradient(135deg,var(--gradient-start),var(--gradient-end)); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:0.85rem; flex-shrink:0; }
.btn-sm { padding:6px 14px !important; font-size:0.82rem !important; }
.mobile-menu-toggle { display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:4px; }
.mobile-menu-toggle span { display:block; width:22px; height:2px; background:var(--text-secondary); border-radius:1px; transition:all 0.3s; }
.mobile-nav { display:none; position:fixed; top:60px; left:0; right:0; bottom:0; background:var(--primary-bg); z-index:999; padding:20px; overflow-y:auto; transform:translateX(100%); transition:transform 0.3s ease; }
.mobile-nav.active { transform:translateX(0); }
.mobile-menu-list { list-style:none; padding:0; margin:0; }
.mobile-menu-list > li > a { display:block; padding:14px 20px; color:var(--text-secondary); text-decoration:none; font-size:1rem; border-bottom:1px solid rgba(255,255,255,0.05); transition:color 0.15s; }
.mobile-menu-list > li > a:hover { color:var(--accent-color); }
body.menu-open { overflow:hidden; }
.search-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(10,14,26,0.95); z-index:9999; display:none; align-items:center; justify-content:center; backdrop-filter:blur(10px); }
.search-overlay.active { display:flex; }
.search-overlay-inner { width:90%; max-width:600px; }
.search-overlay form { display:flex; gap:10px; background:var(--secondary-bg); border:2px solid var(--accent-color); border-radius:50px; padding:4px 8px; }
.search-overlay input[type="search"] { flex:1; background:transparent; border:none; outline:none; color:var(--text-primary); font-size:1rem; }
.search-overlay button[type="submit"] { background:var(--accent-color); color:#fff; border:none; border-radius:50%; padding:8px 18px; cursor:pointer; font-weight:600; }
.search-close-btn { background:none; border:none; color:var(--text-muted); font-size:24px; cursor:pointer; padding:4px 8px; }
.top-banner { text-align:center; padding:8px 0; font-size:0.8rem; color:var(--text-muted); background:rgba(255,255,255,0.02); }

/* ========================================
   INDEX PAGE SECTIONS - v8
   ======================================== */
.section-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:24px; }
.section-more { font-size:0.85rem; color:var(--accent-color); text-decoration:none; font-weight:500; transition:opacity 0.2s; }
.section-more:hover { opacity:0.7; }
.cards-scroll { display:flex; gap:16px; overflow-x:auto; padding-bottom:8px; scroll-snap-type:x mandatory; scrollbar-width:thin; }
.cards-scroll::-webkit-scrollbar { height:4px; }
.scroll-card { min-width:220px; max-width:260px; background:var(--card-bg); border:1px solid var(--border-color); border-radius:12px; overflow:hidden; transition:all 0.25s; scroll-snap-align:start; flex-shrink:0; }
.scroll-card a { display:block; padding:16px; text-decoration:none; color:inherit; }
.scroll-card:hover { transform:translateY(-4px); border-color:var(--accent-color); box-shadow:0 8px 32px rgba(102,126,234,0.2); }
.card-name { font-size:0.95rem; font-weight:600; color:var(--text-primary); margin:12px 0 8px; line-height:1.3; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.card-meta { display:flex; gap:10px; font-size:0.8rem; color:var(--text-muted); }
.card-price { color:#10b981; font-weight:600; }
.work-card .scroll-card { min-width:200px; }
.tag-cloud { display:flex; flex-wrap:wrap; gap:6px; }
.tag-item { font-size:0.78rem; padding:4px 10px; background:var(--tertiary-bg); border-radius:12px; color:var(--text-muted); text-decoration:none; transition:all 0.15s; }
.tag-item:hover { background:var(--accent-color); color:#fff; }

/* ===== AUTH MODAL - 登录注册弹窗 ===== */
.auth-modal-overlay { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.75); display:none; align-items:center; justify-content:center; z-index:9999; backdrop-filter:blur(8px); }
.auth-modal-overlay.active { display:flex; }
.auth-modal { width:100%; max-width:440px; max-height:90vh; overflow-y:auto; background:var(--secondary-bg); border-radius:20px; box-shadow:0 24px 80px rgba(0,0,0,0.5); animation:modalSlideIn 0.3s ease; }
.auth-modal::-webkit-scrollbar { width:6px; }
.auth-modal::-webkit-scrollbar-thumb { background:var(--border-color); border-radius:3px; }
@keyframes modalSlideIn { from { opacity:0; transform:translateY(-30px) scale(0.95); } to { opacity:1; transform:translateY(0) scale(1); } }
@media (max-width:480px) {
  .auth-modal { max-width:95vw; max-height:85vh; }
  .auth-modal-body { padding:20px; }
  .auth-tab { padding:14px 10px; font-size:0.9rem; }
}
.auth-modal-header { display:flex; border-bottom:1px solid var(--border-color); }
.auth-tab { flex:1; padding:18px; text-align:center; font-size:1rem; font-weight:600; color:var(--text-muted); background:transparent; border:none; cursor:pointer; transition:all 0.2s; position:relative; }
.auth-tab.active { color:var(--accent-color); background:var(--tertiary-bg); }
.auth-tab.active::after { content:''; position:absolute; bottom:0; left:0; width:100%; height:2px; background:var(--gradient-start); }
.auth-modal-body { padding:32px; }
.auth-form { display:none; }
.auth-form.active { display:block; }
.auth-form .form-row { margin-bottom:20px; }
.auth-form label { display:block; font-size:0.85rem; color:var(--text-secondary); margin-bottom:8px; font-weight:500; }
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] { width:100%; padding:14px 16px; background:var(--tertiary-bg); border:1px solid var(--border-color); border-radius:12px; font-size:0.95rem; color:var(--text-primary); transition:all 0.2s; }
.auth-form input:focus { outline:none; border-color:var(--accent-color); box-shadow:0 0 0 3px rgba(102,126,234,0.15); }
.auth-form input::placeholder { color:var(--text-muted); }
.auth-submit { width:100%; padding:14px; background:linear-gradient(135deg,var(--gradient-start),var(--gradient-end)); color:#fff; border:none; border-radius:12px; font-size:1rem; font-weight:600; cursor:pointer; transition:all 0.25s; margin-top:8px; }
.auth-submit:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(102,126,234,0.4); }
.auth-submit:disabled { opacity:0.6; cursor:not-allowed; transform:none; }
.auth-links { text-align:center; margin-top:20px; font-size:0.85rem; }
.auth-links a { color:var(--accent-color); text-decoration:none; }
.auth-links a:hover { text-decoration:underline; }
.auth-error { background:rgba(239,68,68,0.1); border:1px solid rgba(239,68,68,0.3); color:#ef4444; padding:12px 16px; border-radius:10px; font-size:0.88rem; margin-bottom:20px; display:none; }
.auth-error.show { display:block; }
.auth-success { background:rgba(16,185,129,0.1); border:1px solid rgba(16,185,129,0.3); color:#10b981; padding:12px 16px; border-radius:10px; font-size:0.88rem; margin-bottom:20px; display:none; }
.auth-success.show { display:block; }
.auth-close { position:absolute; top:16px; right:16px; width:32px; height:32px; background:var(--tertiary-bg); border:none; border-radius:50%; color:var(--text-muted); cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:1.2rem; transition:all 0.2s; }
.auth-close:hover { background:rgba(239,68,68,0.2); color:#ef4444; }

/* ===== PROFILE PAGE - 个人中心 ===== */
.profile-container { max-width:1200px; margin:0 auto; padding:20px; }
.profile-header { background:var(--secondary-bg); border-radius:20px; padding:32px; margin-bottom:24px; display:flex; gap:28px; align-items:center; border:1px solid var(--border-color); }
.profile-avatar-wrapper { position:relative; flex-shrink:0; }
.profile-avatar { width:120px; height:120px; border-radius:50%; overflow:hidden; border:4px solid var(--accent-color); box-shadow:0 8px 32px rgba(102,126,234,0.3); }
.profile-avatar img { width:100%; height:100%; object-fit:cover; }
.avatar-placeholder-profile { width:100%; height:100%; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,var(--gradient-start),var(--gradient-end)); color:#fff; font-size:2.5rem; font-weight:700; }
.profile-info { flex:1; }
.profile-name-row { display:flex; align-items:center; gap:12px; margin-bottom:8px; }
.profile-display-name { font-size:1.8rem; font-weight:700; color:#fff; }
.level-badge-lg { display:inline-flex; align-items:center; gap:6px; padding:6px 14px; border-radius:12px; font-size:0.85rem; font-weight:700; }
.level-badge-lg.lv1 { background:linear-gradient(135deg,#60a5fa,#3b82f6); color:#fff; }
.level-badge-lg.lv2 { background:linear-gradient(135deg,#f59e0b,#d97706); color:#000; }
.level-badge-lg.lv3 { background:linear-gradient(135deg,#ec4899,#be185d); color:#fff; }
.profile-bio { color:var(--text-secondary); font-size:0.95rem; margin:12px 0; line-height:1.6; }
.profile-stats { display:flex; gap:32px; margin-top:16px; }
.stat-box { text-align:center; }
.stat-box .stat-num { display:block; font-size:1.8rem; font-weight:700; color:#fff; }
.stat-box .stat-label { display:block; font-size:0.82rem; color:var(--text-muted); margin-top:4px; }

/* Level Progress Bar */
.level-progress-section { margin-top:20px; padding-top:20px; border-top:1px solid var(--border-color); }
.level-progress-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.level-progress-label { font-size:0.9rem; color:var(--text-secondary); }
.level-progress-label strong { color:var(--accent-color); }
.level-progress-bar { height:10px; background:var(--tertiary-bg); border-radius:10px; overflow:hidden; position:relative; }
.level-progress-fill { height:100%; background:linear-gradient(90deg,var(--gradient-start),var(--gradient-end)); border-radius:10px; transition:width 0.5s ease; }
.level-progress-text { text-align:right; font-size:0.8rem; color:var(--text-muted); margin-top:8px; }

/* Profile Tabs */
.profile-tabs { display:flex; gap:4px; background:var(--secondary-bg); padding:8px; border-radius:16px; margin-bottom:24px; border:1px solid var(--border-color); flex-wrap:wrap; }
.profile-tab { flex:1; min-width:100px; padding:12px 20px; background:transparent; border:none; border-radius:12px; color:var(--text-muted); font-size:0.9rem; font-weight:500; cursor:pointer; transition:all 0.2s; text-align:center; }
.profile-tab:hover { background:var(--tertiary-bg); color:var(--text-secondary); }
.profile-tab.active { background:linear-gradient(135deg,var(--gradient-start),var(--gradient-end)); color:#fff; font-weight:600; }

/* Tab Content */
.profile-tab-content { display:none; }
.profile-tab-content.active { display:block; }

/* Settings Tab */
.settings-form { background:var(--secondary-bg); border-radius:16px; padding:32px; border:1px solid var(--border-color); }
.settings-section { margin-bottom:32px; }
.settings-section:last-child { margin-bottom:0; }
.settings-section-title { font-size:1.1rem; font-weight:600; color:#fff; margin-bottom:20px; padding-bottom:12px; border-bottom:1px solid var(--border-color); }
.settings-row { margin-bottom:20px; }
.settings-row label { display:block; font-size:0.88rem; color:var(--text-secondary); margin-bottom:8px; font-weight:500; }
.settings-row input[type="text"],
.settings-row input[type="email"],
.settings-row textarea { width:100%; padding:14px 16px; background:var(--tertiary-bg); border:1px solid var(--border-color); border-radius:12px; font-size:0.95rem; color:var(--text-primary); transition:all 0.2s; }
.settings-row textarea { min-height:120px; resize:vertical; }
.settings-row input:focus,
.settings-row textarea:focus { outline:none; border-color:var(--accent-color); box-shadow:0 0 0 3px rgba(102,126,234,0.15); }
.password-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.settings-submit { padding:14px 32px; background:linear-gradient(135deg,var(--gradient-start),var(--gradient-end)); color:#fff; border:none; border-radius:12px; font-size:0.95rem; font-weight:600; cursor:pointer; transition:all 0.25s; }
.settings-submit:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(102,126,234,0.4); }

/* Points Tab */
.points-overview { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:20px; margin-bottom:24px; }
.points-card { background:var(--secondary-bg); border-radius:16px; padding:24px; border:1px solid var(--border-color); }
.points-card-header { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.points-card-icon { width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:1.5rem; }
.points-card-icon.balance { background:linear-gradient(135deg,#f59e0b,#d97706); }
.points-card-icon.earning { background:linear-gradient(135deg,#10b981,#059669); }
.points-card-icon.spending { background:linear-gradient(135deg,#3b82f6,#1d4ed8); }
.points-card-title { font-size:0.9rem; color:var(--text-muted); }
.points-card-value { font-size:2rem; font-weight:700; color:#fff; margin-top:8px; }
.points-rules { background:var(--secondary-bg); border-radius:16px; padding:24px; border:1px solid var(--border-color); }
.points-rules-title { font-size:1.1rem; font-weight:600; color:#fff; margin-bottom:20px; }
.points-rules-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.points-rule-group h4 { font-size:0.95rem; color:var(--accent-color); margin-bottom:12px; }
.points-rule-group ul { list-style:none; padding:0; }
.points-rule-group li { padding:8px 0; font-size:0.88rem; color:var(--text-secondary); border-bottom:1px solid rgba(255,255,255,0.04); }
.points-rule-group li:last-child { border-bottom:none; }
.points-rule-group li strong { color:#fff; }

/* Recharge Section */
.recharge-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:16px; margin-top:24px; }
.recharge-card { background:var(--secondary-bg); border:2px solid var(--border-color); border-radius:16px; padding:24px; text-align:center; cursor:pointer; transition:all 0.25s; position:relative; overflow:hidden; }
.recharge-card:hover { border-color:var(--accent-color); transform:translateY(-4px); box-shadow:0 12px 40px rgba(102,126,234,0.3); }
.recharge-card.popular { border-color:#f59e0b; }
.recharge-card.popular::before { content:'推荐'; position:absolute; top:12px; right:12px; background:linear-gradient(135deg,#f59e0b,#d97706); color:#000; font-size:0.72rem; font-weight:700; padding:4px 10px; border-radius:8px; }
.recharge-amount { font-size:2rem; font-weight:700; color:#fff; }
.recharge-amount small { font-size:1rem; color:var(--text-muted); }
.recharge-price { font-size:0.95rem; color:var(--text-secondary); margin-top:8px; }

/* Favorites Tab */
.favorites-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:20px; }
.favorite-card { background:var(--secondary-bg); border:1px solid var(--border-color); border-radius:16px; overflow:hidden; transition:all 0.25s; }
.favorite-card:hover { transform:translateY(-4px); border-color:var(--accent-color); box-shadow:0 8px 32px rgba(102,126,234,0.2); }
.favorite-card-header { padding:20px; border-bottom:1px solid var(--border-color); }
.favorite-card-title { font-size:1rem; font-weight:600; color:#fff; margin-bottom:8px; }
.favorite-card-meta { display:flex; gap:12px; font-size:0.82rem; color:var(--text-muted); }
.favorite-card-body { padding:20px; }
.favorite-card-actions { display:flex; gap:8px; }
.favorite-card-actions a { flex:1; padding:10px; text-align:center; background:var(--tertiary-bg); color:var(--text-secondary); text-decoration:none; border-radius:10px; font-size:0.85rem; transition:all 0.2s; }
.favorite-card-actions a:hover { background:var(--accent-color); color:#fff; }

/* Invite Tab */
.invite-container { background:var(--secondary-bg); border-radius:16px; padding:32px; border:1px solid var(--border-color); }
.invite-link-section { text-align:center; margin-bottom:32px; }
.invite-link-label { font-size:0.9rem; color:var(--text-muted); margin-bottom:12px; }
.invite-link-box { display:flex; gap:12px; max-width:500px; margin:0 auto; }
.invite-link-input { flex:1; padding:14px 16px; background:var(--tertiary-bg); border:1px solid var(--border-color); border-radius:12px; font-size:0.9rem; color:var(--text-primary); }
.invite-copy-btn { padding:14px 24px; background:linear-gradient(135deg,var(--gradient-start),var(--gradient-end)); color:#fff; border:none; border-radius:12px; font-size:0.9rem; font-weight:600; cursor:pointer; white-space:nowrap; transition:all 0.25s; }
.invite-copy-btn:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(102,126,234,0.4); }
.invite-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-bottom:32px; }
.invite-stat { text-align:center; padding:20px; background:var(--tertiary-bg); border-radius:12px; }
.invite-stat-value { font-size:2rem; font-weight:700; color:#fff; }
.invite-stat-label { font-size:0.85rem; color:var(--text-muted); margin-top:4px; }
.invite-rules { background:var(--tertiary-bg); border-radius:12px; padding:24px; }
.invite-rules h4 { font-size:1rem; color:#fff; margin-bottom:16px; }
.invite-rules ul { list-style:none; padding:0; }
.invite-rules li { padding:10px 0; font-size:0.88rem; color:var(--text-secondary); border-bottom:1px solid var(--border-color); }
.invite-rules li:last-child { border-bottom:none; }
.invite-rules strong { color:var(--accent-color); }

/* ================================================
   AI资讯中心样式 (archive-bulletins.php)
   ================================================ */

/* Archive Header */
.news-archive-header {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1040 50%, #0d1a3a 100%);
    padding: 60px 0 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.news-archive-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(102,126,234,0.15) 0%, transparent 70%);
}
.news-archive-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    position: relative;
    letter-spacing: -0.02em;
}
.news-archive-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
    position: relative;
}

/* Category Filter Bar */
.news-filter-bar {
    background: var(--secondary-bg, #12122a);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 64px;
    z-index: 100;
}
.news-filter-tabs {
    display: flex;
    gap: 4px;
    padding: 12px 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.news-filter-tabs::-webkit-scrollbar { display: none; }
.news-filter-tab {
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    white-space: nowrap;
    transition: all 0.2s;
    text-decoration: none;
    border: 1px solid transparent;
}
.news-filter-tab:hover {
    color: #fff;
    background: rgba(102,126,234,0.15);
}
.news-filter-tab.active {
    background: linear-gradient(135deg, var(--gradient-start, #667eea), var(--gradient-end, #764ba2));
    color: #fff;
    font-weight: 600;
    border-color: rgba(102,126,234,0.4);
}

/* News Archive Content */
.news-archive-content {
    padding: 48px 0 80px;
    min-height: 60vh;
}

/* Featured Article */
.news-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    background: var(--secondary-bg, #12122a);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.25s, box-shadow 0.25s;
}
.news-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.news-featured-img {
    aspect-ratio: 16/10;
    overflow: hidden;
}
.news-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.news-featured:hover .news-featured-img img {
    transform: scale(1.05);
}
.news-featured-body {
    padding: 32px 32px 32px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.news-featured-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 12px 0 16px;
    line-height: 1.4;
}
.news-featured-title a {
    color: inherit;
    text-decoration: none;
}
.news-featured-title a:hover { color: var(--accent-color, #667eea); }
.news-featured-excerpt {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    margin: 0 0 20px;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* News Card */
.news-card {
    background: var(--secondary-bg, #12122a);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.25s, box-shadow 0.25s;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.25);
    border-color: rgba(102,126,234,0.3);
}
.news-card-img {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.news-card:hover .news-card-img img { transform: scale(1.06); }
.news-card-body { padding: 20px; }
.news-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 10px 0 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-title a { color: inherit; text-decoration: none; }
.news-card-title a:hover { color: var(--accent-color, #667eea); }
.news-card-excerpt {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* News Tags */
.news-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(102,126,234,0.2), rgba(118,75,162,0.2));
    color: #a78bfa;
    border: 1px solid rgba(102,126,234,0.25);
    text-decoration: none;
    transition: all 0.2s;
}
.news-tag:hover {
    background: linear-gradient(135deg, rgba(102,126,234,0.35), rgba(118,75,162,0.35));
    color: #c4b5fd;
}
.news-tag-featured {
    padding: 5px 14px;
    font-size: 0.82rem;
}

/* News Meta */
.news-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}
.news-meta time { color: inherit; }
.news-meta-sep { opacity: 0.5; }
.news-meta-sm { margin-top: 10px; }

/* Pagination */
.news-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}
.news-pagination .page-numbers {
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    background: var(--secondary-bg, #12122a);
    border: 1px solid rgba(255,255,255,0.06);
    text-decoration: none;
    transition: all 0.2s;
}
.news-pagination .page-numbers:hover,
.news-pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--gradient-start, #667eea), var(--gradient-end, #764ba2));
    color: #fff;
    border-color: rgba(102,126,234,0.4);
}

/* Empty State */
.news-empty {
    text-align: center;
    padding: 80px 20px;
}
.news-empty-icon { font-size: 4rem; margin-bottom: 16px; }
.news-empty-text { font-size: 1.2rem; color: rgba(255,255,255,0.6); margin: 0 0 8px; }
.news-empty-sub { font-size: 0.9rem; color: rgba(255,255,255,0.3); margin: 0; }

/* ================================================
   Article Detail (single-bulletins.php)
   ================================================ */

.article-header {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1040 50%, #0d1a3a 100%);
    padding: 48px 0 40px;
}
.article-category-tag {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(102,126,234,0.25), rgba(118,75,162,0.25));
    color: #a78bfa;
    border: 1px solid rgba(102,126,234,0.3);
    text-decoration: none;
    margin-bottom: 16px;
    transition: all 0.2s;
}
.article-category-tag:hover {
    background: linear-gradient(135deg, rgba(102,126,234,0.4), rgba(118,75,162,0.4));
    color: #c4b5fd;
}
.article-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px;
    line-height: 1.3;
    letter-spacing: -0.02em;
    max-width: 900px;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}
.article-author { color: rgba(255,255,255,0.55); font-weight: 500; }
.article-meta-sep { opacity: 0.4; }

.article-body-wrap { padding: 48px 0 80px; }

.article-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    align-items: start;
}

/* Article Content */
.article-content {
    background: var(--secondary-bg, #12122a);
    border-radius: 20px;
    padding: 48px;
    border: 1px solid rgba(255,255,255,0.06);
}
.article-featured-img {
    margin: 0 0 32px;
    border-radius: 12px;
    overflow: hidden;
}
.article-featured-img img { width: 100%; height: auto; display: block; }
.article-text {
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.8);
}
.article-text p { margin: 0 0 1.5em; }
.article-text h2, .article-text h3 { color: #fff; margin: 1.8em 0 0.8em; }
.article-text a { color: #a78bfa; text-decoration: none; border-bottom: 1px solid rgba(167,139,250,0.3); }
.article-text a:hover { border-bottom-color: #a78bfa; }
.article-text blockquote {
    margin: 2em 0;
    padding: 20px 24px;
    background: rgba(102,126,234,0.08);
    border-left: 3px solid #667eea;
    border-radius: 0 12px 12px 0;
    color: rgba(255,255,255,0.7);
    font-style: italic;
}
.article-text img { max-width: 100%; border-radius: 8px; margin: 1em 0; }
.article-text ul, .article-text ol { padding-left: 1.5em; margin: 1em 0; }
.article-text li { margin: 0.4em 0; }

/* Article Footer */
.article-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.article-tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.article-tags-label { font-size: 0.85rem; color: rgba(255,255,255,0.4); }
.article-tag {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    background: linear-gradient(135deg, rgba(102,126,234,0.2), rgba(118,75,162,0.2));
    color: #a78bfa;
    border: 1px solid rgba(102,126,234,0.25);
    text-decoration: none;
}

/* Article Navigation */
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
}
.article-nav-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--tertiary-bg, #1a1a3a);
    border-radius: 12px;
    text-decoration: none;
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s;
}
.article-nav-link:hover { background: rgba(102,126,234,0.12); border-color: rgba(102,126,234,0.3); color: #fff; }
.article-nav-next { justify-content: flex-end; text-align: right; }
.article-nav-arrow { color: var(--accent-color, #667eea); font-size: 1rem; }
.article-nav-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Article Sidebar */
.article-sidebar { position: sticky; top: 100px; }
.sidebar-back-btn {
    display: block;
    text-align: center;
    padding: 12px;
    background: var(--secondary-bg, #12122a);
    border-radius: 12px;
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 20px;
    transition: all 0.2s;
}
.sidebar-back-btn:hover { background: rgba(102,126,234,0.12); color: #fff; border-color: rgba(102,126,234,0.3); }
.sidebar-share {
    background: var(--secondary-bg, #12122a);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.06);
}
.sidebar-widget-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 14px;
}
.share-buttons { display: flex; flex-direction: column; gap: 8px; }
.share-btn {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.08);
    background: var(--tertiary-bg, #1a1a3a);
    color: rgba(255,255,255,0.7);
    transition: all 0.2s;
}
.share-btn:hover { background: rgba(102,126,234,0.15); border-color: rgba(102,126,234,0.3); color: #fff; }

/* Responsive */
@media (max-width: 1024px) {
    .news-featured { grid-template-columns: 1fr; }
    .news-featured-img { aspect-ratio: 16/8; }
    .news-featured-body { padding: 24px; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
    .article-content { padding: 28px; }
}
@media (max-width: 640px) {
    .news-archive-header { padding: 40px 0 32px; }
    .news-archive-title { font-size: 1.8rem; }
    .news-grid { grid-template-columns: 1fr; }
    .news-featured-title { font-size: 1.25rem; }
    .article-title { font-size: 1.5rem; }
    .article-content { padding: 20px; }
    .article-nav { flex-direction: column; }
}
/* ========================================
   PROBLEM 3: Multi-plan pricing cards
   ======================================== */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.pricing-card {
    position: relative;
    background: var(--tertiary-bg, #1a1d2e);
    border: 1px solid var(--border-color, rgba(102,126,234,0.2));
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s;
}
.pricing-card:hover {
    border-color: rgba(102,126,234,0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102,126,234,0.15);
}
.pricing-card.popular {
    border-color: var(--gradient-start, #667eea);
    background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
    box-shadow: 0 0 20px rgba(102,126,234,0.2);
}
.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gradient-start, #667eea), var(--gradient-end, #764ba2));
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 12px;
    border-radius: 10px;
    font-weight: 700;
    white-space: nowrap;
}
.pricing-name {
    font-size: 0.9rem;
    color: var(--text-secondary, #a0aec0);
    margin-bottom: 8px;
    font-weight: 600;
}
.pricing-price {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #a0aec0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}
.pricing-period {
    font-size: 0.75rem;
    color: var(--text-muted, #718096);
}

/* ========================================
   PROBLEM 5: Join community button
   ======================================== */
.single-actions a.btn-secondary[href*="community"] {
    background: rgba(102,126,234,0.12) !important;
    border-color: rgba(102,126,234,0.35) !important;
    color: #a5b4fc !important;
}
.single-actions a.btn-secondary[href*="community"]:hover {
    background: rgba(102,126,234,0.25) !important;
    border-color: rgba(102,126,234,0.6) !important;
    color: #c7d2fe !important;
}

/* ========================================
   PROBLEM 6: Article info bar (后台信息关联前端)
   ======================================== */
.article-info-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
    background: var(--tertiary-bg, #1a1d2e);
    border: 1px solid var(--border-color, rgba(102,126,234,0.2));
    border-radius: 10px;
    margin: 28px 0 20px;
    align-items: center;
}
.article-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary, #a0aec0);
}
.article-info-item svg { color: var(--gradient-start, #667eea); flex-shrink: 0; }
.article-info-item a { color: var(--gradient-start, #667eea); }
.article-info-item a:hover { color: var(--gradient-end, #764ba2); }

/* Back to list button */
.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0;
    padding: 12px 16px;
    background: var(--tertiary-bg, #1a1d2e);
    border-radius: 8px;
}
.btn-back-to-list {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(102,126,234,0.15), rgba(118,75,162,0.15));
    border: 1px solid rgba(102,126,234,0.3);
    border-radius: 8px;
    color: #a5b4fc;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s;
}
.btn-back-to-list:hover {
    background: linear-gradient(135deg, rgba(102,126,234,0.25), rgba(118,75,162,0.25));
    border-color: rgba(102,126,234,0.5);
    color: #fff;
}

/* ============================================
   PROFILE PAGE - 缺失的样式补充
   ============================================ */

/* 主容器 */
.profile-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
}

/* 头部卡片 */
.profile-header-card {
    background: var(--secondary-bg, #1a1a2e);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
}

/* 头像区域 */
.profile-avatar-section {
    flex-shrink: 0;
    position: relative;
}

.profile-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #fff;
    border: 4px solid rgba(102,126,234,0.5);
}

/* 信息区域 */
.profile-info-section {
    flex: 1;
    min-width: 200px;
}

.profile-user-meta {
    margin-bottom: 12px;
}

.profile-display-name {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
}

/* 等级徽章 */
.profile-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.profile-level-badge.level-1 { background: rgba(102,126,234,0.2); color: #a78bfa; border: 1px solid rgba(102,126,234,0.4); }
.profile-level-badge.level-2 { background: rgba(16,185,129,0.2); color: #34d399; border: 1px solid rgba(16,185,129,0.4); }
.profile-level-badge.level-3 { background: rgba(245,158,11,0.2); color: #fbbf24; border: 1px solid rgba(245,158,11,0.4); }

/* 统计行 */
.profile-stats-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.profile-stat-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 12px 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.06);
    min-width: 90px;
}

.stat-num {
    font-size: 22px;
    font-weight: 700;
    color: #667eea;
    display: block;
}

.stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    display: block;
    margin-top: 2px;
}

/* 积分条 */
.profile-points-bar {
    margin-top: 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 14px 20px;
    border: 1px solid rgba(255,255,255,0.06);
}

.points-balance-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.points-icon {
    font-size: 20px;
}

.points-num {
    font-size: 24px;
    font-weight: 700;
    color: #fbbf24;
}

.points-detail-link {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.points-detail-link:hover { color: #667eea; }

/* 等级进度条 */
.level-progress-wrap {
    margin-top: 12px;
}

.level-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
}

.level-progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    overflow: hidden;
}

.level-progress-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.6s ease;
}

.level-next-hint {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-top: 4px;
    text-align: right;
}

/* 标签导航 */
.profile-tabs-nav {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    border: 1px solid rgba(255,255,255,0.05);
}

.profile-tabs-nav a {
    flex: 1;
    min-width: 80px;
    padding: 10px 16px;
    text-align: center;
    border-radius: 8px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.profile-tabs-nav a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.profile-tabs-nav a.active { background: rgba(102,126,234,0.2); color: #a78bfa; }

/* 概览网格 */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.overview-card {
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.06);
}

.overview-card h3 {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    margin: 0 0 12px 0;
    font-weight: 500;
}

/* 信息表格 */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table td {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.info-table td:first-child {
    color: rgba(255,255,255,0.4);
    width: 100px;
}

/* 快捷操作 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.qa-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(102,126,234,0.1);
    border: 1px solid rgba(102,126,234,0.2);
    border-radius: 10px;
    color: #a78bfa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.qa-btn:hover {
    background: rgba(102,126,234,0.2);
    border-color: rgba(102,126,234,0.4);
    color: #fff;
}

/* 设置卡片 */
.settings-card {
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.06);
}

.settings-card h3 {
    font-size: 16px;
    color: #fff;
    margin: 0 0 16px 0;
    font-weight: 600;
}

/* 收藏列表 */
.fav-list { display: flex; flex-direction: column; gap: 10px; }

.fav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    text-decoration: none;
    transition: all 0.2s;
    gap: 12px;
}

.fav-item:hover { background: rgba(255,255,255,0.07); border-color: rgba(102,126,234,0.3); }

.fav-title {
    flex: 1;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fav-type {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(102,126,234,0.15);
    color: #a78bfa;
    white-space: nowrap;
}

.fav-date {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    white-space: nowrap;
}

/* 邀请卡片 */
.invite-card {
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.06);
}

.invite-box {
    background: rgba(102,126,234,0.1);
    border: 1px dashed rgba(102,126,234,0.4);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    font-size: 16px;
    color: #a78bfa;
    word-break: break-all;
    margin: 12px 0;
}

.copy-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-link-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* 列表卡片 */
.list-card {
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* 等级权益 */
.level-benefits {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.level-benefits span {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(102,126,234,0.1);
    color: #a78bfa;
    border: 1px solid rgba(102,126,234,0.2);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255,255,255,0.4);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 14px;
    margin: 0;
}

/* 积分卡片 */
.points-card {
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 邀请统计 */
.invite-stats {
    display: flex;
    gap: 20px;
    margin: 16px 0;
}

.inv-stat {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.06);
}

.invite-link-row {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* 移动端适配 */
@media (max-width: 640px) {
    .profile-header-card { flex-direction: column; align-items: flex-start; padding: 20px; }
    .profile-stats-row { gap: 12px; }
    .profile-stat-card { min-width: 70px; padding: 10px 14px; }
    .stat-num { font-size: 18px; }
    .profile-tabs-nav a { min-width: 60px; padding: 8px 10px; font-size: 13px; }
    .overview-grid { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: 1fr 1fr; }
    .invite-stats { flex-direction: column; gap: 10px; }
}


/* ========================================
   QskeNav 补充CSS - 修复版
   ======================================== */

/* 问题2: 菜单遮挡修复 - 提升header z-index */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1001;
    background: var(--primary-bg);
}

.nav-menu .sub-menu {
    z-index: 1100 !important;
}

/* 问题7: 资讯详情页布局修复 */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 1024px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
    .detail-sidebar {
        order: -1;
    }
}

.detail-main {
    min-width: 0;
}

.detail-sidebar {
    position: sticky;
    top: 90px;
}

/* 收藏按钮样式 */
.collect-btn, .favorite-btn {
    cursor: pointer;
    transition: all 0.3s ease;
}

.collect-btn.collected, .favorite-btn.collected {
    color: #ef4444 !important;
    border-color: #ef4444 !important;
}

.collect-btn.collected svg {
    fill: #ef4444;
}

/* 文章信息栏 */
.article-info-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 20px;
    background: var(--tertiary-bg);
    border-radius: 12px;
    margin: 24px 0;
}

.article-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.article-info-item svg {
    color: var(--accent-color);
}

.article-info-item a {
    color: var(--accent-color);
    text-decoration: none;
}

.article-info-item a:hover {
    text-decoration: underline;
}

/* 详情页操作按钮 */
.detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 24px 0;
    padding: 20px;
    background: var(--tertiary-bg);
    border-radius: 12px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    border-color: var(--accent-color);
    background: rgba(102, 126, 234, 0.1);
}

/* 分类标签 */
.detail-category-tag {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
    font-size: 0.85rem;
    border-radius: 20px;
    margin-bottom: 12px;
    text-decoration: none;
}

.detail-category-tag:hover {
    opacity: 0.9;
}

/* 详情标签 */
.detail-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
}

.tags-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.tag-item {
    display: inline-block;
    padding: 6px 12px;
    background: var(--tertiary-bg);
    color: var(--text-primary);
    font-size: 0.85rem;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid var(--border-color);
}

.tag-item:hover {
    border-color: var(--accent-color);
}

/* 文章导航 */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.article-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
}

.article-nav a:hover {
    border-color: var(--accent-color);
    background: rgba(102, 126, 234, 0.05);
}

.nav-prev {
    justify-content: flex-start;
}

.nav-next {
    justify-content: flex-end;
}

.nav-arrow {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.nav-title {
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .article-nav {
        grid-template-columns: 1fr;
    }
}

/* 相关文章列表 */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--tertiary-bg);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
}

.related-item:hover {
    background: rgba(102, 126, 234, 0.1);
}

.related-title {
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 8px;
}

/* 分类树 */
.category-tree {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--tertiary-bg);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.category-item:hover, .category-item.active {
    background: rgba(102, 126, 234, 0.15);
    color: var(--accent-color);
}

.category-item-name {
    flex: 1;
}

.category-item-count {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Toast通知 */
.toast-notification {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* 充值按钮 */
.recharge-btn {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
    font-size: 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    margin-left: 8px;
}

.recharge-btn:hover {
    opacity: 0.9;
}

/* 社区帖子列表 */
.community-post-item {
    transition: all 0.2s;
}

.community-post-item:hover {
    transform: translateX(4px);
}

.community-post-item h4 a:hover {
    color: var(--accent-color);
}


/* === LOGIN MODAL FIX === */
.auth-form-wrap { display: none; }
.auth-form-wrap.active { display: block; padding: 0 24px; }
.auth-form-wrap.active .auth-form { display: block; }
.auth-field { margin-bottom: 18px; }
.auth-field label { display: block; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 8px; font-weight: 500; }
.auth-field input[type="text"], .auth-field input[type="email"], .auth-field input[type="password"] { width: 100%; padding: 14px 16px; background: var(--tertiary-bg); border: 1px solid var(--border-color); border-radius: 10px; color: var(--text-primary); font-size: 0.95rem; box-sizing: border-box; transition: border-color 0.2s; }
.auth-field input:focus { border-color: var(--accent-color); outline: none; }
.pwd-field { position: relative; }
.pwd-field input { padding-right: 45px !important; }
.pwd-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 16px; padding: 4px; }
.auth-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 0.85rem; }
.remember-me { color: var(--text-muted); cursor: pointer; }
.forgot-pwd { color: var(--accent-color); text-decoration: none; }
.forgot-pwd:hover { text-decoration: underline; }
.auth-submit-btn { width: 100%; padding: 14px; background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)); border: none; border-radius: 10px; color: #fff; font-size: 1rem; font-weight: 600; cursor: pointer; transition: opacity 0.2s; }
.auth-submit-btn:hover { opacity: 0.9; }
.auth-divider { text-align: center; margin: 20px 0; position: relative; }
.auth-divider::before { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: var(--border-color); }
.auth-divider span { position: relative; background: var(--secondary-bg); padding: 0 16px; color: var(--text-muted); font-size: 0.85rem; }
.social-login { display: flex; gap: 12px; justify-content: center; }
.social-btn { display: flex; align-items: center; gap: 8px; padding: 10px 24px; border-radius: 10px; border: 1px solid var(--border-color); background: var(--tertiary-bg); color: var(--text-primary); cursor: pointer; font-size: 0.9rem; transition: all 0.2s; }
.social-btn:hover:not(:disabled) { border-color: var(--accent-color); }
.social-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-msg { margin-top: 16px; min-height: 24px; }
.auth-loading { color: var(--accent-color); text-align: center; padding: 10px; }
.auth-success { color: #10b981; text-align: center; padding: 10px; background: rgba(16,185,129,0.1); border-radius: 8px; }
.auth-error { color: #ef4444; text-align: center; padding: 10px; background: rgba(239,68,68,0.1); border-radius: 8px; }

/* Header overlap fix */
#main-content { padding-top: var(--header-height); }
.archive-header { padding-top: calc(var(--header-height) + 30px); padding-bottom: 24px; }
