/* ===================================
   News Studio 新闻创作工坊
   完整样式表
   =================================== */

:root {
    --mint: #7ac5b0;
    --mint-light: #a8dfc8;
    --mint-dark: #5ba894;
    --warm-yellow: #fce38a;
    --warm-yellow-light: #fef9e7;
    --cream: #fdfbf7;
    --coral: #f38181;
    --coral-light: #ff9999;
    --blue: #5d9cec;
    --blue-light: #89c4f4;
    --dark: #3e3e3e;
    --gray: #6e6e6e;
    --light-gray: #b8b8b8;
    --border: #e8e4df;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(0, 0, 0, 0.12);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--cream);
    color: var(--dark);
    line-height: 1.7;
    min-height: 100vh;
}

/* ===================================
   动画
   =================================== */

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

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

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

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

.animate-fadeIn { animation: fadeIn 0.5s ease; }
.animate-fadeInUp { animation: fadeInUp 0.5s ease; }
.animate-bounce { animation: bounce 0.5s ease; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* ===================================
   导航栏
   =================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--coral);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.nav-logo:hover {
    transform: scale(1.02);
    color: var(--mint-dark);
}

.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 500;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===================================
   按钮
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--coral), #ff7b7b);
    color: white;
    box-shadow: 0 4px 15px rgba(243, 129, 129, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff9999, var(--coral));
    box-shadow: 0 8px 25px rgba(243, 129, 129, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--mint), var(--mint-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(122, 197, 176, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--mint-light), var(--mint));
    box-shadow: 0 8px 25px rgba(122, 197, 176, 0.4);
}

.btn-blue {
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    color: white;
}

.btn-blue:hover {
    background: linear-gradient(135deg, var(--blue-light), var(--blue));
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--mint);
    color: var(--mint-dark);
}

.btn-outline:hover {
    background: var(--mint);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ===================================
   容器
   =================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 84px 2rem 2rem;
}

.page {
    display: none;
    animation: fadeIn 0.4s ease;
}

.page.active {
    display: block;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ===================================
   卡片
   =================================== */

.card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--mint), var(--coral), var(--warm-yellow));
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===================================
   首页
   =================================== */

.hero {
    text-align: center;
    padding: 3rem 0;
}

.hero-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--coral), var(--mint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    color: var(--gray);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.action-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px var(--shadow);
}

.action-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px var(--shadow-hover);
}

.action-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.action-card h3 {
    margin-bottom: 0.5rem;
}

.action-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===================================
   项目卡片
   =================================== */

.project-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 4px 20px var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--mint), var(--warm-yellow));
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px var(--shadow-hover);
}

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

.project-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.project-type {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.type-video {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
    color: #8b6914;
}

.type-text {
    background: linear-gradient(135deg, var(--mint-light), var(--mint));
    color: white;
}

.project-date {
    font-size: 0.85rem;
    color: var(--light-gray);
    margin-top: 1rem;
}

.delete-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #fee;
    color: var(--coral);
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card:hover .delete-btn { opacity: 1; }
.delete-btn:hover {
    background: var(--coral);
    color: white;
    transform: scale(1.1);
}

/* ===================================
   打卡
   =================================== */

.checkin-card {
    background: linear-gradient(135deg, var(--mint), var(--mint-dark));
    color: white;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}

.checkin-card .days {
    font-size: 4rem;
    font-weight: 700;
}

.checkin-card .label {
    font-size: 1.2rem;
    opacity: 0.9;
}

.checkin-card .status {
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: rgba(255,255,255,0.2);
    border-radius: 50px;
    display: inline-block;
}

/* ===================================
   模态框
   =================================== */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

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

.modal {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    animation: fadeInUp 0.4s ease;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--cream);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--coral);
    color: white;
}

.modal h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* ===================================
   表单
   =================================== */

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--mint);
    box-shadow: 0 0 0 3px rgba(122, 197, 176, 0.2);
}

.form-input::placeholder {
    color: var(--light-gray);
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

/* ===================================
   类型选择
   =================================== */

.type-select {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.type-option {
    padding: 1.5rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.type-option:hover, .type-option.selected {
    border-color: var(--mint);
    background: var(--warm-yellow-light);
}

.type-option .icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* ===================================
   灵感卡片
   =================================== */

.inspiration-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 4px 20px var(--shadow);
    transition: var(--transition);
    position: relative;
}

.inspiration-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--shadow-hover);
}

.inspiration-card h4 {
    color: var(--coral);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.refresh-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--cream);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn:hover {
    background: var(--mint);
    color: white;
    transform: rotate(180deg);
}

/* ===================================
   编辑器布局
   =================================== */

.editor-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
}

.editor-main {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 4px 20px var(--shadow);
}

.editor-toolbar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.toolbar-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: var(--cream);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.toolbar-btn:hover {
    background: var(--mint);
    color: white;
}

.rich-editor {
    min-height: 250px;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
}

.rich-editor:focus {
    border-color: var(--mint);
}

/* ===================================
   表格
   =================================== */

.table-wrapper {
    overflow-x: auto;
}

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

.storyboard-table th,
.storyboard-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.storyboard-table th {
    background: var(--warm-yellow-light);
    font-weight: 600;
    white-space: nowrap;
}

.storyboard-table input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: var(--transition);
}

.storyboard-table input:focus {
    outline: none;
    border-color: var(--mint);
    background: var(--warm-yellow-light);
}

/* ===================================
   侧边栏
   =================================== */

.sidebar {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 4px 20px var(--shadow);
    height: fit-content;
    position: sticky;
    top: 84px;
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

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

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--coral);
}

/* ===================================
   理论卡片
   =================================== */

.theory-card {
    background: linear-gradient(135deg, #fff9e6, #fff5d6);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--warm-yellow);
    cursor: pointer;
    transition: var(--transition);
}

.theory-card:hover {
    transform: translateX(5px);
}

.theory-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.theory-card p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.6;
}

.theory-detail {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--border);
    font-size: 0.85rem;
}

/* ===================================
   核查清单
   =================================== */

.checklist {
    list-style: none;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

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

/* ===================================
   诊断面板
   =================================== */

.diagnosis-panel {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 4px 20px var(--shadow);
    margin-top: 1.5rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.tag-success {
    background: var(--mint-light);
    color: var(--mint-dark);
}

.tag-warning {
    background: #ffcccc;
    color: #c0392b;
}

.tag-neutral {
    background: var(--cream);
    color: var(--gray);
}

.highlight-word {
    background: #ffcccc;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
}

/* ===================================
   采访界面
   =================================== */

.interview-container {
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 600px;
}

.interview-header {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--mint), var(--mint-dark));
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.interview-avatar {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: var(--cream);
}

.message {
    margin-bottom: 1rem;
    animation: fadeInUp 0.3s ease;
}

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

.message-bubble {
    display: inline-block;
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    line-height: 1.5;
}

.message-interviewee .message-bubble {
    background: white;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 10px var(--shadow);
}

.message-interviewer .message-bubble {
    background: var(--mint);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 0.75rem;
    color: var(--light-gray);
    margin-top: 0.25rem;
}

.interview-input {
    padding: 1rem 1.5rem;
    background: white;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 1rem;
}

.interview-input input {
    flex: 1;
}

/* ===================================
   统计
   =================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-card {
    background: var(--cream);
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--coral);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ===================================
   测验
   =================================== */

.quiz-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 4px 20px var(--shadow);
    margin-bottom: 1.5rem;
}

.quiz-question {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quiz-option {
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.quiz-option:hover {
    border-color: var(--mint);
    background: var(--warm-yellow-light);
}

.quiz-option.selected {
    border-color: var(--mint);
    background: var(--mint-light);
}

.quiz-option.correct {
    border-color: var(--mint);
    background: var(--mint-light);
}

.quiz-option.incorrect {
    border-color: var(--coral);
    background: #ffe6e6;
}

.quiz-result {
    text-align: center;
    padding: 2rem;
}

.quiz-score {
    font-size: 4rem;
    font-weight: 700;
    color: var(--coral);
}

/* ===================================
   理论卡片翻转
   =================================== */

.flip-card {
    perspective: 1000px;
    height: 200px;
    margin-bottom: 1rem;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius);
    padding: 1.5rem;
    background: white;
    box-shadow: 0 4px 20px var(--shadow);
}

.flip-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--mint-light), var(--mint));
    color: white;
}

/* ===================================
   工具箱
   =================================== */

.tool-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 4px 20px var(--shadow);
    text-align: center;
}

.tool-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ===================================
   标签
   =================================== */

.tag-input-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: white;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: var(--mint);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
}

.tag-item button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
}

/* ===================================
   预览面板
   =================================== */

.preview-panel {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 4px 20px var(--shadow);
    height: fit-content;
    position: sticky;
    top: 84px;
}

.preview-content {
    background: #fafafa;
    padding: 1rem;
    border-radius: var(--radius-sm);
    min-height: 200px;
}

.preview-content h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.preview-content h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.preview-content p {
    margin-bottom: 0.5rem;
}

.preview-content ul {
    padding-left: 1.5rem;
}

/* ===================================
   底部栏
   =================================== */

.save-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem 2rem;
    box-shadow: 0 -4px 20px var(--shadow);
    display: flex;
    justify-content: center;
    gap: 1rem;
    z-index: 100;
}

/* ===================================
   空状态
   =================================== */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray);
}

.empty-state .icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

/* ===================================
   Toast 提示
   =================================== */

.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    animation: fadeInUp 0.3s ease;
    z-index: 3000;
    white-space: nowrap;
}

.toast.success { background: var(--mint-dark); }
.toast.error { background: var(--coral); }

/* ===================================
   评分星星
   =================================== */

.stars {
    display: inline-flex;
    gap: 0.25rem;
}

.star {
    font-size: 1.5rem;
    color: var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
}

.star.active {
    color: var(--warm-yellow);
}

.star:hover {
    transform: scale(1.2);
}

/* ===================================
   响应式
   =================================== */

@media (max-width: 900px) {
    .editor-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .interview-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 0 1rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 20px var(--shadow);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .container {
        padding: 74px 1rem 100px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-icon {
        font-size: 4rem;
    }
    
    .type-select {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .modal {
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* ===================================
   滚动条
   =================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--mint-dark);
}

/* ===================================
   工具类
   =================================== */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray); }
.text-coral { color: var(--coral); }
.text-mint { color: var(--mint-dark); }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.hidden { display: none !important; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }

.section-divider {
    height: 1px;
    background: var(--border);
    margin: 2rem 0;
}

/* ===================================
   历史图表
   =================================== */

.chart-bar {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 150px;
    padding: 1rem;
    background: white;
    border-radius: var(--radius);
}

.chart-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.chart-bar-fill {
    width: 100%;
    background: linear-gradient(to top, var(--mint), var(--mint-light));
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
}

.chart-bar-label {
    font-size: 0.75rem;
    color: var(--gray);
}

/* ===================================
   分析框架
   =================================== */

.analysis-section {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px var(--shadow);
}

.analysis-section h4 {
    color: var(--coral);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
