/* ============================================
   医学信息化知识库系统 - 科技感主题样式
   ============================================ */

:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #111638;
    --bg-card: rgba(17, 25, 55, 0.7);
    --bg-card-hover: rgba(25, 35, 75, 0.85);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #e8eaed;
    --text-secondary: #9aa0b4;
    --text-muted: #6b7194;
    --accent-blue: #00d4ff;
    --accent-purple: #6c5ce7;
    --accent-green: #00d68f;
    --accent-orange: #ff9f43;
    --accent-red: #ff4757;
    --gradient-1: linear-gradient(135deg, #00d4ff 0%, #0a8fff 100%);
    --gradient-2: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    --gradient-3: linear-gradient(135deg, #fdcb6e 0%, #f39c12 100%);
    --gradient-4: linear-gradient(135deg, #00d68f 0%, #0ab897 100%);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: var(--accent-blue); text-decoration: none; transition: var(--transition); }
a:hover { color: #4de0ff; }
ul, ol { padding-left: 20px; }
img { max-width: 100%; height: auto; }
table { border-collapse: collapse; }
input, textarea, select, button { font-family: inherit; }

/* ============ 粒子背景 ============ */
#particles-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(108, 92, 231, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 214, 143, 0.04) 0%, transparent 50%);
}

/* ============ 顶部导航 ============ */
.header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}
.header-inner {
    max-width: 1400px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; height: 60px; gap: 24px;
}
.logo {
    display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.logo-icon { font-size: 28px; color: var(--accent-blue); }
.logo-text { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.logo-accent { background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.main-nav {
    display: flex; gap: 4px; flex: 1; align-items: center;
}
.nav-item {
    padding: 8px 14px; border-radius: 8px; font-size: 14px;
    color: var(--text-secondary); white-space: nowrap; display: flex; align-items: center; gap: 6px;
}
.nav-item:hover { color: var(--text-primary); background: var(--glass-bg); }
.nav-item.active { color: var(--accent-blue); background: rgba(0, 212, 255, 0.1); }
.ai-nav { position: relative; }
.ai-nav::after { content: 'AI'; position: absolute; top: 2px; right: 4px; font-size: 9px; background: var(--gradient-1); padding: 1px 4px; border-radius: 4px; color: #fff; }

.header-right { display: flex; align-items: center; gap: 12px; }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-primary); font-size: 20px; cursor: pointer; padding: 8px; }
.login-btn {
    padding: 8px 20px; border-radius: 8px; font-size: 14px; color: #fff;
    background: var(--gradient-1); display: flex; align-items: center; gap: 6px;
}
.login-btn:hover { opacity: 0.9; color: #fff; }

.user-dropdown { position: relative; }
.user-btn {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    color: var(--text-primary); padding: 8px 14px; border-radius: 8px;
    cursor: pointer; font-size: 14px; display: flex; align-items: center; gap: 8px;
}
.user-menu {
    position: absolute; top: 100%; right: 0; margin-top: 8px;
    background: var(--bg-secondary); border: 1px solid var(--glass-border);
    border-radius: var(--radius); min-width: 160px; padding: 8px;
    display: none; z-index: 1000; box-shadow: var(--shadow-card);
}
.user-menu.show { display: block; }
.user-menu a {
    display: flex; align-items: center; gap: 8px; padding: 10px 14px;
    border-radius: 8px; color: var(--text-secondary); font-size: 14px;
}
.user-menu a:hover { background: var(--glass-bg); color: var(--text-primary); }

/* ============ 主内容区 ============ */
.main-content { position: relative; z-index: 1; min-height: calc(100vh - 180px); }
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.page-section { padding: 40px 0; }
.section-dark { background: rgba(17, 22, 56, 0.5); }

.page-title { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.page-desc { color: var(--text-secondary); margin-bottom: 30px; font-size: 16px; }
.page-header-desc { color: var(--text-secondary); margin-bottom: 24px; }
.page-header-with-search { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; flex-wrap: wrap; gap: 16px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.section-title { font-size: 22px; font-weight: 700; }
.section-more { color: var(--text-muted); font-size: 14px; }
.section-more:hover { color: var(--accent-blue); }
.mt-40 { margin-top: 40px; }

/* ============ 首页 ============ */
.hero-section {
    padding: 60px 0 50px;
    text-align: center;
    position: relative;
}
.hero-content { max-width: 800px; margin: 0 auto; }
.hero-title { font-size: 48px; margin-bottom: 16px; }
.gradient-text { background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { display: block; margin-top: 4px; }
.hero-desc { color: var(--text-secondary); font-size: 18px; margin-bottom: 32px; }

.hero-search { max-width: 700px; margin: 0 auto; }
.hero-search-form {
    display: flex; align-items: center; background: var(--bg-card);
    border: 1px solid var(--glass-border); border-radius: 50px;
    padding: 4px 4px 4px 20px; backdrop-filter: blur(10px);
}
.hero-search-form:focus-within { border-color: var(--accent-blue); box-shadow: var(--shadow-glow); }
.search-icon { color: var(--text-muted); font-size: 18px; margin-right: 10px; }
.hero-search-input {
    flex: 1; background: none; border: none; color: var(--text-primary);
    font-size: 16px; padding: 14px 0; outline: none;
}
.hero-search-input::placeholder { color: var(--text-muted); }
.hero-search-btn {
    padding: 12px 32px; background: var(--gradient-1); border: none;
    border-radius: 50px; color: #fff; font-size: 16px; cursor: pointer;
    transition: var(--transition); font-weight: 600;
}
.hero-search-btn:hover { opacity: 0.9; transform: scale(1.02); }

.hero-hot-tags { margin-top: 16px; font-size: 13px; color: var(--text-muted); display: flex; align-items: center;
    justify-content: center; gap: 8px; flex-wrap: wrap; }
.hot-tag { color: var(--text-secondary); padding: 4px 12px; background: var(--glass-bg); border-radius: 20px; }
.hot-tag:hover { color: var(--accent-blue); background: rgba(0,212,255,0.1); }

.hero-stats { display: flex; justify-content: center; gap: 24px; margin-top: 50px; flex-wrap: wrap; }
.stat-card {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); padding: 24px 32px; text-align: center;
    min-width: 140px; backdrop-filter: blur(10px);
    transition: var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.stat-icon { font-size: 28px; margin-bottom: 8px; display: block; }
.stat-card:nth-child(1) .stat-icon { color: var(--accent-blue); }
.stat-card:nth-child(2) .stat-icon { color: var(--accent-purple); }
.stat-card:nth-child(3) .stat-icon { color: var(--accent-orange); }
.stat-card:nth-child(4) .stat-icon { color: var(--accent-green); }
.stat-number { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text-muted); }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 40px 0; }
.feature-card {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); padding: 28px 24px;
    transition: var(--transition); display: block;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); border-color: rgba(0,212,255,0.3); }
.feature-icon {
    width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center;
    justify-content: center; font-size: 24px; color: #fff; margin-bottom: 16px;
}
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 14px; margin-bottom: 16px; }
.feature-arrow { color: var(--accent-blue); font-size: 14px; }

.knowledge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.knowledge-card {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius); padding: 18px; transition: var(--transition); display: block;
}
.knowledge-card:hover { border-color: rgba(0,212,255,0.3); transform: translateY(-2px); }
.knowledge-card-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.knowledge-badge { font-size: 11px; padding: 2px 10px; background: rgba(0,212,255,0.15); color: var(--accent-blue); border-radius: 20px; }
.knowledge-views { font-size: 12px; color: var(--text-muted); }
.knowledge-card h4 { font-size: 15px; margin-bottom: 8px; }
.knowledge-card-desc { font-size: 13px; color: var(--text-muted); }

.department-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.department-card {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius); padding: 16px; text-align: center; transition: var(--transition); display: block;
    color: var(--text-secondary);
}
.department-card:hover { border-color: var(--accent-blue); color: var(--accent-blue); background: rgba(0,212,255,0.05); }
.department-card i { font-size: 20px; display: block; margin-bottom: 6px; }
.department-card span { display: block; font-size: 14px; }
.department-card small { font-size: 11px; color: var(--text-muted); }

.hosp-list-mini { display: flex; flex-direction: column; gap: 12px; }
.hosp-mini-item {
    display: flex; align-items: center; gap: 16px; background: var(--bg-card);
    border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 16px 20px;
    transition: var(--transition);
}
.hosp-mini-item:hover { border-color: rgba(108,92,231,0.4); }
.hosp-mini-icon { font-size: 22px; color: var(--accent-purple); }
.hosp-mini-info { flex: 1; }
.hosp-mini-info h4 { font-size: 15px; margin-bottom: 4px; }
.hosp-mini-info p { font-size: 13px; color: var(--text-muted); }
.hosp-mini-views { font-size: 12px; color: var(--text-muted); }

.rating-overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rating-overview-card {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); padding: 24px; text-align: center; transition: var(--transition);
}
.rating-overview-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.roc-icon { font-size: 36px; margin-bottom: 12px; }
.rating-overview-card h4 { font-size: 16px; margin-bottom: 8px; }
.rating-overview-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.roc-level { font-size: 12px; padding: 4px 12px; background: var(--glass-bg); border-radius: 20px; color: var(--accent-blue); }

/* ============ 通用组件 ============ */
.inline-search { display: flex; gap: 8px; }
.search-input {
    padding: 10px 16px; background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius); color: var(--text-primary); font-size: 14px;
    min-width: 250px; outline: none;
}
.search-input:focus { border-color: var(--accent-blue); }

.btn {
    padding: 10px 24px; border-radius: var(--radius); font-size: 14px; font-weight: 600;
    border: none; cursor: pointer; transition: var(--transition); display: inline-flex;
    align-items: center; gap: 6px;
}
.btn-primary { background: var(--gradient-1); color: #fff; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--glass-border); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.btn-success { background: var(--gradient-4); color: #fff; }
.btn-danger { background: var(--accent-red); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { display: block; width: 100%; text-align: center; justify-content: center; }

.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-blue); }
.breadcrumb i { font-size: 10px; }

.badge { padding: 3px 10px; border-radius: 20px; font-size: 11px; }
.badge-success { background: rgba(0,214,143,0.15); color: var(--accent-green); }
.badge-danger { background: rgba(255,71,87,0.15); color: var(--accent-red); }
.badge-medical { background: rgba(0,212,255,0.15); color: var(--accent-blue); }
.badge-hosp { background: rgba(108,92,231,0.15); color: var(--accent-purple); }
.badge-policy { background: rgba(253,203,110,0.15); color: var(--accent-orange); }
.badge-rating { background: rgba(0,214,143,0.15); color: var(--accent-green); }

.alert { padding: 12px 18px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.alert-error { background: rgba(255,71,87,0.1); border: 1px solid rgba(255,71,87,0.3); color: var(--accent-red); }

.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 48px; color: var(--text-muted); margin-bottom: 16px; }
.empty-state p { color: var(--text-secondary); font-size: 16px; }
.empty-hint { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.page-btn {
    width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
    color: var(--text-secondary); font-size: 14px; transition: var(--transition);
}
.page-btn:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.page-btn.active { background: var(--gradient-1); color: #fff; border-color: transparent; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--glass-border); }
.data-table th { font-size: 13px; color: var(--text-muted); font-weight: 600; background: var(--glass-bg); }
.data-table td { font-size: 14px; }
.data-table tr:hover td { background: var(--glass-bg); }
.score-display { font-weight: 700; font-size: 18px; color: var(--accent-green); }

/* ============ 登录/注册 ============ */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 70vh; padding: 40px 20px; }
.auth-card {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 420px;
    backdrop-filter: blur(10px);
}
.auth-header { text-align: center; margin-bottom: 30px; }
.auth-logo { font-size: 44px; background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 12px; }
.auth-header h2 { font-size: 24px; margin-bottom: 5px; }
.auth-header p { color: var(--text-muted); font-size: 14px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--text-secondary); }
.required { color: var(--accent-red); }
.input-icon { position: relative; }
.input-icon i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.input-icon input {
    width: 100%; padding: 12px 16px 12px 42px; background: var(--bg-primary);
    border: 1px solid var(--glass-border); border-radius: var(--radius);
    color: var(--text-primary); font-size: 14px; outline: none; transition: var(--transition);
}
.input-icon input:focus { border-color: var(--accent-blue); }

.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-muted); }
.auth-footer a { color: var(--accent-blue); }
.auth-demo { margin-top: 10px; color: var(--text-muted); font-size: 12px; }

/* ============ 医学知识库 ============ */
.medical-layout { display: flex; gap: 24px; }
.medical-sidebar { width: 260px; flex-shrink: 0; }
.medical-main { flex: 1; min-width: 0; }

.sidebar-card {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius); padding: 20px; margin-bottom: 20px;
}
.sidebar-card h3 { font-size: 15px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.department-list { max-height: 400px; overflow-y: auto; }
.dept-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 12px; border-radius: 6px; font-size: 13px; color: var(--text-secondary);
    transition: var(--transition);
}
.dept-item:hover { background: var(--glass-bg); color: var(--text-primary); }
.dept-item.active { background: rgba(0,212,255,0.1); color: var(--accent-blue); }
.dept-count { font-size: 11px; color: var(--text-muted); }

.hot-list { display: flex; flex-direction: column; gap: 4px; }
.hot-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; font-size: 13px; }
.hot-item:hover { background: var(--glass-bg); }
.hot-num { font-size: 11px; min-width: 24px; text-align: center; background: rgba(255,159,67,0.2); color: var(--accent-orange); border-radius: 4px; padding: 1px 4px; }

.search-result-info { margin-bottom: 20px; padding: 12px 18px; background: var(--glass-bg); border-radius: var(--radius); font-size: 14px; }
.cat-desc { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.disease-list { display: flex; flex-direction: column; gap: 12px; }
.disease-card {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius); padding: 16px 20px; display: block; transition: var(--transition);
}
.disease-card:hover { border-color: rgba(0,212,255,0.3); transform: translateX(4px); }
.disease-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.disease-card-header h3 { font-size: 16px; }
.disease-ks { font-size: 12px; padding: 2px 10px; background: rgba(0,214,143,0.15); color: var(--accent-green); border-radius: 20px; }
.disease-card-desc { font-size: 13px; color: var(--text-muted); }
.disease-card-footer { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--text-muted); }
.disease-card-link { color: var(--accent-blue); }

/* 疾病详情 */
.disease-detail { background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 32px; }
.disease-detail-header { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--glass-border); }
.disease-detail-header h1 { font-size: 28px; margin-bottom: 12px; }
.disease-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.disease-ks-tag { padding: 3px 12px; background: rgba(0,212,255,0.1); color: var(--accent-blue); border-radius: 20px; }
.source-link { color: var(--accent-purple); }

.disease-section { margin-bottom: 24px; }
.section-icon-title { font-size: 18px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; color: var(--accent-blue); }
.disease-content { color: var(--text-secondary); line-height: 1.8; font-size: 14px; }

.disease-related { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--glass-border); }
.disease-related h3 { font-size: 16px; margin-bottom: 14px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.related-card {
    padding: 12px; background: var(--glass-bg); border-radius: var(--radius-sm);
    display: flex; flex-direction: column; gap: 4px; transition: var(--transition);
}
.related-card:hover { background: rgba(0,212,255,0.08); }
.related-name { font-size: 14px; }
.related-card small { font-size: 11px; color: var(--text-muted); }

/* ============ 医院知识库 ============ */
.hosp-layout { display: flex; gap: 24px; }
.hosp-sidebar { width: 260px; flex-shrink: 0; }
.hosp-main { flex: 1; min-width: 0; }

.hosp-card-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hosp-card {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius); padding: 20px; display: block; transition: var(--transition);
    position: relative;
}
.hosp-card:hover { border-color: rgba(108,92,231,0.4); transform: translateY(-2px); }
.hosp-card h3 { font-size: 16px; margin-bottom: 8px; }
.hosp-card-subtitle { font-size: 13px; color: var(--accent-purple); margin-bottom: 10px; }
.hosp-card-summary { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.hosp-card-footer { display: flex; gap: 14px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; }
.recommend-tag, .hot-tag-badge {
    position: absolute; top: 12px; right: 12px; padding: 2px 10px; border-radius: 4px; font-size: 11px;
}
.recommend-tag { background: var(--accent-red); color: #fff; }
.hot-tag-badge { background: var(--accent-orange); color: #fff; }

/* 详情页 */
.detail-layout { display: flex; gap: 30px; }
.detail-article { flex: 1; min-width: 0; background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 32px; }
.detail-sidebar { width: 280px; flex-shrink: 0; }

.article-header { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--glass-border); }
.article-header h1 { font-size: 26px; margin-bottom: 8px; }
.article-subtitle { color: var(--accent-purple); font-size: 15px; margin-bottom: 12px; }
.article-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.article-keywords { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.keyword-tag { font-size: 11px; padding: 2px 10px; background: var(--glass-bg); border-radius: 20px; color: var(--text-secondary); }

.article-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 24px; }
.article-img { border-radius: var(--radius); max-height: 300px; object-fit: cover; width: 100%; }

.article-content { line-height: 1.9; font-size: 15px; color: var(--text-secondary); }
.article-content h2 { font-size: 20px; color: var(--text-primary); margin: 24px 0 12px; }
.article-content h3 { font-size: 17px; color: var(--text-primary); margin: 20px 0 10px; }
.article-content p { margin-bottom: 12px; }
.article-content ul, .article-content ol { margin-bottom: 12px; padding-left: 24px; }
.article-content li { margin-bottom: 4px; }
.article-content table { margin: 16px 0; }
.content-block { color: var(--text-secondary); line-height: 1.9; }

.article-attachments { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--glass-border); }
.article-attachments h3 { font-size: 16px; margin-bottom: 12px; }
.attachment-item {
    display: flex; align-items: center; gap: 8px; padding: 10px 16px;
    background: var(--glass-bg); border-radius: var(--radius-sm); margin-bottom: 8px;
    font-size: 14px; color: var(--accent-blue);
}
.attachment-item:hover { background: rgba(0,212,255,0.08); }

.article-action { text-align: center; margin-top: 30px; }


/* ============ 评级标准 ============ */
.rating-grid { display: flex; flex-direction: column; gap: 24px; }
.rating-category-card {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); padding: 24px; transition: var(--transition);
}
.rating-category-card:hover { border-color: rgba(0,212,255,0.2); }
.rcc-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.rcc-header i { font-size: 32px; }
.rcc-header h3 { font-size: 18px; margin-bottom: 2px; }
.rcc-header p { font-size: 13px; color: var(--text-muted); }
.rcc-levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 16px; }
.rcc-level-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--glass-bg);
    border-radius: var(--radius-sm); transition: var(--transition); color: var(--text-secondary);
}
.rcc-level-item:hover { background: rgba(0,212,255,0.08); }
.level-badge {
    min-width: 40px; height: 28px; display: flex; align-items: center; justify-content: center;
    border-radius: 6px; font-size: 12px; font-weight: 700; color: #fff;
}
.level-0 { background: #666; } .level-1 { background: #0a8fff; }
.level-2 { background: #00d4ff; } .level-3 { background: #00d68f; }
.level-4 { background: #ffc107; color: #333; } .level-5 { background: #ff9f43; }
.level-6 { background: #ff6b6b; } .level-7 { background: #a29bfe; }
.level-8 { background: #6c5ce7; }
.level-name { flex: 1; font-size: 13px; }
.level-score { font-size: 12px; color: var(--text-muted); }
.rcc-detail-link, .rcc-assess-link { font-size: 13px; display: inline-flex; align-items: center; gap: 4px; margin-right: 16px; }
.rcc-assess-link { color: var(--accent-green); }

/* 评级分类页 */
.rating-cat-header { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.rch-icon { font-size: 42px; color: var(--accent-blue); }

.rating-levels-list { display: flex; flex-direction: column; gap: 20px; }
.rating-level-card {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); padding: 28px; transition: var(--transition);
}
.rating-level-card:hover { border-color: rgba(0,212,255,0.2); }
.rlc-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.rlc-level-display { display: flex; align-items: center; gap: 16px; }
.rlc-level-num {
    width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--gradient-1); font-size: 24px; font-weight: 800; color: #fff;
}
.rlc-level-display h3 { font-size: 18px; }
.rlc-score { font-size: 13px; color: var(--accent-orange); }
.rlc-criteria, .rlc-requirements, .rlc-examples { margin-bottom: 18px; }
.rlc-criteria h4, .rlc-requirements h4, .rlc-examples h4, .rlc-indicators h4 {
    font-size: 14px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.rlc-content { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }

.indicator-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.indicator-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 14px; background: var(--glass-bg); border-radius: 6px;
}
.ind-name { font-size: 13px; color: var(--text-secondary); }
.ind-value { font-size: 13px; font-weight: 600; color: var(--accent-blue); }
.rlc-more { font-size: 13px; display: inline-block; margin-top: 8px; }

.indicator-table { width: 100%; margin-top: 10px; }
.indicator-table th, .indicator-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--glass-border); font-size: 14px; }
.indicator-table th { color: var(--text-muted); font-weight: 600; }

/* ============ 自评系统 ============ */
.assessment-stats { display: flex; gap: 20px; margin-bottom: 30px; }

.template-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.template-card {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); padding: 24px; text-align: center; transition: var(--transition);
}
.template-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.tc-icon { font-size: 36px; margin-bottom: 12px; color: var(--accent-blue); }
.template-card h3 { font-size: 16px; margin-bottom: 8px; }
.template-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.tc-info { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }

.history-table-wrap { background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: var(--radius); overflow: hidden; }

.assessment-form-wrap { max-width: 900px; margin: 0 auto; }
.assessment-header { text-align: center; margin-bottom: 30px; }
.assessment-header h1 { font-size: 24px; margin-bottom: 6px; }
.assessment-header p { color: var(--text-muted); }
.assessment-progress {
    width: 100%; height: 6px; background: var(--glass-bg); border-radius: 3px;
    margin: 16px auto; max-width: 400px; overflow: hidden;
}
.progress-bar { height: 100%; background: var(--gradient-1); border-radius: 3px; transition: width 0.3s; }

.assessment-question {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
}
.aq-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.aq-num {
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    background: var(--gradient-1); border-radius: 50%; font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.aq-text { flex: 1; }
.aq-text h4 { font-size: 15px; margin-bottom: 4px; }
.aq-desc { font-size: 12px; color: var(--text-muted); }
.aq-category { font-size: 11px; padding: 2px 10px; background: var(--glass-bg); border-radius: 20px; color: var(--text-muted); white-space: nowrap; }

.aq-options { padding-left: 46px; }
.option-item {
    display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; font-size: 14px; transition: var(--transition);
}
.option-item:hover { color: var(--accent-blue); }
.option-radio {
    width: 18px; height: 18px; border: 2px solid var(--text-muted); border-radius: 50%; flex-shrink: 0;
}
.option-item input { display: none; }
.option-item input:checked + .option-radio {
    border-color: var(--accent-blue); background: var(--accent-blue);
    box-shadow: inset 0 0 0 4px var(--bg-card);
}
.option-text em { font-size: 11px; color: var(--text-muted); }

.score-slider-group { display: flex; gap: 6px; flex-wrap: wrap; }
.score-option { cursor: pointer; }
.score-option input { display: none; }
.score-option-label {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border: 1px solid var(--glass-border); border-radius: 8px;
    font-size: 14px; font-weight: 600; color: var(--text-secondary); transition: var(--transition);
}
.score-option input:checked + .score-option-label {
    background: var(--gradient-1); color: #fff; border-color: transparent;
}
.score-option:hover .score-option-label { border-color: var(--accent-blue); }
.score-hint { width: 100%; margin-top: 6px; font-size: 12px; color: var(--text-muted); }

.yesno-group { display: flex; gap: 16px; }
.yesno-option {
    display: flex; align-items: center; gap: 8px; padding: 10px 24px;
    background: var(--glass-bg); border-radius: var(--radius-sm); border: 1px solid transparent;
    cursor: pointer; transition: var(--transition); font-size: 14px;
}
.yesno-option:hover { border-color: var(--accent-blue); }
.yesno-option input { display: none; }
.yesno-option input:checked + span { color: var(--accent-blue); font-weight: 600; }

.form-actions { display: flex; justify-content: center; gap: 16px; margin-top: 30px; }

/* 评估结果 */
.result-page { max-width: 800px; margin: 0 auto; }
.result-header { text-align: center; margin-bottom: 30px; }
.result-header h1 { font-size: 28px; }
.result-template { color: var(--text-muted); }
.result-score-circle { text-align: center; margin-bottom: 20px; }
.score-ring { position: relative; width: 200px; height: 200px; margin: 0 auto; }
.score-svg { width: 100%; height: 100%; }
.score-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.score-value { font-size: 48px; font-weight: 800; display: block; }
.score-label { font-size: 14px; color: var(--text-muted); }
.result-level { text-align: center; font-size: 18px; margin-bottom: 30px; padding: 12px; background: var(--glass-bg); border-radius: var(--radius); }
.result-detail-section { margin-bottom: 30px; }
.result-detail-section h3, .result-suggestions h3 { font-size: 16px; margin-bottom: 14px; }

.result-ai-analysis {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px;
}
.ai-badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
    background: rgba(108,92,231,0.15); border-radius: 20px; color: var(--accent-purple);
    font-size: 13px; margin-bottom: 16px;
}
.ai-analysis-content { color: var(--text-secondary); line-height: 1.9; font-size: 14px; }

.result-suggestions { background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 30px; }
.suggestions-content { color: var(--text-secondary); line-height: 1.9; font-size: 14px; }
.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============ AI 页面 ============ */
.ai-page { max-width: 900px; margin: 0 auto; }
.ai-page-header { text-align: center; margin-bottom: 30px; }
.ai-page-icon { font-size: 52px; background: var(--gradient-2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 12px; }
.ai-page-header h1 { font-size: 28px; margin-bottom: 8px; }
.ai-page-header p { color: var(--text-muted); }

.ai-stats-bar { display: flex; justify-content: center; gap: 30px; margin-bottom: 30px; }
.ai-stat-item { text-align: center; }
.ai-stat-num { font-size: 28px; font-weight: 800; color: var(--accent-blue); display: block; }
.ai-stat-label { font-size: 12px; color: var(--text-muted); }

.ai-chat-container {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg); overflow: hidden; min-height: 500px; display: flex; flex-direction: column;
}
.ai-chat-main { flex: 1; padding: 24px; overflow-y: auto; max-height: 500px; display: flex; flex-direction: column; gap: 16px; }
.ai-welcome { text-align: center; padding: 40px 20px; }
.ai-welcome-icon { font-size: 64px; background: var(--gradient-2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: block; margin-bottom: 16px; }
.ai-welcome h2 { font-size: 22px; margin-bottom: 10px; }
.ai-welcome p { color: var(--text-muted); margin-bottom: 24px; }
.ai-quick-questions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.quick-q-btn {
    padding: 8px 18px; background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 20px; color: var(--text-secondary); cursor: pointer; font-size: 13px;
    transition: var(--transition);
}
.quick-q-btn:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.ai-chat-bottom { padding: 16px 24px; border-top: 1px solid var(--glass-border); }
.ai-input-box { display: flex; gap: 10px; align-items: flex-end; }
.ai-input-box textarea {
    flex: 1; padding: 12px 16px; background: var(--bg-primary); border: 1px solid var(--glass-border);
    border-radius: var(--radius); color: var(--text-primary); font-size: 14px;
    outline: none; resize: none; max-height: 120px;
}
.ai-input-box textarea:focus { border-color: var(--accent-blue); }
.ai-input-box button {
    padding: 12px 18px; background: var(--gradient-1); border: none; border-radius: var(--radius);
    color: #fff; cursor: pointer; font-size: 16px; transition: var(--transition);
}
.ai-input-box button:hover { opacity: 0.9; }
.ai-input-box button:disabled { opacity: 0.5; cursor: not-allowed; }

.main-ai-msg { display: flex; gap: 12px; }
.msg-user { flex-direction: row-reverse; }
.msg-avatar { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--glass-bg); color: var(--text-muted); font-size: 14px; flex-shrink: 0; }
.msg-user .msg-avatar { background: var(--gradient-1); color: #fff; }
.msg-content {
    max-width: 75%; padding: 12px 18px; border-radius: var(--radius);
    background: var(--glass-bg); font-size: 14px; line-height: 1.7;
}
.msg-user .msg-content { background: rgba(0,212,255,0.1); }

.ai-admin-link { text-align: center; margin-top: 30px; }

/* AI建议管理 */
.suggestion-list { display: flex; flex-direction: column; gap: 16px; }
.suggestion-card {
    background: var(--bg-card); border: 1px solid var(--glass-border);
    border-radius: var(--radius); padding: 20px;
}
.sug-header { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.sug-type { font-size: 11px; }
.sug-time { font-size: 12px; color: var(--text-muted); margin-left: auto; }
.sug-section { margin-bottom: 12px; }
.sug-section h4 { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.sug-section p { font-size: 14px; color: var(--text-secondary); }
.sug-preview {
    background: var(--bg-primary); border-radius: var(--radius-sm); padding: 14px;
    font-size: 12px; color: var(--text-secondary); overflow-x: auto; max-height: 200px;
}
.sug-actions { display: flex; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--glass-border); }

/* ============ AI 浮动按钮 ============ */
.ai-float-btn {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    width: 56px; height: 56px; border-radius: 50%; background: var(--gradient-1);
    border: none; color: #fff; font-size: 22px; cursor: pointer; box-shadow: 0 4px 20px rgba(0,212,255,0.3);
    transition: var(--transition); display: flex; align-items: center; justify-content: center;
}
.ai-float-btn:hover { transform: scale(1.1); }

/* AI 聊天弹窗 */
.ai-chat-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10000;
    background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center;
}
.ai-chat-modal.show { display: flex; }
.ai-chat-panel {
    width: 460px; max-width: 95vw; height: 600px; max-height: 85vh;
    background: var(--bg-secondary); border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
    display: flex; flex-direction: column; overflow: hidden;
}
.ai-chat-header {
    padding: 16px 20px; border-bottom: 1px solid var(--glass-border);
    display: flex; justify-content: space-between; align-items: center;
}
.ai-chat-header h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.ai-chat-actions { display: flex; align-items: center; gap: 10px; }
.ai-status { font-size: 11px; padding: 2px 10px; background: rgba(0,214,143,0.15); color: var(--accent-green); border-radius: 20px; }
.ai-chat-actions button { background: none; border: none; color: var(--text-muted); font-size: 22px; cursor: pointer; }
.ai-chat-actions button:hover { color: var(--text-primary); }

.ai-chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ai-message { display: flex; gap: 10px; }
.ai-user { flex-direction: row-reverse; }
.ai-avatar { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--glass-bg); color: var(--text-muted); font-size: 13px; flex-shrink: 0; }
.ai-user .ai-avatar { background: var(--gradient-1); color: #fff; }
.ai-bubble {
    max-width: 80%; padding: 10px 16px; border-radius: 14px;
    background: var(--glass-bg); font-size: 13px; line-height: 1.6;
}
.ai-user .ai-bubble { background: rgba(0,212,255,0.1); }
.ai-bubble ul { margin: 6px 0 0; padding-left: 20px; }
.ai-bubble li { margin-bottom: 2px; }
.typing-dots { display: flex; gap: 4px; padding: 4px 0; }
.typing-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: typing 1.4s infinite; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

.ai-chat-input { padding: 12px 16px; border-top: 1px solid var(--glass-border); display: flex; gap: 8px; align-items: flex-end; }
.ai-chat-input textarea {
    flex: 1; padding: 10px 14px; background: var(--bg-primary); border: 1px solid var(--glass-border);
    border-radius: 8px; color: var(--text-primary); font-size: 13px; outline: none; resize: none;
}
.ai-chat-input textarea:focus { border-color: var(--accent-blue); }
.ai-chat-input button {
    padding: 10px 16px; background: var(--gradient-1); border: none; border-radius: 8px;
    color: #fff; cursor: pointer; transition: var(--transition);
}
.ai-chat-input button:disabled { opacity: 0.5; }
.ai-chat-footer {
    padding: 10px 16px; background: rgba(0,214,143,0.1); border-top: 1px solid rgba(0,214,143,0.2);
    display: none; align-items: center; gap: 10px; font-size: 12px;
}
.ai-chat-footer i { color: var(--accent-green); }
.ai-chat-footer span { flex: 1; }
.ai-chat-footer button {
    padding: 4px 14px; background: var(--accent-green); border: none; border-radius: 6px;
    color: #fff; cursor: pointer; font-size: 12px;
}

/* ============ 页脚 ============ */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--glass-border); padding: 24px 0; position: relative; z-index: 1; }
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.footer-info p { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent-blue); }

/* ============ 响应式 ============ */
@media (max-width: 1200px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .knowledge-grid { grid-template-columns: repeat(2, 1fr); }
    .department-grid { grid-template-columns: repeat(4, 1fr); }
    .template-grid { grid-template-columns: repeat(2, 1fr); }
    .hosp-card-list { grid-template-columns: 1fr; }
    .rating-overview { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { gap: 16px; }
    .stat-card { min-width: 120px; padding: 18px 20px; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 32px; }
    .feature-grid, .knowledge-grid { grid-template-columns: 1fr; }
    .department-grid { grid-template-columns: repeat(2, 1fr); }
    .template-grid { grid-template-columns: 1fr; }
    .rating-overview { grid-template-columns: 1fr; }
    .hero-stats { gap: 10px; }
    .stat-card { min-width: 80px; padding: 14px; }
    .stat-number { font-size: 22px; }
    
    .medical-layout, .hosp-layout, .detail-layout { flex-direction: column; }
    .medical-sidebar, .hosp-sidebar, .detail-sidebar { width: 100%; }
    
    .header-inner { flex-wrap: wrap; height: auto; padding: 10px 16px; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-secondary); flex-direction: column; padding: 10px; border-bottom: 1px solid var(--glass-border); }
    .main-nav.show { display: flex; }
    .mobile-menu-btn { display: block; }
    
    .ai-chat-panel { width: 100%; height: 100%; max-height: 100vh; border-radius: 0; }
    .disease-detail { padding: 20px; }
    .rating-levels-list .rlc-header { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ========== 审核分类下拉框 ========== */
.sug-classify { margin-right: 8px; display: inline-block; }
.sug-type-select {
    padding: 8px 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    min-width: 140px;
    transition: var(--transition);
}
.sug-type-select:focus { border-color: var(--accent-blue); box-shadow: 0 0 8px rgba(0,212,255,0.15); }
.sug-type-select option { background: var(--bg-secondary); color: var(--text-primary); }

.sug-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 15px 25px; border-top: 1px solid var(--glass-border); }

/* ========== 全局加载遮罩 ========== */
.loading-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.loading-overlay.show { opacity: 1; visibility: visible; }

.loading-backdrop {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 8, 30, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.loading-card {
    position: relative; z-index: 1;
    background: linear-gradient(145deg, rgba(20, 30, 70, 0.95), rgba(15, 22, 55, 0.98));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    padding: 50px 60px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(0, 212, 255, 0.08);
    animation: cardEntry 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 420px; width: 90%;
}

@keyframes cardEntry {
    from { transform: scale(0.85) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

/* 双环旋转SVG */
.loading-spinner {
    position: relative;
    width: 120px; height: 120px;
    margin: 0 auto 30px;
}
.spinner-svg {
    width: 120px; height: 120px;
    animation: spinnerPulse 2s ease-in-out infinite;
}
@keyframes spinnerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.spinner-track {
    stroke: rgba(0, 212, 255, 0.1);
}
.spinner-ring-outer {
    stroke: url(#loadingGradOuter);
    stroke: var(--accent-blue);
    stroke-linecap: round;
    stroke-dasharray: 180 80;
    animation: ringRotate 1.4s linear infinite;
    transform-origin: 50px 50px;
}
.spinner-ring-inner {
    stroke: var(--accent-purple);
    stroke-linecap: round;
    stroke-dasharray: 120 70;
    animation: ringRotateRev 1.8s linear infinite;
    transform-origin: 50px 50px;
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes ringRotateRev {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.spinner-glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 16px; height: 16px;
    margin: -8px 0 0 -8px;
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6), 0 0 40px rgba(0, 212, 255, 0.3), 0 0 60px rgba(0, 212, 255, 0.15);
    animation: glowPulse 1.5s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.8); opacity: 0.5; }
}

/* 加载文字 */
.loading-text {
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.loading-text::after {
    content: '';
    display: inline-block;
    animation: loadingDotsAnim 1.6s steps(1, end) infinite;
}
@keyframes loadingDotsAnim {
    0%, 25% { content: ''; }
    26%, 50% { content: '.'; }
    51%, 75% { content: '..'; }
    76%, 100% { content: '...'; }
}

.loading-subtext {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

/* 三点波浪动画 */
.loading-dots {
    display: flex; justify-content: center; gap: 8px;
}
.loading-dot {
    width: 8px; height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
    animation: dotWave 1.2s ease-in-out infinite;
}
.loading-dot:nth-child(2) { animation-delay: 0.2s; background: var(--accent-purple); }
.loading-dot:nth-child(3) { animation-delay: 0.4s; background: var(--accent-green); }

@keyframes dotWave {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.3; }
    40% { transform: translateY(-12px); opacity: 1; }
}

/* 按钮加载中状态 */
.btn.is-loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}
.btn.is-loading::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 18px; height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255,255,255,0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpinner 0.7s linear infinite;
}
@keyframes btnSpinner {
    to { transform: rotate(360deg); }
}

/* 响应式 */
@media (max-width: 480px) {
    .loading-card { padding: 35px 28px; }
    .loading-spinner { width: 90px; height: 90px; margin-bottom: 20px; }
    .spinner-svg { width: 90px; height: 90px; }
    .loading-text { font-size: 1rem; }
}
