@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ============================================
   MYAIGC 小说创作平台 - 最终打磨覆盖层
   设计风格: 现代 SaaS (Linear / Notion / Vercel)
   策略: 覆盖所有残留的渐变、发光、浮动动画等效果
         统一为干净、扁平、现代的设计语言
   ============================================ */

/* ==================== 设计系统变量覆盖 ==================== */
:root {
    /* 主色调 - 蓝色系 */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #2563eb;
    --primary-600: #1d4ed8;
    --primary-700: #1e40af;
    --primary-800: #1e3a8a;
    --primary-900: #172554;

    /* 兼容旧变量 */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary-color: #6b7280;
    --accent-color: #2563eb;

    /* 渐变系统 - 全部替换为纯色或极简渐变 */
    --gradient-primary: #2563eb;
    --gradient-hero: #2563eb;
    --gradient-card: #ffffff;
    --gradient-glass: rgba(255, 255, 255, 0.8);
    --gradient-shimmer: transparent;
    --bg-gradient: #2563eb;
    --primary-gradient: #2563eb;

    /* 功能色 */
    --success-color: #16a34a;
    --success-light: #f0fdf4;
    --warning-color: #d97706;
    --warning-light: #fffbeb;
    --error-color: #dc2626;
    --error-light: #fef2f2;
    --info-color: #2563eb;
    --info-light: #eff6ff;

    /* 玻璃拟态效果 - 全部替换为纯白 */
    --glass-bg: #ffffff;
    --glass-bg-light: #ffffff;
    --glass-bg-solid: #ffffff;
    --glass-border: #e8e8e8;
    --glass-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --glass-blur: none;
    --glass-blur-light: none;

    /* 阴影系统 - 极简阴影 */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-glow-lg: 0 4px 12px rgba(0, 0, 0, 0.08);

    /* 字体系统 */
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Source Code Pro', monospace;
}

/* ==================== 全局样式覆盖 ==================== */
body {
    background: #fafafa !important;
    color: #1a1a1a;
    line-height: 1.6;
    font-size: 15px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ==================== 导航栏 - 现代简洁 ==================== */
.navbar {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid #e8e8e8 !important;
    box-shadow: none !important;
    padding: 0 1rem;
    height: 56px;
    transition: none;
}

.navbar.scrolled {
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

/* 去掉导航栏底部装饰线 */
.navbar::after {
    display: none !important;
}

/* Logo */
.navbar-brand {
    color: #1a1a1a !important;
    font-family: 'Inter', system-ui, sans-serif;
    letter-spacing: -0.01em;
    font-weight: 600;
}

.navbar-brand:hover {
    transform: none !important;
}

.navbar-brand i {
    color: #2563eb !important;
    animation: none !important;
    text-shadow: none !important;
    font-size: 1.3rem;
}

.navbar-brand .gradient-text {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #1a1a1a !important;
    background-clip: unset !important;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* 导航项 */
.navbar-nav .nav-link {
    color: #6b7280 !important;
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    border-radius: 6px;
    transition: all 0.15s ease;
    position: relative;
    margin: 0;
    border: none !important;
    font-size: 0.875rem;
    font-family: 'Inter', system-ui, sans-serif;
}

.navbar-nav .nav-link i {
    transition: color 0.15s ease;
    color: #9ca3af;
    font-size: 1rem;
}

.navbar-nav .nav-link:hover {
    color: #1a1a1a !important;
    background: #f5f5f5;
    transform: none !important;
    box-shadow: none !important;
}

.navbar-nav .nav-link:hover i {
    color: #2563eb;
    text-shadow: none;
}

.navbar-nav .nav-link.active {
    color: #1a1a1a !important;
    background: #f5f5f5;
    border: none !important;
    font-weight: 500;
    box-shadow: none !important;
}

/* 去掉导航激活指示线 */
.navbar-nav .nav-link.active::after {
    display: none !important;
}

/* 汉堡按钮 */
.navbar-toggler {
    border: 1px solid #e8e8e8 !important;
    border-radius: 6px !important;
    padding: 0.35rem 0.5rem !important;
    background: transparent !important;
    box-shadow: none !important;
    transition: none;
}

.navbar-toggler:hover {
    background: #f5f5f5 !important;
    box-shadow: none !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(26, 26, 26, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* 用户头像 */
#userArea .user-avatar {
    border: 1px solid #e8e8e8;
    box-shadow: none;
    background: #2563eb;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}

#userArea .dropdown-toggle:hover .user-avatar {
    border-color: #d1d5db;
    box-shadow: none;
}

#userName {
    color: #1a1a1a !important;
    font-size: 0.875rem;
    font-weight: 500;
}

/* 下拉菜单 */
.navbar .dropdown-menu {
    background: #ffffff !important;
    backdrop-filter: none !important;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 0.25rem;
    margin-top: 0.25rem;
}

.navbar .dropdown-item {
    color: #4b5563;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    transition: all 0.15s ease;
    font-size: 0.875rem;
}

.navbar .dropdown-item:hover {
    background: #f5f5f5;
    color: #1a1a1a;
    transform: none;
}

.navbar .dropdown-item i {
    color: #9ca3af;
    width: 1rem;
    font-size: 0.875rem;
}

.navbar .dropdown-item.text-danger {
    color: #dc2626 !important;
}

.navbar .dropdown-item.text-danger:hover {
    background: #fef2f2;
}

.navbar .dropdown-divider {
    border-color: #f0f0f0;
    margin: 0.2rem 0;
}

/* 登录按钮 */
#loginArea .btn-outline-primary {
    color: #2563eb !important;
    border-color: #e8e8e8;
    background: transparent;
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    transition: all 0.15s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

#loginArea .btn-outline-primary:hover {
    background: #f5f5f5;
    border-color: #d1d5db;
    color: #1a1a1a !important;
    box-shadow: none;
    transform: none;
}

/* 连接状态 */
#connectionStatus {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    color: #6b7280 !important;
}

/* 响应式导航 */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #ffffff;
        border-radius: 8px;
        margin-top: 0.5rem;
        padding: 0.5rem;
        border: 1px solid #e8e8e8;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }
}

/* ==================== 玻璃拟态组件 - 全部替换为纯白 ==================== */
.glass-card {
    background: #ffffff;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.15s ease;
}

.glass-card:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.glass-container {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8e8e8 !important;
    overflow: hidden;
    position: relative;
}

.glass-container::before {
    display: none !important;
}

.glass-btn {
    background: #f5f5f5;
    backdrop-filter: none !important;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    color: #1a1a1a;
    padding: 0.4rem 0.75rem;
    font-weight: 500;
    transition: all 0.15s ease;
    font-size: 0.875rem;
}

.glass-btn:hover {
    background: #ebebeb;
    transform: none;
    box-shadow: none;
}

.glass-navbar {
    background: #ffffff !important;
    backdrop-filter: none !important;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: none;
}

.glass-input {
    background: #ffffff;
    backdrop-filter: none !important;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    transition: all 0.15s ease;
    font-size: 0.875rem;
}

.glass-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
    outline: none;
    background: #ffffff;
}

.glass-header {
    background: #2563eb;
    padding: 1.5rem 1.25rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.glass-header::before {
    display: none !important;
}

.glass-header .logo-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    animation: none !important;
    position: relative;
    z-index: 1;
}

.glass-effect {
    background: #ffffff;
    backdrop-filter: none !important;
    border: 1px solid #e8e8e8;
}

/* ==================== 渐变文字 - 全部替换为纯色 ==================== */
.gradient-text {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #1a1a1a !important;
    background-clip: unset !important;
    color: #1a1a1a;
}

/* ==================== 发光边框 - 全部移除 ==================== */
.glow-border::after {
    display: none !important;
}

/* ==================== 卡片系统 - 现代简洁 ==================== */
.card {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.15s ease;
    overflow: hidden;
    position: relative;
}

.card::before {
    display: none !important;
}

.card:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.card-header {
    background: #f9fafb;
    color: #1a1a1a;
    border-radius: 8px 8px 0 0 !important;
    border-bottom: 1px solid #e8e8e8;
    padding: 0.875rem 1rem;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    font-size: 0.875rem;
}

.card-header::before {
    display: none !important;
}

.card-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', system-ui, sans-serif;
    color: #1a1a1a;
}

.card-header i {
    font-size: 1rem;
    color: #6b7280;
    opacity: 1;
}

.card-body {
    padding: 1rem;
    background: #ffffff;
    backdrop-filter: none !important;
}

/* ==================== 按钮系统 - 扁平现代 ==================== */
.btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.15s ease;
    border: none;
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
}

.btn::before {
    display: none !important;
}

.btn:active {
    transform: none;
}

.btn-primary {
    background: #2563eb;
    color: white;
    box-shadow: none;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: none;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
    color: white;
}

.btn-success {
    background: #16a34a;
    color: white;
    box-shadow: none;
}

.btn-success:hover {
    background: #15803d;
    transform: none;
    box-shadow: 0 1px 3px rgba(22, 163, 74, 0.2);
    color: white;
}

.btn-warning {
    background: #d97706;
    color: white;
    box-shadow: none;
}

.btn-warning:hover {
    background: #b45309;
    transform: none;
    box-shadow: 0 1px 3px rgba(217, 119, 6, 0.2);
    color: white;
}

.btn-danger {
    background: #dc2626;
    color: white;
    box-shadow: none;
}

.btn-danger:hover {
    background: #b91c1c;
    transform: none;
    box-shadow: 0 1px 3px rgba(220, 38, 38, 0.2);
    color: white;
}

.btn-info {
    background: #2563eb;
    color: white;
    box-shadow: none;
}

.btn-info:hover {
    background: #1d4ed8;
    transform: none;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
    color: white;
}

.btn-outline-primary {
    border: 1px solid #2563eb;
    color: #2563eb;
    background: transparent;
    backdrop-filter: none !important;
}

.btn-outline-primary:hover {
    background: #2563eb;
    color: white;
    transform: none;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
    border-color: #2563eb;
}

.btn-outline-secondary {
    border: 1px solid #e8e8e8;
    color: #4b5563;
    background: transparent;
    backdrop-filter: none !important;
}

.btn-outline-secondary:hover {
    background: #f5f5f5;
    color: #1a1a1a;
    transform: none;
    box-shadow: none;
    border-color: #d1d5db;
}

/* ==================== 表单样式 ==================== */
.form-control,
.form-select {
    border-radius: 6px;
    border: 1px solid #e8e8e8;
    background: #ffffff;
    backdrop-filter: none !important;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.15s ease;
    box-shadow: none;
    font-family: 'Inter', system-ui, sans-serif;
    color: #1a1a1a;
}

.form-control:focus,
.form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
    background: #ffffff;
    outline: none;
}

.form-control:hover,
.form-select:hover {
    border-color: #d1d5db;
    box-shadow: none;
}

.form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
    font-family: 'Inter', system-ui, sans-serif;
}

.form-text {
    color: #9ca3af;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* 范围滑块 */
.form-range::-webkit-slider-thumb {
    background: #2563eb;
    cursor: pointer;
    box-shadow: none;
    transition: none;
}

.form-range::-webkit-slider-thumb:hover {
    transform: none;
    box-shadow: none;
}

.form-range::-moz-range-thumb {
    background: #2563eb;
    cursor: pointer;
    border: none;
    box-shadow: none;
}

/* ==================== 进度条 ==================== */
.progress {
    height: 4px;
    border-radius: 2px;
    background: #f0f0f0;
    overflow: hidden;
    box-shadow: none;
}

.progress-bar {
    background: #2563eb;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::before {
    display: none !important;
}

/* ==================== 小说列表 ==================== */
.novel-item {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #ffffff;
    transition: all 0.15s ease;
    position: relative;
    overflow: visible;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.novel-item::before {
    display: none !important;
}

.novel-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: none;
}

.novel-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.375rem;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #1a1a1a !important;
    background-clip: unset !important;
    font-family: 'Inter', system-ui, sans-serif;
}

.novel-meta {
    font-size: 0.8125rem;
    color: #9ca3af;
}

/* ==================== 章节样式 ==================== */
.chapter-item {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: #ffffff;
    transition: all 0.15s ease;
    cursor: pointer;
}

.chapter-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transform: none;
}

.chapter-title {
    font-weight: 500;
    color: #1a1a1a;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
}

.chapter-content {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #374151;
}

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: #9ca3af;
    background: #fafafa;
    border-radius: 8px;
    border: 1px dashed #e8e8e8;
    margin: 1rem 0;
    transition: all 0.15s ease;
}

.empty-state:hover {
    border-color: #d1d5db;
    background: #fafafa;
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #d1d5db !important;
    background-clip: unset !important;
    animation: none !important;
    color: #d1d5db;
}

.empty-state h5 {
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Inter', system-ui, sans-serif;
}

.empty-state p {
    margin-bottom: 1rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* ==================== 徽章 ==================== */
.badge {
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    letter-spacing: 0;
    box-shadow: none;
    transition: none;
}

.badge:hover {
    transform: none;
    box-shadow: none;
}

.bg-primary {
    background: #2563eb !important;
}

.bg-success {
    background: #16a34a !important;
}

.bg-warning {
    background: #d97706 !important;
}

.bg-danger {
    background: #dc2626 !important;
}

.bg-info {
    background: #2563eb !important;
}

.bg-secondary {
    background: #6b7280 !important;
}

/* ==================== 配置项 ==================== */
.config-item {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: #ffffff;
}

.config-item.active {
    border-color: #2563eb;
    background: #eff6ff;
}

.config-item.active::before {
    background: #2563eb;
}

.config-name {
    font-weight: 500;
    color: #1a1a1a;
    font-size: 0.875rem;
}

.config-model {
    font-size: 0.8125rem;
    color: #9ca3af;
}

/* ==================== Toast通知 ==================== */
.toast {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #e8e8e8;
    backdrop-filter: none !important;
    background: #ffffff;
}

.toast-header {
    background: #f9fafb;
    border-bottom: 1px solid #e8e8e8;
    border-radius: 8px 8px 0 0;
    padding: 0.625rem 0.75rem;
}

.toast-body {
    padding: 0.75rem;
    font-weight: 500;
    color: #1a1a1a;
    font-size: 0.875rem;
}

.toast.bg-success {
    background: #16a34a !important;
    border-color: #16a34a !important;
}

.toast.bg-success .toast-header,
.toast.bg-success .toast-body {
    background: #16a34a !important;
    color: white !important;
    text-shadow: none !important;
}

.toast.bg-danger {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
}

.toast.bg-danger .toast-header,
.toast.bg-danger .toast-body {
    background: #dc2626 !important;
    color: white !important;
    text-shadow: none !important;
}

.toast.bg-warning {
    background: #d97706 !important;
    border-color: #d97706 !important;
}

.toast.bg-warning .toast-header,
.toast.bg-warning .toast-body {
    background: #d97706 !important;
    color: white !important;
    text-shadow: none !important;
}

.toast.bg-info {
    background: #2563eb !important;
    border-color: #2563eb !important;
}

.toast.bg-info .toast-header,
.toast.bg-info .toast-body {
    background: #2563eb !important;
    color: white !important;
    text-shadow: none !important;
}

/* ==================== 滚动条 ==================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ==================== 首页英雄区 ==================== */
.hero-section {
    background: #ffffff;
    color: #1a1a1a;
    border-radius: 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e8e8e8;
}

.hero-section::before {
    display: none !important;
}

.hero-section > * {
    position: relative;
    z-index: 2;
}

.hero-section .card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ==================== 预设卡片 ==================== */
.preset-card {
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid #e8e8e8;
    height: 100%;
    background: #ffffff;
    border-radius: 8px;
}

.preset-card:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: #d1d5db;
}

.preset-card.active {
    border-color: #2563eb;
    background-color: #eff6ff;
}

.preset-card .card-title {
    font-weight: 600;
    color: #1a1a1a;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9375rem;
}

.preset-card .card-text {
    color: #6b7280;
    font-size: 0.8125rem;
}

/* ==================== 生成步骤 ==================== */
.generation-step.active {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
    box-shadow: none;
}

.generation-step.active .step-icon {
    background: #dbeafe;
    color: #2563eb;
    animation: none !important;
}

.generation-step.completed {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
}

.generation-step.completed .step-icon {
    background: #dcfce7;
    color: #16a34a;
}

/* ==================== 复选框 ==================== */
.form-check-input:checked {
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: none;
}

.form-check-input:focus {
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
    border-color: #2563eb;
}

.form-check-label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

/* ==================== 标签页 ==================== */
.nav-tabs .nav-link {
    border: 1px solid transparent;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    color: #6b7280;
    font-weight: 500;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.nav-tabs .nav-link:hover {
    border-color: #e8e8e8 #e8e8e8 #e8e8e8;
    color: #1a1a1a;
}

.nav-tabs .nav-link.active {
    color: #2563eb;
    background-color: #ffffff;
    border-color: #e8e8e8 #e8e8e8 #ffffff;
}

/* ==================== 扩展控制中心 ==================== */
.expansion-control-center {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.15s ease;
}

.expansion-control-center::before {
    display: none !important;
}

.expansion-control-center:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.expansion-title {
    font-weight: 600;
    color: #1a1a1a;
    font-family: 'Inter', system-ui, sans-serif;
}

.expansion-title i {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #2563eb !important;
    background-clip: unset !important;
    color: #2563eb;
}

.expansion-current-status {
    background: #f9fafb;
    border-left: 2px solid #2563eb;
    border-radius: 0;
}

.expansion-quick-stats .stat-value {
    color: #2563eb;
}

.expansion-actions .primary-action {
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: none;
}

.expansion-actions .primary-action::before {
    display: none !important;
}

/* ==================== 导航侧边栏 ==================== */
.navigation-sidebar {
    background: #ffffff;
    border-left: 1px solid #e8e8e8;
    box-shadow: none;
}

.sidebar-header {
    background: #f9fafb;
    border-bottom: 1px solid #e8e8e8;
}

.sidebar-nav-item:hover {
    background: #f5f5f5;
    color: #1a1a1a;
    border-color: transparent;
    transform: none;
}

.sidebar-nav-item.active {
    background: #2563eb;
    color: white;
    box-shadow: none;
}

/* ==================== 扩展历史 ==================== */
.expansion-history-item {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 0.75rem 1rem;
}

.expansion-history-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transform: none;
}

.history-number {
    color: #2563eb;
    background: #eff6ff;
}

.history-chapters {
    color: #16a34a;
    background: #f0fdf4;
}

.history-direction i,
.history-intent i {
    color: #6b7280;
}

.summary-value {
    color: #2563eb;
}

/* ==================== 杂志风覆盖 - 现代简洁 ==================== */
#publicSection h2,
#novelsSection h2 {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #1a1a1a !important;
    background-clip: unset !important;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

#publicSection h2::after,
#novelsSection h2::after {
    background: #2563eb;
    width: 32px;
    height: 2px;
    border-radius: 1px;
}

/* 小说卡片 */
.novel-card-magazine {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid #e8e8e8;
    transition: all 0.15s ease;
}

.novel-card-magazine::before {
    display: none !important;
}

.novel-card-magazine:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.novel-card-magazine .novel-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
}

.novel-card-magazine .novel-genre {
    background: #2563eb;
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: none;
    padding: 0.2rem 0.5rem;
}

.novel-card-magazine .stat-number {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #1a1a1a !important;
    background-clip: unset !important;
    color: #1a1a1a;
}

.novel-card-magazine .card-decoration {
    display: none;
}

/* 创建小说页 */
#generateSection h2 {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #1a1a1a !important;
    background-clip: unset !important;
    color: #1a1a1a;
}

#generateSection .col-md-8 .card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

#generateSection .col-md-8 .card::before {
    display: none !important;
}

#generateSection .col-md-8 .card::after {
    display: none !important;
}

#generateSection .card-header {
    background: transparent;
    border-bottom: 1px solid #e8e8e8;
    padding: 1rem 1.25rem;
}

#generateSection .card-header h5 {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

#generateSection .card-header h5::after {
    display: none !important;
}

#generateSection .card-body {
    padding: 1.25rem;
}

#generateSection .form-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
    text-transform: none;
    letter-spacing: 0;
}

#generateSection .form-label::before {
    display: none !important;
}

#generateSection .form-control,
#generateSection .form-select {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    background: #ffffff;
    font-family: 'Inter', system-ui, sans-serif;
}

#generateSection .form-control:focus,
#generateSection .form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
    background: #ffffff;
    transform: none;
}

#generateSection .btn-primary.btn-lg {
    background: #2563eb;
    border-radius: 6px;
    box-shadow: none;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 500;
}

#generateSection .btn-primary.btn-lg::before,
#generateSection .btn-primary.btn-lg::after {
    display: none !important;
}

#generateSection .btn-primary.btn-lg:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
}

/* 右侧进度卡片 */
#generateSection .col-md-4 .card {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

#generateSection .col-md-4 .card-header {
    background: #2563eb;
    border: none;
    padding: 0.75rem 1rem;
    color: #ffffff;
}

#generateSection .col-md-4 .card-header::before {
    display: none !important;
}

#generateSection .col-md-4 .card-header h5 {
    color: #ffffff;
}

/* 小说管理按钮 */
#novelsSection .btn-primary {
    background: #2563eb;
    border: none;
    border-radius: 6px;
    box-shadow: none;
}

#novelsSection .btn-primary:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
}

/* ==================== 首页英雄区新样式覆盖 ==================== */
.hero-new {
    background: #ffffff;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e8e8e8;
}

.hero-new::before {
    display: none !important;
}

.hero-title .title-main {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #1a1a1a;
    letter-spacing: -0.03em;
    display: block;
    line-height: 1.2;
}

.hero-title .title-sub {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: #6b7280;
    letter-spacing: 0;
    display: block;
    margin-top: 0.5rem;
}

.hero-description {
    color: #6b7280;
    font-size: 0.9375rem;
    font-style: normal;
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
}

/* 英雄区统计条 */
.hero-stats-bar {
    background: #f9fafb;
    backdrop-filter: none !important;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
}

.stat-item-hero .stat-number {
    color: #1a1a1a;
    font-weight: 700;
    font-family: 'Inter', system-ui, sans-serif;
}

.stat-item-hero .stat-label {
    color: #9ca3af;
    font-size: 0.75rem;
}

.stat-item-hero .stat-icon {
    color: #6b7280;
}

.stat-divider {
    background: #e8e8e8;
}

/* CTA按钮 */
.btn-hero {
    border-radius: 6px;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 500;
    letter-spacing: 0;
    transition: all 0.15s ease;
    font-size: 0.875rem;
}

.btn-hero-primary {
    background: #2563eb;
    color: white;
    box-shadow: none;
    border: none;
}

.btn-hero-primary:hover {
    transform: none;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
    background: #1d4ed8;
}

.btn-hero-primary .btn-glow {
    display: none !important;
}

.btn-hero-secondary {
    background: #ffffff;
    color: #2563eb;
    border: 1px solid #e8e8e8;
}

.btn-hero-secondary:hover {
    background: #f5f5f5;
    transform: none;
    border-color: #d1d5db;
}

.btn-hero-outline {
    background: transparent;
    color: #6b7280;
    border: 1px solid #e8e8e8;
}

.btn-hero-outline:hover {
    background: #f5f5f5;
    transform: none;
}

/* 功能书架 */
.shelf-title {
    font-family: 'Inter', system-ui, sans-serif;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 1.125rem;
}

.shelf-title i {
    color: #2563eb;
}

.book-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.15s ease;
}

.book-card:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.book-spine {
    border-radius: 8px 0 0 8px;
}

.book-content h3 {
    font-family: 'Inter', system-ui, sans-serif;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 1rem;
}

.book-content p {
    color: #6b7280;
    font-size: 0.8125rem;
}

.book-tag {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* 隐藏3D书本效果 */
.book-3d,
.book-glow,
.book-effect {
    display: none !important;
}

/* 工作流图 */
.section-title {
    font-family: 'Inter', system-ui, sans-serif;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 1.125rem;
}

.section-title i {
    color: #2563eb;
}

.workflow-node {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.15s ease;
}

.workflow-node:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.workflow-node .node-title {
    font-family: 'Inter', system-ui, sans-serif;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 0.9375rem;
}

.workflow-node .node-desc {
    color: #6b7280;
    font-size: 0.8125rem;
}

/* 翻转卡片 - 简化为普通信息卡 */
.flip-card {
    perspective: none !important;
}

.flip-card-inner {
    transform: none !important;
    transition: none !important;
}

.flip-card:hover .flip-card-inner {
    transform: none !important;
}

.flip-card-front,
.flip-card-back {
    border-radius: 8px;
    backface-visibility: visible !important;
    transform: none !important;
    position: relative !important;
}

.flip-card-back {
    display: none;
}

/* 渐变背景替换为纯色 */
.gradient-blue-purple {
    background: #2563eb !important;
}

.gradient-blue-purple-dark {
    background: #1d4ed8 !important;
}

.gradient-cyan-green {
    background: #0891b2 !important;
}

.gradient-cyan-green-dark {
    background: #0e7490 !important;
}

.gradient-orange-red {
    background: #d97706 !important;
}

.gradient-orange-red-dark {
    background: #b45309 !important;
}

.gradient-pink-purple {
    background: #7c3aed !important;
}

.gradient-pink-purple-dark {
    background: #6d28d9 !important;
}

/* ==================== 飘落元素背景 - 完全隐藏 ==================== */
.falling-elements-bg {
    display: none !important;
}

/* ==================== 登录页面内联样式覆盖 ==================== */
.login-page {
    background: #fafafa !important;
    position: relative;
    overflow: hidden;
}

/* 隐藏粒子画布 */
.login-page #particles-canvas {
    display: none !important;
}

/* 登录容器 */
.login-container {
    max-width: 400px;
    width: 100%;
    position: relative;
    z-index: 1;
    animation: none !important;
}

/* 登录头部 */
.login-header {
    padding: 2rem 1.5rem 1.25rem;
    text-align: center;
    color: #1a1a1a;
    position: relative;
}

.login-header .logo {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: inline-block;
    position: relative;
    animation: none !important;
}

.login-header .logo i {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #2563eb !important;
    background-clip: unset !important;
    filter: none;
    color: #2563eb;
}

.login-header h1 {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 600;
    color: #1a1a1a;
    font-family: 'Inter', system-ui, sans-serif;
    letter-spacing: -0.01em;
}

.login-header p {
    opacity: 1;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #9ca3af;
    font-style: normal;
}

/* 登录主体 */
.login-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

/* 表单输入框 */
.login-page .form-floating {
    margin-bottom: 1rem;
    position: relative;
}

.login-page .form-floating .input-glow {
    display: none !important;
}

.login-page .form-floating input {
    border-radius: 6px !important;
    border: 1px solid #e8e8e8 !important;
    background: #ffffff !important;
    padding-left: 2.5rem;
    height: 44px;
    font-size: 0.875rem;
    color: #1a1a1a;
    position: relative;
    z-index: 1;
    transition: all 0.15s ease;
    font-family: 'Inter', system-ui, sans-serif;
}

.login-page .form-floating input::placeholder {
    color: #9ca3af;
}

.login-page .form-floating input:focus {
    background: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1) !important;
    animation: none !important;
}

.login-page .form-floating label {
    padding-left: 2.5rem;
    color: #9ca3af;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
}

.login-page .input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    z-index: 5;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.login-page .form-floating:focus-within .input-icon {
    color: #2563eb;
    transform: translateY(-50%);
    filter: none;
}

/* 登录按钮 */
.btn-login {
    background: #2563eb !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 0.625rem !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    width: 100%;
    color: white !important;
    position: relative;
    overflow: hidden;
    transition: all 0.15s ease !important;
    animation: none !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
}

.btn-login::before {
    display: none !important;
}

.btn-login:hover {
    transform: none !important;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2) !important;
    background: #1d4ed8 !important;
}

.btn-login:active {
    transform: none !important;
}

/* 分隔线 */
.login-page .divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
    color: #9ca3af;
}

.login-page .divider::before,
.login-page .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e8e8;
}

.login-page .divider span {
    padding: 0 0.75rem;
    font-size: 0.75rem;
}

/* GitHub按钮 */
.login-page .btn-github {
    background: #ffffff !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 6px !important;
    padding: 0.625rem !important;
    color: #1a1a1a !important;
    font-weight: 500 !important;
    width: 100%;
    transition: all 0.15s ease !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 0.875rem !important;
}

.login-page .btn-github:hover {
    background: #f5f5f5 !important;
    border-color: #d1d5db !important;
    color: #1a1a1a !important;
    transform: none !important;
    box-shadow: none !important;
}

/* 登录底部 */
.login-footer {
    text-align: center;
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e8e8e8;
    color: #9ca3af;
    font-size: 0.8125rem;
}

.login-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.login-footer a:hover {
    color: #1d4ed8;
}

/* 提示框 */
.login-page .alert {
    border-radius: 6px;
    margin-bottom: 1rem;
    border: none;
    padding: 0.5rem 0.75rem;
    backdrop-filter: none !important;
    font-size: 0.8125rem;
}

.login-page .alert-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.login-page .alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.forgot-password {
    text-align: right;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

.forgot-password a {
    color: #9ca3af;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.forgot-password a:hover {
    color: #2563eb;
}

/* ==================== 注册页面内联样式覆盖 ==================== */
.register-page {
    background: #fafafa !important;
    position: relative;
    overflow: hidden;
}

/* 隐藏注册页浮动装饰 */
.register-page::before,
.register-page::after {
    display: none !important;
}

.register-container {
    max-width: 440px;
    width: 100%;
    position: relative;
    z-index: 1;
    animation: none !important;
}

.register-header {
    padding: 2rem 1.5rem 1.25rem;
    text-align: center;
    color: #1a1a1a;
    background: #ffffff !important;
}

.register-header .logo {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    animation: none !important;
    display: inline-block;
}

.register-header .logo i {
    color: #2563eb;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #2563eb !important;
    background-clip: unset !important;
}

.register-header h1 {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 600;
    color: #1a1a1a;
    text-shadow: none !important;
    font-family: 'Inter', system-ui, sans-serif;
}

.register-header p {
    opacity: 1;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #9ca3af;
    text-shadow: none !important;
}

.register-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.register-page .form-floating {
    margin-bottom: 1rem;
}

.register-page .form-floating input {
    border-radius: 6px !important;
    border: 1px solid #e8e8e8 !important;
    padding-left: 2.75rem;
    height: 44px;
    font-size: 0.875rem;
    transition: all 0.15s ease;
    background: #ffffff !important;
    color: #1a1a1a;
    font-family: 'Inter', system-ui, sans-serif;
}

.register-page .form-floating input:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1) !important;
}

.register-page .form-floating label {
    padding-left: 2.75rem;
    color: #9ca3af;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
}

.register-page .input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    z-index: 5;
    font-size: 0.875rem;
    transition: color 0.15s ease;
}

.register-page .form-floating input:focus ~ .input-icon {
    color: #2563eb;
}

/* 注册按钮 */
.btn-register {
    background: #2563eb !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 0.625rem !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    width: 100%;
    transition: all 0.15s ease !important;
    position: relative;
    overflow: hidden;
    box-shadow: none !important;
    font-family: 'Inter', system-ui, sans-serif !important;
}

.btn-register::before {
    display: none !important;
}

.btn-register:hover {
    transform: none !important;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2) !important;
    background: #1d4ed8 !important;
}

.btn-register:hover::before {
    display: none !important;
}

/* 注册页分隔线 */
.register-page .divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
    color: #9ca3af;
}

.register-page .divider::before,
.register-page .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e8e8;
}

.register-page .divider span {
    padding: 0 0.75rem;
    font-size: 0.75rem;
}

/* 注册页GitHub按钮 */
.register-page .btn-github {
    background: #ffffff !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 6px !important;
    padding: 0.625rem !important;
    color: #1a1a1a !important;
    font-weight: 500 !important;
    width: 100%;
    transition: all 0.15s ease !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 0.875rem !important;
}

.register-page .btn-github:hover {
    background: #f5f5f5 !important;
    color: #1a1a1a !important;
    transform: none !important;
    box-shadow: none !important;
}

/* 注册页底部 */
.register-footer {
    text-align: center;
    padding: 1rem 1.5rem;
    background: #f9faff;
    border-top: 1px solid #e8e8e8;
}

.register-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.register-footer a:hover {
    color: #1d4ed8;
}

/* 注册页提示框 */
.register-page .alert {
    border-radius: 6px;
    margin-bottom: 1rem;
    border: none;
    padding: 0.5rem 0.75rem;
}

.register-page .alert-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.register-page .alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.register-page .form-text {
    font-size: 0.75rem;
    color: #9ca3af;
}

.register-page .password-strength {
    height: 3px;
    border-radius: 2px;
    margin-top: 0.375rem;
    background: #f0f0f0;
    overflow: hidden;
}

.register-page .password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.15s ease;
    border-radius: 2px;
}

.register-page .form-check {
    margin-bottom: 1rem;
}

.register-page .form-check-input:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

.register-page .form-check-label a {
    color: #2563eb;
    text-decoration: none;
}

.register-page .form-check-label a:hover {
    text-decoration: underline;
}

/* ==================== 生成设置页面 ==================== */
#preferencesSection .card {
    border: 1px solid #e8e8e8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    background: #ffffff;
}

#preferencesSection .card-header {
    background-color: #f9fafb;
    border-bottom: 1px solid #e8e8e8;
    font-weight: 600;
    color: #1a1a1a;
}

/* ==================== 动画精简 - 禁用所有浮动/发光动画 ==================== */
@keyframes logoGlow {
    0%, 100% { text-shadow: none; transform: scale(1); }
    50% { text-shadow: none; transform: scale(1); }
}

@keyframes glow-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(0); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes pulse-glow {
    0% { box-shadow: none; }
    70% { box-shadow: none; }
    100% { box-shadow: none; }
}

@keyframes scaleIn {
    0% { opacity: 1; transform: scale(1) translateY(0); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* 卡片入场动画 - 简化 */
@keyframes cardFadeIn {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 1; transform: translateY(0); }
}

.novel-card-magazine {
    animation: none !important;
}

/* ==================== 模态框 ==================== */
.modal-content {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.modal-header {
    background: #f9fafb;
    color: #1a1a1a;
    border-bottom: 1px solid #e8e8e8;
    border-radius: 12px 12px 0 0;
    padding: 0.875rem 1.25rem;
}

.modal-header .btn-close {
    filter: none;
}

.modal-footer {
    background: #f9faff;
    border-top: 1px solid #e8e8e8;
}

/* ==================== 下拉菜单全局修复 ==================== */
.dropdown-menu {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
}

.dropdown-item:hover {
    background: #f5f5f5;
    color: #1a1a1a;
}

/* ==================== 加载动画 ==================== */
.loading-spinner {
    border: 2px solid #e8e8e8;
    border-top: 2px solid #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: none;
}

/* ==================== 人物/情节卡片 ==================== */
.character-item {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: #ffffff;
}

.character-name {
    font-weight: 500;
    color: #1a1a1a;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
}

.plot-thread-item {
    border-left: 2px solid #2563eb;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: #f9fafb;
    border-radius: 0 6px 6px 0;
}

.plot-thread-title {
    font-weight: 500;
    color: #1a1a1a;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
}

/* ==================== 状态相关 ==================== */
.status-badge.ready {
    background: #f0fdf4;
    color: #16a34a;
}

.status-badge.not-ready {
    background: #fef2f2;
    color: #dc2626;
}

.status-badge.loading {
    background: #fffbeb;
    color: #d97706;
}

/* ==================== 杂志风变量覆盖 ==================== */
:root {
    --magazine-purple: #2563eb;
    --magazine-pink: #dc2626;
    --magazine-cyan: #0891b2;
    --magazine-orange: #d97706;
    --magazine-red: #dc2626;
    --magazine-green: #16a34a;

    --magazine-gradient-hero: #2563eb;
    --magazine-gradient-accent: #2563eb;
    --magazine-gradient-nature: #0891b2;
    --magazine-gradient-sunset: #d97706;
    --magazine-gradient-ocean: #2563eb;

    --magazine-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --magazine-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --magazine-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --magazine-shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* ==================== 响应式微调 ==================== */
@media (max-width: 768px) {
    .hero-title .title-main {
        font-size: 1.75rem;
    }

    .hero-title .title-sub {
        font-size: 0.875rem;
    }

    #publicSection h2,
    #novelsSection h2,
    #generateSection h2 {
        font-size: 1.25rem;
    }

    .novel-card-magazine .novel-title {
        font-size: 1rem;
    }

    .login-container {
        max-width: 100%;
    }

    .login-header {
        padding: 1.5rem 1.25rem 1rem;
    }

    .login-body {
        padding: 1rem 1.25rem 1.25rem;
    }

    .login-header h1 {
        font-size: 1.125rem;
    }

    .login-header .logo {
        font-size: 1.75rem;
    }

    .register-container {
        max-width: 100%;
    }

    .register-header {
        padding: 1.5rem 1.25rem 1rem;
    }

    .register-body {
        padding: 1rem 1.25rem;
    }

    .register-header h1 {
        font-size: 1.125rem;
    }
}

/* ==================== 文件结束 ==================== */
