/* ===== 全局 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: #f0f4fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    padding: 24px 16px 60px;
    color: #0b1a33;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.container {
    max-width: 1100px;
    width: 100%;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 25px 60px -12px rgba(0,0,0,0.18);
    padding: 32px 28px 40px;
}

/* ===== 头部 ===== */
.header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid #eef2f8;
    padding-bottom: 18px;
    margin-bottom: 28px;
}
.header h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.4px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.header h1 small {
    font-size: 14px;
    font-weight: 500;
    color: #4a5b6e;
    background: #eef2f8;
    padding: 4px 16px;
    border-radius: 40px;
}
.header-badge {
    background: #0b1a33;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 40px;
}

/* ===== Tab 导航 ===== */
.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 28px;
    border-bottom: 2px solid #e7edf6;
    padding-bottom: 0;
}
.tab-btn {
    background: transparent;
    border: none;
    padding: 12px 22px 14px;
    font-size: 15px;
    font-weight: 600;
    color: #6a7e9b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: 0.2s;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tab-btn:hover { color: #0b1a33; background: #f4f8ff; }
.tab-btn.active {
    color: #0b1a33;
    border-bottom-color: #0b1a33;
    background: #f8faff;
}
.tab-btn .day-range {
    font-weight: 400;
    font-size: 12px;
    color: #8a9bb5;
    background: #eef2f8;
    padding: 1px 12px;
    border-radius: 30px;
}
.tab-btn.active .day-range {
    background: #dce5f0;
    color: #1f3a5f;
}
.tab-btn .step-icon { font-size: 18px; }

/* ===== Tab 面板 ===== */
.tab-panels { position: relative; }
.tab-panel { display: none; animation: fadeUp 0.35s ease; }
.tab-panel.active { display: block; }
@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ===== 阶段目标 ===== */
.phase-goal {
    background: #eef4fa;
    border-radius: 16px;
    padding: 16px 22px;
    font-size: 15px;
    color: #14273e;
    border-left: 6px solid #2b4f7a;
    margin-bottom: 16px;
}
.phase-goal strong { color: #0a1c30; }
.phase-goal-meta { display: inline-block; margin-left: 20px; font-weight: 400; }

/* ===== 预期成果 ===== */
.expected-result {
    background: #ecf7ed;
    border-radius: 14px;
    padding: 14px 20px;
    border-left: 6px solid #2d8f4e;
    margin-bottom: 22px;
    font-size: 14px;
    color: #1a3d2a;
}
.expected-result strong { color: #0f2f1a; }
.expected-result ul {
    padding-left: 22px;
    list-style: none;
    margin-top: 4px;
}
.expected-result li {
    position: relative;
    padding-left: 6px;
    line-height: 1.7;
}
.expected-result li::before {
    content: "✓";
    color: #2d8f4e;
    font-weight: 700;
    display: inline-block;
    width: 20px;
    margin-left: -20px;
}

/* ===== 每日卡片 ===== */
.day-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.day-card {
    background: #fafcff;
    border-radius: 18px;
    border: 1px solid #e7edf6;
    overflow: hidden;
    transition: 0.15s;
}
.day-card:hover { border-color: #c9d6e8; background: #ffffff; }
.day-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    padding: 14px 22px;
    background: #fafcff;
    border-bottom: 1px solid #e7edf6;
}
.day-card-header .day-label {
    font-weight: 700;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.day-card-header .day-tag {
    background: #dce5f0;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 14px;
    border-radius: 30px;
    color: #1f3f62;
}
.day-card-header .day-tag.important {
    background: #fde8e8;
    color: #a13026;
}
.day-card-header .day-tag.highlight {
    background: #e3f0e8;
    color: #1d6b4a;
}
.btn-tools {
    margin-left: auto;
    background: #eef2f8;
    border: none;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 13px;
    color: #1f3f62;
    cursor: pointer;
    font-weight: 500;
    transition: 0.15s;
}
.btn-tools:hover { background: #dce5f0; }

.meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    font-size: 13px;
    color: #4a6a8a;
    background: #f2f6fc;
    border-radius: 8px;
    padding: 6px 16px;
    margin: 0 22px 12px 22px;
    border-left: 3px solid #6a8fb1;
}
.meta-info span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.cost-must { color: #1a7a4a; font-weight: 600; }
.cost-optional { color: #b17a3a; font-weight: 600; }
.cost-recommend { color: #b14a3a; font-weight: 600; }

.day-card-body {
    padding: 0 22px 20px 22px;
    display: block;
}
.day-card-body ul {
    padding-left: 22px;
    list-style: none;
}
.day-card-body li {
    font-size: 14.5px;
    line-height: 1.85;
    color: #1f334a;
    margin-bottom: 2px;
    position: relative;
    padding-left: 6px;
}
.day-card-body li::before {
    content: "▹";
    color: #3b6a9e;
    font-weight: 700;
    display: inline-block;
    width: 20px;
    margin-left: -20px;
}
.day-card-body li strong { color: #0b1f33; }
.day-card-body li .highlight-text {
    background: #fef3d7;
    padding: 0 6px;
    border-radius: 4px;
    font-weight: 600;
}

.hidden-tools { display: none; }
.hidden-errors { display: none; }

.btn-errors {
    margin-top: 16px;
    background: #fef1ef;
    border: 1px solid #fad9d4;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: #a13026;
    cursor: pointer;
    transition: 0.15s;
    display: inline-block;
}
.btn-errors:hover { background: #fde0db; }

/* ===== 模态框（通用） ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease;
}
.modal-overlay.active { display: flex; }
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
.modal-box {
    background: #ffffff;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    border-radius: 24px;
    padding: 28px 30px 24px;
    overflow-y: auto;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    position: relative;
    animation: slideUp 0.25s ease;
}
@keyframes slideUp {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
.modal-close {
    position: sticky;
    top: 0;
    float: right;
    background: none;
    border: none;
    font-size: 28px;
    color: #6a7e9b;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}
.modal-close:hover { color: #0b1a33; }
.modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #0b1a33;
}
.modal-content {
    font-size: 14.5px;
    color: #1f334a;
    line-height: 1.7;
}
.modal-content .tool-section {
    background: #f3f8fe;
    border-radius: 14px;
    padding: 14px 20px;
    border: 1px dashed #b6cde0;
    margin-bottom: 14px;
}
.modal-content .tool-section .tool-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #3c5a7a;
    display: block;
    margin-bottom: 6px;
}
.modal-content .tool-section .tool-item {
    display: inline-block;
    background: white;
    padding: 4px 16px;
    border-radius: 30px;
    border: 1px solid #d7e2ef;
    font-size: 13px;
    color: #0b2a47;
    margin: 4px 8px 4px 0;
}
.modal-content .tip-box {
    background: #fef7ea;
    border-radius: 14px;
    padding: 14px 20px;
    border-left: 5px solid #f5b342;
    font-size: 14px;
    color: #4d3e1f;
}
.modal-content .tip-box strong { color: #2d2a1a; }
.modal-content .warning-box {
    background: #fef1ef;
    border-radius: 14px;
    padding: 16px 22px;
    border: 1px solid #fad9d4;
}
.modal-content .warning-box .warn-title {
    font-size: 15px;
    font-weight: 700;
    color: #a13026;
    margin-bottom: 4px;
}
.modal-content .warning-box ul {
    padding-left: 22px;
    list-style: none;
    margin-top: 4px;
}
.modal-content .warning-box li {
    font-size: 14px;
    line-height: 1.8;
    color: #3d2c2a;
    position: relative;
    padding-left: 6px;
}
.modal-content .warning-box li::before {
    content: "⚠️";
    display: inline-block;
    width: 26px;
    margin-left: -26px;
}

/* ===== ROI 计算器专用模态框（大尺寸，无 iframe） ===== */
.modal-box.roi-modal {
    max-width: 860px;
    width: 94%;
    max-height: 92vh;
    padding: 0;
    overflow: hidden;
    background: #f4f6fb;
    border-radius: 28px;
}
.modal-box.roi-modal .modal-close {
    position: sticky;
    top: 12px;
    left: 100%;
    transform: translateX(-40px);
    z-index: 20;
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1a1a2e;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    backdrop-filter: blur(4px);
    float: none;
    margin: 12px 12px 0 auto;
}
.modal-box.roi-modal .modal-close:hover {
    background: #ffffff;
}
.modal-box.roi-modal .roi-scroll-wrap {
    overflow-y: auto;
    max-height: 88vh;
    padding: 0 20px 30px;
}

/* ===== ROI 计算器样式（独立命名空间） ===== */
.roi-calc * { box-sizing: border-box; }
.roi-calc {
    font-family: 'Segoe UI', -apple-system, system-ui, sans-serif;
    color: #1a1a2e;
    --primary: #6c5ce7;
    --primary-light: #a29bfe;
    --primary-dark: #4a3db8;
    --bg: #f4f6fb;
    --card-bg: #ffffff;
    --text-light: #6b7280;
    --radius: 16px;
    --shadow: 0 8px 30px rgba(0,0,0,0.06);
    --theme: #6c5ce7;
    --theme-bg: #f0edff;
    --theme-light: #e8e4ff;
    --accent: #00b894;
    --danger: #ff6b6b;
    --warning: #fdcb6e;
}
.roi-calc[data-platform="kuaishou"] { --theme: #ff6b00; --theme-bg: #fff0e6; --theme-light: #ffe8d9; --primary: #ff6b00; --primary-light: #ff9a4a; --primary-dark: #cc5500; }
.roi-calc[data-platform="douyin"] { --theme: #1e1e2f; --theme-bg: #eef0f5; --theme-light: #dde0e8; --primary: #1e1e2f; --primary-light: #4a4a6a; --primary-dark: #0a0a14; }

.roi-calc .roi-header {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 20px; background: var(--card-bg); padding: 14px 20px;
    border-radius: var(--radius); box-shadow: var(--shadow); border-left: 5px solid var(--theme);
}
.roi-calc .roi-header h2 { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.roi-calc .roi-header h2 small { font-size: 12px; font-weight: 400; color: var(--text-light); }
.roi-calc .roi-platform-switch { display: flex; gap: 4px; background: var(--bg); padding: 3px; border-radius: 30px; }
.roi-calc .roi-platform-switch button {
    border: none; background: transparent; padding: 6px 16px; border-radius: 30px;
    font-size: 13px; font-weight: 600; cursor: pointer; transition: 0.2s;
    color: var(--text-light); font-family: inherit;
}
.roi-calc .roi-platform-switch button.active { background: var(--theme); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.roi-calc .roi-platform-switch button:not(.active):hover { background: var(--theme-light); color: var(--text); }

.roi-calc .roi-card {
    background: var(--card-bg); border-radius: var(--radius); padding: 16px 18px;
    margin-bottom: 14px; box-shadow: var(--shadow); border: 1px solid #f0f2f5;
}
.roi-calc .roi-card-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.roi-calc .roi-card-title .roi-badge { font-size: 10px; font-weight: 600; background: var(--theme); color: #fff; padding: 1px 12px; border-radius: 30px; }
.roi-calc .roi-card-sub { font-size: 12px; color: var(--text-light); margin-bottom: 12px; line-height: 1.5; }

.roi-calc .roi-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.roi-calc .roi-form-group { display: flex; flex-direction: column; gap: 3px; }
.roi-calc .roi-form-group label { font-size: 12px; font-weight: 600; color: #1a1a2e; display: flex; align-items: center; gap: 4px; }
.roi-calc .roi-form-group label .hint { font-weight: 400; color: var(--text-light); font-size: 10px; }
.roi-calc .roi-form-group input {
    padding: 8px 12px; border: 2px solid #e5e7eb; border-radius: 10px;
    font-size: 15px; font-weight: 500; transition: 0.2s; background: #fafbfc;
    width: 100%; font-family: inherit; color: #1a1a2e;
}
.roi-calc .roi-form-group input:focus { outline: none; border-color: var(--theme); background: #fff; box-shadow: 0 0 0 3px var(--theme-light); }
.roi-calc .roi-form-group .roi-suffix { position: relative; }
.roi-calc .roi-form-group .roi-suffix input { padding-right: 32px; }
.roi-calc .roi-form-group .roi-suffix .suffix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-light); font-weight: 600; font-size: 13px; pointer-events: none; }
.roi-calc .roi-form-group .helper { font-size: 10px; color: var(--text-light); margin-top: 2px; }

.roi-calc .roi-metrics {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.roi-calc .roi-metric {
    background: var(--theme-bg); border-radius: 12px; padding: 12px 10px; text-align: center;
}
.roi-calc .roi-metric .num { font-size: 24px; font-weight: 800; color: var(--theme); line-height: 1.2; }
.roi-calc .roi-metric .num.green { color: var(--accent); }
.roi-calc .roi-metric .num.red { color: var(--danger); }
.roi-calc .roi-metric .lbl { font-size: 11px; font-weight: 600; color: var(--text-light); margin-top: 2px; }
.roi-calc .roi-metric .desc { font-size: 10px; color: var(--text-light); margin-top: 4px; opacity: 0.8; }

.roi-calc .roi-calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.roi-calc .roi-calc-box { background: var(--bg); border-radius: 12px; padding: 14px 14px; }
.roi-calc .roi-calc-box .label { font-size: 12px; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 4px; }
.roi-calc .roi-calc-box .result { font-size: 20px; font-weight: 800; color: var(--theme); margin-top: 4px; }
.roi-calc .roi-calc-box .result .unit { font-size: 13px; font-weight: 400; color: var(--text-light); margin-left: 4px; }
.roi-calc .roi-calc-box .result .sub { font-size: 12px; font-weight: 400; color: var(--text-light); display: block; margin-top: 2px; }

.roi-calc .roi-status-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 12px; border-radius: 30px; margin-top: 4px; }
.roi-calc .roi-status-badge.profit { background: #d4edda; color: #155724; }
.roi-calc .roi-status-badge.loss { background: #f8d7da; color: #721c24; }
.roi-calc .roi-status-badge.balance { background: #fff3cd; color: #856404; }

.roi-calc .roi-profit-sim { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.roi-calc .roi-profit-sim .item { background: var(--bg); border-radius: 12px; padding: 12px 14px; text-align: center; }
.roi-calc .roi-profit-sim .item .lbl { font-size: 11px; color: var(--text-light); font-weight: 500; }
.roi-calc .roi-profit-sim .item .val { font-size: 20px; font-weight: 800; margin-top: 2px; }
.roi-calc .roi-profit-sim .item .val.positive { color: var(--accent); }
.roi-calc .roi-profit-sim .item .val.negative { color: var(--danger); }
.roi-calc .roi-profit-sim .item .val.neutral { color: var(--warning); }

.roi-calc .roi-guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.roi-calc .roi-guide-step { background: var(--theme-bg); border-radius: 12px; padding: 12px 14px; border-left: 4px solid var(--theme); }
.roi-calc .roi-guide-step .step-num { font-size: 11px; font-weight: 700; color: var(--theme); background: rgba(108,92,231,0.12); display: inline-block; padding: 0 10px; border-radius: 30px; margin-bottom: 4px; }
.roi-calc .roi-guide-step h4 { font-size: 13px; margin-bottom: 2px; }
.roi-calc .roi-guide-step p { font-size: 12px; color: var(--text-light); line-height: 1.5; }
.roi-calc .roi-guide-step .tag { display: inline-block; font-size: 10px; font-weight: 600; background: var(--theme); color: #fff; padding: 0 10px; border-radius: 30px; margin-top: 2px; }
.roi-calc .roi-guide-step-full { grid-column: span 2; }
.roi-calc .roi-guide-step p { margin-bottom: 4px; }
.roi-calc .roi-platform-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.roi-calc .roi-platform-tag { background: var(--theme); color: #fff; padding: 2px 12px; border-radius: 30px; font-size: 11px; font-weight: 600; }
.roi-calc .roi-form-full { grid-column: span 2; }
.roi-calc .roi-metric-unit { font-weight: 400; font-size: 10px; color: var(--text-light); }
.roi-calc .roi-calc-box .roi-form-group { margin-bottom: 8px; }
.roi-calc #roiBidStatus, .roi-calc #roiRoiStatus { margin-top: 4px; }
.roi-calc .roi-card .roi-form-row { margin-bottom: 12px; }
.roi-calc #roiSimAdCost { color: #1a1a2e; }
.roi-calc #roiProfitAdvice { margin-top: 10px; font-size: 12px; color: var(--text-light); text-align: center; }
.roi-calc .roi-strategy-box { background: var(--theme-bg); border-radius: 12px; padding: 14px 16px; margin-top: 10px; }
.roi-calc .roi-strategy-box .title { font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.roi-calc .roi-strategy-box ul { list-style: none; padding: 0; font-size: 12px; color: var(--text-light); line-height: 1.7; }
.roi-calc .roi-strategy-box ul li::before { content: "▸ "; color: var(--theme); font-weight: 700; }
.roi-calc .roi-warning-box { margin-top: 12px; background: #fff5f5; border-radius: 12px; padding: 12px 16px; border-left: 4px solid var(--danger); }
.roi-calc .roi-warning-box .title { font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 4px; }
.roi-calc .roi-warning-box ul { list-style: none; padding: 0; margin-top: 4px; font-size: 12px; color: var(--text-light); line-height: 1.8; }

.roi-calc .roi-footer-note { text-align: center; font-size: 11px; color: var(--text-light); margin-top: 20px; opacity: 0.7; }

/* ===== 底部工具箱 ===== */
.toolkit-summary {
    background: #eaf1fb;
    border-radius: 20px;
    padding: 22px 26px 20px;
    margin-top: 28px;
}
.toolkit-summary h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
}
.toolkit-summary .tool-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #d7e2ef;
}
.toolkit-summary .tool-group:last-child { border-bottom: none; }
.toolkit-summary .tool-group .cat {
    background: #1a3a5e;
    color: #fff;
    padding: 4px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-right: 14px;
    flex-shrink: 0;
}
.toolkit-summary .tool-group .item {
    background: #fff;
    padding: 4px 16px;
    border-radius: 30px;
    border: 1px solid #c9d8ea;
    color: #0b2a47;
    font-size: 13px;
    margin: 4px 10px 4px 0;
    display: inline-block;
}
.toolkit-summary .ai-tip {
    margin-top: 16px;
    font-size: 13px;
    background: #ffffff;
    border-radius: 14px;
    padding: 12px 18px;
    color: #1b3b5c;
    border: 1px solid #d7e2ef;
}
.cost-summary {
    margin-top: 16px;
    background: #f0f7ff;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 14px;
    border: 1px solid #b8d0e8;
}
.cost-summary strong { color: #0b1f33; }
.cost-summary h4 { font-size: 15px; margin-bottom: 8px; }
.cost-summary .cost-summary-note { margin-top: 6px; font-size: 13px; color: #4a6a8a; }
.cost-summary .must { color: #1a7a4a; }
.cost-summary .optional { color: #b17a3a; }
.cost-summary .recommend { color: #b14a3a; }

/* ===== 回本预估 ===== */
.roi-section {
    margin-top: 28px;
    background: #f8faff;
    border-radius: 20px;
    padding: 22px 26px 20px;
    border: 1px solid #d7e2ef;
}
.roi-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}
.roi-section .sub {
    font-size: 14px;
    color: #4a627a;
    margin-bottom: 16px;
}
.roi-section .roi-result {
    background: #e6f2e6;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #1a5a2a;
    display: inline-block;
    margin-bottom: 16px;
}
.chart-wrapper {
    width: 100%;
    position: relative;
    margin-top: 8px;
}
.chart-legend { margin-top: 12px; font-size: 13px; color: #4a627a; }
.chart-legend-item { display: inline-block; margin-right: 20px; }
.chart-legend-bar { display: inline-block; width: 12px; height: 3px; vertical-align: middle; margin-right: 6px; }
.chart-legend .cost-bar { background: #e74c3c; }
.chart-legend .revenue-bar { background: #2ecc71; }
.chart-legend .be-bar { background: #f39c12; }
#roiChart {
    width: 100%;
    height: auto;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e7edf6;
    display: block;
}

/* ===== ROI计算器触发按钮 ===== */
.btn-roi-calculator {
    display: inline-block;
    background: #0b1a33;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 18px;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(11,26,51,0.2);
}
.btn-roi-calculator:hover {
    background: #1f3a5f;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11,26,51,0.3);
}
.btn-roi-calculator:active {
    transform: translateY(0);
}

.footer {
    margin-top: 34px;
    text-align: center;
    color: #4a627a;
    font-size: 13px;
    border-top: 1px solid #e7edf6;
    padding-top: 22px;
}
.footer strong { color: #0b1a33; }

/* ===== 响应式（主页面 + ROI 计算器） ===== */
/* 平板及以下 */
@media (max-width: 700px) {
    .container { padding: 18px 14px 28px; }
    .header h1 { font-size: 20px; }
    .header h1 small { font-size: 12px; padding: 2px 12px; }
    .header-badge { font-size: 11px; padding: 4px 12px; }
    .tab-btn { padding: 10px 14px 12px; font-size: 13px; gap: 4px; flex: 1 0 auto; justify-content: center; }
    .tab-btn .day-range { font-size: 10px; padding: 0 8px; }
    .tab-btn .step-icon { font-size: 15px; }
    .day-card-header { padding: 12px 16px; flex-wrap: wrap; }
    .day-card-body { padding: 0 16px 16px 16px; }
    .meta-info { margin: 0 16px 8px 16px; padding: 6px 12px; gap: 10px; flex-direction: column; align-items: flex-start; }
    .day-card-body li { font-size: 13.5px; }
    .phase-goal { font-size: 14px; padding: 14px 16px; }
    .expected-result { font-size: 13px; padding: 12px 16px; }
    .toolkit-summary { padding: 18px 16px; }
    .modal-box { padding: 20px 18px; }
    .modal-box.roi-modal { max-width: 100%; width: 100%; height: 100vh; max-height: 100vh; border-radius: 0; }
    .modal-box.roi-modal .roi-scroll-wrap { max-height: 100vh; padding: 12px 14px 30px; }
    .modal-box.roi-modal .modal-close {
        position: fixed; top: 10px; right: 10px; z-index: 30;
        width: 36px; height: 36px; font-size: 22px;
        background: rgba(255,255,255,0.9); border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    }
    .roi-section { padding: 18px 16px; }

    /* ROI 计算器移动端适配 */
    .roi-calc .roi-header { flex-direction: column; align-items: stretch; }
    .roi-calc .roi-platform-switch { align-self: stretch; }
    .roi-calc .roi-platform-switch button { flex: 1; text-align: center; padding: 8px 10px; font-size: 13px; }
    .roi-calc .roi-form-row { grid-template-columns: 1fr; }
    .roi-calc .roi-metrics { grid-template-columns: 1fr 1fr; }
    .roi-calc .roi-metrics .roi-metric:last-child { grid-column: span 2; }
    .roi-calc .roi-calc-grid { grid-template-columns: 1fr; }
    .roi-calc .roi-profit-sim { grid-template-columns: 1fr 1fr; }
    .roi-calc .roi-profit-sim .item:last-child { grid-column: span 2; }
    .roi-calc .roi-guide-grid { grid-template-columns: 1fr; }
    .roi-calc .roi-guide-step { grid-column: auto !important; }
    .roi-calc .roi-form-full { grid-column: auto !important; }
    .phase-goal-meta { display: block; margin-left: 0; margin-top: 6px; }
    .roi-calc .roi-card { padding: 14px 12px; }
    .roi-calc .roi-card-title { font-size: 14px; }
    .roi-calc .roi-metric .num { font-size: 20px; }
    .roi-calc .roi-calc-box .result { font-size: 18px; }
    .roi-calc .roi-profit-sim .item .val { font-size: 18px; }
    .roi-calc .roi-form-group input { font-size: 16px; padding: 10px 12px; } /* 防止 iOS 自动缩放 */
}
/* 手机小屏 */
@media (max-width: 480px) {
    .tabs-nav { gap: 4px; }
    .tab-btn { padding: 8px 10px 10px; font-size: 12px; flex: 1 1 45%; }
    .tab-btn .step-icon { display: none; }
    .btn-tools { margin-left: 0; width: 100%; text-align: center; }
    .btn-roi-calculator { width: 100%; text-align: center; }
    .roi-calc .roi-metrics { grid-template-columns: 1fr 1fr; }
    .roi-calc .roi-metrics .roi-metric:last-child { grid-column: span 2; }
    .roi-calc .roi-profit-sim { grid-template-columns: 1fr; }
    .roi-calc .roi-profit-sim .item:last-child { grid-column: span 1; }
    .modal-box.roi-modal .modal-close { position: fixed; top: 6px; right: 8px; width: 32px; height: 32px; font-size: 18px; z-index: 30; }
}