/* ============================================
   商标代理业务增长系统 - 样式表
   配色：深蓝 + 金色
   字体：思源黑体 (Noto Sans SC)
   风格：专业精致商务风
   ============================================ */

/* CSS变量定义 */
:root {
    /* 主色调 - 深蓝 */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;
    --primary-950: #172554;

    /* 强调色 - 金色 */
    --accent-300: #fcd34d;
    --accent-400: #fbbf24;
    --accent-500: #f59e0b;
    --accent-600: #d97706;
    --accent-700: #b45309;

    /* 中性色 */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* 语义色 */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* 布局 */
    --sidebar-width: 260px;
    --header-height: 60px;
    --border-radius: 8px;
    --border-radius-lg: 12px;

    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* 过渡 */
    --transition: all 0.2s ease;
}

/* 基础重置 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-100);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* ============================================
   登录页面
   ============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 50%, var(--primary-700) 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 50%);
    animation: pulse-bg 15s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 5%); }
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 48px 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-800), var(--primary-600));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-md);
}

.logo-icon {
    font-size: 36px;
    color: white;
    font-weight: 700;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--gray-500);
    font-size: 14px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}

.input-group input {
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 15px;
    transition: var(--transition);
    font-family: inherit;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.login-btn {
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.login-btn:hover {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.login-hint {
    text-align: center;
    font-size: 13px;
    color: var(--gray-400);
}

/* ============================================
   主应用布局
   ============================================ */
.main-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部导航 */
.top-header {
    height: var(--header-height);
    background: white;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--gray-600);
    border-radius: 2px;
    transition: var(--transition);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.brand-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
}

.header-center {
    flex: 1;
    max-width: 500px;
    margin: 0 24px;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
    background: var(--gray-50);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-400);
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.header-btn:hover {
    background: var(--gray-200);
}

/* 主体区域 */
.app-body {
    display: flex;
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* 侧边栏 */
.sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid var(--gray-200);
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 20px 0;
    transition: var(--transition);
    z-index: 50;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-title {
    padding: 0 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.nav-list {
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-600);
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.nav-item.active {
    background: var(--primary-50);
    color: var(--primary-700);
    border-left-color: var(--primary-600);
    font-weight: 500;
}

.nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.knowledge-nav .nav-icon {
    width: 22px;
    height: 22px;
    background: var(--gray-200);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
}

.knowledge-nav .nav-item.active .nav-icon {
    background: var(--primary-600);
    color: white;
}

.nav-text {
    font-size: 14px;
}

/* 内容区域 */
.content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 24px 32px;
    min-height: calc(100vh - var(--header-height));
    background: var(--gray-50);
}

/* ============================================
   首页样式
   ============================================ */
.home-page {
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-section {
    background: linear-gradient(135deg, var(--primary-800), var(--primary-700));
    border-radius: var(--border-radius-lg);
    padding: 32px;
    color: white;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, transparent 70%);
}

.welcome-section h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.welcome-section p {
    opacity: 0.9;
    font-size: 15px;
}

/* 快速入口卡片 */
.quick-access {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.quick-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 24px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.quick-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

.quick-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.quick-card-icon.scripts { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.quick-card-icon.templates { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.quick-card-icon.reference { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.quick-card-icon.emergency { background: linear-gradient(135deg, #fee2e2, #fecaca); }
.quick-card-icon.learning { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); }

.quick-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
}

.quick-card-desc {
    font-size: 13px;
    color: var(--gray-500);
}

/* 情景导航 */
.scenario-section {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid var(--gray-200);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.scenario-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.scenario-item:hover {
    background: var(--primary-50);
    border-color: var(--primary-200);
}

.scenario-item span:first-child {
    font-size: 20px;
}

.scenario-item span:last-child {
    font-size: 14px;
    color: var(--gray-700);
}

/* ============================================
   话术库样式
   ============================================ */
.scripts-page {
    max-width: 1000px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.page-header p {
    color: var(--gray-500);
    font-size: 14px;
}

/* 场景标签 */
.scene-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.scene-tab {
    padding: 10px 18px;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
}

.scene-tab:hover {
    border-color: var(--primary-300);
    color: var(--primary-600);
}

.scene-tab.active {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: white;
}

/* 话术卡片 */
.script-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.script-card {
    background: white;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: var(--transition);
}

.script-card:hover {
    box-shadow: var(--shadow-md);
}

.script-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.script-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--gray-900);
}

.script-trigger-icon {
    font-size: 20px;
}

.script-actions {
    display: flex;
    gap: 8px;
}

.script-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
}

.script-btn.copy {
    background: var(--primary-600);
    color: white;
}

.script-btn.copy:hover {
    background: var(--primary-700);
}

.script-btn.favorite {
    background: var(--gray-200);
    color: var(--gray-600);
}

.script-btn.favorite:hover {
    background: var(--accent-400);
    color: var(--gray-900);
}

.script-btn.favorite.active {
    background: var(--accent-400);
    color: var(--gray-900);
}

.script-body {
    padding: 20px;
}

.script-psychology {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    background: var(--primary-50);
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--primary-700);
}

.script-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-700);
}

.script-key {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--accent-100);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-700);
    margin-top: 16px;
}

.script-variants {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--gray-200);
}

.script-variants-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    margin-bottom: 10px;
}

.script-variant {
    padding: 10px 14px;
    background: var(--gray-50);
    border-radius: 6px;
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.script-variant:hover {
    background: var(--gray-100);
}

/* ============================================
   数据速查样式
   ============================================ */
.reference-page {
    max-width: 1000px;
    margin: 0 auto;
}

.reference-section {
    background: white;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
    margin-bottom: 24px;
    overflow: hidden;
}

.reference-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
}

.reference-section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
}

.reference-section-body {
    padding: 20px;
}

.reference-table {
    width: 100%;
    border-collapse: collapse;
}

.reference-table th,
.reference-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
}

.reference-table th {
    background: var(--gray-50);
    font-weight: 500;
    color: var(--gray-600);
    font-size: 13px;
}

.reference-table td {
    font-size: 14px;
    color: var(--gray-700);
}

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

.reference-highlight {
    background: var(--accent-100);
    color: var(--accent-700);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.reference-warning {
    background: var(--error);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 12px;
}

/* ============================================
   知识库样式
   ============================================ */
.knowledge-page {
    max-width: 900px;
    margin: 0 auto;
}

.knowledge-header {
    margin-bottom: 32px;
}

.knowledge-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.knowledge-nav-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.knowledge-nav-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 13px;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
}

.knowledge-nav-btn:hover {
    border-color: var(--primary-300);
    color: var(--primary-600);
}

.knowledge-content {
    background: white;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
    padding: 32px;
}

.knowledge-content h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 32px 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-100);
}

.knowledge-content h2:first-child {
    margin-top: 0;
}

.knowledge-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 24px 0 12px;
}

.knowledge-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-700);
    margin: 20px 0 10px;
}

.knowledge-content p {
    margin-bottom: 16px;
    color: var(--gray-700);
}

.knowledge-content ul,
.knowledge-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.knowledge-content li {
    margin-bottom: 8px;
    color: var(--gray-700);
}

.knowledge-content blockquote {
    margin: 20px 0;
    padding: 16px 20px;
    background: var(--primary-50);
    border-left: 4px solid var(--primary-500);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    color: var(--primary-800);
}

.knowledge-content code {
    padding: 2px 6px;
    background: var(--gray-100);
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 13px;
    color: var(--primary-700);
}

.knowledge-content pre {
    margin: 16px 0;
    padding: 16px;
    background: var(--gray-800);
    border-radius: var(--border-radius);
    overflow-x: auto;
}

.knowledge-content pre code {
    background: none;
    color: var(--gray-100);
    padding: 0;
}

/* 高亮框 */
.highlight-box {
    padding: 16px 20px;
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.highlight-box.tip {
    background: var(--primary-50);
    border-left: 4px solid var(--primary-500);
}

.highlight-box.warning {
    background: #fef3c7;
    border-left: 4px solid var(--warning);
}

.highlight-box.danger {
    background: #fee2e2;
    border-left: 4px solid var(--error);
}

.highlight-box.success {
    background: #d1fae5;
    border-left: 4px solid var(--success);
}

/* ============================================
   检查清单样式
   ============================================ */
.checklist-page {
    max-width: 800px;
    margin: 0 auto;
}

.checklist-section {
    background: white;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
    margin-bottom: 24px;
    overflow: hidden;
}

.checklist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.checklist-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
}

.checklist-progress {
    font-size: 13px;
    color: var(--gray-500);
}

.checklist-body {
    padding: 16px 20px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-600);
}

.checklist-item label {
    flex: 1;
    cursor: pointer;
    color: var(--gray-700);
}

.checklist-item.checked label {
    text-decoration: line-through;
    color: var(--gray-400);
}

.checklist-reset {
    padding: 8px 16px;
    background: var(--gray-100);
    border: none;
    border-radius: 6px;
    font-size: 13px;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
}

.checklist-reset:hover {
    background: var(--gray-200);
}

/* ============================================
   弹窗样式
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.search-modal-content {
    max-width: 600px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    border-radius: 6px;
    font-size: 20px;
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

/* 帮助弹窗 */
.help-content {
    padding: 24px;
}

.help-section {
    margin-bottom: 20px;
}

.help-section:last-child {
    margin-bottom: 0;
}

.help-section h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.help-section p {
    font-size: 14px;
    color: var(--gray-600);
}

/* 搜索结果 */
.search-results {
    padding: 16px 24px;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    padding: 14px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 8px;
    border: 1px solid var(--gray-100);
}

.search-result-item:hover {
    background: var(--primary-50);
    border-color: var(--primary-200);
}

.search-result-type {
    font-size: 12px;
    color: var(--primary-600);
    font-weight: 500;
    margin-bottom: 4px;
}

.search-result-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.search-result-preview {
    font-size: 13px;
    color: var(--gray-500);
}

.search-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-400);
}

/* 新手引导 */
.onboarding-content {
    max-width: 450px;
    text-align: center;
    padding: 40px 32px;
}

.onboarding-step {
    animation: fadeIn 0.3s ease;
}

.onboarding-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.onboarding-step h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.onboarding-step p {
    font-size: 15px;
    color: var(--gray-600);
    margin-bottom: 28px;
}

.onboarding-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.onboarding-progress {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-300);
    transition: var(--transition);
}

.progress-dot.active {
    background: var(--primary-600);
    width: 24px;
    border-radius: 4px;
}

/* 按钮样式 */
.btn-primary {
    padding: 12px 24px;
    background: var(--primary-600);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-700);
}

.btn-secondary {
    padding: 12px 24px;
    background: var(--gray-100);
    color: var(--gray-600);
    border: none;
    border-radius: var(--border-radius);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

/* ============================================
   Toast提示
   ============================================ */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: var(--gray-800);
    color: white;
    border-radius: var(--border-radius);
    font-size: 14px;
    z-index: 2000;
    animation: toastIn 0.3s ease;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

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

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

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--primary-600);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 100;
}

.back-to-top:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
}

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

/* 加载状态 */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary-600);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .content {
        margin-left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .brand-text {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-center {
        display: none;
    }

    .content {
        padding: 16px;
    }

    .quick-access {
        grid-template-columns: repeat(2, 1fr);
    }

    .scenario-grid {
        grid-template-columns: 1fr;
    }

    .welcome-section {
        padding: 24px;
    }

    .welcome-section h1 {
        font-size: 22px;
    }

    .knowledge-content {
        padding: 20px;
    }

    .script-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .modal-content {
        max-width: 100%;
        margin: 16px;
    }
}

@media (max-width: 480px) {
    .quick-access {
        grid-template-columns: 1fr;
    }

    .scene-tabs {
        justify-content: center;
    }

    .scene-tab {
        flex: 1;
        text-align: center;
    }
}

/* 搜索结果计数 */
.search-count {
    padding: 8px 16px;
    font-size: 13px;
    color: var(--neutral-500);
    border-bottom: 1px solid var(--neutral-200);
}

/* ============================================
   增强版样式 - 更美观、更现代
   ============================================ */

/* CSS变量 - 增强配色 */
:root {
    /* 主色调 - 深蓝渐变 */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;
    
    /* 强调色 - 金色 */
    --accent-300: #fcd34d;
    --accent-400: #fbbf24;
    --accent-500: #f59e0b;
    --accent-600: #d97706;
    --accent-700: #b45309;
    
    /* 成功/警告/错误 */
    --success-500: #22c55e;
    --success-100: #dcfce7;
    --warning-500: #f59e0b;
    --warning-100: #fef3c7;
    --error-500: #ef4444;
    --error-100: #fee2e2;
    
    /* 中性色 */
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --gradient-dark: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    --gradient-light: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
    
    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* 动画 */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--neutral-100);
    color: var(--neutral-800);
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================================
   登录页面 - 更精美
   ============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-5%, 5%) rotate(5deg); }
}

.login-container {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 48px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    width: 100%;
    max-width: 420px;
    text-align: center;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-logo {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 36px;
    box-shadow: var(--shadow-lg);
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--neutral-500);
    margin-bottom: 32px;
    font-size: 15px;
}

.login-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-size: 16px;
    text-align: center;
    letter-spacing: 8px;
    transition: var(--transition-normal);
    margin-bottom: 20px;
}

.login-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.login-error {
    color: var(--error-500);
    font-size: 14px;
    margin-top: 16px;
    display: none;
}

.login-error.show {
    display: block;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* ============================================
   主应用布局
   ============================================ */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
    width: 280px;
    background: var(--gradient-dark);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: var(--transition-normal);
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.sidebar-logo-text {
    font-size: 18px;
    font-weight: 700;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
}

.nav-section {
    margin-bottom: 8px;
}

.nav-title {
    padding: 12px 24px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
}

.nav-list {
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    cursor: pointer;
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
}

.nav-item.active {
    background: rgba(255,255,255,0.15);
    border-left-color: var(--accent-500);
}

.nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
}

.nav-text {
    font-size: 14px;
    font-weight: 500;
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 顶部导航 */
.top-nav {
    background: white;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--neutral-200);
    position: sticky;
    top: 0;
    z-index: 50;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--neutral-900);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--neutral-100);
    padding: 10px 16px;
    border-radius: var(--radius-full);
    width: 300px;
    transition: var(--transition-normal);
}

.search-box:focus-within {
    background: white;
    box-shadow: var(--shadow-md);
}

.search-box input {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 14px;
    outline: none;
}

.search-box .search-icon {
    color: var(--neutral-400);
}

/* 内容区 */
#content {
    flex: 1;
    padding: 32px;
    background: var(--neutral-100);
}

/* ============================================
   卡片组件
   ============================================ */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--neutral-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--neutral-900);
}

.card-body {
    padding: 24px;
}

/* 功能卡片网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    cursor: pointer;
    transition: var(--transition-normal);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
}

.feature-icon.blue { background: var(--primary-100); }
.feature-icon.gold { background: var(--warning-100); }
.feature-icon.green { background: var(--success-100); }
.feature-icon.red { background: var(--error-100); }

.feature-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 14px;
    color: var(--neutral-500);
    line-height: 1.5;
}

/* ============================================
   进度条
   ============================================ */
.progress-bar {
    height: 8px;
    background: var(--neutral-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.progress-fill.gold {
    background: var(--gradient-accent);
}

/* 环形进度 */
.circle-progress {
    width: 120px;
    height: 120px;
    position: relative;
}

.circle-progress svg {
    transform: rotate(-90deg);
}

.circle-progress .bg {
    fill: none;
    stroke: var(--neutral-200);
    stroke-width: 8;
}

.circle-progress .progress {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

.circle-progress .value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-600);
}

/* ============================================
   闪卡样式
   ============================================ */
.flashcard-container {
    perspective: 1000px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.flashcard {
    width: 100%;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    cursor: pointer;
}

.flashcard.flipped {
    transform: rotateY(180deg);
}

.flashcard-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
}

.flashcard-front {
    background: var(--gradient-primary);
    color: white;
}

.flashcard-back {
    background: white;
    border: 2px solid var(--primary-200);
    transform: rotateY(180deg);
}

.flashcard-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 16px;
}

.flashcard-question {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
}

.flashcard-answer {
    font-size: 18px;
    color: var(--neutral-700);
    line-height: 1.6;
}

.flashcard-hint {
    position: absolute;
    bottom: 20px;
    font-size: 13px;
    opacity: 0.6;
}

.flashcard-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.flashcard-btn {
    padding: 12px 32px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
}

.flashcard-btn.know {
    background: var(--success-500);
    color: white;
}

.flashcard-btn.dont-know {
    background: var(--error-500);
    color: white;
}

.flashcard-btn.next {
    background: var(--primary-500);
    color: white;
}

.flashcard-btn:hover {
    transform: scale(1.05);
}

/* ============================================
   测验样式
   ============================================ */
.quiz-container {
    max-width: 700px;
    margin: 0 auto;
}

.quiz-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.quiz-progress-text {
    font-size: 14px;
    color: var(--neutral-500);
    white-space: nowrap;
}

.quiz-question-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.quiz-question {
    font-size: 20px;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 24px;
    line-height: 1.5;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    padding: 16px 20px;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 12px;
}

.quiz-option:hover {
    border-color: var(--primary-300);
    background: var(--primary-50);
}

.quiz-option.selected {
    border-color: var(--primary-500);
    background: var(--primary-50);
}

.quiz-option.correct {
    border-color: var(--success-500);
    background: var(--success-100);
}

.quiz-option.wrong {
    border-color: var(--error-500);
    background: var(--error-100);
}

.quiz-option-letter {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--neutral-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.quiz-option.selected .quiz-option-letter {
    background: var(--primary-500);
    color: white;
}

.quiz-explanation {
    margin-top: 24px;
    padding: 16px;
    background: var(--primary-50);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-500);
}

.quiz-explanation-title {
    font-weight: 600;
    color: var(--primary-700);
    margin-bottom: 8px;
}

/* ============================================
   情景模拟样式
   ============================================ */
.scenario-container {
    max-width: 800px;
    margin: 0 auto;
}

.scenario-header {
    text-align: center;
    margin-bottom: 32px;
}

.scenario-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 8px;
}

.scenario-difficulty {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: var(--warning-100);
    color: var(--warning-700);
    border-radius: var(--radius-full);
    font-size: 13px;
}

.scenario-scene {
    background: var(--neutral-100);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-style: italic;
    color: var(--neutral-600);
}

.scenario-chat {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.chat-message {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.chat-avatar.customer {
    background: var(--neutral-200);
}

.chat-avatar.agent {
    background: var(--primary-500);
    color: white;
}

.chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    line-height: 1.5;
}

.chat-bubble.customer {
    background: var(--neutral-100);
}

.chat-bubble.agent {
    background: var(--primary-50);
    border: 1px solid var(--primary-200);
}

.scenario-input {
    margin-top: 24px;
}

.scenario-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-size: 15px;
    resize: vertical;
    transition: var(--transition-normal);
}

.scenario-textarea:focus {
    outline: none;
    border-color: var(--primary-500);
}

.scenario-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.scenario-btn {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
}

.scenario-btn.primary {
    background: var(--primary-500);
    color: white;
}

.scenario-btn.secondary {
    background: var(--neutral-100);
    color: var(--neutral-700);
}

.scenario-btn:hover {
    transform: translateY(-2px);
}

.scenario-feedback {
    margin-top: 24px;
    padding: 20px;
    border-radius: var(--radius-md);
    display: none;
}

.scenario-feedback.show {
    display: block;
    animation: slideUp 0.3s ease;
}

.scenario-feedback.good {
    background: var(--success-100);
    border: 1px solid var(--success-500);
}

.scenario-feedback.improve {
    background: var(--warning-100);
    border: 1px solid var(--warning-500);
}

/* ============================================
   学习路径样式
   ============================================ */
.learning-path {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.path-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    cursor: pointer;
    transition: var(--transition-normal);
    border: 2px solid var(--neutral-200);
    position: relative;
    overflow: hidden;
}

.path-card.active {
    border-color: var(--primary-500);
}

.path-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.path-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.path-badge.beginner {
    background: var(--success-100);
    color: var(--success-500);
}

.path-badge.intermediate {
    background: var(--warning-100);
    color: var(--warning-500);
}

.path-badge.advanced {
    background: var(--error-100);
    color: var(--error-500);
}

.path-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 16px;
}

.path-card.beginner .path-icon {
    background: var(--success-100);
}

.path-card.intermediate .path-icon {
    background: var(--warning-100);
}

.path-card.advanced .path-icon {
    background: var(--error-100);
}

.path-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 8px;
}

.path-desc {
    font-size: 14px;
    color: var(--neutral-500);
    margin-bottom: 16px;
}

.path-progress {
    margin-top: auto;
}

.path-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--neutral-500);
    margin-bottom: 8px;
}

/* 每日任务 */
.daily-tasks {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
}

.daily-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.daily-title {
    font-size: 18px;
    font-weight: 700;
}

.daily-day {
    background: var(--primary-500);
    color: white;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--neutral-50);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
}

.task-item:hover {
    background: var(--neutral-100);
}

.task-item.completed {
    opacity: 0.6;
}

.task-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--neutral-300);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.task-item.completed .task-checkbox {
    background: var(--success-500);
    border-color: var(--success-500);
    color: white;
}

.task-text {
    flex: 1;
    font-size: 15px;
}

.task-item.completed .task-text {
    text-decoration: line-through;
}

.task-type {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    background: var(--primary-100);
    color: var(--primary-700);
}

/* ============================================
   统计卡片
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 12px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--neutral-900);
}

.stat-label {
    font-size: 14px;
    color: var(--neutral-500);
    margin-top: 4px;
}

/* ============================================
   话术卡片增强
   ============================================ */
.script-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    margin-bottom: 20px;
}

.script-card:hover {
    box-shadow: var(--shadow-md);
}

.script-header {
    padding: 20px 24px;
    background: var(--gradient-light);
    border-bottom: 1px solid var(--neutral-200);
}

.script-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
}

.script-trigger-icon {
    font-size: 24px;
}

.script-trigger-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--neutral-900);
}

.script-scene-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-100);
    color: var(--primary-700);
    border-radius: var(--radius-full);
    font-size: 12px;
    margin-left: auto;
}

.script-body {
    padding: 24px;
}

.script-section {
    margin-bottom: 20px;
}

.script-section:last-child {
    margin-bottom: 0;
}

.script-section-title {
    font-size: 13px;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.script-psychology {
    padding: 12px 16px;
    background: var(--warning-100);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--warning-700);
}

.script-response {
    padding: 16px;
    background: var(--neutral-50);
    border-radius: var(--radius-md);
    font-size: 15px;
    line-height: 1.8;
    white-space: pre-wrap;
    position: relative;
}

.script-copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 8px 16px;
    background: var(--primary-500);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition-normal);
}

.script-response:hover .script-copy-btn {
    opacity: 1;
}

.script-key {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent-500);
    color: white;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
}

/* ============================================
   知识库样式增强
   ============================================ */
.knowledge-page {
    max-width: 900px;
    margin: 0 auto;
}

.knowledge-header {
    text-align: center;
    margin-bottom: 32px;
}

.knowledge-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--neutral-900);
}

.knowledge-nav-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
    padding: 16px;
    background: white;
    border-radius: var(--radius-lg);
}

.knowledge-nav-btn {
    padding: 8px 16px;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    background: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
}

.knowledge-nav-btn:hover {
    border-color: var(--primary-300);
    background: var(--primary-50);
}

.knowledge-nav-btn.active {
    background: var(--primary-600);
    color: white;
    border-color: var(--primary-600);
}

.knowledge-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.knowledge-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-700);
    margin: 32px 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-100);
}

.knowledge-content h2:first-child {
    margin-top: 0;
}

.knowledge-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--neutral-800);
    margin: 24px 0 12px;
}

.knowledge-content h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--neutral-700);
    margin: 20px 0 10px;
}

.knowledge-content p {
    margin-bottom: 12px;
    line-height: 1.8;
}

.knowledge-content ul, .knowledge-content ol {
    margin: 12px 0;
    padding-left: 24px;
}

.knowledge-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.knowledge-content strong {
    color: var(--primary-700);
}

.knowledge-content blockquote {
    margin: 16px 0;
    padding: 16px 20px;
    background: var(--primary-50);
    border-left: 4px solid var(--primary-500);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.knowledge-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.knowledge-content th, .knowledge-content td {
    padding: 12px 16px;
    border: 1px solid var(--neutral-200);
    text-align: left;
}

.knowledge-content th {
    background: var(--primary-50);
    font-weight: 600;
}

.knowledge-content tr:hover {
    background: var(--neutral-50);
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .learning-path {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .top-nav {
        padding: 12px 16px;
    }
    
    .search-box {
        width: 100%;
        max-width: 200px;
    }
    
    #content {
        padding: 16px;
    }
    
    .knowledge-content {
        padding: 20px;
    }
    
    .login-container {
        margin: 16px;
        padding: 32px 24px;
    }
}

/* ============================================
   Toast提示
   ============================================ */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--neutral-800);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

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

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

.toast.error {
    background: var(--error-500);
}

/* ============================================
   搜索弹窗
   ============================================ */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    z-index: 200;
    backdrop-filter: blur(4px);
}

.search-modal.hidden {
    display: none;
}

.search-modal-content {
    background: white;
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-height: 70vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--neutral-200);
}

.search-modal-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-size: 16px;
    transition: var(--transition-normal);
}

.search-modal-input:focus {
    outline: none;
    border-color: var(--primary-500);
}

#search-results {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.search-result-item {
    padding: 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-result-item:hover {
    background: var(--neutral-100);
}

.search-result-type {
    font-size: 12px;
    color: var(--primary-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.search-result-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 4px;
}

.search-result-preview {
    font-size: 13px;
    color: var(--neutral-500);
    line-height: 1.4;
}

.search-count {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--neutral-500);
    border-bottom: 1px solid var(--neutral-100);
}

.search-empty {
    text-align: center;
    padding: 40px;
    color: var(--neutral-500);
}

/* ============================================
   成就徽章
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
}

.badge.gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.badge.silver {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    color: white;
}

.badge.bronze {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: white;
}

/* ============================================
   动画效果
   ============================================ */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

.animate-bounce {
    animation: bounce 1s infinite;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-100);
}

::-webkit-scrollbar-thumb {
    background: var(--neutral-300);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-400);
}

/* ============================================
   学习系统增强样式
   ============================================ */

/* 变量补充 */
:root {
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    
    --success-500: #22c55e;
    --success-100: #dcfce7;
    --warning-100: #fef3c7;
    --error-500: #ef4444;
    --error-100: #fee2e2;
    
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --gradient-dark: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    --gradient-light: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* 统计卡片网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 12px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--neutral-900);
}

.stat-label {
    font-size: 14px;
    color: var(--neutral-500);
    margin-top: 4px;
}

/* 功能卡片 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    cursor: pointer;
    transition: var(--transition-normal);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
}

.feature-icon.blue { background: var(--primary-100); }
.feature-icon.gold { background: var(--warning-100); }
.feature-icon.green { background: var(--success-100); }
.feature-icon.red { background: var(--error-100); }

.feature-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 14px;
    color: var(--neutral-500);
    line-height: 1.5;
}

/* 进度条 */
.progress-bar {
    height: 8px;
    background: var(--neutral-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.progress-fill.gold {
    background: var(--gradient-accent);
}

/* 学习路径卡片 */
.learning-path {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.path-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    cursor: pointer;
    transition: var(--transition-normal);
    border: 2px solid var(--neutral-200);
    position: relative;
    overflow: hidden;
}

.path-card.active {
    border-color: var(--primary-500);
    box-shadow: var(--shadow-glow);
}

.path-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.path-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.path-badge.beginner { background: var(--success-100); color: var(--success-500); }
.path-badge.intermediate { background: var(--warning-100); color: var(--accent-600); }
.path-badge.advanced { background: var(--error-100); color: var(--error-500); }

.path-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 16px;
}

.path-card.beginner .path-icon { background: var(--success-100); }
.path-card.intermediate .path-icon { background: var(--warning-100); }
.path-card.advanced .path-icon { background: var(--error-100); }

.path-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 8px;
}

.path-desc {
    font-size: 14px;
    color: var(--neutral-500);
    margin-bottom: 16px;
}

.path-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--neutral-500);
    margin-bottom: 8px;
}

/* 每日任务 */
.daily-tasks {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.daily-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.daily-title {
    font-size: 18px;
    font-weight: 700;
}

.daily-day {
    background: var(--primary-500);
    color: white;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--neutral-50);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
}

.task-item:hover {
    background: var(--neutral-100);
}

.task-item.completed {
    background: var(--success-100);
}

.task-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--neutral-300);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition-normal);
    flex-shrink: 0;
}

.task-item.completed .task-checkbox {
    background: var(--success-500);
    border-color: var(--success-500);
    color: white;
}

.task-text {
    flex: 1;
    font-size: 15px;
}

.task-item.completed .task-text {
    text-decoration: line-through;
    color: var(--neutral-500);
}

.task-type {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    background: var(--primary-100);
    color: var(--primary-700);
}

/* 闪卡样式 */
.flashcard-container {
    perspective: 1000px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.flashcard {
    width: 100%;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    cursor: pointer;
}

.flashcard.flipped {
    transform: rotateY(180deg);
}

.flashcard-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.flashcard-front {
    background: var(--gradient-primary);
    color: white;
}

.flashcard-back {
    background: white;
    border: 2px solid var(--primary-200);
    transform: rotateY(180deg);
}

.flashcard-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 16px;
}

.flashcard-question {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
}

.flashcard-answer {
    font-size: 18px;
    color: var(--neutral-700);
    line-height: 1.6;
}

.flashcard-hint {
    position: absolute;
    bottom: 20px;
    font-size: 13px;
    opacity: 0.6;
}

.flashcard-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.flashcard-btn {
    padding: 12px 32px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
}

.flashcard-btn.know {
    background: var(--success-500);
    color: white;
}

.flashcard-btn.dont-know {
    background: var(--error-500);
    color: white;
}

.flashcard-btn:hover {
    transform: scale(1.05);
}

/* 测验样式 */
.quiz-container {
    max-width: 700px;
    margin: 0 auto;
}

.quiz-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.quiz-progress-text {
    font-size: 14px;
    color: var(--neutral-500);
    white-space: nowrap;
}

.quiz-question-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.quiz-question {
    font-size: 20px;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 24px;
    line-height: 1.5;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    padding: 16px 20px;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 12px;
}

.quiz-option:hover {
    border-color: var(--primary-300);
    background: var(--primary-50);
}

.quiz-option.selected {
    border-color: var(--primary-500);
    background: var(--primary-50);
}

.quiz-option.correct {
    border-color: var(--success-500);
    background: var(--success-100);
}

.quiz-option.wrong {
    border-color: var(--error-500);
    background: var(--error-100);
}

.quiz-option-letter {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--neutral-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.quiz-option.selected .quiz-option-letter {
    background: var(--primary-500);
    color: white;
}

.quiz-explanation {
    margin-top: 24px;
    padding: 16px;
    background: var(--primary-50);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-500);
}

.quiz-explanation-title {
    font-weight: 600;
    color: var(--primary-700);
    margin-bottom: 8px;
}

/* 情景模拟样式 */
.scenario-difficulty {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: var(--warning-100);
    color: var(--accent-700);
    border-radius: var(--radius-full);
    font-size: 13px;
}

.scenario-scene {
    background: var(--neutral-100);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-style: italic;
    color: var(--neutral-600);
}

.scenario-chat {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.chat-message {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.chat-avatar.customer {
    background: var(--neutral-200);
}

.chat-avatar.agent {
    background: var(--primary-500);
    color: white;
}

.chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    line-height: 1.5;
}

.chat-bubble.customer {
    background: var(--neutral-100);
}

.chat-bubble.agent {
    background: var(--primary-50);
    border: 1px solid var(--primary-200);
}

.scenario-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: var(--transition-normal);
}

.scenario-textarea:focus {
    outline: none;
    border-color: var(--primary-500);
}

.scenario-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.scenario-btn {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
}

.scenario-btn.primary {
    background: var(--primary-500);
    color: white;
}

.scenario-btn.secondary {
    background: var(--neutral-100);
    color: var(--neutral-700);
}

.scenario-btn:hover {
    transform: translateY(-2px);
}

.scenario-feedback {
    margin-top: 24px;
    padding: 20px;
    border-radius: var(--radius-md);
    display: none;
}

.scenario-feedback.show {
    display: block;
    animation: slideUp 0.3s ease;
}

.scenario-feedback.good {
    background: var(--success-100);
    border: 1px solid var(--success-500);
}

/* 成就徽章 */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
}

.badge.gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.badge.silver {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    color: white;
}

.badge.bronze {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: white;
}

/* 卡片组件 */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--neutral-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--neutral-900);
}

.card-body {
    padding: 24px;
}

/* 动画 */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 响应式 */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .learning-path {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .flashcard {
        height: 260px;
    }
    
    .flashcard-question {
        font-size: 18px;
    }
    
    .quiz-question {
        font-size: 18px;
    }
}
