/* ============================================
   云展电子书平台 - 前台全站样式
   ============================================ */

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --primary: #1890ff;
    --primary-dark: #0969dc;
    --primary-light: #e6f7ff;
    --success: #52c41a;
    --warning: #fa8c16;
    --danger: #f5222d;
    --purple: #722ed1;
    --text: #262626;
    --text-secondary: #8c8c8c;
    --border: #f0f0f0;
    --bg: #f5f5f5;
    --white: #fff;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 16px;
}
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text); background: var(--white);
    line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }

/* === Container === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === Buttons === */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 20px; border-radius: var(--radius);
    font-size: 14px; font-weight: 500; cursor: pointer;
    transition: all 0.2s; border: none; text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary); color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(24,144,255,0.4); }
.btn-outline {
    background: transparent; color: var(--primary);
    border: 1px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-text { background: transparent; color: var(--text); }
.btn-text:hover { color: var(--primary); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-lg { padding: 12px 32px; font-size: 16px; }
.btn-white { background: var(--white); color: var(--primary); }
.btn-outline-white { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn i { font-size: 0.9em; }

/* === Header === */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    height: 64px; display: flex; align-items: center;
}
.header-inner {
    display: flex; align-items: center; gap: 32px;
    width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 20px; font-weight: 700; color: var(--text);
    flex-shrink: 0;
}
.logo i { color: var(--primary); font-size: 24px; }
.main-nav {
    display: flex; gap: 8px; flex: 1;
}
.main-nav a {
    padding: 8px 16px; border-radius: var(--radius);
    color: var(--text); font-weight: 500; font-size: 15px;
    transition: all 0.2s;
}
.main-nav a:hover, .main-nav a.active {
    background: var(--primary-light); color: var(--primary);
}
.header-actions { display: flex; align-items: center; gap: 12px; }

/* User Menu */
.user-menu { position: relative; }
.user-btn {
    display: flex; align-items: center; gap: 8px;
    background: transparent; border: none; cursor: pointer; padding: 4px 8px;
    border-radius: var(--radius); transition: background 0.2s;
}
.user-btn:hover { background: var(--bg); }
.avatar {
    width: 32px; height: 32px; border-radius: 50%;
    object-fit: cover; background: #eee;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23aaa'%3E%3Cpath d='M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z'/%3E%3C/svg%3E");
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #e8e8e8;
}
.dropdown-menu {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); min-width: 180px;
    display: none; z-index: 100;
    border: 1px solid var(--border);
}
.dropdown-menu.show { display: block; }
.dropdown-menu a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; color: var(--text); font-size: 14px;
    transition: background 0.15s;
}
.dropdown-menu a:hover { background: var(--bg); color: var(--primary); }
.dropdown-menu a i { width: 16px; color: var(--text-secondary); }
.dropdown-menu .text-danger { color: var(--danger); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

.mobile-menu-btn { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }
@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: block; }
}

/* === Mobile Menu Overlay === */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-nav-overlay.open {
    display: block;
    opacity: 1;
}
.mobile-nav-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(300px, 80vw);
    background: #fff;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.mobile-nav-panel.open {
    transform: translateX(0);
}
.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.mobile-nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}
.mobile-nav-logo i { color: var(--primary); font-size: 22px; }
.mobile-nav-close {
    background: none; border: none; font-size: 24px; cursor: pointer;
    color: var(--text-secondary); padding: 4px; line-height: 1;
}
.mobile-nav-links {
    flex: 1;
    padding: 16px 0;
}
.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background: var(--primary-light);
    color: var(--primary);
}
.mobile-nav-links a i { color: var(--text-secondary); width: 20px; text-align: center; }
.mobile-nav-links a:hover i,
.mobile-nav-links a.active i { color: var(--primary); }
.mobile-nav-divider { height: 1px; background: var(--border); margin: 8px 0; }
.mobile-nav-actions {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mobile-nav-actions .btn { justify-content: center; padding: 12px; }

/* === Mobile header adjustments === */
@media (max-width: 768px) {
    .site-header { height: 56px; }
    .header-inner { gap: 16px; }
    .logo { font-size: 18px; }
    .logo i { font-size: 20px; }
}

/* === Hero === */
.hero-section {
    position: relative; overflow: hidden;
    padding: 80px 0 100px;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: #fff;
}
.hero-bg {
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
    align-items: center; position: relative; z-index: 1;
}
.hero-title {
    font-size: 48px; font-weight: 700; line-height: 1.2;
    margin-bottom: 20px; color: #fff;
}
.hero-desc {
    font-size: 18px; color: rgba(255,255,255,0.75);
    margin-bottom: 32px; line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; }
.stat-item { text-align: center; }
.stat-num { display: block; font-size: 28px; font-weight: 700; color: #fff; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.6); }

/* Hero Mockup */
.hero-preview { display: flex; justify-content: center; }
.flipbook-mockup {
    perspective: 1200px; width: 320px; height: 440px;
}
.mockup-book {
    position: relative; width: 280px; height: 400px;
    transform-style: preserve-3d;
    animation: bookFloat 4s ease-in-out infinite;
}
@keyframes bookFloat {
    0%, 100% { transform: rotateY(-15deg) translateY(0); }
    50% { transform: rotateY(-15deg) translateY(-12px); }
}
.mockup-page {
    position: absolute; width: 140px; height: 390px;
    border-radius: 2px; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}
.mockup-cover {
    left: 0; top: 5px;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-align: center; padding: 20px;
    color: #fff;
}
.mockup-cover-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.mockup-cover-author { font-size: 12px; opacity: 0.7; }
.mockup-back {
    left: 145px; top: 5px;
    background: #fff; display: flex; align-items: center; justify-content: center;
}
.mockup-content { font-size: 14px; color: #ccc; }

@media (max-width: 768px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-preview { display: none; }
    .hero-title { font-size: 32px; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
}

/* === Section Headers === */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; }
.section-title { font-size: 32px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.section-desc { font-size: 16px; color: var(--text-secondary); }

/* === Features === */
.features-section { padding: 80px 0; background: var(--white); }
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
    padding: 32px 24px; border-radius: var(--radius-lg);
    background: var(--white); border: 1px solid var(--border);
    transition: all 0.3s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.feature-icon {
    width: 56px; height: 56px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff; margin-bottom: 20px;
}
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr 1fr; } }
/* 手机排成 3 列（需求3） */
@media (max-width: 480px) { .features-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .feature-card { padding: 18px 12px; }
  .feature-card h3 { font-size: 13px; }
  .feature-icon { width: 36px; height: 36px; font-size: 16px; margin: 0 auto 10px; }
}

/* === Ebooks Grid === */
.ebooks-section { padding: 80px 0; background: var(--bg); }
.ebooks-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.ebook-card {
    background: var(--white); border-radius: var(--radius);
    overflow: hidden; transition: all 0.3s;
    display: block; color: var(--text);
}
.ebook-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.ebook-cover {
    position: relative; aspect-ratio: 3/4; overflow: hidden;
    background: linear-gradient(135deg, #e8e8e8, #f5f5f5);
}
.ebook-cover img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s;
}
.ebook-card:hover .ebook-cover img { transform: scale(1.05); }
.ebook-overlay {
    position: absolute; inset: 0;
    background: rgba(24,144,255,0.85);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
}
.ebook-overlay i { font-size: 40px; color: #fff; }
.ebook-card:hover .ebook-overlay { opacity: 1; }
.ebook-info { padding: 16px; }
.ebook-title {
    font-size: 15px; font-weight: 600; margin-bottom: 8px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ebook-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-secondary); }
.ebook-meta span { display: flex; align-items: center; gap: 4px; }
.empty-state { grid-column: 1/-1; text-align: center; padding: 60px 0; color: var(--text-secondary); }
.empty-state i { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-state p { font-size: 16px; margin-bottom: 20px; }
@media (max-width: 1024px) { .ebooks-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .ebooks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ebooks-grid { grid-template-columns: 1fr; } }

/* === Categories === */
.categories-section { padding: 80px 0; background: var(--white); }
.categories-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.category-card {
    padding: 24px; border-radius: var(--radius);
    transition: all 0.3s; display: block;
    border: 1px solid transparent;
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.category-icon { font-size: 32px; margin-bottom: 12px; }
.category-card h3 { font-size: 16px; margin-bottom: 4px; }
.category-card p { font-size: 13px; color: var(--text-secondary); }
@media (max-width: 768px) { .categories-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .categories-grid { grid-template-columns: 1fr; } }

/* === Steps === */
.steps-section { padding: 80px 0; background: var(--bg); }
.steps-grid {
    display: flex; align-items: center; justify-content: center; gap: 20px;
}
.step-item { display: flex; align-items: center; gap: 20px; flex: 0 0 auto; }
.step-num {
    font-size: 48px; font-weight: 800; color: var(--primary);
    opacity: 0.2; line-height: 1;
}
.step-content h3 { font-size: 18px; margin-bottom: 6px; }
.step-content p { font-size: 14px; color: var(--text-secondary); max-width: 200px; }
.step-arrow { font-size: 24px; color: var(--primary); opacity: 0.4; flex-shrink: 0; }
@media (max-width: 768px) {
    .steps-grid { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); }
}

/* === CTA === */
.cta-section { padding: 80px 0; background: var(--white); }
.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg); padding: 60px 40px;
    text-align: center; color: #fff;
}
.cta-box h2 { font-size: 32px; margin-bottom: 12px; color: #fff; }
.cta-box p { font-size: 18px; opacity: 0.9; margin-bottom: 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* === Footer === */
.site-footer { background: #1a1a2e; color: rgba(255,255,255,0.7); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col p { font-size: 14px; line-height: 1.7; margin-bottom: 8px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer-col ul li a:hover { color: #fff; }
.footer-rich-content {
    font-size: 13px; line-height: 1.8; color: rgba(255,255,255,0.55);
    margin-bottom: 12px; white-space: pre-wrap; word-break: break-word;
}
.footer-rich-content p { margin-bottom: 6px; }
.footer-rich-content a { color: rgba(255,255,255,0.75); }
.footer-rich-content a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px; text-align: center;
    font-size: 13px; line-height: 2;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
/* 手机端 footer 三列（产品服务 / 帮助支持 / 关于我们） */
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .footer-grid .footer-brand { display: none; }  /* 手机隐藏品牌区，专注三个链接列 */
  .footer-col h4 { font-size: 13px; margin-bottom: 10px; }
  .footer-col ul li { margin-bottom: 6px; font-size: 12px; }
}

/* === Auth Pages === */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    padding: 40px 20px;
}
.auth-box {
    background: #fff; border-radius: var(--radius-lg);
    padding: 40px; width: 100%; max-width: 440px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo i { font-size: 40px; color: var(--primary); }
.auth-logo h1 { font-size: 24px; margin-top: 12px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form-control {
    width: 100%; padding: 10px 14px; border: 1px solid #ddd;
    border-radius: var(--radius); font-size: 15px;
    transition: border-color 0.2s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(24,144,255,0.1); }
.form-error { color: var(--danger); font-size: 13px; margin-top: 4px; }
.form-hint { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.auth-submit { width: 100%; padding: 12px; font-size: 16px; margin-top: 8px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-secondary); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-secondary); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.agree-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-secondary); cursor: pointer; }

/* === User Dashboard === */
.dashboard-layout { display: flex; min-height: calc(100vh - 64px); }
.sidebar {
    width: 240px; background: #fff; border-right: 1px solid var(--border);
    flex-shrink: 0; padding: 24px 0;
}
.sidebar-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 24px; color: var(--text); font-size: 15px;
    border-left: 3px solid transparent; transition: all 0.2s;
}
.sidebar-nav a:hover { background: var(--bg); color: var(--primary); }
.sidebar-nav a.active {
    background: var(--primary-light); color: var(--primary);
    border-left-color: var(--primary);
}
.sidebar-nav a i { width: 20px; text-align: center; color: var(--text-secondary); }
.sidebar-nav a.active i { color: var(--primary); }
.main-content { flex: 1; padding: 32px; background: var(--bg); }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.page-title { font-size: 24px; font-weight: 700; }
.card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; }
.stat-card {
    background: #fff; border-radius: var(--radius); padding: 20px;
    box-shadow: var(--shadow);
}
.stat-card .stat-icon { font-size: 28px; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.stat-card .stat-label { font-size: 13px; color: var(--text-secondary); }
@media (max-width: 1024px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .dashboard-layout { flex-direction: column; }
    .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
    .main-content { padding: 20px; }
}

/* === Tables === */
.table-wrapper { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
    background: var(--bg); padding: 12px 16px;
    text-align: left; font-weight: 600; color: var(--text-secondary);
    font-size: 13px; border-bottom: 1px solid var(--border);
}
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:hover td { background: #fafafa; }
.table .ebook-thumb { width: 60px; height: 80px; object-fit: cover; border-radius: 4px; }
.table .actions { display: flex; gap: 8px; }
.table .actions .btn { padding: 4px 10px; font-size: 12px; }

/* === Status badges === */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 10px; border-radius: 20px;
    font-size: 12px; font-weight: 500;
}
.badge-pending { background: #fff7e6; color: #fa8c16; }
.badge-converting { background: #e6f7ff; color: var(--primary); }
.badge-ready { background: #f6ffed; color: var(--success); }
.badge-failed { background: #fff2f0; color: var(--danger); }
.badge-vip { background: linear-gradient(135deg, #ffd700, #ff8c00); color: #fff; }
.badge-admin { background: var(--purple); color: #fff; }

/* === Pagination === */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; }
.pagination a, .pagination span {
    padding: 6px 14px; border-radius: var(--radius);
    font-size: 14px; transition: all 0.2s;
    border: 1px solid var(--border); background: #fff;
}
.pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled { opacity: 0.4; pointer-events: none; }

/* === Alerts === */
.alert {
    padding: 12px 16px; border-radius: var(--radius);
    margin-bottom: 16px; font-size: 14px;
    display: flex; align-items: center; gap: 10px;
}
.alert-success { background: #f6ffed; color: var(--success); border: 1px solid #b7eb8f; }
.alert-error { background: #fff2f0; color: var(--danger); border: 1px solid #ffccc7; }
.alert-warning { background: #fff7e6; color: var(--warning); border: 1px solid #ffe58f; }
.alert-info { background: #e6f7ff; color: var(--primary); border: 1px solid #91d5ff; }

/* === Upload Page === */
.upload-zone {
    border: 2px dashed var(--border); border-radius: var(--radius-lg);
    padding: 60px 40px; text-align: center;
    cursor: pointer; transition: all 0.3s;
    background: #fafafa;
}
.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--primary); background: var(--primary-light);
}
.upload-zone i { font-size: 64px; color: #ccc; margin-bottom: 16px; }
.upload-zone h3 { font-size: 18px; margin-bottom: 8px; }
.upload-zone p { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }
.upload-zone .btn { margin: 0 4px; }

/* === Upload Progress === */
.upload-progress { margin-top: 24px; display: none; }
.progress-bar {
    height: 8px; background: var(--border); border-radius: 4px; overflow: hidden;
}
.progress-fill {
    height: 100%; background: linear-gradient(90deg, var(--primary), #40a9ff);
    border-radius: 4px; transition: width 0.3s; width: 0%;
}
.progress-text { margin-top: 8px; font-size: 13px; color: var(--text-secondary); display: flex; justify-content: space-between; }

/* === Ebook Detail === */
.ebook-detail-header {
    background: linear-gradient(135deg, #0f0c29, #302b63);
    color: #fff; padding: 60px 0;
}
.ebook-detail-content { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: start; }
.ebook-detail-cover { width: 200px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 3/4; }
.ebook-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.ebook-detail-title { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.ebook-detail-meta { display: flex; gap: 20px; font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 20px; }
.ebook-detail-desc { font-size: 15px; color: rgba(255,255,255,0.8); line-height: 1.8; }
.ebook-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* === Share Modal === */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    display: none; align-items: center; justify-content: center;
    z-index: 9999;
}
.modal-overlay.show { display: flex; }
.modal {
    background: #fff; border-radius: var(--radius-lg);
    padding: 32px; max-width: 500px; width: 90%;
    box-shadow: var(--shadow-lg);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-header h3 { font-size: 18px; }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-secondary); }
.share-url-input {
    display: flex; gap: 8px; margin-bottom: 16px;
}
.share-url-input input {
    flex: 1; padding: 10px 14px; border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 14px;
}
.share-platforms { display: flex; gap: 12px; }
.share-btn {
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #fff; cursor: pointer;
    border: none; transition: transform 0.2s;
}
.share-btn:hover { transform: scale(1.1); }
.share-btn.wechat { background: #07c160; }
.share-btn.weibo { background: #e6162d; }
.share-btn.qq { background: #1296db; }
.share-btn.copy { background: var(--primary); }

/* === Explore Page === */
.explore-header {
    background: linear-gradient(135deg, #0f0c29, #302b63);
    color: #fff; padding: 40px 0;
}
.explore-filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.filter-btn {
    padding: 6px 16px; border-radius: 20px; font-size: 14px;
    background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
    background: #fff; color: var(--primary);
}
.search-box {
    display: flex; align-items: center;
    background: rgba(255,255,255,0.1); border-radius: 20px;
    padding: 0 16px; flex: 1; max-width: 400px;
}
.search-box input {
    background: transparent; border: none; padding: 8px 0;
    color: #fff; font-size: 14px; flex: 1; outline: none;
}
.search-box input::placeholder { color: rgba(255,255,255,0.5); }
.search-box button { background: none; border: none; color: rgba(255,255,255,0.7); cursor: pointer; }

/* === Pricing === */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.price-card {
    background: #fff; border-radius: var(--radius-lg);
    padding: 32px 24px; text-align: center;
    border: 2px solid var(--border); transition: all 0.3s;
    position: relative;
}
.price-card.featured {
    border-color: var(--primary); transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}
.price-card.featured::before {
    content: '推荐'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff; padding: 2px 16px; border-radius: 20px;
    font-size: 12px; font-weight: 600;
}
.price-name { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.price-amount { font-size: 36px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.price-amount span { font-size: 16px; font-weight: 400; color: var(--text-secondary); }
.price-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }
.price-features { text-align: left; margin-bottom: 24px; }
.price-features li {
    padding: 8px 0; font-size: 14px; display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid var(--border);
}
.price-features li i { color: var(--success); }
@media (max-width: 1024px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }

/* === Utilities === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-muted { color: var(--text-secondary); }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
