:root {
    --primary: #f59e0b;
    --secondary: #d97706;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #fafafa;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px -10px rgba(0,0,0,0.15);
    --radius: 16px;
    --gold: #f59e0b;
    --gold-light: #fef3c7;
    --dark: #111827;
    --dark-light: #1f2937;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ========== 导航栏 ========== */
.navbar { background: rgba(17, 24, 39, 0.95); backdrop-filter: blur(20px); box-shadow: 0 4px 30px rgba(0,0,0,0.2); position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }
.navbar .container { display: flex; align-items: center; height: 70px; gap: 30px; max-width: 1400px; }
.logo { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; font-weight: 700; color: var(--gold); text-decoration: none; }
.logo i { font-size: 1.8rem; }
.nav-links { display: flex; gap: 8px; margin-left: 40px; }
.nav-link { color: #d1d5db; text-decoration: none; font-weight: 500; padding: 10px 18px; border-radius: 8px; transition: all 0.3s; }
.nav-link:hover { color: var(--gold); background: rgba(245,158,11,0.1); }
.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-icon-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.1); border: none; cursor: pointer; border-radius: 50%; color: #d1d5db; font-size: 1.1rem; transition: all 0.2s; text-decoration: none; }
.nav-icon-btn:hover { background: var(--gold); color: var(--dark); }
.nav-menu { display: flex; align-items: center; gap: 5px; list-style: none; }
.nav-menu > li { position: relative; }
.nav-menu > li > a { display: flex; align-items: center; gap: 6px; padding: 10px 16px; color: #d1d5db; text-decoration: none; border-radius: 8px; transition: all 0.2s; }
.nav-menu > li > a:hover { background: rgba(245,158,11,0.15); color: var(--gold); }
.nav-menu > li.menu-item-has-children > a::after { content: '\f107'; font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: 0.75rem; margin-left: 4px; transition: transform 0.2s; }
.nav-menu > li.menu-item-has-children:hover > a::after { transform: rotate(180deg); }

/* 二级菜单下拉 */
.nav-menu .sub-menu { 
    position: absolute; 
    top: 100%; 
    left: 0; 
    min-width: 200px; 
    background: rgba(17, 24, 39, 0.98); 
    backdrop-filter: blur(20px); 
    border-radius: 12px; 
    padding: 8px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.3); 
    border: 1px solid rgba(255,255,255,0.1);
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(10px); 
    transition: all 0.25s ease;
    list-style: none;
    z-index: 1000;
}
.nav-menu > li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu .sub-menu li { margin: 0; }
.nav-menu .sub-menu li a { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    padding: 12px 16px; 
    color: #d1d5db; 
    text-decoration: none; 
    border-radius: 8px; 
    transition: all 0.2s;
    font-size: 0.95rem;
}
.nav-menu .sub-menu li a:hover { 
    background: rgba(245,158,11,0.15); 
    color: var(--gold); 
}
.nav-menu .sub-menu li a i { 
    width: 20px; 
    text-align: center; 
    color: var(--gold); 
    opacity: 0.7;
}

/* ========== Hero 区域 ========== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 20px 80px; overflow: hidden; background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%); }
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-gradient { position: absolute; top: -50%; right: -20%; width: 80%; height: 150%; background: radial-gradient(ellipse, rgba(245,158,11,0.15) 0%, transparent 60%); }
.hero-particles { position: absolute; inset: 0; background-image: radial-gradient(rgba(245,158,11,0.3) 1px, transparent 1px); background-size: 50px 50px; opacity: 0.5; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.hero-content { color: white; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: rgba(245,158,11,0.2); border: 1px solid rgba(245,158,11,0.3); border-radius: 50px; color: var(--gold); font-size: 0.9rem; font-weight: 500; margin-bottom: 24px; }
.hero-title { font-size: 3.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 24px; }
.gradient-text { background: linear-gradient(135deg, var(--gold) 0%, #fbbf24 50%, var(--gold) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 1.25rem; color: #94a3b8; line-height: 1.8; margin-bottom: 36px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.btn-hero { display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px; border-radius: 12px; font-size: 1rem; font-weight: 600; text-decoration: none; transition: all 0.3s; }
.btn-primary-hero { background: var(--gradient); color: white; box-shadow: 0 10px 30px rgba(245,158,11,0.3); }
.btn-primary-hero:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(245,158,11,0.4); }
.btn-outline-hero { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.3); }
.btn-outline-hero:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost-hero { background: rgba(255,255,255,0.1); color: white; }
.btn-ghost-hero:hover { background: rgba(255,255,255,0.2); }
.hero-stats { display: flex; gap: 30px; align-items: center; }
.stat-item { text-align: center; }
.stat-num { display: block; font-size: 1.5rem; font-weight: 700; color: white; }
.stat-label { font-size: 0.85rem; color: #64748b; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.1); }

/* Hero Mockup */
.hero-mockup { position: relative; perspective: 1000px; }
.mockup-browser { background: #1e293b; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.1); transform: rotateY(-5deg) rotateX(2deg); transition: transform 0.5s; }
.hero-mockup:hover .mockup-browser { transform: rotateY(0) rotateX(0); }
.browser-header { display: flex; align-items: center; gap: 16px; padding: 12px 16px; background: #0f172a; border-bottom: 1px solid rgba(255,255,255,0.05); }
.browser-dots { display: flex; gap: 8px; }
.browser-dots .dot { width: 12px; height: 12px; border-radius: 50%; }
.browser-dots .red { background: #ef4444; }
.browser-dots .yellow { background: #eab308; }
.browser-dots .green { background: #22c55e; }
.browser-url { flex: 1; display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: rgba(255,255,255,0.05); border-radius: 8px; color: #64748b; font-size: 0.85rem; }
.browser-url i { color: #22c55e; }
.browser-content { padding: 0; min-height: 300px; }
.browser-content img { width: 100%; display: block; }
.preview-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; color: #475569; }
.preview-placeholder i { font-size: 4rem; margin-bottom: 16px; color: var(--gold); opacity: 0.5; }
.hero-scroll { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: #64748b; font-size: 0.85rem; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(10px); } }

/* ========== 信任区 ========== */
.trust-section { padding: 60px 0; background: white; border-bottom: 1px solid var(--border); }
.trust-title { text-align: center; color: var(--text-light); font-size: 0.9rem; margin-bottom: 30px; }
.trust-logos { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-logo { display: flex; align-items: center; gap: 10px; color: #9ca3af; font-size: 1rem; font-weight: 500; }
.trust-logo i { font-size: 1.5rem; color: var(--gold); }

/* ========== 通用区块样式 ========== */
.section-header { text-align: center; margin-bottom: 60px; }
.section-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px; background: var(--gold-light); color: var(--gold); font-size: 0.9rem; font-weight: 600; border-radius: 50px; margin-bottom: 20px; }
.section-badge.light { background: rgba(255,255,255,0.2); color: white; }
.section-title-lg { font-size: 2.5rem; font-weight: 800; color: var(--text); margin-bottom: 16px; }
.section-desc { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* ========== 特性区 ========== */
.features-section { padding: 100px 0; background: var(--bg); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card { background: white; border-radius: var(--radius); padding: 32px; border: 1px solid var(--border); transition: all 0.3s; position: relative; overflow: hidden; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.feature-card.feature-highlight { grid-column: span 2; grid-row: span 2; padding: 40px; }
.feature-icon { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; }
.gradient-bg { background: var(--gradient); color: white; }
.blue-bg { background: #dbeafe; color: #2563eb; }
.purple-bg { background: #ede9fe; color: #7c3aed; }
.green-bg { background: #dcfce7; color: #16a34a; }
.orange-bg { background: var(--gold-light); color: var(--gold); }
.pink-bg { background: #fce7f3; color: #db2777; }
.cyan-bg { background: #cffafe; color: #0891b2; }
.red-bg { background: #fee2e2; color: #dc2626; }
.feature-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.feature-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }
.feature-list { list-style: none; margin-top: 20px; }
.feature-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--text-light); font-size: 0.9rem; }
.feature-list i { color: var(--gold); }
.feature-tag { position: absolute; top: 20px; right: 20px; padding: 4px 12px; background: #ef4444; color: white; font-size: 0.75rem; font-weight: 600; border-radius: 20px; }

/* ========== 功能展示区 ========== */
.showcase-section { padding: 100px 0; background: white; }
.showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.showcase-content h2 { font-size: 2.2rem; font-weight: 800; margin: 16px 0 20px; color: var(--text); }
.showcase-content > p { color: var(--text-light); font-size: 1.1rem; line-height: 1.8; margin-bottom: 32px; }
.showcase-features { list-style: none; }
.showcase-features li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.showcase-features li:last-child { border-bottom: none; }
.sf-icon { width: 48px; height: 48px; background: var(--gold-light); color: var(--gold); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.sf-text h4 { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.sf-text p { font-size: 0.9rem; color: var(--text-light); margin: 0; }
.showcase-image { position: relative; }
.showcase-mockup { position: relative; }
.mockup-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 120%; height: 120%; background: radial-gradient(ellipse, rgba(245,158,11,0.2) 0%, transparent 60%); z-index: 0; pointer-events: none; }
.mockup-screen { position: relative; z-index: 1; background: var(--dark); border-radius: 20px; padding: 20px; box-shadow: var(--shadow-lg); }
.admin-preview { display: flex; background: #1e293b; border-radius: 12px; overflow: hidden; min-height: 350px; }
.admin-sidebar { width: 60px; background: #0f172a; padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.admin-logo { width: 36px; height: 36px; background: var(--gradient); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; margin-bottom: 16px; }
.admin-menu-item { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #64748b; transition: all 0.2s; }
.admin-menu-item.active { background: var(--gold); color: var(--dark); }
.admin-main { flex: 1; padding: 20px; }
.admin-header-bar { height: 40px; background: #334155; border-radius: 8px; margin-bottom: 20px; }
.admin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.admin-card-item { height: 60px; background: linear-gradient(135deg, #334155 0%, #475569 100%); border-radius: 8px; }
.admin-chart { height: 120px; background: linear-gradient(180deg, rgba(245,158,11,0.2) 0%, transparent 100%); border-radius: 8px; border: 1px solid rgba(245,158,11,0.3); }

/* ========== 技术架构区 ========== */
.tech-section { padding: 100px 0; background: linear-gradient(180deg, var(--bg) 0%, white 100%); }
.tech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 60px; }
.tech-card { background: white; border-radius: var(--radius); padding: 32px; text-align: center; border: 1px solid var(--border); transition: all 0.3s; }
.tech-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.tech-icon { width: 70px; height: 70px; margin: 0 auto 20px; background: var(--gold-light); border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--gold); }
.tech-card h4 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.tech-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 12px; }
.tech-version { display: inline-block; padding: 4px 12px; background: var(--bg); color: var(--text-light); font-size: 0.8rem; border-radius: 20px; }
.code-preview { background: #1e293b; border-radius: var(--radius); overflow: hidden; max-width: 700px; margin: 0 auto; }
.code-header { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: #0f172a; }
.code-dots { display: flex; gap: 8px; }
.code-dots span { width: 12px; height: 12px; border-radius: 50%; background: #475569; }
.code-dots span:nth-child(1) { background: #ef4444; }
.code-dots span:nth-child(2) { background: #eab308; }
.code-dots span:nth-child(3) { background: #22c55e; }
.code-title { color: #64748b; font-size: 0.85rem; }
.code-block { padding: 24px; margin: 0; font-family: 'Fira Code', monospace; font-size: 0.9rem; line-height: 1.8; color: #e2e8f0; overflow-x: auto; }
.code-comment { color: #64748b; }
.code-keyword { color: var(--gold); }

/* ========== 下载区 ========== */
.download-section { padding: 100px 0; background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%); }
.download-wrapper { text-align: center; }
.download-content h2 { font-size: 2.5rem; font-weight: 800; color: white; margin: 16px 0 20px; }
.download-content > p { color: #94a3b8; font-size: 1.1rem; margin-bottom: 48px; }
.download-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 800px; margin: 0 auto 40px; }
.download-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); overflow: hidden; text-align: left; transition: all 0.3s; }
.download-card:hover { transform: translateY(-5px); border-color: rgba(245,158,11,0.5); }
.download-card.primary { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); }
.dc-header { padding: 24px; border-bottom: 1px solid rgba(255,255,255,0.1); position: relative; }
.dc-badge { position: absolute; top: 16px; right: 16px; padding: 4px 12px; background: var(--gold); color: var(--dark); font-size: 0.75rem; font-weight: 600; border-radius: 20px; }
.dc-header h3 { font-size: 1.25rem; color: #fff; margin: 0 0 4px; }
.dc-version { color: #94a3b8; font-size: 0.9rem; font-weight: 600; }
.dc-body { padding: 24px; }
.dc-features { list-style: none; margin-bottom: 20px; }
.dc-features li { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: #94a3b8; font-size: 0.9rem; }
.dc-features i { color: var(--gold); width: 16px; }
.dc-features .fa-exclamation-triangle { color: #f59e0b; }
.dc-meta { display: flex; gap: 20px; color: #64748b; font-size: 0.85rem; }
.dc-meta span { display: flex; align-items: center; gap: 6px; }
.dc-footer { padding: 0 24px 24px; }
.btn-download { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px; background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; font-size: 1rem; font-weight: 600; text-decoration: none; transition: all 0.3s; }
.btn-download:hover { background: rgba(255,255,255,0.2); }
.btn-download.primary { background: var(--gradient); border-color: transparent; }
.btn-download.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(245,158,11,0.3); }
.download-links { display: flex; justify-content: center; gap: 32px; }
.download-links a { color: #64748b; text-decoration: none; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; transition: color 0.2s; }
.download-links a:hover { color: var(--gold); }

/* ========== 更新日志区 ========== */
.changelog-section { padding: 100px 0; background: white; }
.changelog-timeline { max-width: 800px; margin: 0 auto; position: relative; }
.changelog-timeline::before { content: ''; position: absolute; left: 24px; top: 0; bottom: 60px; width: 2px; background: var(--border); }
.changelog-item { position: relative; padding-left: 70px; margin-bottom: 40px; }
.cl-marker { position: absolute; left: 0; top: 0; width: 50px; height: 50px; background: white; border: 2px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 1rem; z-index: 1; }
.changelog-item.latest .cl-marker { background: var(--gradient); border-color: var(--gold); color: white; }
.cl-content { background: var(--bg); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
.changelog-item.latest .cl-content { border-color: var(--gold); background: var(--gold-light); }
.cl-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.cl-version { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.cl-tag { padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.cl-tag.new { background: var(--gold); color: white; }
.cl-tag.beta { background: #3b82f6; color: white; }
.cl-tag.alpha { background: #8b5cf6; color: white; }
.cl-date { color: var(--text-light); font-size: 0.85rem; margin-left: auto; }
.cl-content h4 { font-size: 1rem; color: var(--text); margin-bottom: 16px; }
.cl-list { list-style: none; }
.cl-list li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; font-size: 0.9rem; color: var(--text-light); }
.cl-list li i { width: 18px; margin-top: 3px; }
.cl-list li.add i { color: #22c55e; }
.cl-list li.improve i { color: #3b82f6; }
.cl-list li.fix i { color: #ef4444; }
.changelog-more { text-align: center; padding-top: 20px; }
.btn-more { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; font-weight: 500; transition: all 0.3s; }
.btn-more:hover { border-color: var(--gold); color: var(--gold); }

/* ========== 社区区 ========== */
.community-section { padding: 100px 0; background: var(--bg); }
.community-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.community-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 24px; background: white; border-radius: var(--radius); border: 1px solid var(--border); text-decoration: none; transition: all 0.3s; }
.community-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.community-card.github:hover { border-color: #333; }
.community-card.qq:hover { border-color: #12b7f5; }
.community-card.docs:hover { border-color: var(--gold); }
.community-card.forum:hover { border-color: #8b5cf6; }
.cc-icon { width: 70px; height: 70px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin-bottom: 20px; }
.community-card.github .cc-icon { background: #f3f4f6; color: #333; }
.community-card.qq .cc-icon { background: #e0f7ff; color: #12b7f5; }
.community-card.docs .cc-icon { background: var(--gold-light); color: var(--gold); }
.community-card.forum .cc-icon { background: #ede9fe; color: #8b5cf6; }
.community-card h4 { font-size: 1.1rem; color: var(--text); margin-bottom: 8px; }
.community-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 16px; flex: 1; }
.cc-action { font-size: 0.9rem; color: var(--gold); font-weight: 500; display: flex; align-items: center; gap: 6px; }

/* ========== 新闻区 ========== */
.news-section { padding: 100px 0; background: white; }
.news-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.news-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.news-header h3 { font-size: 1.25rem; color: var(--text); display: flex; align-items: center; gap: 10px; }
.news-header h3 i { color: var(--gold); }
.view-all { color: var(--gold); text-decoration: none; font-size: 0.9rem; display: flex; align-items: center; gap: 6px; }
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-item { display: flex; align-items: center; gap: 20px; padding: 20px; background: var(--bg); border-radius: var(--radius); text-decoration: none; transition: all 0.3s; border: 1px solid transparent; }
.news-item:hover { background: white; border-color: var(--gold); box-shadow: var(--shadow); }
.news-date { text-align: center; min-width: 50px; }
.news-date .day { display: block; font-size: 1.5rem; font-weight: 700; color: var(--gold); line-height: 1; }
.news-date .month { font-size: 0.8rem; color: var(--text-light); }
.news-content { flex: 1; min-width: 0; }
.news-content h4 { font-size: 1rem; color: var(--text); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-content p { font-size: 0.85rem; color: var(--text-light); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-arrow { color: #cbd5e0; transition: all 0.3s; }
.news-item:hover .news-arrow { color: var(--gold); transform: translateX(5px); }
.news-empty { text-align: center; padding: 60px; color: var(--text-light); }
.news-empty i { font-size: 3rem; margin-bottom: 16px; opacity: 0.3; }

/* 侧边栏卡片 */
.sidebar-card { background: var(--bg); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.sidebar-card h3 { font-size: 1rem; color: var(--text); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.sidebar-card h3 i { color: var(--gold); }
.announcement-list { display: flex; flex-direction: column; gap: 12px; }
.announcement-item { display: flex; align-items: flex-start; gap: 10px; }
.ann-tag { padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 600; background: var(--border); color: var(--text-light); flex-shrink: 0; }
.ann-tag.hot { background: #fee2e2; color: #dc2626; }
.announcement-item p { font-size: 0.85rem; color: var(--text); margin: 0; line-height: 1.5; }
.quick-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.quick-links-grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; background: white; border-radius: 10px; text-decoration: none; transition: all 0.2s; border: 1px solid var(--border); }
.quick-links-grid a:hover { border-color: var(--gold); color: var(--gold); }
.quick-links-grid a i { font-size: 1.2rem; color: var(--gold); }
.quick-links-grid a span { font-size: 0.8rem; color: var(--text); }

/* ========== CTA 区 ========== */
.cta-section { padding: 100px 0; background: var(--bg); }
.cta-wrapper { position: relative; background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%); border-radius: 24px; padding: 80px 40px; text-align: center; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; overflow: hidden; }
.cta-shape { position: absolute; border-radius: 50%; background: rgba(245,158,11,0.1); }
.cta-shape.shape-1 { width: 300px; height: 300px; top: -100px; left: -100px; }
.cta-shape.shape-2 { width: 200px; height: 200px; bottom: -50px; right: 10%; }
.cta-shape.shape-3 { width: 150px; height: 150px; top: 20%; right: -50px; }
.cta-content { position: relative; z-index: 1; }
.cta-content h2 { font-size: 2.5rem; font-weight: 800; color: white; margin-bottom: 16px; }
.cta-content p { font-size: 1.1rem; color: #94a3b8; margin-bottom: 32px; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; }
.btn-cta { display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px; border-radius: 12px; font-size: 1rem; font-weight: 600; text-decoration: none; transition: all 0.3s; }
.btn-cta.primary { background: var(--gradient); color: white; }
.btn-cta.primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(245,158,11,0.4); }
.btn-cta.secondary { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.2); }
.btn-cta.secondary:hover { background: rgba(255,255,255,0.2); }

/* ========== 页脚 ========== */
.footer { background: var(--dark); color: #9ca3af; }
.footer-main { padding: 60px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 700; color: var(--gold); text-decoration: none; margin-bottom: 16px; }
.footer-desc { color: #6b7280; line-height: 1.7; margin-bottom: 20px; font-size: 0.95rem; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); border-radius: 10px; color: #6b7280; text-decoration: none; transition: all 0.2s; }
.footer-social a:hover { background: var(--gold); color: var(--dark); }
.footer-nav h4, .footer-categories h4, .footer-contact h4 { color: #fff; font-size: 1rem; margin-bottom: 20px; font-weight: 600; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #6b7280; text-decoration: none; transition: all 0.2s; }
.footer-links a:hover { color: var(--gold); padding-left: 5px; }
.footer-info { list-style: none; }
.footer-info li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; color: #6b7280; font-size: 0.95rem; }
.footer-info i { color: var(--gold); margin-top: 3px; }
.footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { margin: 0; font-size: 0.9rem; color: #4b5563; }
.footer-bottom a { color: #6b7280; text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* ========== 主内容区（文章页等） ========== */
.main { padding: 100px 0 60px; min-height: calc(100vh - 140px); }
.content-wrapper { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.sidebar { position: sticky; top: 90px; }
.widget { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 24px; border: 1px solid var(--border); }
.widget-title { font-size: 1.1rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 2px solid var(--gold-light); color: var(--text); }
.widget-title i { color: var(--gold); }
.widget-list { list-style: none; }
.widget-list li { margin-bottom: 8px; }
.widget-list a { display: flex; justify-content: space-between; color: var(--text); text-decoration: none; padding: 10px 14px; border-radius: 8px; transition: all 0.2s; }
.widget-list a:hover { background: var(--gold-light); color: var(--gold); }
.widget-count { background: var(--gold-light); color: var(--gold); padding: 2px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 500; }

/* ========== 文章列表 ========== */
.posts-list { display: flex; flex-direction: column; gap: 20px; }
.post-card { display: flex; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s; border: 1px solid var(--border); }
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--gold); }
.post-thumb { flex-shrink: 0; width: 220px; }
.post-thumb a { display: block; height: 100%; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-thumb-empty { width: 220px; min-height: 160px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--gold-light) 0%, #fde68a 100%); color: var(--gold); font-size: 3rem; }
.post-content { flex: 1; padding: 20px 24px; display: flex; flex-direction: column; min-width: 0; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 0.8rem; color: var(--text-light); }
.post-meta .category { background: var(--gradient); color: white; padding: 3px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 500; }
.post-title { font-size: 1.15rem; margin-bottom: 10px; line-height: 1.5; }
.post-title a { color: var(--text); text-decoration: none; transition: color 0.3s; }
.post-title a:hover { color: var(--gold); }
.post-excerpt { color: var(--text-light); font-size: 0.9rem; line-height: 1.7; flex: 1; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.post-footer { display: flex; align-items: center; gap: 15px; font-size: 0.85rem; color: var(--text-light); margin-top: 12px; }
.read-more { margin-left: auto; color: var(--gold); text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: 6px; padding: 6px 14px; background: var(--gold-light); border-radius: 20px; transition: all 0.2s; }
.read-more:hover { background: var(--gold); color: white; }

/* ========== 文章详情页 ========== */
.post-breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 0.9rem; color: var(--text-light); }
.post-breadcrumb a { color: var(--gold); text-decoration: none; display: flex; align-items: center; gap: 6px; }
.post-breadcrumb a:hover { text-decoration: underline; }
.post-breadcrumb i.fa-chevron-right { font-size: 0.7rem; color: #cbd5e0; }
.post-breadcrumb .current { color: var(--text-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 400px; }
.post-detail { background: white; border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); position: relative; border: 1px solid var(--border); }
.post-header { text-align: center; margin-bottom: 30px; }
.post-detail h1 { font-size: 2rem; margin: 20px 0; color: var(--text); }
.post-detail .author { color: var(--text-light); }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; justify-content: center; }
.post-tags .tag-item { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; background: var(--gold-light); color: var(--gold); font-size: 0.85rem; border-radius: 20px; text-decoration: none; transition: all 0.2s; }
.post-tags .tag-item:hover { background: var(--gold); color: #fff; }
.featured-image { margin: -40px -40px 30px; border-radius: 16px 16px 0 0; overflow: hidden; }
.featured-image img { width: 100%; max-height: 450px; object-fit: cover; display: block; }
.post-body { font-size: 1.05rem; line-height: 1.9; }
.post-body p { margin-bottom: 1.5em; }
.post-body img { max-width: 100%; border-radius: var(--radius); }
.post-body a { color: var(--gold); }
.post-body blockquote { margin: 1.5em 0; padding: 1em 1.5em; background: var(--gold-light); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; }
.post-body code { background: #f1f5f9; padding: 0.2em 0.5em; border-radius: 4px; font-family: monospace; font-size: 0.9em; color: var(--gold); }
.post-body pre { margin: 1.5em 0; padding: 1.2em 1.5em; background: #1e293b; border-radius: var(--radius); overflow-x: auto; }
.post-body pre code { background: transparent; padding: 0; color: #e2e8f0; }
.post-actions { display: flex; gap: 15px; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border: none; border-radius: 25px; font-size: 0.95rem; cursor: pointer; transition: all 0.3s; }
.btn-like { background: #fff0f0; color: #e53e3e; }
.btn-like.liked { background: #e53e3e; color: white; }
.btn-share { background: var(--gold-light); color: var(--gold); }
.btn-share:hover { background: var(--gold); color: white; }
.post-edit-btn { position: absolute; top: 20px; right: 20px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: var(--gradient); color: white; text-decoration: none; font-size: 0.85rem; border-radius: 8px; transition: all 0.2s; z-index: 10; }
.post-edit-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(245,158,11,0.3); }

/* 分类/标签页头部 */
.page-header { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%); color: white; padding: 120px 0 60px; margin: -100px -20px 40px; text-align: center; }
.page-header h1 { font-size: 2rem; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.page-header h1 i { color: var(--gold); }
.page-header p { color: #9ca3af; font-size: 1rem; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.page-btn { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; background: white; border-radius: 10px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); border: 1px solid var(--border); transition: all 0.3s; }
.page-btn:hover, .page-btn.active { background: var(--gradient); color: white; border-color: transparent; }

/* 空状态 */
.empty { text-align: center; padding: 60px 20px; color: var(--text-light); }
.empty i { font-size: 4rem; margin-bottom: 20px; opacity: 0.3; color: var(--gold); }

/* ========== 用户下拉面板 ========== */
.user-menu { position: relative; }
.user-menu.icon-menu:hover .user-dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown-panel { position: absolute; top: calc(100% + 8px); right: 0; width: 300px; background: white; border-radius: 20px; box-shadow: 0 15px 50px rgba(0,0,0,0.18); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); z-index: 100; overflow: hidden; }
.udp-header { display: flex; align-items: center; gap: 14px; padding: 20px; background: linear-gradient(135deg, var(--gold-light) 0%, #fde68a 100%); position: relative; }
.udp-avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; border: 3px solid white; box-shadow: 0 4px 12px rgba(0,0,0,0.1); flex-shrink: 0; }
.udp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.udp-avatar span { width: 100%; height: 100%; background: var(--gradient); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.4rem; font-weight: 600; }
.udp-info { flex: 1; min-width: 0; }
.udp-name { font-weight: 600; color: var(--text); font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.udp-bio { font-size: 0.8rem; color: var(--text-light); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.udp-badge { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 0.7rem; box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4); }
.udp-stats { display: flex; justify-content: space-around; padding: 16px 20px; background: #fefce8; border-bottom: 1px solid #fef3c7; }
.udp-stat { text-align: center; }
.udp-stat-num { display: block; font-size: 1.2rem; font-weight: 700; color: var(--gold); }
.udp-stat-label { font-size: 0.7rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }
.udp-menu { padding: 12px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.udp-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; text-decoration: none; border-radius: 10px; transition: all 0.2s; background: #f9fafb; }
.udp-menu a:hover { background: var(--gold-light); }
.udp-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; background: white; color: var(--gold); flex-shrink: 0; }
.udp-menu a:hover .udp-icon { background: var(--gradient); color: white; }
.udp-menu a span:last-child { font-size: 0.8rem; color: var(--text); font-weight: 500; }
.udp-footer { display: flex; gap: 10px; padding: 12px 16px; background: #f9fafb; border-top: 1px solid #f0f0f0; }
.udp-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 10px; font-size: 0.85rem; font-weight: 500; text-decoration: none; transition: all 0.2s; background: white; color: var(--text-light); border: 1px solid #e5e7eb; }
.udp-btn:hover { background: #f3f4f6; color: var(--text); }
.udp-btn.primary { background: var(--gradient); color: white; border: none; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3); }
.udp-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4); }

/* 右侧悬浮按钮 */
.float-buttons { position: fixed; right: 20px; bottom: 100px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.float-btn { width: 50px; height: 50px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; position: relative; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.float-btn i { font-size: 1.1rem; transition: transform 0.3s; }
.float-btn span { font-size: 0.65rem; margin-top: 2px; opacity: 0; max-height: 0; overflow: hidden; transition: all 0.3s; }
.float-btn:hover { width: 60px; height: 60px; }
.float-btn:hover i { transform: scale(1.1); }
.float-btn:hover span { opacity: 1; max-height: 20px; }
.float-btn.qq { background: linear-gradient(135deg, #12b7f5 0%, #0d9bd8 100%); color: white; }
.float-btn.qq:hover { box-shadow: 0 8px 25px rgba(18, 183, 245, 0.4); }
.float-btn.wechat { background: linear-gradient(135deg, #07c160 0%, #06ad56 100%); color: white; }
.float-btn.wechat:hover { box-shadow: 0 8px 25px rgba(7, 193, 96, 0.4); }
.float-btn.feedback { background: linear-gradient(135deg, var(--gold) 0%, var(--secondary) 100%); color: white; }
.float-btn.feedback:hover { box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4); }
.float-btn.backtop { background: white; color: var(--text); border: 1px solid var(--border); opacity: 0; visibility: hidden; transform: translateY(20px); }
.float-btn.backtop.show { opacity: 1; visibility: visible; transform: translateY(0); }
.float-btn.backtop:hover { background: var(--gold); color: white; border-color: var(--gold); box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4); }
.float-popup { position: absolute; right: 65px; bottom: 0; background: white; border-radius: 12px; padding: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); opacity: 0; visibility: hidden; transform: translateX(10px); transition: all 0.3s; white-space: nowrap; }
.float-btn:hover .float-popup { opacity: 1; visibility: visible; transform: translateX(0); }
.float-popup::after { content: ''; position: absolute; right: -8px; bottom: 18px; border: 8px solid transparent; border-left-color: white; }
.float-popup img { width: 120px; height: 120px; border-radius: 8px; display: block; }
.float-popup p { margin: 10px 0 0; font-size: 0.8rem; color: var(--text-light); text-align: center; }
@media (max-width: 768px) {
    .float-buttons { right: 15px; bottom: 80px; }
    .float-btn { width: 44px; height: 44px; }
    .float-btn:hover { width: 50px; height: 50px; }
    .float-btn span { display: none; }
}

/* 搜索面板 */
.search-dropdown { position: relative; }
.search-panel { position: absolute; top: calc(100% + 10px); right: 0; width: 360px; background: #fff; border-radius: 16px; box-shadow: 0 10px 50px rgba(0,0,0,0.15); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.25s; z-index: 1000; overflow: hidden; }
.search-panel.show { opacity: 1; visibility: visible; transform: translateY(0); }
.search-panel-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #f0f0f0; }
.search-panel-header span { font-weight: 600; color: var(--text); }
.search-panel-close { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: #f7fafc; border: none; border-radius: 50%; cursor: pointer; color: #718096; }
.search-panel-form { display: flex; padding: 16px 20px; gap: 10px; }
.search-panel-form input { flex: 1; padding: 12px 16px; border: 2px solid var(--border); border-radius: 10px; font-size: 0.95rem; outline: none; transition: all 0.2s; }
.search-panel-form input:focus { border-color: var(--gold); }
.search-panel-form button { width: 44px; height: 44px; background: var(--gradient); color: #fff; border: none; border-radius: 10px; cursor: pointer; font-size: 1rem; }

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-mockup { display: none; }
    .hero-stats { justify-content: center; }
    .hero-buttons { justify-content: center; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-card.feature-highlight { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 900px) {
    .showcase-grid { grid-template-columns: 1fr; }
    .showcase-image { order: -1; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .download-cards { grid-template-columns: 1fr; }
    .community-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .content-wrapper { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .navbar .container { flex-wrap: wrap; height: auto; padding: 15px 20px; }
    .nav-links { display: none; }
    .hero { padding: 100px 20px 60px; }
    .hero-title { font-size: 2.2rem; }
    .hero-desc { font-size: 1rem; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    .stat-divider { display: none; }
    .section-title-lg { font-size: 1.8rem; }
    .features-grid { grid-template-columns: 1fr; }
    .feature-card.feature-highlight { grid-column: span 1; }
    .tech-grid { grid-template-columns: 1fr; }
    .community-grid { grid-template-columns: 1fr; }
    .cta-wrapper { padding: 60px 20px; }
    .cta-content h2 { font-size: 1.8rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .post-detail { padding: 24px; }
    .featured-image { margin: -24px -24px 24px; }
}
@media (max-width: 600px) {
    .post-card { flex-direction: column; }
    .post-thumb { width: 100%; height: 180px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn-hero { width: 100%; justify-content: center; }
}

/* ========== 开发者入驻页面 ========== */
.dev-hero { position: relative; padding: 160px 0 100px; background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); overflow: hidden; }
.dev-hero-bg { position: absolute; inset: 0; }
.dev-particles { position: absolute; inset: 0; background-image: radial-gradient(rgba(245,158,11,0.2) 1px, transparent 1px); background-size: 40px 40px; opacity: 0.5; }
.dev-hero-content { position: relative; z-index: 1; text-align: center; max-width: 800px; margin: 0 auto; color: white; }
.dev-badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: rgba(245,158,11,0.2); border: 1px solid rgba(245,158,11,0.3); border-radius: 50px; color: var(--gold); font-size: 0.9rem; font-weight: 600; margin-bottom: 24px; }
.dev-hero-content h1 { font-size: 3rem; font-weight: 800; margin-bottom: 20px; line-height: 1.3; }
.dev-hero-content > p { font-size: 1.2rem; color: #94a3b8; line-height: 1.8; margin-bottom: 40px; }
.dev-hero-stats { display: flex; justify-content: center; gap: 60px; margin-bottom: 40px; }
.dhs-item { text-align: center; }
.dhs-num { display: block; font-size: 2rem; font-weight: 800; color: var(--gold); }
.dhs-label { font-size: 0.9rem; color: #64748b; }
.btn-dev-apply { display: inline-flex; align-items: center; gap: 10px; padding: 18px 40px; background: var(--gradient); color: white; font-size: 1.1rem; font-weight: 600; border-radius: 12px; text-decoration: none; transition: all 0.3s; box-shadow: 0 10px 30px rgba(245,158,11,0.3); }
.btn-dev-apply:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(245,158,11,0.4); }

/* 入驻权益 */
.dev-benefits { padding: 100px 0; background: var(--bg); }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit-card { background: white; border-radius: var(--radius); padding: 32px; border: 1px solid var(--border); transition: all 0.3s; }
.benefit-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.benefit-icon { width: 60px; height: 60px; background: var(--gold-light); color: var(--gold); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; }
.benefit-icon.purple { background: #ede9fe; color: #7c3aed; }
.benefit-icon.blue { background: #dbeafe; color: #2563eb; }
.benefit-icon.green { background: #dcfce7; color: #16a34a; }
.benefit-icon.orange { background: #ffedd5; color: #ea580c; }
.benefit-icon.pink { background: #fce7f3; color: #db2777; }
.benefit-card h3 { font-size: 1.25rem; color: var(--text); margin-bottom: 12px; }
.benefit-card > p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; }
.benefit-card strong { color: var(--gold); }
.benefit-list { list-style: none; }
.benefit-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 0.9rem; color: var(--text-light); }
.benefit-list i { color: var(--gold); font-size: 0.8rem; }

/* 入驻流程 */
.dev-process { padding: 100px 0; background: white; }
.process-timeline { display: flex; justify-content: space-between; position: relative; max-width: 900px; margin: 0 auto; }
.process-line { position: absolute; top: 40px; left: 10%; right: 10%; height: 3px; background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%); z-index: 0; }
.process-step { position: relative; z-index: 1; text-align: center; flex: 1; }
.step-number { width: 80px; height: 80px; background: var(--gradient); color: white; font-size: 1.5rem; font-weight: 800; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; box-shadow: 0 10px 30px rgba(245,158,11,0.3); }
.step-content { padding: 0 10px; }
.step-icon { width: 50px; height: 50px; background: var(--gold-light); color: var(--gold); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin: 0 auto 12px; }
.step-content h4 { font-size: 1.1rem; color: var(--text); margin-bottom: 8px; }
.step-content p { font-size: 0.85rem; color: var(--text-light); }

/* 作品类型 */
.dev-types { padding: 100px 0; background: var(--bg); }
.types-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.type-card { background: white; border-radius: var(--radius); padding: 40px 32px; text-align: center; border: 1px solid var(--border); transition: all 0.3s; }
.type-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.type-icon { width: 80px; height: 80px; background: var(--gold-light); color: var(--gold); border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 24px; }
.type-icon.purple { background: #ede9fe; color: #7c3aed; }
.type-icon.blue { background: #dbeafe; color: #2563eb; }
.type-card h3 { font-size: 1.3rem; color: var(--text); margin-bottom: 12px; }
.type-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; }
.type-tags { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.type-tags span { padding: 6px 14px; background: var(--bg); color: var(--text-light); font-size: 0.8rem; border-radius: 20px; }

/* 入驻要求 */
.dev-requirements { padding: 100px 0; background: white; }
.req-wrapper { display: grid; grid-template-columns: 1fr 400px; gap: 60px; align-items: center; }
.req-content h2 { font-size: 2rem; font-weight: 800; color: var(--text); margin: 16px 0 32px; }
.req-list { list-style: none; }
.req-list li { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.req-list li:last-child { border-bottom: none; }
.req-icon { width: 50px; height: 50px; background: var(--gold-light); color: var(--gold); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.req-text h4 { font-size: 1.1rem; color: var(--text); margin-bottom: 6px; }
.req-text p { font-size: 0.9rem; color: var(--text-light); margin: 0; }
.req-card { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%); border-radius: var(--radius); overflow: hidden; }
.req-card-header { padding: 24px; background: rgba(245,158,11,0.1); display: flex; align-items: center; gap: 12px; color: var(--gold); font-size: 1.1rem; font-weight: 600; }
.req-card-header i { font-size: 1.5rem; }
.req-card-body { padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.req-stat { text-align: center; }
.req-stat-num { display: block; font-size: 2rem; font-weight: 800; color: white; margin-bottom: 4px; }
.req-stat-label { font-size: 0.9rem; color: #64748b; }

/* 申请表单区 */
.dev-apply { padding: 100px 0; background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%); }
.section-title-lg.light, .section-desc.light { color: white; }
.section-desc.light { color: #94a3b8; }
.apply-form-wrapper { display: grid; grid-template-columns: 1fr 350px; gap: 40px; margin-top: 60px; }
.apply-form { background: white; border-radius: var(--radius); padding: 40px; }
.form-section { margin-bottom: 32px; }
.form-section:last-child { margin-bottom: 0; }
.form-section h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid var(--gold-light); }
.form-section h3 i { color: var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.form-group label .required { color: #ef4444; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: 10px; font-size: 0.95rem; transition: all 0.2s; font-family: inherit; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); outline: none; }
.form-group textarea { resize: vertical; min-height: 100px; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 16px; }
.checkbox-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text); cursor: pointer; }
.checkbox-item input { width: 18px; height: 18px; accent-color: var(--gold); }
.form-agreement { margin-bottom: 24px; }
.form-agreement a { color: var(--gold); text-decoration: none; }
.form-agreement a:hover { text-decoration: underline; }
.btn-submit-apply { width: 100%; padding: 16px; background: var(--gradient); color: white; border: none; border-radius: 10px; font-size: 1.1rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.3s; }
.btn-submit-apply:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(245,158,11,0.3); }
.btn-submit-apply:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* 申请侧边栏 */
.apply-sidebar { display: flex; flex-direction: column; gap: 24px; }
.apply-sidebar .sidebar-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 28px; }
.apply-sidebar .sc-icon { width: 50px; height: 50px; background: rgba(245,158,11,0.2); color: var(--gold); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 16px; }
.apply-sidebar .sidebar-card h4 { font-size: 1.1rem; color: white; margin-bottom: 16px; }
.apply-sidebar .sidebar-card p { font-size: 0.9rem; color: #94a3b8; margin-bottom: 16px; }
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item h5 { font-size: 0.95rem; color: white; margin-bottom: 6px; }
.faq-item p { font-size: 0.85rem; color: #64748b; margin: 0; }
.contact-list { list-style: none; }
.contact-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: #94a3b8; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.contact-list li:last-child { border-bottom: none; }
.contact-list i { color: var(--gold); width: 20px; }

/* 成功案例 */
.dev-showcase { padding: 100px 0; background: var(--bg); }
.dev-showcase .dev-showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.showcase-card { background: white; border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); display: flex; flex-direction: column; gap: 16px; transition: all 0.3s; }
.showcase-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.sc-avatar { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; background: var(--gold-light); }
.sc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sc-info h4 { font-size: 1.1rem; color: var(--text); display: flex; align-items: center; gap: 8px; }
.sc-info .verified { color: var(--gold); font-size: 0.9rem; }
.sc-title { font-size: 0.85rem; color: var(--gold); margin: 4px 0; }
.sc-desc { font-size: 0.9rem; color: var(--text-light); margin: 0; }
.sc-stats { display: flex; gap: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.sc-stats span { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-light); }
.sc-stats i { color: var(--gold); }

/* 开发者页面响应式 */
@media (max-width: 1024px) {
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .types-grid { grid-template-columns: repeat(2, 1fr); }
    .req-wrapper { grid-template-columns: 1fr; }
    .req-image { order: -1; }
    .req-card { max-width: 400px; margin: 0 auto; }
    .apply-form-wrapper { grid-template-columns: 1fr; }
    .apply-sidebar { flex-direction: row; }
    .apply-sidebar .sidebar-card { flex: 1; }
    .dev-showcase .dev-showcase-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .dev-hero { padding: 120px 0 80px; }
    .dev-hero-content h1 { font-size: 2rem; }
    .dev-hero-stats { flex-wrap: wrap; gap: 30px; }
    .benefits-grid { grid-template-columns: 1fr; }
    .process-timeline { flex-direction: column; gap: 30px; }
    .process-line { display: none; }
    .types-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .apply-sidebar { flex-direction: column; }
    .dev-showcase .dev-showcase-grid { grid-template-columns: 1fr; }
}

/* ========== 开发者中心页面 ========== */
.dev-center { max-width: 1400px; margin: 0 auto; padding: 100px 20px 80px; min-height: calc(100vh - 200px); }

/* 顶部卡片 */
.dc-header { position: relative; margin-bottom: 30px; overflow: visible; }
.dc-profile-card { position: relative; z-index: 1; background: white; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 30px; border: 1px solid var(--border); }
.dc-avatar { position: relative; width: 100px; height: 100px; border-radius: 50%; flex-shrink: 0; cursor: pointer; }
.dc-avatar img, .dc-avatar span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; overflow: hidden; }
.dc-avatar span { display: flex; align-items: center; justify-content: center; background: var(--gradient); color: white; font-size: 2.5rem; font-weight: 700; }
.dc-avatar-badge { position: absolute; bottom: 0; right: 0; width: 28px; height: 28px; background: var(--gold); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; border: 3px solid white; z-index: 2; }
.dc-avatar-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; border-radius: 50%; }
.dc-avatar-overlay i { color: white; font-size: 1.5rem; }
.dc-avatar:hover .dc-avatar-overlay { opacity: 1; }
.dc-avatar.uploading::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.6); border-radius: 50%; }
.dc-avatar.uploading::before { content: ''; position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border: 3px solid rgba(255,255,255,0.3); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; z-index: 3; }
@keyframes spin { to { transform: rotate(360deg); } }
.dc-user-info { flex: 1; }
.dc-name-row { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.dc-name-row h1 { font-size: 1.5rem; color: var(--text); margin: 0; }
.dc-verified { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; background: var(--gold-light); color: var(--gold); font-size: 0.8rem; font-weight: 600; border-radius: 20px; }
.dc-username { color: var(--text-light); font-size: 0.95rem; margin-bottom: 8px; }
.dc-bio { color: var(--text-light); font-size: 0.9rem; margin-bottom: 12px; }
.dc-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.85rem; color: var(--text-light); }
.dc-meta span { display: flex; align-items: center; gap: 6px; }
.dc-meta i { color: var(--gold); }
.dc-quick-actions { display: flex; gap: 10px; }
.dc-action-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 10px; font-size: 0.9rem; font-weight: 500; text-decoration: none; background: var(--bg); color: var(--text); transition: all 0.2s; }
.dc-action-btn:hover { background: var(--border); }
.dc-action-btn.primary { background: var(--gradient); color: white; }
.dc-action-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(245,158,11,0.3); }

/* 统计卡片 */
.dc-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; position: relative; z-index: 1; }
.dc-stat-card { background: white; border-radius: var(--radius); padding: 24px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.dc-stat-icon { width: 56px; height: 56px; background: var(--gold-light); color: var(--gold); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.dc-stat-icon.blue { background: #dbeafe; color: #2563eb; }
.dc-stat-icon.green { background: #dcfce7; color: #16a34a; }
.dc-stat-icon.pink { background: #fce7f3; color: #db2777; }
.dc-stat-num { display: block; font-size: 1.5rem; font-weight: 700; color: var(--text); }
.dc-stat-label { font-size: 0.85rem; color: var(--text-light); }

/* 主内容区 */
.dc-main { display: grid; grid-template-columns: 260px 1fr; gap: 30px; position: relative; z-index: 1; }

/* 左侧导航 */
.dc-nav { background: white; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); height: fit-content; position: sticky; top: 90px; }
.dc-nav-section { margin-bottom: 24px; }
.dc-nav-section:last-child { margin-bottom: 0; }
.dc-nav-title { font-size: 0.75rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; padding: 0 12px; margin-bottom: 10px; }
.dc-nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: 0.9rem; transition: all 0.2s; margin-bottom: 4px; }
.dc-nav-item i { width: 18px; color: var(--text-light); }
.dc-nav-item:hover { background: var(--gold-light); color: var(--gold); }
.dc-nav-item:hover i { color: var(--gold); }
.dc-nav-item.active { background: var(--gold-light); color: var(--gold); font-weight: 500; }
.dc-nav-item.active i { color: var(--gold); }

/* 右侧内容区 */
.dc-content { min-width: 0; }
.dc-section { display: none; background: white; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.dc-section.active { display: block; }
.dc-section-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); gap: 8px; }
.dc-section-header h2 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; margin: 0; }
.dc-section-header h2 i { color: var(--gold); }
.dc-section-subtitle { font-size: 0.85rem; color: var(--text-light); width: 100%; margin-top: 4px; }

/* 按钮 */
.dc-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: none; border-radius: 10px; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.dc-btn.primary { background: var(--gradient); color: white; }
.dc-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245,158,11,0.3); }
.dc-btn.outline { background: transparent; border: 2px solid var(--border); color: var(--text); }
.dc-btn.outline:hover { border-color: var(--gold); color: var(--gold); }
.dc-btn.text { background: none; color: var(--text-light); }
.dc-btn.danger { background: #ef4444; color: white; }

/* 日期筛选 */
.dc-date-filter { display: flex; gap: 8px; }
.dc-date-filter button { padding: 6px 14px; border: 1px solid var(--border); background: white; border-radius: 6px; font-size: 0.8rem; cursor: pointer; transition: all 0.2s; }
.dc-date-filter button.active, .dc-date-filter button:hover { background: var(--gold); color: white; border-color: var(--gold); }

/* 图表 */
.dc-chart-card { background: var(--bg); border-radius: 12px; padding: 24px; margin-bottom: 24px; }
.dc-chart-card h3 { font-size: 1rem; margin-bottom: 20px; }
.dc-chart-bars { display: flex; align-items: flex-end; justify-content: space-between; height: 150px; gap: 12px; }
.dc-bar { flex: 1; background: linear-gradient(180deg, var(--gold) 0%, var(--gold-light) 100%); border-radius: 6px 6px 0 0; position: relative; transition: all 0.3s; opacity: 0.6; }
.dc-bar:hover, .dc-bar.active { opacity: 1; }
.dc-bar span { position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); font-size: 0.75rem; color: var(--text-light); }

/* 热门作品 */
.dc-popular-products { margin-bottom: 24px; }
.dc-popular-products h3 { font-size: 1rem; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.dc-popular-products h3 i { color: #ef4444; }
.dc-product-list { display: flex; flex-direction: column; gap: 12px; }
.dc-product-item { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--bg); border-radius: 12px; }
.dc-rank { width: 28px; height: 28px; background: var(--border); color: var(--text-light); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 600; }
.dc-rank.top { background: var(--gradient); color: white; }
.dc-product-info { flex: 1; min-width: 0; }
.dc-product-info h4 { font-size: 0.95rem; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-product-info h4 a { color: var(--text); text-decoration: none; }
.dc-product-info h4 a:hover { color: var(--gold); }
.dc-product-meta { display: flex; gap: 16px; font-size: 0.8rem; color: var(--text-light); }
.dc-product-trend { font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.dc-product-trend.up { background: #dcfce7; color: #16a34a; }
.dc-product-trend.down { background: #fee2e2; color: #dc2626; }

/* 最近动态 */
.dc-recent-activity h3 { font-size: 1rem; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.dc-activity-list { display: flex; flex-direction: column; gap: 12px; }
.dc-activity-item { display: flex; gap: 14px; padding: 14px; background: var(--bg); border-radius: 12px; }
.dc-activity-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0; }
.dc-activity-icon.green { background: #dcfce7; color: #16a34a; }
.dc-activity-icon.blue { background: #dbeafe; color: #2563eb; }
.dc-activity-icon.gold { background: var(--gold-light); color: var(--gold); }
.dc-activity-icon.purple { background: #ede9fe; color: #7c3aed; }
.dc-activity-content p { font-size: 0.9rem; color: var(--text); margin: 0 0 4px; }
.dc-activity-content strong { color: var(--gold); }
.dc-activity-time { font-size: 0.8rem; color: var(--text-light); }

/* 作品筛选 */
.dc-filter-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.dc-filter-tabs { display: flex; gap: 8px; }
.dc-filter-tabs button { padding: 8px 16px; border: 1px solid var(--border); background: white; border-radius: 8px; font-size: 0.85rem; cursor: pointer; transition: all 0.2s; }
.dc-filter-tabs button.active, .dc-filter-tabs button:hover { background: var(--gold); color: white; border-color: var(--gold); }
.dc-search-box { position: relative; }
.dc-search-box i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-light); }
.dc-search-box input { padding: 10px 14px 10px 40px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.9rem; width: 220px; }
.dc-search-box input:focus { border-color: var(--gold); outline: none; }

/* 作品网格 */
.dc-products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dc-product-card { background: var(--bg); border-radius: 12px; overflow: hidden; transition: all 0.3s; border: 1px solid transparent; }
.dc-product-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.dc-product-thumb { position: relative; height: 140px; background: var(--border); }
.dc-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dc-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 2rem; }
.dc-product-status { position: absolute; top: 10px; right: 10px; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 500; }
.dc-product-status.published { background: #dcfce7; color: #16a34a; }
.dc-product-status.draft { background: var(--gold-light); color: var(--gold); }
.dc-product-body { padding: 16px; }
.dc-product-body h4 { font-size: 0.95rem; margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-product-body h4 a { color: var(--text); text-decoration: none; }
.dc-product-body h4 a:hover { color: var(--gold); }
.dc-product-stats { display: flex; gap: 14px; font-size: 0.8rem; color: var(--text-light); margin-bottom: 12px; }
.dc-product-stats i { color: var(--gold); }
.dc-product-footer { display: flex; justify-content: space-between; align-items: center; }
.dc-product-date { font-size: 0.8rem; color: var(--text-light); }
.dc-product-actions { display: flex; gap: 8px; }
.dc-product-actions a { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: white; border-radius: 8px; color: var(--text-light); text-decoration: none; transition: all 0.2s; }
.dc-product-actions a:hover { background: var(--gold); color: white; }

/* 授权管理 - 简约风格 */
.lic-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.lic-card { background: #fff; border-radius: 14px; padding: 22px; box-shadow: 0 2px 12px rgba(0,0,0,0.04); border: 1px solid #f0f0f0; transition: all 0.2s; }
.lic-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); border-color: #e8e8e8; }
.lic-card.expired { opacity: 0.7; }
.lic-card.revoked { opacity: 0.6; }

/* 头部 */
.lic-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.lic-product { display: flex; align-items: center; gap: 16px; }
.lic-thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.lic-thumb-placeholder { width: 56px; height: 56px; border-radius: 12px; background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); display: flex; align-items: center; justify-content: center; color: #f59e0b; font-size: 1.4rem; }
.lic-product-info h3 { font-size: 1.1rem; font-weight: 600; color: #1f2937; margin: 0 0 4px; }
.lic-ver { font-size: 0.85rem; color: #9ca3af; }
.lic-badge { padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 500; }
.lic-badge.active { background: #ecfdf5; color: #059669; }
.lic-badge.expired { background: #fffbeb; color: #d97706; }
.lic-badge.revoked { background: #fef2f2; color: #dc2626; }

/* 授权码 */
.lic-key-section { margin-bottom: 24px; }
.lic-key-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.lic-key-label { font-size: 0.85rem; color: #6b7280; }
.lic-reset-btn { padding: 5px 12px; font-size: 0.8rem; background: #fff; color: #6b7280; border: 1px solid #e5e7eb; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 5px; transition: all 0.2s; }
.lic-reset-btn:hover { color: #f59e0b; border-color: #f59e0b; background: #fffbeb; }
.lic-reset-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.lic-key-box { display: flex; align-items: center; background: #f9fafb; border-radius: 10px; padding: 14px 16px; gap: 12px; }
.lic-key-box code { flex: 1; font-family: 'SF Mono', 'Monaco', 'Consolas', monospace; font-size: 0.9rem; color: #374151; letter-spacing: 0.5px; word-break: break-all; }
.lic-copy-btn { width: 36px; height: 36px; border: none; background: #fff; border-radius: 8px; cursor: pointer; color: #9ca3af; transition: all 0.2s; flex-shrink: 0; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.lic-copy-btn:hover { color: #f59e0b; background: #fffbeb; }

/* 授权详情 */
.lic-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; padding: 16px; background: #fafafa; border-radius: 10px; }
.lic-detail-item { display: flex; align-items: flex-start; gap: 12px; }
.lic-detail-item > i { width: 18px; height: 18px; color: #f59e0b; margin-top: 2px; font-size: 0.9rem; }
.lic-detail-content { display: flex; flex-direction: column; gap: 2px; }
.lic-detail-label { font-size: 0.8rem; color: #9ca3af; }
.lic-detail-value { font-size: 0.9rem; color: #374151; font-weight: 500; }

/* 域名绑定 */
.lic-domains { margin-bottom: 24px; }
.lic-domains-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.lic-domains-title { font-size: 0.9rem; font-weight: 500; color: #374151; display: flex; align-items: center; gap: 8px; }
.lic-domains-title i { color: #9ca3af; }
.lic-add-btn { padding: 6px 14px; font-size: 0.8rem; background: #f59e0b; color: white; border: none; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 5px; transition: all 0.2s; }
.lic-add-btn:hover { background: #d97706; }
.lic-domains-list { display: flex; flex-wrap: wrap; gap: 10px; }
.lic-domain-tag { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; background: #f0fdf4; border-radius: 8px; font-size: 0.85rem; color: #166534; }
.lic-domain-tag i.fa-check-circle { color: #22c55e; font-size: 0.8rem; }
.lic-domain-tag button { width: 24px; height: 24px; border: none; background: transparent; cursor: pointer; color: #9ca3af; border-radius: 4px; margin-left: 4px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; }
.lic-domain-tag button.change-btn:hover { background: #fef3c7; color: #f59e0b; }
.lic-domains-empty { padding: 16px; background: #f9fafb; border-radius: 8px; font-size: 0.85rem; color: #9ca3af; display: flex; align-items: center; gap: 8px; }

/* 操作按钮 */
.lic-actions { display: flex; gap: 12px; padding-top: 20px; border-top: 1px solid #f0f0f0; }
.lic-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-size: 0.9rem; font-weight: 500; text-decoration: none; cursor: pointer; border: none; transition: all 0.2s; }
.lic-btn.primary { background: #1f2937; color: #fff; }
.lic-btn.primary:hover { background: #111827; }
.lic-btn.secondary { background: #f3f4f6; color: #4b5563; }
.lic-btn.secondary:hover { background: #e5e7eb; }

/* 响应式 */
@media (max-width: 1024px) {
    .lic-list { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .lic-details { grid-template-columns: 1fr; }
    .lic-actions { flex-direction: column; }
}

/* 保留旧样式兼容 */
.dc-licenses-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.dc-license-card { background: var(--bg); border-radius: 16px; padding: 20px; border: 2px solid transparent; transition: all 0.3s; }
.dc-btn-mini { padding: 4px 10px; font-size: 0.75rem; background: var(--gold); color: white; border: none; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.dc-btn.small { padding: 8px 14px; font-size: 0.8rem; }

/* 收益管理 */
.dc-earnings-overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.dc-earning-card { background: var(--bg); border-radius: 12px; padding: 20px; }
.dc-earning-card.highlight { background: linear-gradient(135deg, var(--gold) 0%, var(--secondary) 100%); color: white; }
.dc-earning-label { font-size: 0.85rem; color: var(--text-light); margin-bottom: 8px; }
.dc-earning-card.highlight .dc-earning-label { color: rgba(255,255,255,0.8); }
.dc-earning-amount { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.dc-earning-card.highlight .dc-earning-amount { color: white; }
.dc-earning-hint { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-top: 8px; }
.dc-earning-trend { font-size: 0.8rem; margin-top: 8px; }
.dc-earning-trend.up { color: #16a34a; }

/* 表格 */
.dc-earnings-history h3 { font-size: 1rem; margin-bottom: 16px; }
.dc-table { width: 100%; border-collapse: collapse; }
.dc-table th, .dc-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.dc-table th { background: var(--bg); font-weight: 500; color: var(--text-light); }
.dc-type-tag { padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 500; }
.dc-type-tag.sale { background: #dcfce7; color: #16a34a; }
.dc-type-tag.withdraw { background: #dbeafe; color: #2563eb; }
.dc-type-tag.refund { background: #fef3c7; color: #d97706; }
.dc-amount { font-weight: 600; }
.dc-amount.positive { color: #16a34a; }
.dc-amount.negative { color: #ef4444; }
.dc-status-tag { padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; }
.dc-status-tag.success { background: #dcfce7; color: #16a34a; }
.dc-status-tag.pending { background: var(--gold-light); color: var(--gold); }

/* 表单 - 简约优雅风格 */
.dc-form { max-width: 600px; }
.dc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 0; }
.dc-form-row.three { grid-template-columns: repeat(3, 1fr); }
.dc-form-group { margin-bottom: 24px; position: relative; }
.dc-form-row .dc-form-group { margin-bottom: 24px; }
.dc-form-group label { 
    display: block; 
    font-size: 0.8rem; 
    font-weight: 600; 
    color: var(--text-light); 
    margin-bottom: 10px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}
.dc-input-wrap { position: relative; }
.dc-input-wrap i { 
    position: absolute; 
    left: 0; 
    top: 50%; 
    transform: translateY(-50%); 
    color: var(--text-light); 
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}
.dc-input-wrap input { 
    width: 100%; 
    padding: 14px 0 14px 32px; 
    border: none;
    border-bottom: 2px solid #e5e7eb; 
    border-radius: 0; 
    font-size: 1rem; 
    background: transparent;
    transition: all 0.3s ease;
    color: var(--text);
}
.dc-input-wrap input::placeholder { color: #9ca3af; }
.dc-input-wrap input:focus { 
    border-bottom-color: var(--gold); 
    outline: none; 
}
.dc-input-wrap input:focus + .dc-input-line,
.dc-input-wrap input:focus ~ .dc-input-line { 
    transform: scaleX(1); 
}
.dc-input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.dc-form-group textarea { 
    width: 100%; 
    padding: 16px; 
    border: 2px solid #e5e7eb; 
    border-radius: 12px; 
    font-size: 0.95rem; 
    resize: vertical; 
    font-family: inherit; 
    min-height: 120px;
    background: #fafafa;
    transition: all 0.3s ease;
    color: var(--text);
}
.dc-form-group textarea::placeholder { color: #9ca3af; }
.dc-form-group textarea:focus { 
    border-color: var(--gold); 
    outline: none; 
    background: white;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}
.dc-form-actions { 
    display: flex; 
    gap: 12px; 
    justify-content: flex-end; 
    padding-top: 16px; 
    margin-top: 8px;
    border-top: 1px solid #f3f4f6;
}
.dc-form-actions .dc-btn.primary {
    padding: 12px 28px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
/* 表单分隔线 */
.dc-form-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e5e7eb, transparent);
    margin: 32px 0;
}
/* 表单提示文字 */
.dc-form-hint {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 6px;
}
/* 只读输入框 */
.dc-input-wrap input[readonly] {
    color: #9ca3af;
    cursor: not-allowed;
}
.dc-input-wrap input[readonly]:focus {
    border-bottom-color: #e5e7eb;
}

/* 安全设置 */
.dc-security-list { display: flex; flex-direction: column; gap: 16px; }
.dc-security-item { display: flex; align-items: center; gap: 20px; padding: 20px; background: var(--bg); border-radius: 12px; }
.dc-security-item.danger { background: #fef2f2; }
.dc-security-icon { width: 50px; height: 50px; background: var(--gold-light); color: var(--gold); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.dc-security-icon.blue { background: #dbeafe; color: #2563eb; }
.dc-security-icon.red { background: #fee2e2; color: #ef4444; }
.dc-security-info { flex: 1; }
.dc-security-info h4 { font-size: 1rem; margin-bottom: 4px; }
.dc-security-info p { font-size: 0.85rem; color: var(--text-light); margin: 0; }
.dc-password-form { background: var(--bg); border-radius: 12px; padding: 24px; margin-top: 16px; }

/* 通知 */
.dc-notifications-list { display: flex; flex-direction: column; gap: 12px; }
.dc-notification-item { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--bg); border-radius: 12px; position: relative; }
.dc-notification-item.unread { background: var(--gold-light); }
.dc-notification-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.dc-notification-icon.green { background: #dcfce7; color: #16a34a; }
.dc-notification-icon.gold { background: white; color: var(--gold); }
.dc-notification-icon.blue { background: #dbeafe; color: #2563eb; }
.dc-notification-icon.purple { background: #ede9fe; color: #7c3aed; }
.dc-notification-content { flex: 1; }
.dc-notification-content p { font-size: 0.9rem; margin: 0 0 4px; }
.dc-notification-content strong { color: var(--gold); }
.dc-notification-time { font-size: 0.8rem; color: var(--text-light); }
.dc-notification-close { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; border: none; background: transparent; color: var(--text-light); cursor: pointer; border-radius: 50%; }
.dc-notification-close:hover { background: rgba(0,0,0,0.05); }

/* 空状态 */
.dc-empty { text-align: center; padding: 60px 20px; }
.dc-empty-icon { width: 80px; height: 80px; background: var(--gold-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.dc-empty-icon i { font-size: 2rem; color: var(--gold); }
.dc-empty h4 { font-size: 1.1rem; margin-bottom: 8px; }
.dc-empty p { color: var(--text-light); margin-bottom: 20px; }
.dc-empty-mini { text-align: center; padding: 40px; color: var(--text-light); }
.dc-empty-mini i { font-size: 2rem; margin-bottom: 10px; opacity: 0.5; }

/* 开发者中心响应式 */
@media (max-width: 1100px) {
    .dc-stats-row { grid-template-columns: repeat(2, 1fr); }
    .dc-products-grid { grid-template-columns: repeat(2, 1fr); }
    .dc-licenses-grid { grid-template-columns: 1fr; }
    .dc-earnings-overview { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .dc-profile-card { flex-direction: column; text-align: center; }
    .dc-quick-actions { justify-content: center; }
    .dc-main { grid-template-columns: 1fr; }
    .dc-nav { position: static; display: flex; gap: 10px; padding: 15px; overflow-x: auto; flex-wrap: nowrap; }
    .dc-nav-section { display: flex; gap: 5px; margin: 0; flex-shrink: 0; }
    .dc-nav-title { display: none; }
    .dc-nav-item { white-space: nowrap; padding: 10px 14px; }
    .dc-form-row, .dc-form-row.three { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .dc-stats-row { grid-template-columns: 1fr; }
    .dc-products-grid { grid-template-columns: 1fr; }
    .dc-licenses-grid { grid-template-columns: 1fr; }
    .dc-earnings-overview { grid-template-columns: 1fr; }
    .dc-filter-bar { flex-direction: column; gap: 12px; align-items: stretch; }
    .dc-search-box input { width: 100%; }
}


/* ========== 开发文档页面 ========== */
.docs-page { min-height: 100vh; background: var(--bg); }

/* 文档头部 */
.docs-header { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%); padding: 140px 0 60px; position: relative; overflow: hidden; }
.docs-header::before { content: ''; position: absolute; top: -50%; right: -20%; width: 80%; height: 150%; background: radial-gradient(ellipse, rgba(245,158,11,0.1) 0%, transparent 60%); pointer-events: none; }
.docs-header::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(245,158,11,0.2) 1px, transparent 1px); background-size: 40px 40px; opacity: 0.3; pointer-events: none; }
.docs-header-content { text-align: center; max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.docs-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: rgba(245,158,11,0.2); border: 1px solid rgba(245,158,11,0.3); border-radius: 50px; color: var(--gold); font-size: 0.85rem; font-weight: 500; margin-bottom: 20px; }
.docs-header h1 { font-size: 2.5rem; font-weight: 800; color: white; margin-bottom: 12px; }
.docs-header-content > p { color: #94a3b8; font-size: 1.1rem; margin-bottom: 30px; }
.docs-search { position: relative; max-width: 500px; margin: 0 auto; }
.docs-search i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: #64748b; }
.docs-search input { width: 100%; padding: 16px 80px 16px 50px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; color: white; font-size: 1rem; }
.docs-search input::placeholder { color: #64748b; }
.docs-search input:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,0.15); }
.docs-search kbd { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); padding: 4px 10px; background: rgba(255,255,255,0.1); border-radius: 6px; color: #64748b; font-size: 0.8rem; font-family: inherit; }
.docs-quick-links { display: flex; justify-content: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.docs-quick-links a { display: flex; align-items: center; gap: 8px; padding: 10px 20px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #94a3b8; text-decoration: none; font-size: 0.9rem; transition: all 0.2s; }
.docs-quick-links a:hover { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); color: var(--gold); }
.docs-quick-links a i { font-size: 1rem; }

/* 版本标签 */
.docs-version-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: rgba(34,197,94,0.2); border: 1px solid rgba(34,197,94,0.3); border-radius: 20px; color: #22c55e; font-size: 0.8rem; font-weight: 500; margin-left: 12px; }

/* 文档主体布局 */
.docs-main { padding: 40px 0 80px; }
.docs-container { display: grid; grid-template-columns: 280px 1fr 220px; gap: 40px; max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* 左侧导航 */
.docs-sidebar { position: sticky; top: 90px; height: fit-content; max-height: calc(100vh - 120px); overflow-y: auto; }
.docs-sidebar::-webkit-scrollbar { width: 4px; }
.docs-sidebar::-webkit-scrollbar-track { background: transparent; }
.docs-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.docs-nav { background: white; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.docs-nav-section { margin-bottom: 8px; }
.docs-nav-title { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; color: var(--text); transition: all 0.2s; }
.docs-nav-title:hover { background: var(--gold-light); }
.docs-nav-title i:first-child { color: var(--gold); width: 18px; }
.docs-nav-title span { flex: 1; }
.docs-nav-arrow { font-size: 0.7rem; color: var(--text-light); transition: transform 0.2s; }
.docs-nav-section.active .docs-nav-arrow { transform: rotate(180deg); }
.docs-nav-list { list-style: none; max-height: 0; overflow: hidden; transition: max-height 0.3s; }
.docs-nav-section.active .docs-nav-list { max-height: 500px; }
.docs-nav-list li a { display: block; padding: 10px 14px 10px 42px; color: var(--text-light); text-decoration: none; font-size: 0.9rem; border-radius: 8px; transition: all 0.2s; }
.docs-nav-list li a:hover { background: var(--bg); color: var(--text); }
.docs-nav-list li a.active { background: var(--gold-light); color: var(--gold); font-weight: 500; }

/* 文档内容区 */
.docs-content { min-width: 0; }
.docs-breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; font-size: 0.9rem; color: var(--text-light); }
.docs-breadcrumb a { color: var(--gold); text-decoration: none; }
.docs-breadcrumb i { font-size: 0.7rem; }
.docs-article { background: white; border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.docs-article h1 { font-size: 2rem; color: var(--text); margin-bottom: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--gold-light); }
.docs-article h2 { font-size: 1.5rem; color: var(--text); margin: 40px 0 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.docs-article h2:first-of-type { border-top: none; margin-top: 30px; padding-top: 0; }
.docs-article h3 { font-size: 1.2rem; color: var(--text); margin: 30px 0 16px; }
.docs-article h4 { font-size: 1rem; color: var(--text); margin: 20px 0 12px; }
.docs-article p { color: var(--text-light); line-height: 1.8; margin-bottom: 16px; }
.docs-article a { color: var(--gold); text-decoration: none; }
.docs-article a:hover { text-decoration: underline; }
.docs-article code { background: var(--gold-light); color: var(--gold); padding: 2px 8px; border-radius: 4px; font-size: 0.9em; font-family: 'Fira Code', monospace; }
.docs-article .docs-code-block code { background: transparent; color: #e2e8f0; padding: 0; border-radius: 0; }
.docs-article ul, .docs-article ol { margin: 16px 0; padding-left: 24px; color: var(--text-light); }
.docs-article li { margin-bottom: 8px; line-height: 1.7; }
.docs-article blockquote { margin: 24px 0; padding: 16px 20px; background: var(--bg); border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; }
.docs-article blockquote p { margin: 0; font-style: italic; }
.docs-article hr { border: none; height: 1px; background: var(--border); margin: 40px 0; }
.docs-article img { max-width: 100%; border-radius: 12px; margin: 20px 0; box-shadow: var(--shadow); }
.docs-lead { font-size: 1.15rem; color: var(--text) !important; margin-bottom: 30px !important; line-height: 1.8; }


/* 文档组件样式 */
.docs-info-box { display: flex; gap: 16px; padding: 20px; background: var(--gold-light); border-radius: 12px; margin: 24px 0; border-left: 4px solid var(--gold); }
.docs-info-box i { color: var(--gold); font-size: 1.2rem; margin-top: 2px; }
.docs-info-box strong { display: block; color: var(--text); margin-bottom: 4px; }
.docs-info-box p { margin: 0; font-size: 0.9rem; }
.docs-info-box.warning { background: #fef3c7; border-color: #f59e0b; }
.docs-info-box.warning i { color: #f59e0b; }
.docs-info-box.danger { background: #fee2e2; border-color: #ef4444; }
.docs-info-box.danger i { color: #ef4444; }
.docs-info-box.success { background: #dcfce7; border-color: #22c55e; }
.docs-info-box.success i { color: #22c55e; }
.docs-info-box.info { background: #dbeafe; border-color: #3b82f6; }
.docs-info-box.info i { color: #3b82f6; }

.docs-features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 24px 0; }
.docs-feature-item { padding: 24px; background: var(--bg); border-radius: 12px; border: 1px solid var(--border); }
.dfi-icon { width: 48px; height: 48px; background: var(--gold-light); color: var(--gold); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 16px; }
.dfi-icon.blue { background: #dbeafe; color: #2563eb; }
.dfi-icon.purple { background: #ede9fe; color: #7c3aed; }
.dfi-icon.green { background: #dcfce7; color: #16a34a; }
.docs-feature-item { transition: all 0.3s; }
.docs-feature-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }
.docs-feature-item h4 { font-size: 1rem; margin: 0 0 8px !important; color: var(--text); }
.docs-feature-item p { font-size: 0.9rem; margin: 0 !important; color: var(--text-light); }

.docs-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.docs-table th, .docs-table td { padding: 12px 16px; text-align: left; border: 1px solid var(--border); font-size: 0.9rem; }
.docs-table th { background: var(--bg); font-weight: 600; color: var(--text); }
.docs-table td { color: var(--text-light); }
.docs-table code { background: var(--gold-light); color: var(--gold); padding: 2px 8px; border-radius: 4px; font-size: 0.85rem; }

.docs-code-block { background: #1e293b; border-radius: 12px; overflow: hidden; margin: 20px 0; }
.dcb-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: #0f172a; }
.dcb-header span { color: #64748b; font-size: 0.8rem; }
.dcb-header button { background: none; border: none; color: #64748b; cursor: pointer; padding: 6px; border-radius: 6px; }
.dcb-header button:hover { background: rgba(255,255,255,0.1); color: white; }
.docs-code-block pre { margin: 0; padding: 20px; overflow-x: auto; }
.docs-code-block code { color: #e2e8f0; font-family: 'Fira Code', monospace; font-size: 0.9rem; line-height: 1.7; white-space: pre; }
.docs-code-block .comment { color: #64748b; }
.docs-code-block .keyword { color: #f472b6; }
.docs-code-block .string { color: #a5f3fc; }
.docs-code-block .function { color: #fbbf24; }
.docs-code-block .variable { color: #c4b5fd; }
.docs-code-block .number { color: #86efac; }

/* 行内代码复制提示 */
.code-copied { position: fixed; top: 100px; right: 20px; padding: 12px 20px; background: var(--dark); color: white; border-radius: 8px; font-size: 0.9rem; z-index: 9999; animation: fadeInOut 2s ease; }
@keyframes fadeInOut { 0% { opacity: 0; transform: translateY(-10px); } 10% { opacity: 1; transform: translateY(0); } 90% { opacity: 1; } 100% { opacity: 0; } }

.docs-steps { margin: 24px 0; }
.docs-step { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.docs-step:last-child { border-bottom: none; }
.ds-num { width: 40px; height: 40px; background: var(--gradient); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.ds-content h4 { margin: 0 0 6px !important; }
.ds-content p { margin: 0 !important; font-size: 0.9rem; }
.ds-content code { background: var(--gold-light); color: var(--gold); padding: 2px 8px; border-radius: 4px; }


/* 文件树 */
.docs-file-tree { background: var(--bg); border-radius: 12px; padding: 20px; margin: 20px 0; font-family: 'Fira Code', monospace; font-size: 0.9rem; }
.dft-item { padding: 6px 0; color: var(--text); }
.dft-item i { margin-right: 8px; }
.dft-item.folder > i { color: var(--gold); }
.dft-item.file > i { color: #64748b; }
.dft-children { padding-left: 24px; border-left: 1px dashed var(--border); margin-left: 8px; }
.dft-desc { color: var(--text-light); font-size: 0.8rem; margin-left: 10px; font-family: inherit; }
.dft-item.folder { cursor: pointer; }
.dft-item.folder.open > i:first-child::before { content: '\f07c'; }

/* 参数表格增强 */
.docs-params { margin: 20px 0; }
.docs-param-item { display: flex; gap: 16px; padding: 16px; background: var(--bg); border-radius: 10px; margin-bottom: 10px; align-items: flex-start; }
.docs-param-name { min-width: 120px; }
.docs-param-name code { font-weight: 600; }
.docs-param-type { color: var(--gold); font-size: 0.85rem; font-weight: 500; }
.docs-param-required { color: #ef4444; font-size: 0.75rem; margin-left: 6px; }
.docs-param-desc { flex: 1; font-size: 0.9rem; color: var(--text-light); }

/* API文档项 */
.docs-api-item { background: var(--bg); border-radius: 12px; padding: 24px; margin: 24px 0; border: 1px solid var(--border); }
.dai-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.dai-header code { font-size: 1.1rem; color: var(--text); background: none; padding: 0; }
.dai-tag { padding: 4px 10px; background: var(--gold-light); color: var(--gold); font-size: 0.75rem; font-weight: 600; border-radius: 20px; }
.dai-method { padding: 4px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: 600; }
.dai-method.get { background: #dcfce7; color: #16a34a; }
.dai-method.post { background: #dbeafe; color: #2563eb; }
.dai-method.put { background: #fef3c7; color: #d97706; }
.dai-method.delete { background: #fee2e2; color: #dc2626; }
.docs-api-item > p { margin-bottom: 20px; }
.docs-api-item h4 { font-size: 0.9rem; font-weight: 600; color: var(--text); margin: 20px 0 12px; text-transform: uppercase; letter-spacing: 0.5px; }

/* 返回值说明 */
.docs-returns { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 16px; margin: 16px 0; }
.docs-returns-title { font-size: 0.85rem; font-weight: 600; color: #16a34a; margin-bottom: 8px; }
.docs-returns code { background: #dcfce7; color: #16a34a; }

/* Tab切换 */
.docs-tabs { display: flex; gap: 8px; margin: 20px 0 0; }
.docs-tab { padding: 10px 20px; background: var(--bg); border: 1px solid var(--border); border-bottom: none; border-radius: 8px 8px 0 0; cursor: pointer; font-size: 0.9rem; color: var(--text-light); transition: all 0.2s; }
.docs-tab.active { background: white; color: var(--gold); border-color: var(--gold); border-bottom: 1px solid white; margin-bottom: -1px; position: relative; z-index: 1; }
.docs-tab-content { display: none; padding: 20px; background: white; border: 1px solid var(--gold); border-radius: 0 12px 12px 12px; }
.docs-tab-content.active { display: block; }

/* 右侧目录 */
.docs-toc { position: sticky; top: 90px; height: fit-content; }
.docs-toc-title { font-size: 0.8rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; margin-bottom: 16px; }
.docs-toc-nav { display: flex; flex-direction: column; gap: 4px; border-left: 2px solid var(--border); padding-left: 16px; }
.docs-toc-item { color: var(--text-light); text-decoration: none; font-size: 0.85rem; padding: 6px 0; transition: all 0.2s; }
.docs-toc-item:hover { color: var(--gold); }
.docs-toc-item.active { color: var(--gold); font-weight: 500; }
.docs-toc-item.sub { padding-left: 12px; font-size: 0.8rem; }

/* 文档卡片网格 */
.docs-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 30px 0; }
.docs-card { background: white; border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); transition: all 0.3s; text-decoration: none; display: block; }
.docs-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.docs-card-icon { width: 56px; height: 56px; background: var(--gold-light); color: var(--gold); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 20px; }
.docs-card-icon.blue { background: #dbeafe; color: #2563eb; }
.docs-card-icon.purple { background: #ede9fe; color: #7c3aed; }
.docs-card-icon.green { background: #dcfce7; color: #16a34a; }
.docs-card h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 8px; }
.docs-card p { font-size: 0.9rem; color: var(--text-light); margin: 0; line-height: 1.6; }
.docs-card-arrow { margin-top: 16px; color: var(--gold); font-size: 0.9rem; display: flex; align-items: center; gap: 6px; }

/* 搜索结果 */
.docs-search-results { position: absolute; top: 100%; left: 0; right: 0; background: white; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); margin-top: 8px; max-height: 400px; overflow-y: auto; display: none; z-index: 100; }
.docs-search-results.show { display: block; }
.docs-search-item { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); text-decoration: none; transition: background 0.2s; }
.docs-search-item:hover { background: var(--gold-light); }
.docs-search-item:last-child { border-bottom: none; }
.docs-search-item i { color: var(--gold); }
.docs-search-item span { color: var(--text); font-size: 0.95rem; }
.docs-search-item small { color: var(--text-light); font-size: 0.8rem; margin-left: auto; }

/* 上一篇/下一篇导航 */
.docs-nav-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border); }
.docs-nav-link { display: flex; flex-direction: column; padding: 20px; background: var(--bg); border-radius: 12px; text-decoration: none; transition: all 0.2s; border: 1px solid transparent; }
.docs-nav-link:hover { border-color: var(--gold); background: var(--gold-light); }
.docs-nav-link.next { text-align: right; align-items: flex-end; }
.docs-nav-link-label { font-size: 0.8rem; color: var(--text-light); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.docs-nav-link-title { font-size: 1rem; font-weight: 600; color: var(--text); }

/* 空状态 */
.docs-empty { text-align: center; padding: 60px 20px; }
.docs-empty > i { font-size: 4rem; color: var(--gold); opacity: 0.3; margin-bottom: 20px; display: block; }
.docs-empty h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--text); }
.docs-empty p { color: var(--text-light); margin-bottom: 24px; }
.docs-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 10px; font-size: 0.95rem; font-weight: 500; text-decoration: none; transition: all 0.2s; }
.docs-btn i { font-size: 1rem; }
.docs-btn.primary { background: var(--gradient); color: white; }
.docs-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245,158,11,0.3); }

/* 文档响应式 */
@media (max-width: 1200px) {
    .docs-container { grid-template-columns: 260px 1fr; }
    .docs-toc { display: none; }
    .docs-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .docs-container { grid-template-columns: 1fr; }
    .docs-sidebar { position: static; max-height: none; }
    .docs-nav { margin-bottom: 20px; }
    .docs-header h1 { font-size: 1.8rem; }
    .docs-article { padding: 24px; }
    .docs-features-grid { grid-template-columns: 1fr; }
    .docs-cards-grid { grid-template-columns: 1fr; }
    .docs-nav-footer { grid-template-columns: 1fr; }
    .docs-nav-link.next { text-align: left; align-items: flex-start; }
    .docs-quick-links { gap: 10px; }
    .docs-quick-links a { padding: 8px 14px; font-size: 0.85rem; }
}


/* ========== 问题反馈页面 ========== */
.feedback-page { min-height: 100vh; background: var(--bg); }

/* 头部 */
.feedback-header { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%); padding: 140px 0 60px; position: relative; overflow: hidden; }
.feedback-header::before { content: ''; position: absolute; top: -50%; right: -20%; width: 80%; height: 150%; background: radial-gradient(ellipse, rgba(245,158,11,0.1) 0%, transparent 60%); }
.feedback-header-content { text-align: center; position: relative; z-index: 1; }
.feedback-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: rgba(245,158,11,0.2); border: 1px solid rgba(245,158,11,0.3); border-radius: 50px; color: var(--gold); font-size: 0.85rem; font-weight: 500; margin-bottom: 20px; }
.feedback-header h1 { font-size: 2.5rem; font-weight: 800; color: white; margin-bottom: 12px; }
.feedback-header-content > p { color: #94a3b8; font-size: 1.1rem; }

/* 主体布局 */
.feedback-main { padding: 60px 0 100px; }
.feedback-wrapper { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }

/* 表单区域 */
.feedback-card { background: white; border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.feedback-card h2 { font-size: 1.3rem; color: var(--text); margin-bottom: 30px; display: flex; align-items: center; gap: 10px; }
.feedback-card h2 i { color: var(--gold); }

/* 反馈类型选择 */
.feedback-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.type-item input { display: none; }
.type-box { display: flex; flex-direction: column; align-items: center; padding: 20px 12px; background: var(--bg); border: 2px solid var(--border); border-radius: 12px; cursor: pointer; transition: all 0.2s; text-align: center; }
.type-box i { font-size: 1.5rem; color: var(--text-light); margin-bottom: 10px; }
.type-box strong { font-size: 0.9rem; color: var(--text); margin-bottom: 4px; }
.type-box small { font-size: 0.75rem; color: var(--text-light); }
.type-item input:checked + .type-box { border-color: var(--gold); background: var(--gold-light); }
.type-item input:checked + .type-box i { color: var(--gold); }
.type-box:hover { border-color: var(--gold); }

/* 表单样式 */
.feedback-form .form-group { margin-bottom: 24px; }
.feedback-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feedback-form label { display: block; font-size: 0.9rem; font-weight: 500; color: var(--text); margin-bottom: 10px; }
.feedback-form .required { color: #ef4444; }
.feedback-form .input-wrap { position: relative; }
.feedback-form .input-wrap i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-light); }
.feedback-form .input-wrap input { width: 100%; padding: 14px 16px 14px 46px; border: 2px solid var(--border); border-radius: 10px; font-size: 0.95rem; transition: all 0.2s; }
.feedback-form .input-wrap input:focus { border-color: var(--gold); outline: none; }
.feedback-form textarea { width: 100%; padding: 14px 16px; border: 2px solid var(--border); border-radius: 10px; font-size: 0.95rem; resize: vertical; font-family: inherit; line-height: 1.6; }
.feedback-form textarea:focus { border-color: var(--gold); outline: none; }


/* 上传区域 */
.upload-area { border: 2px dashed var(--border); border-radius: 12px; padding: 40px 20px; text-align: center; cursor: pointer; transition: all 0.2s; }
.upload-area:hover, .upload-area.dragover { border-color: var(--gold); background: var(--gold-light); }
.upload-area i { font-size: 2.5rem; color: var(--text-light); margin-bottom: 12px; }
.upload-area p { color: var(--text); margin-bottom: 6px; }
.upload-area small { color: var(--text-light); font-size: 0.85rem; }
.upload-preview { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.preview-item { position: relative; width: 100px; height: 100px; border-radius: 10px; overflow: hidden; }
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-item button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; background: rgba(0,0,0,0.6); color: white; border: none; border-radius: 50%; cursor: pointer; font-size: 0.7rem; }

/* 环境信息 */
.env-info { display: flex; gap: 20px; padding: 14px 16px; background: var(--bg); border-radius: 10px; }
.env-info span { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-light); }
.env-info i { color: var(--gold); }

/* 提交按钮 */
.btn-submit { width: 100%; padding: 16px; background: var(--gradient); color: white; border: none; border-radius: 10px; font-size: 1.05rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.3s; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(245,158,11,0.3); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* 提交成功 */
.submit-success { text-align: center; padding: 40px 20px; }
.success-icon { width: 80px; height: 80px; background: #dcfce7; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.success-icon i { font-size: 2.5rem; color: #22c55e; }
.submit-success h3 { font-size: 1.5rem; color: var(--text); margin-bottom: 12px; }
.submit-success p { color: var(--text-light); margin-bottom: 24px; }
.btn-back { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: var(--gradient); color: white; border-radius: 10px; text-decoration: none; font-weight: 500; }

/* 侧边栏 */
.feedback-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 90px; }
.sidebar-card { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.sidebar-card h3 { font-size: 1rem; color: var(--text); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.sidebar-card h3 i { color: var(--gold); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg); border-radius: 10px; overflow: hidden; }
.faq-item summary { padding: 14px 16px; cursor: pointer; font-weight: 500; color: var(--text); list-style: none; display: flex; align-items: center; justify-content: space-between; }
.faq-item summary::after { content: '\f078'; font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: 0.8rem; color: var(--text-light); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item p { padding: 0 16px 14px; font-size: 0.9rem; color: var(--text-light); line-height: 1.6; margin: 0; }
.faq-item a { color: var(--gold); }

/* 联系方式 */
.contact-methods { display: flex; flex-direction: column; gap: 12px; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--bg); border-radius: 10px; text-decoration: none; transition: all 0.2s; }
.contact-item:hover { background: var(--gold-light); }
.contact-icon { width: 44px; height: 44px; background: #1f2937; color: white; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.contact-icon.email { background: var(--gold); }
.contact-icon.docs { background: #3b82f6; }
.contact-info strong { display: block; font-size: 0.9rem; color: var(--text); margin-bottom: 2px; }
.contact-info span { font-size: 0.8rem; color: var(--text-light); }

/* 反馈须知 */
.sidebar-card.tips { background: var(--gold-light); border: 1px solid rgba(245,158,11,0.2); }
.tips-list { list-style: none; }
.tips-list li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 0.9rem; color: var(--text); }
.tips-list i { color: var(--gold); margin-top: 3px; }

/* 响应式 */
@media (max-width: 1024px) {
    .feedback-wrapper { grid-template-columns: 1fr; }
    .feedback-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
    .feedback-sidebar .sidebar-card { flex: 1; min-width: 280px; }
}
@media (max-width: 768px) {
    .feedback-header h1 { font-size: 1.8rem; }
    .feedback-card { padding: 24px; }
    .feedback-types { grid-template-columns: repeat(2, 1fr); }
    .feedback-form .form-row { grid-template-columns: 1fr; }
    .feedback-sidebar { flex-direction: column; }
    .feedback-sidebar .sidebar-card { min-width: auto; }
}


/* ========== 发布作品页面 ========== */
.write-page { min-height: 100vh; background: #f8fafc; }
.write-page.fullscreen { position: fixed; inset: 0; z-index: 9999; }
.write-page.fullscreen .write-topbar { display: none; }
.write-page.fullscreen .write-sidebar { display: none; }

/* 顶部导航 */
.write-topbar { position: fixed; top: 0; left: 0; right: 0; height: 64px; background: white; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; z-index: 100; }
.topbar-left { display: flex; align-items: center; gap: 16px; }
.back-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--bg); border-radius: 10px; color: var(--text-light); text-decoration: none; transition: all 0.2s; }
.back-btn:hover { background: var(--gold-light); color: var(--gold); }
.topbar-title h1 { font-size: 1.1rem; color: var(--text); margin: 0; }
.auto-save-status { font-size: 0.8rem; color: var(--text-light); display: flex; align-items: center; gap: 6px; }
.auto-save-status .text-warning { color: #f59e0b; }
.auto-save-status .text-success { color: #22c55e; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-user { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; margin-right: 8px; }
.topbar-user img { width: 100%; height: 100%; object-fit: cover; }
.topbar-user .avatar-text { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--gradient); color: white; font-weight: 600; }
.btn-secondary { display: flex; align-items: center; gap: 6px; padding: 10px 16px; background: var(--bg); border: none; border-radius: 8px; color: var(--text); font-size: 0.9rem; cursor: pointer; transition: all 0.2s; }
.btn-secondary:hover { background: var(--border); }
.btn-primary { display: flex; align-items: center; gap: 6px; padding: 10px 20px; background: var(--gradient); border: none; border-radius: 8px; color: white; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(245,158,11,0.3); }

/* 主体布局 */
.write-body { display: grid; grid-template-columns: 1fr 380px; padding-top: 64px; min-height: 100vh; }
.write-main { padding: 30px 40px; background: white; }
.write-sidebar { padding: 0 10px; overflow-y: auto; max-height: calc(100vh - 64px); position: sticky; top: 64px; }

/* 类型卡片 */
.type-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 30px; }
.type-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--bg); border: 2px solid transparent; border-radius: 12px; cursor: pointer; transition: all 0.2s; }
.type-card input { display: none; }
.type-card:hover { border-color: var(--border); }
.type-card.active { background: var(--gold-light); border-color: var(--gold); }
.type-icon { width: 44px; height: 44px; background: var(--gold-light); color: var(--gold); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.type-icon.purple { background: #ede9fe; color: #7c3aed; }
.type-icon.blue { background: #dbeafe; color: #2563eb; }
.type-icon.green { background: #dcfce7; color: #16a34a; }
.type-info strong { display: block; font-size: 0.95rem; color: var(--text); }
.type-info span { font-size: 0.8rem; color: var(--text-light); }
.type-check { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; background: var(--gold); color: white; border-radius: 50%; display: none; align-items: center; justify-content: center; font-size: 0.7rem; }
.type-card.active .type-check { display: flex; }

/* 标题区域 */
.title-section { margin-bottom: 24px; }
.title-section .title-input { width: 100%; padding: 16px 0; border: none; border-bottom: 2px solid var(--border); font-size: 1.8rem; font-weight: 700; color: var(--text); outline: none; transition: border-color 0.2s; }
.title-section .title-input:focus { border-color: var(--gold); }
.title-section .title-input::placeholder { color: #cbd5e0; }
.title-tips { display: flex; justify-content: space-between; margin-top: 10px; font-size: 0.85rem; color: var(--text-light); }
.title-tips i { color: var(--gold); }

/* 编辑器区域 */
.editor-section { background: var(--bg); border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.editor-tabs { display: flex; background: white; border-bottom: 1px solid var(--border); }
.editor-tab { display: flex; align-items: center; gap: 8px; padding: 14px 24px; background: none; border: none; color: var(--text-light); font-size: 0.9rem; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.2s; }
.editor-tab:hover { color: var(--text); }
.editor-tab.active { color: var(--gold); border-color: var(--gold); background: var(--gold-light); }
.editor-toolbar { display: flex; gap: 6px; padding: 12px 16px; background: white; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.toolbar-group { display: flex; gap: 4px; }
.toolbar-divider { width: 1px; background: var(--border); margin: 0 8px; }
.editor-toolbar button { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: transparent; border: none; border-radius: 6px; color: var(--text-light); cursor: pointer; font-size: 0.85rem; transition: all 0.2s; }
.editor-toolbar button:hover { background: var(--gold-light); color: var(--gold); }
.editor-container { position: relative; min-height: 450px; }
.editor-textarea { width: 100%; height: 100%; min-height: 450px; padding: 24px; border: none; font-size: 1rem; line-height: 1.9; resize: none; font-family: 'Fira Code', monospace; outline: none; background: white; }
.editor-preview { display: none; padding: 24px; background: white; min-height: 450px; line-height: 1.8; }
.editor-preview h1, .editor-preview h2, .editor-preview h3 { margin: 24px 0 12px; color: var(--text); }
.editor-preview p { margin-bottom: 16px; }
.editor-preview code { background: var(--gold-light); color: var(--gold); padding: 2px 8px; border-radius: 4px; }
.editor-preview pre { background: #1e293b; padding: 16px; border-radius: 8px; margin: 16px 0; }
.editor-preview pre code { background: none; color: #e2e8f0; }
.editor-footer { display: flex; justify-content: space-between; padding: 12px 16px; background: white; border-top: 1px solid var(--border); }
.editor-stats { display: flex; gap: 20px; font-size: 0.85rem; color: var(--text-light); }
.editor-stats i { color: var(--gold); margin-right: 6px; }
.editor-help a { font-size: 0.85rem; color: var(--text-light); text-decoration: none; }
.editor-help a:hover { color: var(--gold); }

/* 侧边栏卡片 */
.write-sidebar .sidebar-card { background: white; border-radius: 12px; padding: 20px; margin-bottom: 20px; border: 1px solid var(--border); }
.write-sidebar .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.write-sidebar .card-header h3 { font-size: 0.95rem; color: var(--text); margin: 0; display: flex; align-items: center; gap: 8px; }
.write-sidebar .card-header h3 i { color: var(--gold); }
.write-sidebar .card-badge { padding: 3px 10px; background: var(--gold-light); color: var(--gold); font-size: 0.75rem; font-weight: 500; border-radius: 20px; }

/* 封面上传 */
.cover-uploader { border-radius: 10px; overflow: hidden; cursor: pointer; }
.cover-preview { position: relative; }
.cover-preview img { width: 100%; height: 160px; object-fit: cover; display: block; }
.cover-actions { position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; gap: 10px; opacity: 0; transition: opacity 0.2s; }
.cover-preview:hover .cover-actions { opacity: 1; }
.cover-actions button { padding: 8px 14px; background: white; border: none; border-radius: 6px; font-size: 0.8rem; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: all 0.2s; }
.cover-actions button:hover { background: var(--gold); color: white; }
.cover-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; background: var(--bg); border: 2px dashed var(--border); border-radius: 10px; transition: all 0.2s; }
.cover-empty:hover { border-color: var(--gold); background: var(--gold-light); }
.cover-empty .upload-icon { width: 50px; height: 50px; background: var(--gold-light); color: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 12px; }
.cover-empty p { font-size: 0.9rem; color: var(--text); margin: 0 0 6px; }
.cover-empty span { font-size: 0.8rem; color: var(--text-light); }

/* 表单项 */
.write-sidebar .form-item { margin-bottom: 16px; }
.write-sidebar .form-item:last-child { margin-bottom: 0; }
.write-sidebar .form-item label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.write-sidebar .form-item input, .write-sidebar .form-item textarea, .write-sidebar .form-item select { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.9rem; transition: all 0.2s; font-family: inherit; }
.write-sidebar .form-item input:focus, .write-sidebar .form-item textarea:focus, .write-sidebar .form-item select:focus { border-color: var(--gold); outline: none; }
.write-sidebar .form-item textarea { resize: vertical; min-height: 80px; }
.write-sidebar .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.write-sidebar .form-row .form-item { margin-bottom: 0; }
.write-sidebar .form-hint { font-size: 0.8rem; color: var(--text-light); margin-top: 6px; }
.write-sidebar .select-wrap { position: relative; }
.write-sidebar .select-wrap select { appearance: none; padding-right: 36px; cursor: pointer; }
.write-sidebar .select-wrap i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-light); pointer-events: none; font-size: 0.8rem; }
.write-sidebar .input-with-icon { position: relative; }
.write-sidebar .input-with-icon i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-light); }
.write-sidebar .input-with-icon input { padding-left: 38px; }

/* 标签输入 */
.tags-input { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; min-height: 44px; align-items: center; transition: border-color 0.2s; }
.tags-input:focus-within { border-color: var(--gold); }
.tags-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: var(--gold-light); color: var(--gold); font-size: 0.8rem; border-radius: 20px; }
.tag-badge button { background: none; border: none; color: var(--gold); cursor: pointer; padding: 0; font-size: 0.7rem; opacity: 0.7; }
.tag-badge button:hover { opacity: 1; }
.tags-input input { flex: 1; min-width: 100px; border: none; outline: none; font-size: 0.9rem; padding: 4px; }

/* 价格选择器 */
.price-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.price-option { cursor: pointer; }
.price-option input { display: none; }
.price-box { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--bg); border: 2px solid transparent; border-radius: 10px; transition: all 0.2s; }
.price-option:hover .price-box { border-color: var(--border); }
.price-option.active .price-box { background: var(--gold-light); border-color: var(--gold); }
.price-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.price-icon.free { background: #dcfce7; color: #16a34a; }
.price-icon.paid { background: var(--gold-light); color: var(--gold); }
.price-text strong { display: block; font-size: 0.9rem; color: var(--text); }
.price-text span { font-size: 0.75rem; color: var(--text-light); }
.price-input-section { padding: 16px; background: var(--bg); border-radius: 10px; }
.price-input-wrap { display: flex; align-items: center; background: white; border: 2px solid var(--border); border-radius: 8px; overflow: hidden; }
.price-input-wrap:focus-within { border-color: var(--gold); }
.price-input-wrap .currency { padding: 10px 14px; background: var(--bg); color: var(--text); font-weight: 600; border-right: 1px solid var(--border); }
.price-input-wrap .price-field { flex: 1; border: none; padding: 10px 14px; font-size: 1.1rem; outline: none; }
.price-tips { margin-top: 12px; }
.price-tips p { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-light); margin: 0; }
.price-tips i { color: var(--gold); }

/* 开关选项 */
.toggle-options { display: flex; flex-direction: column; gap: 12px; }
.toggle-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--bg); border-radius: 10px; cursor: pointer; transition: all 0.2s; }
.toggle-item:hover { background: var(--gold-light); }
.toggle-label { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text); }
.toggle-label i { color: var(--gold); width: 18px; }
.toggle-item input { display: none; }
.toggle-switch { position: relative; width: 44px; height: 24px; background: var(--border); border-radius: 12px; transition: all 0.2s; flex-shrink: 0; }
.toggle-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: white; border-radius: 50%; transition: all 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.toggle-item input:checked + .toggle-switch { background: var(--gold); }
.toggle-item input:checked + .toggle-switch::after { left: 22px; }

/* 发布提示 */
.publish-tips { background: linear-gradient(135deg, var(--gold-light) 0%, #fef3c7 100%); border-radius: 12px; padding: 20px; }
.tip-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 0.85rem; color: var(--text); }
.tip-item i { color: var(--gold); }

/* 图片上传弹窗 */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; backdrop-filter: blur(4px); }
.modal-content { background: white; border-radius: 16px; width: 90%; max-width: 500px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 1.1rem; color: var(--text); margin: 0; }
.modal-header button { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--bg); border: none; border-radius: 8px; color: var(--text-light); cursor: pointer; transition: all 0.2s; }
.modal-header button:hover { background: var(--border); color: var(--text); }
.modal-body { padding: 24px; }
.upload-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.upload-tab { flex: 1; padding: 10px; background: var(--bg); border: none; border-radius: 8px; font-size: 0.9rem; color: var(--text-light); cursor: pointer; transition: all 0.2s; }
.upload-tab.active { background: var(--gold); color: white; }
.upload-panel { display: none; }
.upload-panel.active { display: block; }
.drop-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 50px 20px; border: 2px dashed var(--border); border-radius: 12px; cursor: pointer; transition: all 0.2s; }
.drop-zone:hover { border-color: var(--gold); background: var(--gold-light); }
.drop-zone i { font-size: 2.5rem; color: var(--gold); margin-bottom: 16px; }
.drop-zone p { font-size: 0.95rem; color: var(--text); margin: 0; }
#panel-url { display: flex; flex-direction: column; gap: 12px; }
#panel-url input { padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.95rem; }
#panel-url input:focus { border-color: var(--gold); outline: none; }
.modal-footer { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--border); background: var(--bg); }
.btn-cancel { padding: 10px 20px; background: white; border: 1px solid var(--border); border-radius: 8px; font-size: 0.9rem; cursor: pointer; transition: all 0.2s; }
.btn-cancel:hover { border-color: var(--text-light); }
.btn-confirm { padding: 10px 20px; background: var(--gradient); border: none; border-radius: 8px; color: white; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.btn-confirm:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(245,158,11,0.3); }

/* 发布页面响应式 */
@media (max-width: 1100px) {
    .write-body { grid-template-columns: 1fr 320px; }
    .type-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .write-body { grid-template-columns: 1fr; }
    .write-sidebar { position: static; max-height: none; padding: 20px; }
    .write-main { padding: 20px; }
}
@media (max-width: 600px) {
    .write-topbar { padding: 0 16px; }
    .topbar-title h1 { font-size: 0.95rem; }
    .topbar-right .btn-secondary span, .topbar-right .btn-primary span { display: none; }
    .type-cards { grid-template-columns: 1fr; }
    .title-section .title-input { font-size: 1.4rem; }
    .editor-toolbar { padding: 10px; }
    .editor-toolbar button { width: 30px; height: 30px; }
    .price-selector { grid-template-columns: 1fr; }
}
