/* ============================================================
   ME全域自我管理系统 - 主样式表
   风格：简约浅蓝商务风
   ============================================================ */

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

:root {
    --primary: #4A90D9;
    --primary-light: #E8F1FB;
    --primary-dark: #357ABD;
    --bg: #F5F8FC;
    --card: #FFFFFF;
    --text: #2D3748;
    --text-light: #718096;
    --border: #E2E8F0;
    --success: #48BB78;
    --warning: #ED8936;
    --danger: #FC8181;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(74, 144, 217, 0.08);
    --shadow-hover: 0 4px 16px rgba(74, 144, 217, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* === 认证页面样式 === */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.auth-container { width: 100%; max-width: 420px; padding: 20px; }
.auth-card {
    background: var(--card);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.auth-header { text-align: center; margin-bottom: 30px; }
.auth-logo { font-size: 48px; font-weight: 700; color: var(--primary); letter-spacing: 4px; }
.auth-subtitle { color: var(--text-light); margin-top: 8px; font-size: 14px; }
.auth-form { margin-bottom: 20px; }
.auth-footer { text-align: center; margin-top: 20px; }
.auth-footer a { color: var(--primary); text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }
.auth-tip { margin-top: 12px; font-size: 12px; color: var(--text-light); }

/* === Apple-style Navigation === */
.apple-nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.apple-nav-inner {
    max-width: 1024px;
    height: 100%;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
}
.apple-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1d1d1f;
    text-decoration: none;
    width: 22px;
    height: 44px;
    flex-shrink: 0;
    transition: color 0.2s ease;
}
.apple-logo:hover { color: var(--primary); }
.apple-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 100%;
}
.apple-nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
.apple-nav-link {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    color: #1d1d1f;
    padding: 0;
    height: 44px;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease, opacity 0.2s ease;
}
.apple-nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #1d1d1f;
    border-radius: 2px;
    transition: width 0.25s ease;
}
.apple-nav-item:hover .apple-nav-link,
.apple-nav-item.is-open .apple-nav-link,
.apple-nav-item.is-active .apple-nav-link { color: #1d1d1f; opacity: 0.85; }
.apple-nav-item:hover .apple-nav-link::after,
.apple-nav-item.is-open .apple-nav-link::after,
.apple-nav-item.is-active .apple-nav-link::after { width: 100%; }

.apple-nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
    flex-shrink: 0;
}
.apple-user {
    font-size: 13px;
    color: #1d1d1f;
    font-weight: 400;
    white-space: nowrap;
}
.apple-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #1d1d1f;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.apple-logout:hover { background: rgba(0,0,0,0.06); color: var(--primary); }

.apple-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #1d1d1f;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.apple-nav-toggle:hover { background: rgba(0,0,0,0.06); }

/* Dropdown panels */
.apple-nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    min-width: 220px;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    padding: 14px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 10000;
}
.apple-nav-item.is-open .apple-nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.apple-dropdown-header {
    font-size: 12px;
    font-weight: 600;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 8px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 6px;
}
.apple-dropdown-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.apple-dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #1d1d1f;
    font-size: 14px;
    font-weight: 400;
    transition: background 0.15s ease, color 0.15s ease;
}
.apple-dropdown-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary);
}
.apple-dropdown-link.is-current {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
}
.apple-dropdown-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}
.apple-dropdown-label { white-space: nowrap; }

/* Mobile menu */
.apple-mobile-menu {
    display: none;
    position: fixed;
    top: 44px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 250, 252, 0.98);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    padding: 24px 24px 40px;
    overflow-y: auto;
    z-index: 9998;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.apple-mobile-menu.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.apple-mobile-group { margin-bottom: 20px; }
.apple-mobile-group-title {
    font-size: 12px;
    font-weight: 600;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    padding: 0 8px;
}
.apple-mobile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 8px;
    border-radius: 10px;
    text-decoration: none;
    color: #1d1d1f;
    font-size: 17px;
    font-weight: 400;
    transition: background 0.15s ease, color 0.15s ease;
}
.apple-mobile-link:hover { background: rgba(0,0,0,0.04); color: var(--primary); }
.apple-mobile-link.is-current { color: var(--primary); font-weight: 500; }
.apple-mobile-icon { font-size: 20px; width: 24px; text-align: center; }
.apple-mobile-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.08);
}
.apple-mobile-logout {
    display: block;
    text-align: center;
    padding: 12px;
    color: #d70015;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

/* Main content spacing for apple nav */
.apple-main-content { padding-top: 32px; min-height: calc(100vh - 44px - 120px); }

/* Responsive */
@media (max-width: 820px) {
    .apple-nav-links,
    .apple-user { display: none; }
    .apple-nav-toggle { display: inline-flex; }
    .apple-nav-right { gap: 6px; }
    .apple-nav-inner { padding: 0 16px; }
}
@media (min-width: 821px) {
    .apple-mobile-menu.is-open { display: block; }
}
/* Hide mobile menu on desktop */
@media (min-width: 821px) {
    .apple-mobile-menu { display: none !important; }
}

/* === 主内容区 === */
.main-content { max-width: 1400px; margin: 0 auto; padding: 24px; }

/* === 卡片 === */
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.card-title { font-size: 16px; font-weight: 600; }
.card-body { padding: 20px; }

/* === 统计卡片 === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: box-shadow 0.2s;
}
.stat-card:hover { box-shadow: var(--shadow-hover); }
.stat-icon { font-size: 32px; }
.stat-value { font-size: 24px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--text-light); }

/* === 内容布局 === */
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.content-section { display: flex; flex-direction: column; gap: 20px; }

/* === 表单 === */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    background: var(--bg);
    transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}
.form-textarea { resize: vertical; min-height: 80px; }

/* === 按钮 === */
.btn {
    display: inline-block;
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--primary-light); color: var(--primary); }
.btn-secondary:hover { background: #D6E4F5; }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #38A169; }
.btn-warning { background: var(--warning); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #F56565; }
.btn-sm { padding: 4px 12px; font-size: 12px; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

/* === 提示框 === */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}
.alert-success { background: rgba(72, 187, 120, 0.1); color: var(--success); border: 1px solid rgba(72, 187, 120, 0.3); }
.alert-error { background: rgba(252, 129, 129, 0.1); color: var(--danger); border: 1px solid rgba(252, 129, 129, 0.3); }
.alert-warning { background: rgba(237, 137, 54, 0.1); color: var(--warning); border: 1px solid rgba(237, 137, 54, 0.3); }
.alert-info { background: var(--primary-light); color: var(--primary); border: 1px solid rgba(74, 144, 217, 0.3); }

/* === 标签 === */
.tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}
.tag-primary { background: var(--primary-light); color: var(--primary); }
.tag-success { background: rgba(72, 187, 120, 0.15); color: var(--success); }
.tag-warning { background: rgba(237, 137, 54, 0.15); color: var(--warning); }
.tag-danger { background: rgba(252, 129, 129, 0.15); color: var(--danger); }

/* === 列表 === */
.todo-list, .event-list, .birthday-list { list-style: none; }
.todo-item, .event-item, .birthday-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.todo-item:last-child, .event-item:last-child, .birthday-item:last-child { border-bottom: none; }
.todo-title { flex: 1; }
.event-time { font-weight: 600; color: var(--primary); min-width: 50px; }
.event-title { flex: 1; }
.birthday-name { flex: 1; font-weight: 500; }
.birthday-date { color: var(--text-light); font-size: 13px; }

/* === 心情 === */
.mood-display { text-align: center; padding: 20px; }
.mood-emoji { font-size: 48px; display: block; }
.mood-text { margin-top: 8px; color: var(--text-light); }
.mood-notes { margin-top: 8px; font-size: 14px; color: var(--text); }
.mood-record { text-align: center; }
.mood-buttons { display: flex; justify-content: center; gap: 12px; margin-top: 12px; }
.mood-btn {
    font-size: 28px;
    text-decoration: none;
    padding: 8px;
    border-radius: 50%;
    transition: transform 0.2s;
}
.mood-btn:hover { transform: scale(1.2); }
.mood-chart { margin-top: 20px; }
.chart-title { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.mini-chart { display: flex; align-items: flex-end; gap: 6px; height: 60px; }
.chart-bar {
    flex: 1;
    background: var(--border);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: height 0.3s;
}
.chart-bar.active { background: var(--primary); }

/* === 空状态 === */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-light); }

/* === 表格 === */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { font-weight: 600; color: var(--text-light); font-size: 13px; }
.data-table tr:hover { background: var(--primary-light); }

/* === 页面标题 === */
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.page-title { font-size: 22px; font-weight: 600; }

/* === 标签页 === */
.tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 2px solid var(--border); }
.tab {
    padding: 8px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* === 四象限 === */
.quadrant-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quadrant { border: 2px solid; border-radius: var(--radius); padding: 16px; min-height: 200px; }
.quadrant-q1 { border-color: rgba(252, 129, 129, 0.3); background: rgba(252, 129, 129, 0.05); }
.quadrant-q2 { border-color: rgba(237, 137, 54, 0.3); background: rgba(237, 137, 54, 0.05); }
.quadrant-q3 { border-color: rgba(74, 144, 217, 0.3); background: rgba(74, 144, 217, 0.05); }
.quadrant-q4 { border-color: rgba(72, 187, 120, 0.3); background: rgba(72, 187, 120, 0.05); }
.quadrant-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; }

/* === 日历 === */
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar-weekday { text-align: center; font-weight: 600; padding: 8px; color: var(--text-light); }
.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text);
}
.calendar-day:hover { background: var(--primary-light); }
.calendar-day.today { background: var(--primary); color: white; }
.calendar-day.has-event::after { content: ''; width: 6px; height: 6px; background: var(--danger); border-radius: 50%; margin-top: 2px; }
.calendar-day.empty { border: none; cursor: default; }

/* === 进度条 === */
.progress-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 4px; transition: width 0.3s; }

/* === 页脚 === */
.footer { text-align: center; padding: 20px; color: var(--text-light); font-size: 13px; }

/* === 人际粒子图 === */
.graph-legend { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; box-shadow: 0 0 6px currentColor; }
.graph-tooltip {
    position: absolute;
    background: rgba(10, 14, 23, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px 14px;
    pointer-events: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 100;
    max-width: 280px;
    max-height: 400px;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #cfd8e3;
    line-height: 1.4;
}
.graph-stats {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}
.graph-stats .stat-item {
    background: rgba(10, 14, 23, 0.55);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e6f0ff;
    font-size: 12px;
}
.graph-stats .stat-num {
    font-size: 18px;
    font-weight: bold;
    font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
}
.graph-stats .stat-label { opacity: 0.8; }

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* === 模态窗 === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 30, 50, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: modalFadeIn 0.2s ease;
}
@keyframes modalFadeIn {
    from { opacity: 0; } to { opacity: 1; }
}
.modal-container {
    background: var(--card);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.25s ease;
}
@keyframes modalSlideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}
.modal-header .card-title { margin: 0; font-size: 17px; }
.modal-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-light);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.2s;
}
.modal-close:hover { background: var(--border); color: var(--text); }
.modal-body { padding: 20px 24px; overflow-y: auto; flex: 1; }
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* === 列表工具栏 === */
.list-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    gap: 12px;
    flex-wrap: wrap;
}
.list-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filter-input { min-width: 160px; }
.list-stats { color: var(--text-light); font-size: 13px; }

/* === 批量操作栏 === */
.batch-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--primary-light);
    border-bottom: 1px solid rgba(74, 144, 217, 0.2);
    gap: 12px;
    flex-wrap: wrap;
    animation: slideDown 0.25s ease;
}
@keyframes slideDown {
    from { transform: translateY(-8px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.batch-bar strong { color: var(--primary); }

/* === 圈子复选框列表 === */
.circle-checkbox-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    background: var(--primary-light);
    border-radius: 8px;
    border: 1px solid var(--border);
}
.circle-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    user-select: none;
}
.circle-checkbox:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.circle-checkbox input { margin: 0; }
.circle-checkbox input:checked + span { font-weight: 600; }

/* === 导入组件 === */
.import-intro {
    padding: 12px 16px;
    background: var(--primary-light);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.7;
}
.import-intro code {
    background: rgba(74, 144, 217, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--primary);
}
.import-intro p { margin-bottom: 4px; }
.import-intro p:last-of-type { margin-bottom: 8px; }
.csv-template {
    background: var(--card);
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-family: Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    color: var(--text-light);
    white-space: pre;
    overflow-x: auto;
    margin-bottom: 8px;
}
.import-section { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px dashed var(--border); }
.import-preview { margin-top: 12px; }
.import-preview-table { overflow-x: auto; }
.import-map { margin-top: 10px; }
.import-map-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.import-map-key {
    min-width: 120px;
    font-weight: 500;
    color: var(--text);
    font-size: 13px;
}
.import-map-select { flex: 1; }

/* === 头像圆圈样式 === */
.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

/* === 页面头部优化 === */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0 0 0 0;
}
.page-header > div {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.page-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.page-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 26px;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: 2px;
}

/* === 筛选工具栏 - 精致化 === */
.list-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef4fc 100%);
    border-bottom: 1px solid var(--border);
    gap: 8px;
    border-radius: 12px 12px 0 0;
}
.list-filters {
    display: flex;
    gap: 6px;
    align-items: center;
    flex: 1;
    flex-wrap: nowrap;
    overflow-x: auto;
}
.filter-input {
    width: auto;
    min-width: 0;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 12.5px;
    background: var(--card);
    transition: all 0.2s ease;
    height: 32px;
    line-height: 20px;
    flex-shrink: 0;
    box-sizing: border-box;
}
input.filter-input {
    max-width: 180px;
}
.filter-input[name="filter-name"], #filter-name {
    min-width: 160px;
}
.filter-input#filter-relation, .filter-input#filter-circle {
    min-width: 155px;
    width: auto;
}
select.filter-input {
    padding-right: 26px;
    text-overflow: clip;
}
select.filter-input option {
    padding: 2px 6px;
    min-width: max-content;
    white-space: nowrap;
}
.filter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(74, 144, 217, 0.12);
}
.list-stats {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 500;
    padding: 3px 9px;
    background: var(--card);
    border-radius: 10px;
    border: 1px solid var(--border);
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}

/* === 表格精致化 === */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.data-table thead th {
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fc 100%);
    font-weight: 600;
    color: var(--text);
    font-size: 13px;
    padding: 14px 16px;
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1;
    white-space: nowrap;
}
.data-table tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    vertical-align: middle;
}
.data-table tbody tr {
    transition: background 0.15s ease;
}
.data-table tbody tr:nth-child(even) {
    background: #fafbfc;
}
.data-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(74, 144, 217, 0.08) 0%, rgba(74, 144, 217, 0.02) 100%) !important;
    transform: translateX(2px);
}
.data-table tbody tr:first-child td {
    border-top: 3px solid transparent;
}
.data-table tbody tr:last-child td {
    border-bottom: none;
}
.data-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* === 标签精致化 === */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
}
.tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.tag-primary { background: var(--primary-light); color: var(--primary); }
.tag-success { background: rgba(72, 187, 120, 0.15); color: var(--success); }
.tag-warning { background: rgba(237, 137, 54, 0.15); color: var(--warning); }
.tag-danger { background: rgba(252, 129, 129, 0.15); color: var(--danger); }

/* 彩色徽章样式 (关系/圈子) */
.tag-colorful {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.tag-colorful:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* === 按钮精致化 === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background 0.2s;
}
.btn:hover::after {
    background: rgba(255, 255, 255, 0.1);
}
.btn:active {
    transform: scale(0.97);
}
.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 5px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(74, 144, 217, 0.25);
}
.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(74, 144, 217, 0.35);
    transform: translateY(-1px);
}
.btn-secondary {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}
.btn-warning {
    background: linear-gradient(135deg, #ED8936 0%, #DD6B20 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(237, 137, 54, 0.25);
}
.btn-danger {
    background: linear-gradient(135deg, #FC8181 0%, #F56565 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(252, 129, 129, 0.25);
}
.btn-danger:hover {
    box-shadow: 0 4px 12px rgba(252, 129, 129, 0.35);
}
.btn-success {
    background: linear-gradient(135deg, #48BB78 0%, #38A169 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(72, 187, 120, 0.25);
}

/* === 批量操作栏优化 === */
.batch-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(74, 144, 217, 0.08) 0%, rgba(72, 187, 120, 0.08) 100%);
    border-bottom: 1px solid rgba(74, 144, 217, 0.15);
    border-top: 1px solid rgba(74, 144, 217, 0.15);
    gap: 12px;
    flex-wrap: wrap;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideDown {
    from { transform: translateY(-8px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.batch-bar > span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}
.batch-bar strong {
    color: var(--primary);
    font-size: 16px;
    padding: 2px 8px;
    background: var(--card);
    border-radius: 8px;
    margin: 0 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* === 模态窗视觉优化 === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 24px;
    animation: modalFadeIn 0.2s ease;
}
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-container {
    background: var(--card);
    border-radius: 16px;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.5);
    width: 100%;
    max-width: 680px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalSlideIn {
    from { transform: translateY(30px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
    border-radius: 16px 16px 0 0;
}
.modal-header .card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}
.modal-close {
    background: var(--card);
    border: 1px solid var(--border);
    font-size: 16px;
    cursor: pointer;
    color: var(--text-light);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
    transform: rotate(90deg);
}
.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* === 表单优化 === */
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--card);
    transition: all 0.2s ease;
    font-family: inherit;
}
.form-input:hover, .form-select:hover, .form-textarea:hover {
    border-color: #cbd5e0;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(74, 144, 217, 0.12);
}
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}
.form-textarea {
    resize: vertical;
    min-height: 90px;
}

/* === 圈子复选框优化 === */
.circle-checkbox-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: var(--primary-light);
    border-radius: 10px;
    border: 1px solid var(--border);
}
.circle-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    user-select: none;
    font-weight: 500;
}
.circle-checkbox:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-1px);
}
.circle-checkbox input {
    margin: 0;
    width: 14px;
    height: 14px;
    accent-color: var(--primary);
}
.circle-checkbox:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 2px 8px rgba(74, 144, 217, 0.2);
}
.circle-checkbox input:checked + span {
    font-weight: 700;
}

/* === 导入组件优化 === */
.import-intro {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
    border-radius: 12px;
    border: 1px solid rgba(74, 144, 217, 0.2);
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.8;
}
.import-intro code {
    background: rgba(74, 144, 217, 0.15);
    padding: 3px 8px;
    border-radius: 5px;
    color: var(--primary);
    font-size: 12px;
}
.csv-template {
    background: var(--card);
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    color: var(--text-light);
    white-space: pre;
    overflow-x: auto;
    margin: 10px 0;
    line-height: 1.6;
}
.import-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border);
}
.import-preview {
    margin-top: 14px;
}
.import-preview-table {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.import-preview-table .data-table th {
    background: #f7fafc;
    font-size: 12px;
}
.import-preview-table .data-table td {
    font-size: 13px;
}
.import-map-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: var(--primary-light);
    border-radius: 8px;
}
.import-map-key {
    min-width: 140px;
    font-weight: 600;
    color: var(--text);
    font-size: 13px;
}
.import-map-select {
    flex: 1;
    background: var(--card);
}

/* === Tabs 优化 === */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0;
}
.tab {
    padding: 10px 22px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-light);
    border-bottom: 2.5px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    font-weight: 500;
    position: relative;
}
.tab:hover {
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 6px 6px 0 0;
}
.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
    background: var(--primary-light);
    border-radius: 6px 6px 0 0;
}

/* === Alert 优化 === */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
}
.alert-success {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.12) 0%, rgba(72, 187, 120, 0.05) 100%);
    color: #2F855A;
    border: 1px solid rgba(72, 187, 120, 0.3);
}

/* === 空状态优化 === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    font-size: 15px;
}

/* === Card 优化 === */
.card {
    background: var(--card);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}
.card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.05);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
}
.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
.card-body {
    padding: 22px;
}

/* === 响应式优化 === */
@media (max-width: 1024px) {
    .navbar-menu { flex-wrap: wrap; }
    .content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .page-header > div {
        width: 100%;
        justify-content: flex-end;
    }
    .list-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .list-filters {
        flex-direction: column;
    }
    .filter-input {
        min-width: auto;
        width: 100%;
    }
    .data-table {
        display: block;
        overflow-x: auto;
    }
    .data-table th, .data-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    .batch-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .batch-bar > div {
        justify-content: flex-start;
    }
    .modal-container {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 12px;
    }
    .navbar-content { flex-direction: column; height: auto; padding: 12px; }
    .navbar-menu { width: 100%; justify-content: center; flex-wrap: wrap; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .quadrant-grid { grid-template-columns: 1fr; }
    .tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    .tab {
        padding: 8px 16px;
        font-size: 13px;
        white-space: nowrap;
    }
}
@media (max-width: 480px) {
    .page-title {
        font-size: 22px;
    }
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    .modal-body {
        padding: 18px;
    }
    .card-body {
        padding: 16px;
    }
}

/* === 问卷页面样式 === */
.questionnaire-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}

.survey-welcome {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 56px 40px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}
.survey-welcome::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.15) 0%, transparent 40%),
                radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 40%);
    pointer-events: none;
}
.welcome-icon {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 16px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    position: relative;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.welcome-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
}
.welcome-subtitle {
    font-size: 16px;
    line-height: 1.7;
    opacity: 0.92;
    margin-bottom: 32px;
    position: relative;
}
.welcome-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 36px;
    position: relative;
}
.feature-item {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 18px 16px;
    text-align: left;
    transition: transform 0.25s ease, background 0.25s ease;
}
.feature-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.18);
}
.feature-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 10px;
}
.feature-item strong {
    font-size: 15px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}
.feature-item p {
    font-size: 12px;
    opacity: 0.85;
    line-height: 1.5;
}
.welcome-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    position: relative;
}
.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: white;
    color: #5A67D8;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.btn-primary-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}
.btn-secondary-lg {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
}
.btn-secondary-lg:hover {
    background: rgba(255, 255, 255, 0.22);
}
.welcome-note {
    font-size: 13px;
    opacity: 0.75;
    position: relative;
}

/* 问卷主体 */
.survey-body {
    background: white;
    border-radius: 24px;
    padding: 32px 36px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}
.survey-body.hidden { display: none; }

.survey-progress {
    margin-bottom: 32px;
}
.progress-bar {
    height: 6px;
    background: #EDF2F7;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #764ba2 100%);
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

.survey-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    min-width: 80px;
    flex-shrink: 0;
}
.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #EDF2F7;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.step-indicator.active .step-number {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(74, 144, 217, 0.2);
}
.step-indicator.completed .step-number {
    background: var(--success);
    color: white;
}
.step-label {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
    max-width: 80px;
    line-height: 1.3;
    transition: color 0.3s ease;
}
.step-indicator.active .step-label,
.step-indicator.completed .step-label {
    color: var(--text);
    font-weight: 500;
}
.step-line {
    position: absolute;
    top: 16px;
    left: calc(50% + 18px);
    right: calc(-50% + 18px);
    height: 2px;
    background: #EDF2F7;
    z-index: -1;
}

/* Question sections */
.survey-section { display: none; }
.survey-section.active { display: block; animation: fadeSlide 0.3s ease; }
@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.section-number {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}
.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    flex: 1;
}
.section-progress {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}
.section-answered { color: var(--primary); font-weight: 700; }

.survey-question {
    margin-bottom: 28px;
    padding: 20px 22px;
    background: #F8FAFC;
    border-radius: 14px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}
.survey-question:hover {
    border-color: rgba(74, 144, 217, 0.2);
    background: #F5F8FC;
}
.survey-question.has-answer {
    background: linear-gradient(135deg, rgba(74, 144, 217, 0.06) 0%, rgba(118, 75, 162, 0.04) 100%);
    border-color: rgba(74, 144, 217, 0.15);
}
.question-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}
.q-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.q-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    line-height: 1.5;
}
.q-subtitle {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

.option-grid {
    display: grid;
    gap: 10px;
}
.option-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.option-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateX(4px);
}
.option-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 2px 8px rgba(74, 144, 217, 0.15);
}
.option-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.option-indicator {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.2s ease;
    position: relative;
}
.option-card input[type="checkbox"] + .option-indicator,
.option-card.selected + .option-indicator {
    background: var(--primary);
    border-color: var(--primary);
}
.option-card.selected .option-indicator {
    background: var(--primary);
    border-color: var(--primary);
}
.option-card.selected .option-indicator::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: white;
    border-radius: 50%;
}
.option-label {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
}
.q-hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 10px;
    font-style: italic;
}
.q-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    background: white;
    resize: vertical;
    font-family: inherit;
    transition: all 0.2s ease;
}
.q-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(74, 144, 217, 0.12);
}

/* 提交区 */
.survey-submit-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.btn-secondary-survey,
.btn-primary-survey {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.btn-secondary-survey {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary-survey:hover:not(:disabled) {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}
.btn-secondary-survey:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.btn-primary-survey {
    background: linear-gradient(135deg, var(--primary) 0%, #5A67D8 100%);
    color: white;
}
.btn-primary-survey:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(74, 144, 217, 0.3);
}
.submit-center {
    flex: 1;
    text-align: center;
}
.submit-progress {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}

.final-submit {
    text-align: center;
    padding: 32px 0;
}
.final-summary {
    margin-bottom: 24px;
}
.summary-icon {
    font-size: 56px;
    margin-bottom: 16px;
    display: inline-block;
}
.final-summary h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}
.final-summary p {
    color: var(--text-light);
    margin-bottom: 20px;
}
.completion-ring {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}
.completion-ring svg {
    transform: rotate(-90deg);
}
.ring-bg {
    fill: none;
    stroke: #EDF2F7;
    stroke-width: 6;
}
.ring-progress {
    fill: none;
    stroke: var(--primary);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 327;
    stroke-dashoffset: 327;
    transition: stroke-dashoffset 0.6s ease;
}
.completion-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    background: conic-gradient(var(--primary) calc(var(--progress, 0) * 1%), transparent 0);
    border-radius: 50%;
    mask: radial-gradient(white 58%, transparent 60%);
    -webkit-mask: radial-gradient(white 58%, transparent 60%);
    display: none;
}
.ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}
.btn-submit-final {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px rgba(74, 144, 217, 0.3);
    font-family: inherit;
}
.btn-submit-final:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(74, 144, 217, 0.4);
}

/* 完成界面 */
.survey-completed {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.completed-card {
    background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
    border: 1px solid rgba(74, 144, 217, 0.1);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    max-width: 520px;
    box-shadow: 0 8px 40px rgba(74, 144, 217, 0.1);
}
.completed-icon {
    font-size: 72px;
    margin-bottom: 16px;
    animation: bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes bounce {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}
.completed-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.completed-subtitle {
    color: var(--text-light);
    margin-bottom: 28px;
    line-height: 1.7;
}
.completed-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}
.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: left;
}
.h-icon {
    font-size: 24px;
    flex-shrink: 0;
}
.highlight-item strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}
.highlight-item span {
    font-size: 12px;
    color: var(--success);
    font-weight: 500;
}
.completed-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}
.completed-actions .btn-primary-lg {
    background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
    color: white;
}
.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    padding: 8px 12px;
    font-family: inherit;
}
.btn-link:hover { color: var(--primary-dark); }

/* Scale slider */
.scale-container {
    padding: 12px 8px;
}
.scale-slider {
    width: 100%;
    height: 6px;
    appearance: none;
    background: linear-gradient(90deg, var(--primary), #764ba2);
    border-radius: 3px;
    outline: none;
    margin-bottom: 16px;
}
.scale-slider::-webkit-slider-thumb {
    appearance: none;
    width: 22px;
    height: 22px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(74, 144, 217, 0.25);
    transition: transform 0.15s ease;
}
.scale-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}
.scale-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
}
.scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
}
.scale-display {
    text-align: center;
    font-size: 14px;
    color: var(--text);
}
.scale-display strong {
    color: var(--primary);
    font-size: 20px;
}

/* 响应式 */
@media (max-width: 768px) {
    .questionnaire-container { padding: 20px 16px 40px; }
    .survey-welcome { padding: 36px 20px; }
    .welcome-title { font-size: 24px; }
    .welcome-features { grid-template-columns: 1fr; }
    .survey-body { padding: 20px 16px; }
    .section-title { font-size: 18px; }
    .step-indicator { min-width: 60px; }
    .step-label { font-size: 11px; max-width: 60px; }
    .completed-highlights { grid-template-columns: 1fr; }
    .option-card { padding: 10px 12px; }
    .option-label { font-size: 13px; }
}

