/* ====== 全局变量 - 圆润卡片风格 ====== */
:root {
    /* 主色调 - 温暖活力 */
    --primary: #FF8C42;
    --primary-dark: #E67335;
    --primary-light: #FFA726;
    --primary-lighter: #FFCC80;
    --primary-bg: #FFF3E0;
    --primary-soft: #FFE0B2;
    
    /* 辅助色 */
    --secondary: #7C8BA1;
    --success: #66BB6A;
    --warning: #FFA726;
    --error: #EF5350;
    
    /* 文字颜色 */
    --text-primary: #2D3142;
    --text-secondary: #5C6270;
    --text-muted: #9CA3AF;
    --text-light: #8B92A5;
    
    /* 背景色 */
    --bg-white: #ffffff;
    --bg-gray: #F8F9FE;
    --bg-light: #F0F2F8;
    --bg-soft: #FFF8F0;
    --bg-cream: #FFFCF8;
    --bg-blue-light: #EEF2FF;
    --bg-purple-light: #F3E8FF;
    --bg-green-light: #ECFDF5;
    
    /* 边框 */
    --border-color: #E8ECF4;
    --border-light: #F0F2F8;
    --border-orange: #FFD8B2;
    
    /* 圆角 - 超大圆润 */
    --radius-sm: 12px;
    --radius: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-3xl: 40px;
    --radius-full: 9999px;
    
    /* 阴影 - 柔和悬浮 */
    --shadow-sm: 0 2px 8px rgba(45, 49, 66, 0.04);
    --shadow: 0 4px 12px rgba(45, 49, 66, 0.06);
    --shadow-md: 0 8px 24px rgba(45, 49, 66, 0.08);
    --shadow-lg: 0 16px 40px rgba(45, 49, 66, 0.1);
    --shadow-xl: 0 24px 60px rgba(45, 49, 66, 0.12);
    --shadow-orange: 0 4px 20px rgba(255, 140, 66, 0.2);
    --shadow-orange-lg: 0 8px 30px rgba(255, 140, 66, 0.25);
    --shadow-card: 0 8px 32px rgba(45, 49, 66, 0.08);
    --shadow-card-hover: 0 16px 48px rgba(45, 49, 66, 0.12);
    
    /* 过渡 */
    --transition: all 0.25s ease;
    --transition-slow: all 0.4s ease;
    --transition-bounce: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

/* ====== 基础重置 ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ====== 导航栏 - 圆润风格 ====== */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1200px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1.5px solid rgba(232, 236, 244, 0.6);
}

.navbar:hover {
    box-shadow: var(--shadow-orange);
    border-color: var(--border-orange);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-orange);
    transition: var(--transition-bounce);
}

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

.nav-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    gap: 4px;
    background: var(--bg-gray);
    padding: 5px;
    border-radius: var(--radius-full);
    flex-shrink: 1;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.nav-link:hover {
    color: var(--primary);
    background: white;
    box-shadow: var(--shadow-sm);
}

.nav-link.active {
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    box-shadow: var(--shadow-orange);
}

.nav-external {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    box-shadow: var(--shadow-orange);
    animation: badgePulse 2s ease-in-out infinite;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-text {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.25s ease;
}

.btn-text:hover {
    background: rgba(99, 102, 241, 0.06);
    color: #6366f1;
}

.btn-primary {
    padding: 14px 28px;
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-nav {
    padding: 10px 22px;
    font-size: 14px;
}

.btn-secondary {
    padding: 9px 20px;
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-secondary:hover {
    background: #f5f3ff;
    border-color: #c7d2fe;
    color: #6366f1;
}

.btn-danger {
    padding: 9px 20px;
    background: white;
    color: var(--error);
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-danger:hover {
    background: #fef2f2;
    border-color: var(--error);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-arrow {
    font-size: 11px;
    transition: var(--transition);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
}

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

.dropdown-menu a {
    display: block;
    padding: 12px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.dropdown-menu a:first-child {
    border-radius: var(--radius) var(--radius) 0 0;
}

.dropdown-menu a:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
}

.dropdown-menu a:hover {
    background: rgba(99, 102, 241, 0.06);
    color: #6366f1;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
}

/* ====== Hero 区域 - 极简大气风格 ====== */
.hero {
    padding: 140px 24px 80px;
    background: linear-gradient(180deg, #f8faff 0%, #f0f4ff 40%, #faf5ff 70%, var(--bg-white) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 5%;
    left: -15%;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 5%;
    right: -15%;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: #6366f1;
    margin-bottom: 28px;
}

.hero-content {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero 信任指标 */
.hero-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.hero-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

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

.platform-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.25s ease;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.badge:hover {
    border-color: #c7d2fe;
    background: #f5f3ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.1);
}

.badge-icon {
    font-size: 20px;
}

.badge-check {
    color: var(--success);
    font-weight: bold;
    font-size: 16px;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    padding: 16px 36px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.btn-arrow {
    font-size: 20px;
    transition: transform 0.25s ease;
}

.btn-hero-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-hero-secondary {
    padding: 16px 36px;
    background: white;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-hero-secondary:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: #f5f3ff;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 16px;
}

/* 弹窗中的登录按钮 */
.auth-form-modal .btn-block {
    width: 100%;
    margin-top: 16px;
    padding: 16px 24px;
    font-size: 17px;
    font-weight: 700;
}

/* ====== 功能特性区域 - 极简卡片风格 ====== */
.features {
    padding: 100px 24px;
    background: var(--bg-gray);
    position: relative;
}

.section-title {
    font-size: 36px;
    font-weight: 900;
    text-align: center;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-title .highlight {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 56px;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    border-color: #c7d2fe;
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.25s ease;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.feature-card:hover .feature-icon-wrapper {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    transform: scale(1.05);
}

.feature-icon {
    font-size: 30px;
    transition: var(--transition);
}

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

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* 特性标签 */
.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.06);
    border-radius: var(--radius-full);
    font-size: 12px;
    color: #6366f1;
    margin-top: 14px;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.feature-tag::before {
    content: '★';
    font-weight: bold;
}

/* ====== 使用场景区域 ====== */
.scenarios {
    padding: 100px 0;
    background: var(--bg-gray);
}

.scenario-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.scenario-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
    transition: all 0.25s ease;
}

.scenario-card.large {
    grid-column: span 2;
    background: linear-gradient(135deg, #f5f3ff 0%, white 100%);
    border-color: #c7d2fe;
}

.scenario-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.scenario-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.scenario-icon {
    font-size: 36px;
}

.scenario-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.scenario-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.scenario-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.scenario-list li {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
}

.scenario-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* ====== 开发文档区域 ====== */
.docs-section {
    padding: 100px 0;
    background: var(--bg-gray);
}

.code-preview {
    max-width: 900px;
    margin: 0 auto 60px;
}

.code-window {
    background: #1e293b;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.05);
}

.code-header {
    background: #334155;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.code-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.code-title {
    color: #94a3b8;
    font-size: 13px;
    margin-left: auto;
}

.code-body {
    padding: 28px;
    color: #e2e8f0;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.7;
    overflow-x: auto;
}

.code-body .keyword { color: #c084fc; }
.code-body .string { color: #34d399; }
.code-body .comment { color: #64748b; }
.code-body .function { color: #60a5fa; }
.code-body .method { color: #fbbf24; }

.api-endpoints {
    max-width: 900px;
    margin: 0 auto;
}

.api-endpoints h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.endpoint-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.endpoint {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.endpoint:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 12px rgba(99,102,241,0.08);
    transform: translateX(4px);
}

.method {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    min-width: 70px;
    text-align: center;
}

.method.post { background: #dbeafe; color: #2563eb; }
.method.get { background: #dcfce7; color: #16a34a; }
.method.delete { background: #fee2e2; color: #dc2626; }

.path {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

.desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-left: auto;
}

.docs-cta {
    text-align: center;
    margin-top: 32px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* ====== 关于我们 / 创始人故事 ====== */
.about {
    padding: 100px 0;
    background: white;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.founder-section {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-light);
}

.founder-avatar {
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.25);
}

.founder-info {
    flex: 1;
}

.founder-name {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.founder-title {
    font-size: 16px;
    color: #6366f1;
    font-weight: 600;
    margin-bottom: 14px;
}

.founder-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 5px 14px;
    background: rgba(99, 102, 241, 0.06);
    color: #6366f1;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.12);
}

.story-section {
    margin-top: 40px;
}

.story-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 28px;
}

.story-content .story-paragraph {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 20px;
}

.story-content .story-paragraph strong {
    color: var(--text-primary);
}

.vision-list {
    list-style: none;
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.vision-list li {
    display: flex;
    gap: 20px;
    align-items: start;
}

.vision-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.06);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.vision-list strong {
    display: block;
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.vision-list p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.65;
}

.story-quote {
    background: linear-gradient(135deg, var(--primary-bg) 0%, #fef3c7 100%);
    border-left: 4px solid var(--primary);
    padding: 28px 32px;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-primary);
    font-style: italic;
    margin: 36px 0 16px;
}

.story-signature {
    text-align: right;
    font-size: 16px;
    color: var(--primary);
    font-weight: 600;
}

/* ====== 页脚 - 极简风格 ====== */
.footer {
    background: var(--bg-gray);
    color: var(--text-primary);
    margin: 0 24px 24px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.footer-content {
    padding: 56px 48px 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-logo {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.footer-logo-icon {
    width: 52px;
    height: 52px;
    background: white;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-bounce);
}

.footer-logo-icon:hover {
    transform: rotate(-10deg) scale(1.1);
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--border-light);
}

.footer-column h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
    transition: var(--transition-bounce);
    font-weight: 500;
}

.footer-column a:hover {
    color: var(--primary);
    transform: translateX(6px) scale(1.05);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 4px;
    font-weight: 500;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 13px !important;
}

.footer-icp {
    margin-top: 8px;
}

.footer-icp a {
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: none;
}

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

.footer-friend-links {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.friend-links-label {
    color: var(--text-muted);
    font-size: 13px;
    margin-right: 8px;
}

.friend-link {
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.friend-link:hover {
    color: var(--primary);
}

.friend-link-icon {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    object-fit: contain;
}

/* ====== 弹窗模态框 ====== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.25s ease;
}

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

.modal-dialog {
    background: white;
    border-radius: var(--radius-2xl);
    padding: 44px 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
    position: relative;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px); 
    }
    to { 
        opacity: 1;
        transform: translateY(0); 
    }
}

/* 创建任务弹窗 - 横向布局 */
.modal-create-task {
    max-width: 700px;
    padding: 36px 40px;
}

.create-task-form {
    margin-top: 28px;
}

.create-task-row {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.create-task-field {
    margin-bottom: 20px;
}

.create-task-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.create-task-field label .required {
    color: var(--primary);
    margin-left: 2px;
}

.create-task-field label .label-hint {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 13px;
}

.create-task-field input,
.create-task-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-size: 15px;
    transition: var(--transition);
    background: var(--bg-white);
}

.create-task-field input:focus,
.create-task-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 140, 66, 0.1);
}

.create-task-field input::placeholder,
.create-task-field textarea::placeholder {
    color: var(--text-muted);
}

.create-task-name {
    flex: 1.2;
}

.create-task-type {
    flex: 1;
}

/* 存储类型选项卡 */
.task-type-tabs {
    display: flex;
    gap: 12px;
}

.task-type-tab {
    flex: 1;
    cursor: pointer;
}

.task-type-tab input {
    display: none;
}

.task-type-tab .tab-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-gray);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: var(--transition-bounce);
}

.task-type-tab input:checked + .tab-content {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-orange);
}

.task-type-tab:hover .tab-content {
    border-color: var(--border-orange);
}

.task-type-tab .tab-icon {
    font-size: 20px;
}

.task-type-tab .tab-text {
    font-size: 14px;
    font-weight: 600;
}

.task-type-tab input:checked + .tab-content .tab-text {
    color: white;
}

.btn-create {
    margin-top: 8px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
}

@media (max-width: 640px) {
    .modal-create-task {
        max-width: 100%;
        margin: 16px;
        padding: 24px;
    }
    
    .create-task-row {
        flex-direction: column;
        gap: 0;
    }
    
    .task-type-tabs {
        gap: 8px;
    }
    
    .task-type-tab .tab-content {
        padding: 10px 12px;
        flex-direction: column;
        gap: 4px;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-light);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--error);
    color: white;
}

.modal-header {
    margin-bottom: 32px;
}

.modal-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.modal-header p {
    font-size: 15px;
    color: var(--text-muted);
}

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

.auth-form-modal label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-form-modal input,
.auth-form-modal textarea {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 15px;
    transition: var(--transition);
    outline: none;
    background: var(--bg-white);
}

.auth-form-modal input:focus,
.auth-form-modal textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.modal-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.modal-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* ====== 页面容器（任务管理/详情）====== */
.page-container {
    min-height: 100vh;
    padding-top: 120px;
    background: var(--bg-gray);
}

/* ====== 任务页面美化 ====== */
.tasks-page-header {
    padding: 0 24px;
    margin-bottom: 28px;
}

.tasks-header-card {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
}

.btn-back-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-back-card:hover {
    background: var(--primary-bg);
    color: var(--primary);
    border-color: var(--primary-light);
    transform: translateX(-2px);
}

.tasks-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.btn-create-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-create-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.tasks-content {
    padding: 0 24px 48px;
}

.tasks-grid-new {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(520px, 1fr));
    gap: 20px;
}

/* 任务卡片 - 大卡片布局 */
.task-square-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
}

.task-square-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* 图片任务 - 靛蓝风格 */
.task-square-card.task-type-image {
    border-top: 3px solid #6366f1;
}

.task-square-card.task-type-image:hover {
    border-color: #c7d2fe;
}

.task-square-card.task-type-image .task-type-badge {
    background: linear-gradient(135deg, #6366f1, #818cf8);
}

/* 数据任务 - 绿色风格 */
.task-square-card.task-type-data {
    border-top: 3px solid #10b981;
}

.task-square-card.task-type-data:hover {
    border-color: #a7f3d0;
}

.task-square-card.task-type-data .task-type-badge {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.task-card-top {
    display: flex;
    align-items: center;
    gap: 16px;
}

.task-type-badge {
    padding: 6px 14px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    margin-left: auto;
}

.task-card-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-gray);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.task-type-image .task-card-icon {
    background: rgba(99, 102, 241, 0.08);
}

.task-type-data .task-card-icon {
    background: rgba(16, 185, 129, 0.08);
}

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

.task-card-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-card-code-section {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-gray);
    border-radius: 10px;
}

.task-code-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.task-code-value {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    font-weight: 700;
    color: #6366f1;
}

.task-type-data .task-code-value {
    color: #10b981;
}

/* 可视化进度条 */
.task-card-usage-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.usage-bar-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.usage-bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.usage-bar-header span:last-child {
    font-weight: 600;
    color: var(--text-secondary);
}

.usage-bar-track {
    width: 100%;
    height: 6px;
    background: var(--bg-gray);
    border-radius: 3px;
    overflow: hidden;
}

.usage-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.task-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.task-card-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-gray);
    border-radius: 8px;
}

.task-type-image .task-card-stats {
    background: rgba(99, 102, 241, 0.06);
}

.task-type-data .task-card-stats {
    background: rgba(16, 185, 129, 0.06);
}

.task-stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.task-card-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.task-btn-view {
    padding: 10px 22px;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-type-data .task-btn-view {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.task-btn-view:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.task-type-data .task-btn-view:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.task-btn-quota {
    padding: 10px 16px;
    background: white;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-btn-quota:hover {
    border-color: #c7d2fe;
    color: #6366f1;
    background: #f5f3ff;
}

.task-btn-delete {
    padding: 10px 12px;
    background: white;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-btn-delete:hover {
    background: #fef2f2;
    color: var(--error);
    border-color: #fecaca;
}

.copy-btn-mini {
    padding: 6px 12px;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-type-data .copy-btn-mini {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.copy-btn-mini:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

@media (max-width: 900px) {
    .task-square-card {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .task-usage-compact {
        width: 100%;
        justify-content: space-around;
    }
    
    .task-card-code-section {
        min-width: auto;
    }
}

@media (max-width: 640px) {
    .task-square-card {
        flex-direction: column;
        align-items: stretch;
    }
    
    .task-card-info {
        order: 1;
    }
    
    .task-card-code-section {
        order: 2;
    }
    
    .task-usage-compact {
        order: 3;
    }
    
    .task-card-stats {
        order: 4;
    }
    
    .task-card-actions {
        order: 5;
        width: 100%;
    }
    
    .task-btn-view {
        flex: 1;
    }
}

.usage-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.copy-btn-mini {
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn-mini:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.quota-modal {
    max-width: 400px;
}

.quota-task-name {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.quota-form .form-group {
    margin-bottom: 16px;
}

.quota-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-primary);
    background: white;
    cursor: pointer;
}

.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-primary);
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.btn-block {
    width: 100%;
    padding: 12px;
    font-size: 15px;
}

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

.empty-state-detail p {
    font-size: 16px;
    margin-bottom: 8px;
}

.empty-state-detail .hint {
    font-size: 14px;
    color: var(--text-muted);
}

.page-header {
    max-width: 1200px;
    margin: 0 auto 16px;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
    border: 1.5px solid rgba(232, 236, 244, 0.6);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.page-header:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.06);
    border-color: rgba(232, 236, 244, 0.9);
}

.page-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
}

.btn-back {
    padding: 10px 18px;
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-back:hover {
    background: var(--primary-bg);
    color: var(--primary);
    border-color: var(--primary-light);
    transform: translateX(-2px);
}

.detail-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tasks-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

.task-card-new {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.task-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.task-card-new:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.task-card-header-new {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
}

.task-card-header-new h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.task-card-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.task-code-box {
    background: var(--primary-bg);
    border: 1px dashed var(--primary);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0;
}

.task-code-text {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
}

.copy-btn-mini {
    padding: 6px 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn-mini:hover {
    background: var(--primary-dark);
}

.task-stats-row {
    display: flex;
    gap: 12px;
    margin: 16px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.task-actions-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.task-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: white;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.task-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.task-btn.danger:hover {
    background: var(--error);
    border-color: var(--error);
}

/* ====== 任务详情页 ====== */
.detail-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
}

.detail-section {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 24px;
}

.section-heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.heading-icon {
    font-size: 22px;
}

/* 任务类型标识 */
.task-type-indicator {
    margin-bottom: 20px;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.type-badge.type-image {
    background: var(--primary-bg);
    color: var(--primary);
}

.type-badge.type-data {
    background: #d1fae5;
    color: #10b981;
}

/* 刷新按钮 */
.btn-refresh {
    margin-left: auto;
    padding: 6px 12px;
    background: var(--bg-gray);
    color: var(--text-secondary);
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-refresh:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

/* API 使用说明 */
.api-usage-box {
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.api-endpoint {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    margin-bottom: 12px;
}

.api-endpoint:last-child {
    margin-bottom: 0;
}

.api-method {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Monaco', 'Consolas', monospace;
}

.api-method.get {
    background: #dbeafe;
    color: #2563eb;
}

.api-method.post {
    background: #d1fae5;
    color: #10b981;
}

.api-url {
    flex: 1;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    color: var(--text-primary);
}

.api-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* 数据列表 */
.data-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.data-list-header .section-heading {
    margin-bottom: 0;
}

.data-list-actions {
    display: flex;
    gap: 8px;
}

.btn-select-all {
    padding: 6px 12px;
    background: var(--bg-gray);
    color: var(--text-secondary);
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-select-all:hover {
    background: var(--bg-light);
}

.btn-select-all.active {
    background: var(--primary);
    color: white;
}

.btn-delete-selected {
    padding: 6px 12px;
    background: #fef2f2;
    color: var(--error);
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-delete-selected:hover {
    background: #fee2e2;
}

.data-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.data-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-gray);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.data-item:hover {
    border-color: var(--border-light);
}

.data-item.selected {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.data-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.data-checkbox.checked {
    background: var(--primary);
    border-color: var(--primary);
}

.data-checkbox.checked::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.data-content {
    flex: 1;
    min-width: 0;
}

.data-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.data-id {
    font-family: 'Monaco', 'Consolas', monospace;
}

.data-time {
    color: var(--text-muted);
}

.data-preview {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    color: var(--text-primary);
    background: white;
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    max-height: 200px;
    overflow-y: auto;
}

.data-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-delete-data {
    padding: 6px 10px;
    background: white;
    color: var(--error);
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-delete-data:hover {
    background: #fef2f2;
}

.image-count-badge {
    margin-left: auto;
    padding: 4px 14px;
    background: var(--primary);
    color: white;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.prompt-box-detail {
    background: #1e293b;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
}

.prompt-header {
    background: #334155;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
}

.copy-btn-sm {
    padding: 5px 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn-sm:hover {
    background: var(--primary-dark);
}

.prompt-code {
    padding: 24px;
    color: #e2e8f0;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.7;
    overflow-x: auto;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.api-info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-card {
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 18px 20px;
}

.info-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.info-card code {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    word-break: break-all;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.image-item-detail {
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.image-item-detail:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.image-preview-detail {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-bg), #e0e7ff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-detail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-info-detail {
    padding: 16px;
}

.image-filename {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    word-break: break-all;
}

.image-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.image-action-bar {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.image-action-btn {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.image-action-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.image-action-btn.delete-btn:hover {
    background: var(--error);
    border-color: var(--error);
}

.empty-state-detail {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    grid-column: 1/-1;
}

.empty-state-detail p {
    font-size: 16px;
    margin-bottom: 6px;
}

.empty-state-detail .hint {
    font-size: 14px;
    color: var(--text-muted);
}

/* ====== Toast 提示 ====== */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 24px;
    border-radius: var(--radius);
    color: white;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease;
    max-width: 380px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success { background: linear-gradient(135deg, #10b981, #059669); }
.toast.error { background: linear-gradient(135deg, #ef4444, #dc2626); }
.toast.info { background: linear-gradient(135deg, #3b82f6, #2563eb); }

/* ====== 任务类型选择器 ====== */
.task-type-selector {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.task-type-option {
    flex: 1;
    cursor: pointer;
}

.task-type-option input[type="radio"] {
    display: none;
}

.task-type-card {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.task-type-option input[type="radio"]:checked + .task-type-card {
    background: var(--primary-bg);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.task-type-option:hover .task-type-card {
    border-color: var(--primary-light);
}

.task-type-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.task-type-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.task-type-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* ====== 数据记录样式 ====== */
.data-record-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.data-record-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    transition: var(--transition);
}

.data-record-item:hover {
    box-shadow: var(--shadow);
}

.data-record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.data-record-id {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.data-record-time {
    font-size: 12px;
    color: var(--text-muted);
}

.data-record-content {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    color: var(--text-secondary);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 300px;
    overflow-y: auto;
}

.data-record-meta {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ====== 响应式设计 ====== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 40px;
    }
    
    .hero-stats-row {
        gap: 20px;
    }
    
    .hero-stat-value {
        font-size: 18px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .scenario-showcase {
        grid-template-columns: 1fr;
    }
    
    .scenario-card.large {
        grid-column: span 1;
    }
    
    .scenario-list {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .navbar {
        width: calc(100% - 24px);
        top: 12px;
    }
    
    .nav-container {
        padding: 0 16px;
        height: 56px;
    }
    
    .nav-actions .btn-nav {
        display: none;
    }
    
    .nav-actions .dropdown {
        display: none;
    }
    
    .nav-actions #guestActions .btn-primary {
        display: none;
    }
    
    .nav-actions #guestActions .btn-text {
        display: none;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-stats-row {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .hero-stat-divider {
        display: none;
    }
    
    .hero-stat {
        min-width: 80px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .tasks-container {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    
    .images-grid {
        grid-template-columns: 1fr;
    }
    
    .api-info-cards {
        grid-template-columns: 1fr;
    }
    
    .founder-section {
        flex-direction: column;
        text-align: center;
    }
    
    .page-header {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px 20px;
        top: 60px;
    }
    
    .page-header h2 {
        font-size: 18px;
        width: 100%;
        order: -1;
    }
    
    .detail-actions {
        width: 100%;
        display: flex;
        gap: 8px;
    }
    
    .detail-actions .btn-secondary,
    .detail-actions .btn-danger {
        flex: 1;
        text-align: center;
    }
    
    .btn-back {
        font-size: 13px;
        padding: 8px 14px;
    }
    
    .detail-content {
        padding: 16px;
    }
    
    .detail-section {
        padding: 20px;
    }
    
    .detail-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detail-charts-row {
        grid-template-columns: 1fr;
    }
    
    .tasks-header-card {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px 20px;
    }
    
    .tasks-title {
        width: 100%;
        text-align: center;
        font-size: 22px;
        order: -1;
    }
    
    .task-square-card {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px;
    }
    
    .tasks-grid-new {
        grid-template-columns: 1fr;
    }
    
    .task-card-code-section,
    .task-usage-compact {
        min-width: auto;
    }
    
    .task-card-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .admin-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-charts-row {
        grid-template-columns: 1fr;
    }
    
    .quota-request-body {
        grid-template-columns: 1fr;
    }
}

/* ====== 设置页面 ====== */
.settings-form {
    max-width: 500px;
}

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

.settings-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.settings-form input[type="text"],
.settings-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.settings-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.info-list {
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.info-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item span:first-child {
    color: var(--text-secondary);
    min-width: 90px;
    font-weight: 500;
}

.info-item span:last-child {
    color: var(--text-primary);
}

/* ====== 存储进度条 ====== */
.storage-bar-container {
    margin: 12px 0;
}

.storage-bar-bg {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.storage-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease, background 0.3s ease;
}

.storage-text {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
    margin-top: 4px;
}

/* ====== 管理员页面 ====== */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.admin-stat-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    padding: 20px;
    color: white;
    text-align: center;
}

.admin-stat-card .stat-number {
    font-size: 28px;
    font-weight: 700;
}

.admin-stat-card .stat-label {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 4px;
}

.admin-user-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    transition: box-shadow 0.3s ease;
}

.admin-user-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.admin-user-header {
    margin-bottom: 12px;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-user-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.admin-user-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 管理员用户列表 - 美化版 */
.admin-user-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 16px;
}

.admin-user-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.admin-user-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #818cf8);
    border-radius: 16px 16px 0 0;
}

.admin-user-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: #c7d2fe;
}

.admin-user-item .admin-user-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-user-item .admin-user-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.admin-user-item .admin-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-user-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.admin-user-item .admin-user-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin: 14px 0;
    flex-wrap: wrap;
}

.admin-user-item .admin-user-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--bg-gray);
    border-radius: 6px;
}

.admin-user-item .admin-user-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.admin-user-item .btn-view {
    padding: 7px 14px;
    background: white;
    color: #6366f1;
    border: 1px solid #c7d2fe;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-user-item .btn-view:hover {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.admin-user-item .btn-toggle {
    padding: 7px 14px;
    background: white;
    color: #f59e0b;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-user-item .btn-toggle:hover {
    background: #f59e0b;
    color: white;
    border-color: #f59e0b;
}

.admin-user-item .btn-delete {
    padding: 7px 14px;
    background: white;
    color: #ef4444;
    border: 1px solid #fecaca;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-user-item .btn-delete:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.badge-admin {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.badge-user {
    background: #e0e7ff;
    color: #3730a3;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.status-disabled {
    background: #fee2e2;
    color: #991b1b;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

/* ====== 首页核心功能区域 - 极简风格 ====== */
.core-features {
    padding: 100px 24px;
    background: white;
    position: relative;
}

/* 标签页导航 */
.feature-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    background: var(--bg-gray);
    padding: 6px;
    border-radius: var(--radius-full);
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.feature-tab {
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    flex: 1;
}

.feature-tab:hover {
    background: rgba(255, 255, 255, 0.5);
}

.feature-tab.active {
    background: white;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.core-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.core-feature-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.core-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    border-color: #c7d2fe;
}

.core-feature-header {
    background: linear-gradient(135deg, #f5f3ff 0%, #faf5ff 100%);
    padding: 32px 28px 24px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.core-feature-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
}

.core-feature-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
    transition: all 0.25s ease;
}

.core-feature-card:hover .core-feature-icon-wrapper {
    transform: scale(1.08);
}

.core-feature-icon {
    font-size: 32px;
}

.core-feature-header h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.core-feature-badge {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.core-feature-body {
    padding: 28px;
}

.core-feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: center;
}

.core-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.core-feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--text-primary);
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    transition: all 0.2s ease;
}

.core-feature-list li:hover {
    background: #f5f3ff;
    transform: translateX(2px);
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.core-feature-api {
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.core-feature-api code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    color: #6366f1;
    background: white;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    display: block;
    transition: all 0.2s ease;
}

.core-feature-api code:hover {
    border-color: #c7d2fe;
    background: #f5f3ff;
}

/* ====== 超级会员标识 ====== */
.badge-vip {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-vip::before {
    content: '⭐';
}

/* ====== 图片查看弹窗 ====== */
.image-view-dialog {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.image-view-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

.image-view-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

.image-view-body {
    padding: 20px;
    flex: 1;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    min-height: 300px;
}

.image-view-full {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.image-view-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

/* ====== 数据查看弹窗 ====== */
.data-view-dialog {
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.data-view-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

.data-view-header h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

.data-view-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.data-view-body {
    padding: 20px 24px;
    flex: 1;
    overflow: auto;
    max-height: 50vh;
}

.data-view-content {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.6;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
}

.data-view-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ====== 用户详情弹窗 ====== */
.user-detail-dialog {
    max-width: 560px;
    width: 90%;
}

.user-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--border-light);
}

.user-detail-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.user-detail-title h3 {
    margin: 0 0 6px 0;
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 700;
}

.user-detail-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.badge-user {
    background: #ede9fe;
    color: #6366f1;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background: #d1fae5;
    color: #059669;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-disabled {
    background: #fee2e2;
    color: #dc2626;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.user-detail-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0;
}

.user-detail-info-item {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-detail-info-item:nth-child(odd) {
    border-right: 1px solid var(--border-light);
}

.user-detail-info-item .info-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.user-detail-info-item .info-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

.user-detail-tasks {
    padding: 20px 24px;
}

.user-detail-tasks h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

.user-detail-task-item {
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 8px;
    border: 1px solid var(--border-light);
}

.user-detail-task-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.user-detail-task-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.user-detail-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding: 16px;
}

/* ====== 注册表单增强 ====== */
.modal-register {
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

.required-mark {
    color: #ef4444;
    font-weight: 500;
}

.auth-form-modal .form-group {
    margin-bottom: 16px;
}

.auth-form-modal .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.auth-form-modal .form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.auth-form-modal .form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

/* ====== 移动端侧边菜单 ====== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    background: var(--bg-gray);
}

.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 1600;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
}

.mobile-sidebar-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-sidebar-close:hover {
    background: var(--bg-gray);
    color: var(--text-primary);
}

.mobile-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border-radius: 12px;
}

.mobile-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.mobile-user-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    transition: background 0.2s;
}

.mobile-menu-link:hover {
    background: var(--bg-gray);
}

.mobile-menu-link-danger {
    color: #ef4444;
}

.mobile-menu-link-danger:hover {
    background: #fef2f2;
}

.mobile-menu-divider {
    height: 1px;
    background: var(--border-light);
    margin: 8px 16px;
}

/* ====== 响应式调整 ====== */
@media (max-width: 768px) {
    .core-features-grid {
        grid-template-columns: 1fr;
    }
    
    .core-feature-header {
        padding: 24px;
    }
    
    .core-feature-body {
        padding: 24px;
    }
    
    .feature-tabs {
        max-width: 300px;
    }
    
    .feature-tab {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer {
        margin: 0 12px 12px;
        border-radius: var(--radius-xl);
    }
    
    .footer-links {
        flex-direction: column;
        gap: 32px;
    }
}