/* ============================================
   个人所得税智能教学课件 v2.1 - PPT风格
   基于 tax-ppt-v1 框架适配
   ============================================ */

/* 隐藏删除页面按钮 */
.slide-delete-btn { display: none !important; }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: #dce3ed; overflow: hidden; height: 100vh; width: 100vw;
}

/* ---------- 幻灯片容器 ---------- */
.slideshow {
    position: relative; width: 100vw; height: 100vh;
    background: linear-gradient(160deg, #e8edf5, #d5dfee);
}

.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; flex-direction: column; justify-content: center;
    align-items: center; padding: 24px 60px 70px 60px;
    opacity: 0; visibility: hidden;
    overflow-y: auto;
    transform: translateX(60px);
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
}
.slide.slide-cover { justify-content: center; }
.slide.active {
    opacity: 1; visibility: visible; z-index: 10;
    transform: translateX(0);
}
.slide-enter-right { transform: translateX(60px) !important; }
.slide-enter-left { transform: translateX(-60px) !important; }

.slide-inner {
    max-width: 1200px; width: 100%;
    background: rgba(255,255,255,0.92);
    border-radius: 18px; padding: 30px 40px;
    box-shadow: 0 4px 28px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
    backdrop-filter: blur(2px);
}
.slide-cover .slide-inner { background: transparent; box-shadow: none; backdrop-filter: none; }

.slide-content { max-width: 1200px; width: 100%; }

/* ---------- 进度条 ---------- */
.progress-bar {
    position: fixed; top: 0; left: 0; height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    z-index: 200; transition: width 0.35s ease;
}

/* ---------- 固定页头 ---------- */
.fixed-header {
    position: fixed; top: 16px; left: 24px; z-index: 100;
    font-size: 15px; color: #999; letter-spacing: 2px;
    font-weight: 400; display: none; pointer-events: none;
    background: rgba(255,255,255,0.7); padding: 4px 14px;
    border-radius: 6px; backdrop-filter: blur(4px); user-select: none;
}
.fixed-header.show { display: block; }

/* ---------- 页码栏 ---------- */
.page-indicator {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%); z-index: 100;
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(12px); padding: 8px 20px;
    border-radius: 40px; border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 16px rgba(0,0,0,0.07); user-select: none;
}
.page-indicator .nav-btn {
    width: 36px; height: 36px; border-radius: 50%;
    border: none; background: #6366f1; color: #fff;
    font-size: 17px; cursor: pointer; display: flex;
    align-items: center; justify-content: center; transition: background 0.2s;
}
.page-indicator .nav-btn:hover { background: #4f46e5; }
.page-indicator .page-info {
    color: #333; font-size: 14px; min-width: 66px; text-align: center; font-weight: 500;
}
.page-indicator .page-input {
    width: 44px; height: 32px; border: 1px solid #ccc; border-radius: 6px;
    text-align: center; font-size: 14px; font-weight: 500; color: #333;
    outline: none; background: #fff;
}
.page-indicator .page-input:focus { border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,0.2); }

/* ---------- 侧边圆点 ---------- */
.side-page {
    position: fixed; right: 14px; top: 50%;
    transform: translateY(-50%); z-index: 90;
    display: flex; flex-direction: column; gap: 5px;
}
.side-page .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(0,0,0,0.15); cursor: pointer; transition: all 0.3s;
    position: relative;
}
.side-page .dot.active { background: #6366f1; width: 10px; height: 10px; box-shadow: 0 0 10px rgba(99,102,241,0.4); }
.side-page .dot:hover { background: rgba(99,102,241,0.5); }
.side-page .dot:hover::after {
    content: attr(data-page);
    position: absolute; right: 16px; top: -4px;
    background: rgba(0,0,0,0.6); color: #fff;
    font-size: 11px; padding: 2px 8px; border-radius: 4px;
    white-space: nowrap;
}

/* ---------- 幻灯片文字 ---------- */
.slide-title { font-size: 34px; font-weight: 700; color: #1a1a2e; margin-bottom: 6px; line-height: 1.2; }
.slide-subtitle { font-size: 22px; color: #555; font-weight: 400; margin-bottom: 8px; }
.slide-section { font-size: 20px; color: #6366f1; letter-spacing: 2px; margin-bottom: 4px; font-weight: 600; }
.slide-divider { width: 44px; height: 3px; background: linear-gradient(90deg, #6366f1, #8b5cf6); border-radius: 2px; margin: 4px 0 10px 0; }
.slide-body { font-size: 24px; line-height: 1.7; color: #222; }
.slide-body p { margin-bottom: 10px; font-size: 24px; }
.slide-body .label { display: inline-block; font-weight: 700; color: #6366f1; font-size: 24px; }
.slide-body ul, .slide-body ol { padding-left: 28px; margin-bottom: 10px; }
.slide-body li { margin-bottom: 5px; font-size: 24px; }

/* ---------- 盒子 ---------- */
.slide-body .box {
    background: #fff; border-left: 6px solid #6366f1;
    padding: 16px 22px; border-radius: 10px;
    margin: 12px 0; box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.slide-body .box p { font-size: 25px; }
.slide-body .box .label { font-size: 25px; }

/* ---------- 封面 ---------- */
.slide-cover { text-align: center; }
.slide-cover .slide-inner { position: relative; z-index: 2; }
.cover-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.04));
    border-radius: 18px; pointer-events: none;
}
.slide-cover .cover-badge {
    display: inline-block; border: 2px solid #6366f1;
    padding: 8px 32px; border-radius: 40px;
    color: #6366f1; font-size: 18px; letter-spacing: 6px;
    margin-bottom: 20px; font-weight: 600; background: rgba(255,255,255,0.7);
}
.slide-cover .cover-title { font-size: 56px; font-weight: 700; color: #1a1a2e; margin-bottom: 12px; }
.slide-cover .cover-sub { font-size: 26px; color: #555; margin-bottom: 20px; }
.slide-cover .cover-line { width: 80px; height: 3px; background: linear-gradient(90deg, transparent, #6366f1, transparent); margin: 14px auto; }

/* ---------- 导入语 ---------- */
.import-quotes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; justify-content: center; }
.import-quotes .quote-item {
    background: #fff; padding: 12px 20px; border-radius: 10px;
    border-left: 4px solid #6366f1; color: #222;
    font-size: 22px; width: calc(50% - 6px);
    min-width: 260px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}

/* ---------- 补充框 ---------- */
.supplement {
    background: #fefaf0; border: 1px dashed #e67e22;
    border-left: 5px solid #e67e22;
    border-radius: 8px; padding: 10px 16px;
    margin: 10px 0; font-size: 22px; color: #333;
}
.supplement .sup-title { color: #e67e22; font-weight: 700; margin-right: 6px; font-size: 22px; }

.supplement-green {
    background: #eef8ee; border: 1px dashed #27ae60;
    border-left: 5px solid #27ae60;
    border-radius: 8px; padding: 10px 16px;
    margin: 10px 0; font-size: 22px; color: #333;
}
.supplement-green .sup-title { color: #27ae60; font-weight: 700; margin-right: 6px; font-size: 22px; }

/* ---------- 三列功能卡片 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 12px; }
.feature-card {
    background: #fff; border-radius: 12px; padding: 18px 18px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 5px 18px rgba(0,0,0,0.06); }
.feature-card .icon { font-size: 30px; margin-bottom: 6px; }
.feature-card h3 { color: #6366f1; font-size: 24px; margin-bottom: 6px; }
.feature-card p { color: #333; font-size: 22px; line-height: 1.6; }

/* ---------- 两列布局 ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 12px; }
.col-box {
    background: #fff; border-radius: 10px; padding: 16px 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02); border: 1px solid rgba(0,0,0,0.03);
}
.col-box h4 { color: #6366f1; font-size: 23px; margin-bottom: 6px; }
.col-box p { font-size: 22px; color: #333; line-height: 1.65; }

/* ---------- 信息表格 ---------- */
.info-table {
    width: 100%; border-collapse: collapse; margin-top: 10px;
    font-size: 22px; background: #fff; border-radius: 10px;
    overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}
.info-table th {
    background: #6366f1; color: #fff; padding: 10px 12px;
    text-align: left; font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1); font-size: 22px;
}
.info-table td {
    padding: 10px 12px; border: 1px solid #e8ecf0;
    color: #222; vertical-align: top; font-size: 22px;
}
.info-table tr:nth-child(even) td { background: #f6f9fc; }

/* ---------- 功能卡片（带序号） ---------- */
.func-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 12px; }
.func-card {
    background: #fff; border-radius: 12px; padding: 18px 16px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.03);
}
.func-card .num {
    width: 40px; height: 40px; border-radius: 50%;
    background: #6366f1; color: #fff; font-weight: 700;
    font-size: 20px; display: inline-flex; align-items: center;
    justify-content: center; margin-bottom: 8px;
}
.func-card h4 { color: #6366f1; font-size: 22px; margin-bottom: 5px; }
.func-card p { color: #333; font-size: 20px; line-height: 1.6; }
.func-card ul { padding-left: 16px; color: #333; font-size: 20px; }
.func-card li { margin-bottom: 3px; font-size: 20px; }

/* ---------- 作用列表 ---------- */
.role-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.role-item {
    background: #fff; padding: 12px 18px; border-radius: 8px;
    border-left: 4px solid #6366f1; color: #222;
    font-size: 22px; box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}
.role-item .r-num { color: #6366f1; font-weight: 700; margin-right: 4px; }

/* ---------- 原则列表 ---------- */
.principle-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.principle-item {
    background: #fff; border-radius: 8px; padding: 12px 18px;
    border-left: 5px solid #6366f1; box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}
.principle-item h4 { color: #6366f1; font-size: 22px; margin-bottom: 3px; }
.principle-item p { color: #333; font-size: 22px; line-height: 1.65; }

/* ---------- 对比表格 ---------- */
.compare-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 22px; }
.compare-table th { background: #6366f1; color: #fff; padding: 9px 12px; text-align: left; font-size: 22px; }
.compare-table td { padding: 9px 12px; border: 1px solid #e8ecf0; color: #222; vertical-align: top; font-size: 22px; }
.compare-table tr:nth-child(even) td { background: #f6f9fc; }

/* ---------- 返回目录按钮（左下角浮动） ---------- */
.back-home-float {
    position: fixed; bottom: 80px; left: 20px; z-index: 300;
    padding: 10px 18px; border: none; border-radius: 10px;
    background: rgba(0,0,0,0.5); color: #fff; font-size: 14px;
    cursor: pointer; transition: background 0.2s, transform 0.2s;
    backdrop-filter: blur(8px); box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    font-family: inherit; text-decoration: none; display: inline-block;
}
.back-home-float:hover { background: rgba(0,0,0,0.7); transform: scale(1.05); }

/* ---------- 全屏按钮（右下角浮动） ---------- */
.fullscreen-float {
    position: fixed; bottom: 80px; right: 20px; z-index: 300;
    padding: 10px 18px; border: none; border-radius: 10px;
    background: rgba(0,0,0,0.5); color: #fff; font-size: 14px;
    cursor: pointer; transition: background 0.2s, transform 0.2s;
    backdrop-filter: blur(8px); box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    font-family: inherit;
}
.fullscreen-float:hover { background: rgba(0,0,0,0.7); transform: scale(1.05); }

/* ---------- 工具选择按钮（左下角浮动） ---------- */
.tools-float {
    position: fixed; bottom: 130px; left: 20px; z-index: 310;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border: none; border-radius: 10px;
    background: rgba(0,0,0,0.55); color: #fff; font-size: 14px;
    cursor: pointer; transition: background 0.2s, transform 0.2s;
    backdrop-filter: blur(8px); box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    font-family: inherit;
}
.tools-float:hover { background: rgba(0,0,0,0.75); transform: scale(1.05); }

.tools-menu {
    position: fixed; bottom: 180px; left: 20px; z-index: 311;
    display: none; flex-direction: column; gap: 6px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    border-radius: 12px; padding: 8px 10px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    min-width: 150px;
}
.tools-menu.show { display: flex; }
.tools-menu a {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: 8px;
    text-decoration: none; font-size: 15px; color: #333;
    transition: all 0.2s; font-weight: 500;
}
.tools-menu a:hover { background: #f0f0ff; color: #6366f1; }
.tools-menu a .tool-icon { font-size: 18px; }

/* ---------- ===== 练习题样式 ===== ---------- */
.practice-type-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 20px;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 1px;
}
.practice-type-badge.type-single {
    background: #eef2ff;
    color: #6366f1;
    border: 1px solid #6366f1;
}
.practice-type-badge.type-multi {
    background: #fef3e2;
    color: #e67e22;
    border: 1px solid #e67e22;
}
.practice-type-badge.type-judge {
    background: #eef8ee;
    color: #27ae60;
    border: 1px solid #27ae60;
}
.practice-item {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    padding: 18px 22px;
    margin: 12px 0;
    box-shadow: 0 1px 6px rgba(0,0,0,0.03);
}
.practice-item + .practice-item { margin-top: 18px; }
.practice-question {
    font-size: 22px !important;
    color: #1a1a2e;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 10px !important;
}
.practice-question .q-num {
    display: inline-block;
    background: #6366f1;
    color: #fff;
    width: 32px; height: 32px;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-size: 16px;
    font-weight: 700;
    margin-right: 8px;
    flex-shrink: 0;
}
.practice-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0;
}
.practice-options .option {
    padding: 10px 16px;
    border: 2px solid #e0e4e8;
    border-radius: 8px;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafbfc;
    user-select: none;
}
.practice-options .option:hover {
    border-color: #a5b4fc;
    background: #f5f3ff;
}
.practice-options .option.selected {
    border-color: #f39c12;
    background: #fff8e6;
}
.practice-options .option.correct {
    border-color: #27ae60;
    background: #eef8ee;
    color: #1a7a3a;
    font-weight: 600;
}
.practice-options .option.wrong {
    border-color: #e74c3c;
    background: #fdeaea;
    color: #c0392b;
}
.practice-options .option.disabled {
    cursor: default;
    opacity: 0.85;
}
.practice-options .option.disabled:hover {
    border-color: #e0e4e8;
    background: #fafbfc;
}
.practice-options .option.disabled.correct:hover {
    border-color: #27ae60;
    background: #eef8ee;
}
.practice-options .option.disabled.wrong:hover {
    border-color: #e74c3c;
    background: #fdeaea;
}
.practice-answer {
    margin-top: 12px;
    padding: 14px 18px;
    background: #fefaf0;
    border-left: 5px solid #e67e22;
    border-radius: 8px;
    font-size: 20px;
    color: #333;
    line-height: 1.7;
}
.practice-answer .label {
    font-size: 20px !important;
}
.practice-answer p {
    font-size: 20px !important;
    margin-bottom: 4px !important;
}
.practice-answer .ans-tag {
    display: inline-block;
    background: #e67e22;
    color: #fff;
    font-size: 14px;
    padding: 2px 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    font-weight: 600;
}
.practice-hint {
    font-size: 18px;
    color: #999;
    margin-bottom: 8px;
    font-style: italic;
}
.practice-submit-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 24px;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
.practice-submit-btn:hover { background: #4f46e5; }
.practice-submit-btn:disabled {
    background: #bbb;
    cursor: default;
}

/* ---------- 例题（点击显示答案） ---------- */
.example-answer { display: none; }
.example-answer.selected { display: block; }
.example-prompt {
    font-size: 18px;
    color: #6366f1;
    cursor: pointer;
    margin-top: 10px;
    padding: 8px 14px;
    border: 2px dashed #6366f1;
    border-radius: 8px;
    text-align: center;
    transition: all 0.2s;
    background: #f5f3ff;
}
.example-prompt:hover { background: #ede9fe; border-color: #4f46e5; }

/* ---------- 逐步显示推导步骤 ---------- */
.derive-steps .principle-item { display: none; }
.derive-steps .principle-item.step-visible { display: block; }
.derive-step-btn {
    font-size: 18px;
    color: #fff;
    cursor: pointer;
    margin-top: 10px;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    text-align: center;
    transition: all 0.2s;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    font-weight: 600;
    font-family: inherit;
    display: inline-block;
}
.derive-step-btn:hover { background: linear-gradient(135deg, #4f46e5, #7c3aed); transform: scale(1.03); }
.derive-step-btn:disabled { background: #bbb; cursor: default; transform: none; }
.practice-item .example-answer.selected + .example-prompt,
.practice-item .example-answer.selected ~ .example-prompt { display: none; }

/* ---------- 竖版模式 ---------- */
.portrait .slide {
    padding: 16px 30px 70px 30px;
}
.portrait .slide-inner {
    max-width: 820px;
    padding: 24px 28px;
}
.portrait .slide-cover .cover-title { font-size: 46px; }
.portrait .slide-body { font-size: 21px; }
.portrait .slide-body p { font-size: 21px; }
.portrait .slide-body li { font-size: 21px; }
.portrait .slide-body .box p { font-size: 22px; }
.portrait .slide-body .box .label { font-size: 22px; }
.portrait .slide-title { font-size: 29px; }
.portrait .feature-grid { grid-template-columns: repeat(2, 1fr); }
.portrait .func-grid { grid-template-columns: repeat(2, 1fr); }
.portrait .import-quotes .quote-item { font-size: 19px; min-width: 200px; width: calc(50% - 6px); }
.portrait .two-col { grid-template-columns: 1fr; }
.portrait .formula-box { white-space: normal; word-break: break-word; }
.portrait .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.portrait .table-wrap table { min-width: 640px; }
.portrait .tools-float { left: 12px; bottom: 84px; width: 56px; height: 56px; font-size: 20px; padding: 0; justify-content: center; }
.portrait .fullscreen-float { right: 12px; top: 12px; bottom: auto; width: 44px; height: 44px; font-size: 15px; padding: 0; justify-content: center; }
.portrait .side-page { display: none; }
.portrait .page-indicator { bottom: 18px; padding: 8px 16px; }
.portrait .page-indicator .nav-btn { width: 52px; height: 52px; font-size: 24px; }
.portrait .page-indicator .page-input { width: 44px; height: 36px; font-size: 16px; }
.portrait .page-indicator .page-info { font-size: 16px; }
.portrait .dot-label { display: none; }
.portrait .cover-prompt { font-size: 18px; }
.portrait .modal { width: 94%; max-height: 85vh; }
.portrait .modal-content { padding: 18px 16px; }
.portrait .modal-inner { padding: 16px; max-height: 70vh; overflow-y: auto; }
.portrait .option { padding: 14px 18px; font-size: 19px; }
.portrait .practice-submit-btn { padding: 12px 28px; font-size: 20px; }
.portrait .derive-step-btn { padding: 12px 28px; font-size: 20px; }
.portrait .example-prompt { padding: 12px 16px; font-size: 19px; }
.portrait .clickable-box { padding: 14px; font-size: 19px; }
.portrait .knowledge-link { padding: 10px 16px; font-size: 18px; }
.portrait .tools-menu a { padding: 14px 18px; font-size: 19px; }
.portrait .slide-body .label { font-size: 21px; }
.portrait .quote-item { font-size: 19px; }
.portrait .case-box, .portrait .supplement-green, .portrait .supplement-blue, .portrait .supplement-orange { padding: 14px 16px; font-size: 19px; }
.portrait .step-flow { gap: 8px; }
.portrait .step-item { padding: 10px 12px; font-size: 16px; }
.portrait .pie-chart, .portrait .bar-chart { width: 100%; height: auto; }
.portrait .principle-item { padding: 12px 14px; }
.portrait .sub-title { font-size: 22px; }
.portrait .mini-title { font-size: 20px; }
.portrait .chart-wrap, .portrait .diagram { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.portrait .cover-tip { font-size: 17px; }
.portrait .header-title { font-size: 15px; }
.portrait .fixed-header { font-size: 16px; }
.portrait .footer-tip { font-size: 16px; }
.portrait .slide::-webkit-scrollbar { width: 6px; }
.portrait .slide::-webkit-scrollbar-thumb { background: #6366f1; border-radius: 3px; }
.portrait .slide .slide-body { overflow: visible; }
.portrait .slide-body { word-wrap: break-word; overflow-wrap: break-word; }
.portrait .slide-body p { word-break: break-word; }
.portrait .slide-body h4 { word-break: break-word; }
.portrait .element { max-width: 100%; }
.portrait .compare-table th, .portrait .compare-table td { padding: 10px 8px; white-space: normal; }
.portrait .info-table th, .portrait .info-table td { padding: 10px 8px; white-space: normal; }
.portrait .year-select { padding: 10px 12px; font-size: 17px; }
.portrait .progress-bar { height: 4px; }
.portrait .slide::-webkit-scrollbar { width: 4px; }
.portrait .slide::-webkit-scrollbar-track { background: transparent; }
.portrait .slide::-webkit-scrollbar-thumb { background: #6366f1; border-radius: 3px; }
.portrait .fixed-header { line-height: 1.2; padding: 0 12px; }
.portrait .tools-menu { bottom: 142px; }
.portrait .content-graph { max-width: 100%; height: auto; }
.portrait .img-fluid { max-width: 100%; height: auto; }
.portrait .avatar-wrap { max-width: 100%; }
.portrait .slide-body > * { max-width: 100%; }
.portrait .slide-body .func-grid, .portrait .slide-body .feature-grid, .portrait .slide-body .grid-2, .portrait .slide-body .grid-3 { max-width: 100%; }
.portrait .role-list { grid-template-columns: 1fr; }
.portrait .notice-bar { padding: 10px 14px; font-size: 16px; }
.portrait .tip-box { padding: 10px 14px; font-size: 16px; }
.portrait .slide-body .slide-divider { margin: 14px 0; }
.portrait .slide-section { font-size: 17px; }
.portrait .question-item, .portrait .qa-item { padding: 12px 14px; font-size: 19px; }
.portrait .question-item p, .portrait .qa-item p { font-size: 19px; }
.portrait .practice-answer { font-size: 18px; }
.portrait .ans-tag { font-size: 18px; }
.portrait .option.correct::after, .portrait .option.wrong::after { content: ''; }
.portrait .option .option-radio { width: 24px; height: 24px; font-size: 14px; }
.portrait .option .option-text { font-size: 19px; }
.portrait .sub-title .sub-num { font-size: 22px; }
.portrait .slide-cover { justify-content: center; }
.portrait .slide-cover .cover-sub { font-size: 30px; }
.portrait .slide-cover .cover-line { width: 120px; }
.portrait .cover-badge { font-size: 14px; }
.portrait .cover-title { line-height: 1.25; }
.portrait .cover-features { gap: 8px; }
.portrait .cover-features .feature-pill { padding: 8px 12px; font-size: 14px; }
.portrait .slide-content { max-width: 100%; }
.portrait .dark-header { padding: 10px 12px; font-size: 15px; }
.portrait .box { padding: 14px 16px; font-size: 19px; }
.portrait .highlight-box { padding: 14px 16px; font-size: 19px; }
.portrait .principle-icon { width: 48px; height: 48px; font-size: 22px; }
.portrait .timeline-item { padding: 12px; }
.portrait .timeline-item .tl-icon { width: 42px; height: 42px; font-size: 20px; }
.portrait .flow-arrow { font-size: 20px; }
.portrait .carousel { max-width: 100%; }
.portrait .carousel-inner { flex-wrap: wrap; }
.portrait .carousel-item { min-width: 100%; }
.portrait .progress-steps .step { font-size: 16px; }
.portrait .spacer { display: none; }
.portrait .note { font-size: 16px; }
.portrait .aside { font-size: 18px; }
.portrait .footer { font-size: 15px; }
.portrait .nav-btn:disabled { opacity: 0.35; }
.portrait .tools-menu { left: 12px; }
.portrait .tools-menu.show { display: flex; }
.portrait .close-btn { width: 34px; height: 34px; font-size: 20px; }
.portrait .modal-title { font-size: 19px; }
.portrait .modal-body { font-size: 17px; }
.portrait .formula { overflow-x: auto; }
.portrait .formula { white-space: pre-wrap; word-break: break-all; }
.portrait .formula { font-size: 18px; }
.portrait .flex-row { flex-wrap: wrap; }
.portrait .pill-tag { padding: 8px 12px; font-size: 15px; }
.portrait .icon-badge { width: 44px; height: 44px; font-size: 20px; }
.portrait .quote-icon { font-size: 26px; }
.portrait .quote-text { font-size: 19px; }
.portrait .btn { padding: 12px 22px; font-size: 17px; }
.portrait .btn-primary { font-size: 17px; }
.portrait .btn-secondary { font-size: 17px; }
.portrait .toggle-btn { padding: 10px 14px; font-size: 16px; }
.portrait .badge { font-size: 15px; padding: 6px 10px; }
.portrait .table-caption { font-size: 14px; }
.portrait .section-gap { margin-bottom: 18px; }
.portrait .mt-16 { margin-top: 16px; }
.portrait .mb-16 { margin-bottom: 16px; }
.portrait .page-input { width: 40px; font-size: 14px; }
.portrait .page-info { font-size: 14px; }
.portrait .scroll-hint { font-size: 14px; }
.portrait .swipe-hint { display: block; font-size: 14px; }
.portrait .step-number { width: 34px; height: 34px; font-size: 16px; }
.portrait .nav-icon { font-size: 22px; }
.portrait .nav-text { font-size: 13px; }
.portrait .nav-bar { padding: 8px 10px; }
.portrait .progress-steps { padding: 10px 8px; }
.portrait .header-progress { height: 3px; }
.portrait .slide-body .element { font-size: 18px; }
.portrait .line-chart { width: 100%; height: auto; }
.portrait .graph-svg { width: 100%; height: auto; }
.portrait .legend { font-size: 14px; }
.portrait .chart-card { overflow-x: auto; }
.portrait .nav-arrow { width: 40px; height: 40px; font-size: 18px; }
.portrait .quiz-option { padding: 12px 14px; font-size: 18px; }
.portrait .quiz-feedback { font-size: 17px; }
.portrait .video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.portrait .video-wrap iframe, .portrait .video-wrap video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.portrait .audio-wrap { width: 100%; }
.portrait .pdf-link { padding: 10px 14px; font-size: 16px; }
.portrait .table-graph { overflow-x: auto; }

/* ---------- ===== 响应式（窄屏适配） ===== ---------- */
@media (max-width: 900px) {
    .slide { padding: 20px 12px 65px 12px; }
    .slide-inner { padding: 18px 16px; }
    .slide-title { font-size: 26px; }
    .slide-cover .cover-title { font-size: 32px; }
    .slide-body { font-size: 20px; }
    .slide-body p { font-size: 20px; }
    .slide-body li { font-size: 20px; }
    .slide-body .box p { font-size: 20px; }
    .slide-body .box .label { font-size: 20px; }
    .slide-body .label { font-size: 20px; }
    .feature-grid { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .func-grid { grid-template-columns: 1fr; }
    .role-list { grid-template-columns: 1fr; }
    .side-page { display: none; }
    .import-quotes .quote-item { width: 100%; min-width: unset; }
    .info-table { font-size: 16px; }
    .info-table th, .info-table td { font-size: 16px; }
    .compare-table { font-size: 16px; }
    .compare-table th, .compare-table td { font-size: 16px; }
    .portrait .feature-grid { grid-template-columns: 1fr; }
    .portrait .func-grid { grid-template-columns: 1fr; }
    .tool-modal-overlay { padding: 0; }
    .tool-modal { width: 100vw; height: 100vh; max-width: none; border-radius: 0; }
    .tool-modal-header { padding: 14px 16px; }
    .tool-modal-title { font-size: 18px; }
    .tool-modal-close { width: 44px; height: 44px; font-size: 22px; }
    .detail-modal-overlay { padding: 12px; }
    .detail-modal-box { padding: 24px 18px; }
    .detail-modal-box .close-btn { width: 44px; height: 44px; font-size: 22px; }
    .tools-float, .fullscreen-float { min-height: 48px; min-width: 48px; }
    .page-indicator .nav-btn { width: 44px; height: 44px; font-size: 20px; }
}

/* ---------- 滚动条 ---------- */
.slide::-webkit-scrollbar { width: 4px; }
.slide::-webkit-scrollbar-track { background: transparent; }
.slide::-webkit-scrollbar-thumb { background: #6366f1; border-radius: 3px; }

/* ---------- ===== 课件专用组件 ===== ---------- */

/* 目标卡片 */
.goal-card-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 12px; }
.goal-card {
    background: #fff; border-radius: 14px; padding: 20px;
    border: 1px solid #e8ecf0; box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    position: relative; overflow: hidden; transition: all 0.3s;
}
.goal-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 4px; height: 100%;
}
.goal-card:nth-child(1)::before { background: linear-gradient(180deg, #6366f1, #8b5cf6); }
.goal-card:nth-child(2)::before { background: linear-gradient(180deg, #3b82f6, #06b6d4); }
.goal-card:nth-child(3)::before { background: linear-gradient(180deg, #10b981, #34d399); }
.goal-card:nth-child(4)::before { background: linear-gradient(180deg, #f59e0b, #f97316); }
.goal-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.goal-card h4 { font-size: 22px; color: #1e293b; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.goal-card ul { padding-left: 20px; }
.goal-card li { font-size: 20px; color: #475569; margin-bottom: 4px; line-height: 1.6; }

/* 所得网格 */
.income-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.income-item {
    background: #fff; border: 1px solid #e8ecf0; border-radius: 12px;
    padding: 16px; text-align: center; cursor: pointer;
    transition: all 0.3s; box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}
.income-item:hover { border-color: #818cf8; background: #eef2ff; transform: translateY(-2px); }
.income-item .ii-icon { font-size: 28px; margin-bottom: 6px; }
.income-item .ii-title { font-size: 18px; font-weight: 600; color: #1e293b; margin-bottom: 4px; }
.income-item .ii-desc { font-size: 14px; color: #94a3b8; }

/* 扣除网格 */
.deduction-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.deduction-item {
    background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 12px;
    padding: 14px; text-align: center; cursor: pointer;
    transition: all 0.3s;
}
.deduction-item:hover { border-color: #22c55e; background: #dcfce7; transform: translateY(-2px); }
.deduction-item .di-icon { font-size: 32px; margin-bottom: 6px; }
.deduction-item .di-title { font-size: 20px; font-weight: 600; color: #1e293b; margin-bottom: 4px; }
.deduction-item .di-amount { font-size: 16px; color: #16a34a; font-weight: 500; }

/* 公式框 */
.formula-box {
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    border: 1px solid #c7d2fe; border-radius: 12px;
    padding: 20px; margin: 12px 0; text-align: center;
}
.formula-box .formula { font-size: 28px; font-weight: 600; color: #4338ca; letter-spacing: 1px; }
.formula-box .formula-note { font-size: 18px; color: #6366f1; margin-top: 8px; }

/* 七步教学法时间线 */
.step-timeline { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.step-timeline .tl-step {
    display: flex; flex-direction: column; align-items: center;
    gap: 6px; padding: 10px 14px;
    background: rgba(99,102,241,0.06); border-radius: 12px;
    border: 1px solid rgba(99,102,241,0.12); min-width: 90px;
}
.step-timeline .tl-step .tl-icon { font-size: 22px; }
.step-timeline .tl-step .tl-label { font-size: 16px; color: #4338ca; font-weight: 600; white-space: nowrap; }
.step-timeline .tl-arrow { font-size: 18px; color: #a5b4fc; }

/* 内嵌工具iframe */
.tool-iframe {
    width: 100%; height: calc(100vh - 160px);
    border: none; border-radius: 12px;
    background: #f8fafc;
}

/* 弹窗 */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 200;
    align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal-box {
    background: #fff; border-radius: 20px; padding: 28px;
    max-width: 650px; width: 100%; max-height: 80vh;
    overflow-y: auto; position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.modal-box .close-btn {
    position: absolute; top: 16px; right: 16px;
    background: #f1f5f9; border: none; width: 36px; height: 36px;
    border-radius: 50%; font-size: 20px; cursor: pointer;
    color: #64748b; display: flex; align-items: center; justify-content: center;
}
.modal-box .close-btn:hover { background: #e2e8f0; }
.modal-box h3 { font-size: 20px; color: #1e293b; margin-bottom: 16px; padding-right: 40px; }
.modal-box .detail-content { font-size: 15px; color: #475569; line-height: 1.8; white-space: pre-wrap; }
.modal-box .ai-btn {
    margin-top: 16px; padding: 10px 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff; border: none; border-radius: 10px;
    font-size: 14px; cursor: pointer; font-family: inherit;
}
.modal-box .ai-result {
    margin-top: 12px; background: #f8fafc; border-radius: 12px;
    padding: 16px; font-size: 14px; color: #475569;
    line-height: 1.8; white-space: pre-wrap; display: none;
}

/* ---------- 工具弹窗（全屏iframe嵌入） ---------- */
.tool-modal-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6); z-index: 500;
    align-items: center; justify-content: center; padding: 20px;
}
.tool-modal-overlay.show { display: flex; }
.tool-modal {
    background: #fff; border-radius: 16px; width: 60vw; height: 85vh;
    max-width: 780px; display: flex; flex-direction: column;
    overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.tool-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px; background: #f8fafc;
    border-bottom: 1px solid #e2e8f0; flex-shrink: 0;
}
.tool-modal-title {
    font-size: 16px; font-weight: 600; color: #1e293b;
}
.tool-modal-close {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid #e2e8f0; background: #fff;
    font-size: 18px; cursor: pointer; color: #64748b;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.tool-modal-close:hover { background: #f1f5f9; color: #1e293b; }
.tool-modal-iframe {
    flex: 1; width: 100%; border: none; background: #f8fafc;
}

/* ---------- 详情弹窗（文字内容） ---------- */
.detail-modal-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 400;
    align-items: center; justify-content: center; padding: 20px;
}
.detail-modal-overlay.show { display: flex; }
.detail-modal-box {
    background: #fff; border-radius: 20px; padding: 32px;
    max-width: 650px; width: 100%; max-height: 80vh;
    overflow-y: auto; position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.detail-modal-box .close-btn {
    position: absolute; top: 16px; right: 16px;
    background: #f1f5f9; border: none; width: 36px; height: 36px;
    border-radius: 50%; font-size: 20px; cursor: pointer;
    color: #64748b; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.detail-modal-box .close-btn:hover { background: #e2e8f0; color: #1e293b; }
.detail-modal-box h3 {
    font-size: 22px; color: #1e293b; margin-bottom: 20px;
    padding-right: 40px;
}
.detail-modal-box .detail-content {
    font-size: 16px; color: #475569; line-height: 2;
    white-space: pre-wrap;
}

/* ---------- 可点击卡片 ---------- */
.clickable-card {
    cursor: pointer;
    transition: all 0.3s !important;
}
.clickable-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(99,102,241,0.15) !important;
}
.clickable-card:active {
    transform: scale(0.97) !important;
}
