/* ============================================================
   心理测评辩论平台 —— 全局样式
   设计风格参照"学而喵科学"：毛玻璃、渐变、圆角卡片、活泼配色
   ============================================================ */

:root {
    --primary: #409eff;
    --primary-light: #79bbff;
    --primary-lighter: #a0cfff;
    --primary-bg: #ecf5ff;
    --success: #67c23a;
    --success-light: #95d475;
    --success-bg: #f0f9eb;
    --warning: #e6a23c;
    --warning-light: #eebe77;
    --warning-bg: #fdf6ec;
    --danger: #f56c6c;
    --danger-light: #f89898;
    --danger-bg: #fef0f0;
    --info: #909399;

    --text-primary: #303133;
    --text-regular: #606266;
    --text-secondary: #909399;
    --text-placeholder: #a8abb2;

    --bg-page: #f2f3f5;
    --bg-white: #ffffff;
    --border-color: #dcdfe6;
    --border-light: #e4e7ed;
    --border-lighter: #ebeef5;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

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

    --font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;

    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-warm: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-cool: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-sun: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    --gradient-green: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-page);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    font-size: 16px;
    /* 基础字体放大 */
}

/* 背景纹理 */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}

/* 背景装饰圆 */
body::after {
    content: '';
    position: fixed;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(64, 158, 255, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* ============================================================
   毛玻璃效果
   ============================================================ */
.glass {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-lighter);
}

/* ============================================================
   头部导航
   ============================================================ */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    text-decoration: none;
}

.logo-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.logo-text {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 12px;
}

.nav-link {
    padding: 12px 28px;
    border-radius: var(--radius-full);
    color: var(--text-regular);
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    background: none;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-bg);
    color: var(--primary);
}

/* ============================================================
   主内容区
   ============================================================ */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 32px;
    min-height: calc(100vh - 88px);
}

/* ============================================================
   步骤条
   ============================================================ */
.steps-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding: 24px 0;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.step-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.step-icon.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
}

.step-icon.completed {
    background: var(--success);
    color: white;
    box-shadow: 0 4px 14px rgba(103, 194, 58, 0.4);
}

.step-icon.pending {
    background: #e8e8e8;
    color: #999;
}

.step-label {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.step-item.active .step-label {
    color: var(--primary);
}

.step-item.completed .step-label {
    color: var(--success);
}

.step-line {
    width: 60px;
    height: 3px;
    background: #e8e8e8;
    margin: 0 8px;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.step-line.completed {
    background: var(--success);
}

/* ============================================================
   页面标题区
   ============================================================ */
.page-hero {
    text-align: center;
    margin-bottom: 64px;
}

.page-hero h1 {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.page-hero p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================================
   辩题卡片网格
   ============================================================ */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}

.topic-card {
    position: relative;
    padding: 20px 22px;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.topic-card .card-decoration {
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 72px;
    opacity: 0.06;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.topic-card:hover .card-decoration {
    opacity: 0.12;
}

.topic-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 18px;
    background: var(--text-primary);
    color: white;
}

.topic-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.45;
    transition: color 0.3s ease;
}

.topic-card:hover h3 {
    color: var(--primary);
}

.topic-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    min-height: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   辩论页面
   ============================================================ */
.debate-container {
    max-width: 1000px;
    margin: 0 auto;
}

.topic-header {
    text-align: center;
    padding: 50px 42px;
    border-radius: var(--radius-xl);
    margin-bottom: 40px;
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.topic-header::before {
    content: '🎤';
    position: absolute;
    font-size: 160px;
    opacity: 0.1;
    top: -20px;
    right: -10px;
}

.topic-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.topic-header .desc {
    font-size: 19px;
    opacity: 0.9;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* 立场选择 */
.stance-section {
    margin-bottom: 40px;
}

.stance-section h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.stance-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-lighter);
    background: var(--bg-white);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stance-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.stance-card.side-a::before {
    background: linear-gradient(135deg, rgba(64, 158, 255, 0.05), rgba(64, 158, 255, 0.1));
}

.stance-card.side-b::before {
    background: linear-gradient(135deg, rgba(245, 108, 108, 0.05), rgba(245, 108, 108, 0.1));
}

.stance-card:hover {
    border-color: var(--primary-lighter);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stance-card:hover::before {
    opacity: 1;
}

.stance-card.selected.side-a {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg), var(--shadow-md);
}

.stance-card.selected.side-b {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px var(--danger-bg), var(--shadow-md);
}

.stance-card.selected::before {
    opacity: 1;
}

.stance-emoji {
    font-size: 56px;
    margin-bottom: 16px;
    display: block;
}

.stance-label {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.side-a .stance-label {
    color: var(--primary);
}

.side-b .stance-label {
    color: var(--danger);
}

.stance-text {
    font-size: 18px;
    color: var(--text-regular);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* 输入区 */
.argument-section {
    margin-bottom: 40px;
}

.argument-section h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.argument-textarea {
    width: 100%;
    min-height: 200px;
    padding: 24px;
    border: 2px solid var(--border-lighter);
    border-radius: var(--radius-lg);
    font-size: 18px;
    line-height: 1.9;
    resize: vertical;
    font-family: var(--font-family);
    color: var(--text-primary);
    background: var(--bg-white);
    transition: all 0.3s ease;
    outline: none;
}

.argument-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.argument-textarea::placeholder {
    color: var(--text-placeholder);
}

.char-count {
    text-align: right;
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 12px;
}

/* 姓名输入 */
.name-input {
    width: 100%;
    max-width: 400px;
    padding: 16px 28px;
    border: 2px solid var(--border-lighter);
    border-radius: var(--radius-full);
    font-size: 18px;
    font-family: var(--font-family);
    color: var(--text-primary);
    background: var(--bg-white);
    transition: all 0.3s ease;
    outline: none;
}

.name-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

/* ============================================================
   按钮样式
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    border-radius: var(--radius-full);
    font-size: 18px;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-success {
    background: var(--gradient-green);
    color: white;
    box-shadow: 0 4px 14px rgba(17, 153, 142, 0.4);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 153, 142, 0.5);
}

.btn-danger {
    background: var(--gradient-warm);
    color: white;
    box-shadow: 0 4px 14px rgba(245, 87, 108, 0.4);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.5);
}

.btn-outline {
    background: white;
    color: var(--text-regular);
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 20px 56px;
    font-size: 22px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
}

/* ============================================================
   结果展示区
   ============================================================ */
.result-section {
    margin-bottom: 32px;
}

.result-card {
    padding: 28px;
    border-radius: var(--radius-xl);
    background: var(--bg-white);
    border: 2px solid var(--border-lighter);
    box-shadow: var(--shadow-sm);
}

.result-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-lighter);
}

.result-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.result-card-icon.enhance {
    background: var(--primary-bg);
}

.result-card-icon.refute {
    background: var(--danger-bg);
}

.result-card-icon.user {
    background: var(--success-bg);
}

.result-card-title {
    font-size: 22px;
    font-weight: 700;
}

.result-card-body {
    font-size: 18px;
    line-height: 1.9;
    color: var(--text-regular);
    white-space: pre-wrap;
}

.model-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(230, 162, 60, 0.2);
    margin-left: auto;
}

/* ============================================================
   标注区
   ============================================================ */
.annotate-section {
    padding: 32px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    margin-top: 32px;
}

.annotate-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.annotate-options {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.annotate-option {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.annotate-option:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.annotate-option.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(64, 158, 255, 0.2);
    background: rgba(255, 255, 255, 0.9);
}

.annotate-option .option-icon {
    font-size: 36px;
    margin-bottom: 8px;
    display: block;
}

.annotate-option .option-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.annotate-note {
    width: 100%;
    min-height: 80px;
    padding: 16px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    font-family: var(--font-family);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.7);
    outline: none;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.annotate-note:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.9);
}

/* ============================================================
   学生测评区
   ============================================================ */

/* 辩论回顾折叠 */
.eval-review-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    margin-bottom: 8px;
    border-radius: var(--radius-lg);
    background: var(--bg-light);
    border: 1px solid var(--border-lighter);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.2s ease;
}
.eval-review-toggle:hover {
    background: var(--primary-bg);
    border-color: rgba(64,158,255,0.2);
}
.eval-review-arrow {
    font-size: 12px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}
.eval-review-content {
    margin-bottom: 24px;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-light);
    border: 1px solid var(--border-lighter);
    animation: pageEnter 0.3s ease-out;
}

/* 测评区容器 */
.eval-section {
    padding: 32px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #e0f7fa 0%, #e8eaf6 50%, #fce4ec 100%);
    margin-bottom: 24px;
}

.eval-header {
    text-align: center;
    margin-bottom: 32px;
}
.eval-header-emoji {
    font-size: 48px;
    display: block;
    margin-bottom: 8px;
    animation: evalBounce 1s ease-in-out infinite alternate;
}
@keyframes evalBounce {
    from { transform: translateY(0); }
    to   { transform: translateY(-6px); }
}
.eval-header h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.eval-header p {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 评分维度卡片 */
.eval-dimension {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}
.eval-dimension:hover {
    border-color: rgba(64, 158, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.eval-dim-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.eval-dim-emoji {
    font-size: 36px;
    flex-shrink: 0;
}
.eval-dim-info {
    flex: 1;
}
.eval-dim-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.eval-dim-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 星星评分 */
.eval-stars {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    justify-content: center;
}
.eval-star {
    font-size: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    position: relative;
    filter: grayscale(0.6) opacity(0.5);
}
.eval-star:hover {
    transform: scale(1.3);
    filter: grayscale(0) opacity(1) !important;
}
.eval-star.hover-preview {
    filter: grayscale(0) opacity(0.8);
}
.eval-star.active {
    filter: grayscale(0) opacity(1);
    animation: starPop 0.3s ease-out;
}
@keyframes starPop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* 星星 tooltip */
.eval-star::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.eval-star:hover::after {
    opacity: 1;
}

/* 评分反馈文字 */
.eval-feedback {
    text-align: center;
    margin-top: 12px;
    min-height: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.eval-feedback.show {
    opacity: 1;
    animation: feedbackSlide 0.3s ease-out;
}
@keyframes feedbackSlide {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.eval-fb-emoji {
    font-size: 15px;
    margin-right: 6px;
}
.eval-fb-text {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 自由评价 */
.eval-comment-area {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
}
.eval-comment-textarea {
    width: 100%;
    min-height: 80px;
    padding: 14px 18px;
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: var(--font-family);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.8);
    resize: vertical;
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.eval-comment-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
    background: white;
}

/* 评分总览 */
.eval-summary {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    padding: 24px;
    animation: pageEnter 0.4s ease-out;
}
.eval-summary-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
}
.eval-summary-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.eval-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.eval-bar-label {
    font-size: 14px;
    font-weight: 600;
    width: 90px;
    flex-shrink: 0;
}
.eval-bar-track {
    flex: 1;
    height: 12px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 6px;
    overflow: hidden;
}
.eval-bar-fill {
    height: 100%;
    border-radius: 6px;
    width: 0;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}
.eval-bar-score {
    font-size: 14px;
    font-weight: 700;
    width: 36px;
    text-align: right;
}

/* 提交提示 */
.eval-submit-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* ============================================================
   历史记录
   ============================================================ */
.history-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-lighter);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.history-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-page);
    border-bottom: 2px solid var(--border-lighter);
    white-space: nowrap;
}

.history-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-lighter);
    color: var(--text-regular);
    vertical-align: middle;
}

.history-table tr:last-child td {
    border-bottom: none;
}

.history-table tr:hover td {
    background: rgba(64, 158, 255, 0.02);
}

/* 状态标签 */
.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.status-tag.changed {
    background: var(--danger-bg);
    color: var(--danger);
}

.status-tag.unchanged {
    background: var(--success-bg);
    color: var(--success);
}

.status-tag.pending {
    background: #f4f4f5;
    color: var(--info);
}

/* ============================================================
   加载动画
   ============================================================ */
.loading-spinner {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    font-size: 15px;
    color: var(--text-regular);
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-lighter);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 脉冲动画 */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================================
   消息提示
   ============================================================ */
.toast {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: var(--success);
    color: white;
}

.toast.error {
    background: var(--danger);
    color: white;
}

.toast.info {
    background: var(--primary);
    color: white;
}

/* ============================================================
   辅助类
   ============================================================ */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-2 {
    margin-top: 8px;
}

.mt-4 {
    margin-top: 16px;
}

.mt-6 {
    margin-top: 24px;
}

.mt-8 {
    margin-top: 32px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-6 {
    margin-bottom: 24px;
}

.mb-8 {
    margin-bottom: 32px;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-2 {
    gap: 8px;
}

.gap-4 {
    gap: 16px;
}

/* ============================================================
   返回按钮
   ============================================================ */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-lighter);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-bottom: 24px;
}

.back-btn:hover {
    background: var(--bg-white);
    color: var(--primary);
    border-color: var(--primary-lighter);
    box-shadow: var(--shadow-sm);
}

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

.empty-state .empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 768px) {
    .topics-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .stance-cards {
        grid-template-columns: 1fr;
    }

    .header-inner {
        padding: 0 16px;
    }

    .main-content {
        padding: 20px 16px;
    }

    .page-hero h1 {
        font-size: 28px;
    }

    .steps-bar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .step-line {
        width: 30px;
    }

    .topic-header h2 {
        font-size: 22px;
    }

    .nav-links {
        display: none;
    }

    .annotate-options {
        flex-direction: column;
    }
}

/* ============================================================
   搜索框
   ============================================================ */
.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    max-width: 600px;
}

.search-input {
    flex: 1;
    padding: 12px 20px 12px 44px;
    border: 2px solid var(--border-lighter);
    border-radius: var(--radius-full);
    font-size: 15px;
    font-family: var(--font-family);
    color: var(--text-primary);
    background: var(--bg-white);
    outline: none;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8abb2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 18px;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

/* ============================================================
   分类筛选
   ============================================================ */
.category-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 6px 18px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family);
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ============================================================
   VS 分隔
   ============================================================ */
.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 24px 0;
}

.vs-divider::before,
.vs-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-lighter), transparent);
}

.vs-badge {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    background: var(--gradient-warm);
    color: white;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    box-shadow: 0 4px 14px rgba(245, 87, 108, 0.3);
    margin: 0 16px;
}

/* ============================================================
   进度指示
   ============================================================ */
.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    margin: 24px 0;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-lighter);
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-bg);
}

.progress-dot.done {
    background: var(--success);
    box-shadow: 0 0 0 4px var(--success-bg);
}

/* ============================================================
   浮动装饰
   ============================================================ */
.floating-decoration {
    position: fixed;
    pointer-events: none;
    z-index: -1;
}

.floating-decoration.circle-1 {
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(103, 194, 58, 0.06) 0%, transparent 70%);
}

.floating-decoration.circle-2 {
    top: 200px;
    right: -150px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 162, 60, 0.06) 0%, transparent 70%);
}

/* ============================================================
   欢迎弹窗（首次访问收集用户信息）
   ============================================================ */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.welcome-overlay.active {
    display: flex;
}

.welcome-modal {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: welcomeSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes welcomeSlideIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.welcome-header {
    text-align: center;
    padding: 36px 32px 20px;
}

.welcome-header h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 12px 0 6px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-header p {
    font-size: 15px;
    color: var(--text-secondary);
}

.welcome-form {
    padding: 0 32px;
}

.welcome-field {
    margin-bottom: 22px;
}

.welcome-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.welcome-input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--border-lighter);
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-family: var(--font-family);
    color: var(--text-primary);
    background: var(--bg-light);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.welcome-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
    background: var(--bg-white);
}

.welcome-age-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.welcome-age-input {
    width: 80px;
    text-align: center;
    -moz-appearance: textfield;
}

.welcome-age-input::-webkit-outer-spin-button,
.welcome-age-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.welcome-age-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border-lighter);
    background: var(--bg-light);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.welcome-age-btn:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
    color: var(--primary);
}

.welcome-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.welcome-grade-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.welcome-option-btn {
    padding: 10px 18px;
    border: 2px solid var(--border-lighter);
    border-radius: var(--radius-lg);
    background: var(--bg-light);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family);
}

.welcome-option-btn:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.welcome-option-btn.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
}

.welcome-footer {
    padding: 20px 32px 32px;
    text-align: center;
}

.welcome-footer .btn {
    width: 100%;
    justify-content: center;
}