/* ============================================================
 * 翔哥学习空间 · 样式
 * 字号体系：html[data-fs] 切换 root rem，全站用 rem 联动
 * ============================================================ */
:root {
  --ink: #1f2430;
  --ink-2: #4a5263;
  --ink-3: #7b8496;
  --line: #e8ebf1;
  --bg: #f4f6fb;
  --card: #ffffff;
  --brand: #4f6ef7;
  --brand-d: #3b55d9;
  --radius: 16px;
  --shadow: 0 2px 14px rgba(31, 36, 48, 0.07);
  --shadow-hi: 0 10px 30px rgba(31, 36, 48, 0.12);
}
html[data-fs="small"] { font-size: 15px; }
html[data-fs="base"]  { font-size: 17px; }
html[data-fs="large"] { font-size: 19px; }
html { font-size: 17px; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { line-height: 1.35; margin: 0; color: var(--ink); }
p { margin: 0 0 .5rem; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding-left: 1.35rem; }
code {
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  background: #eef1f8; border-radius: 5px; padding: 1px 6px; font-size: .9em;
}

/* ============ 布局骨架 ============ */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 262px; flex: 0 0 262px;
  background: linear-gradient(180deg, #20294a 0%, #2b3563 100%);
  color: #dfe5ff;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}
.main-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content {
  flex: 1; width: 100%; max-width: 1080px;
  margin: 0 auto; padding: 1.4rem 1.6rem 2.4rem;
  display: flex; flex-direction: column; gap: 1.1rem;
}
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.4rem;
}
.card h2 { font-size: 1.28rem; margin-bottom: .9rem; display: flex; align-items: center; gap: .4rem; }
.card h3 { font-size: 1.06rem; margin-bottom: .4rem; }

/* ============ 侧边栏 ============ */
.brand {
  display: flex; align-items: center; gap: .7rem;
  padding: 1.1rem 1.05rem; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.brand-logo {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, #6d86ff, #4f6ef7);
  color: #fff; font-size: 1.5rem; font-family: "STKaiti", "KaiTi", serif;
  display: grid; place-items: center; font-weight: 700;
}
.brand-title { font-weight: 700; font-size: 1.06rem; color: #fff; }
.brand-sub { font-size: .76rem; color: #9aa6d8; margin-top: 2px; }

.side-block { padding: .7rem .7rem .2rem; }
.side-caption {
  font-size: .74rem; color: #8d97c6; letter-spacing: .08em;
  padding: .35rem .55rem;
}
.side-link {
  display: flex; align-items: center; gap: .55rem;
  width: 100%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.08); color: #fff;
  padding: .68rem .8rem; border-radius: 10px;
  font-size: .96rem; font-weight: 600;
}
.side-link:hover { background: rgba(255,255,255,.16); }

.day-group {
  font-size: .72rem; color: #848ec0;
  padding: .65rem .55rem .25rem;
}
.day-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .55rem; border-radius: 10px;
  margin-bottom: 2px;
}
.day-item:hover { background: rgba(255,255,255,.08); }
.day-item.active { background: var(--brand); box-shadow: 0 4px 12px rgba(79,110,247,.4); }
.day-item.locked { opacity: .45; cursor: default; }
.di-no {
  font-size: .72rem; font-weight: 700; color: #aeb9ec;
  background: rgba(255,255,255,.1); border-radius: 6px;
  padding: 2px 6px; flex: none; min-width: 52px; text-align: center;
}
.day-item.active .di-no { background: rgba(255,255,255,.22); color: #fff; }
.di-meta { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.di-meta b { font-size: .82rem; color: #eef1ff; font-weight: 600; }
.di-meta i { font-size: .74rem; color: #a3aedc; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.di-lock { margin-left: auto; font-size: .8rem; }

.side-foot {
  margin-top: auto; padding: .9rem 1.1rem;
  font-size: .72rem; color: #7d88bb; line-height: 1.7;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* ============ 顶栏 ============ */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: .9rem;
  padding: .7rem 1.4rem;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.menu-btn { display: none; }
.icon-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 10px;
  width: 42px; height: 42px; font-size: 1.15rem; cursor: pointer;
}
.search-box { position: relative; flex: 1; max-width: 560px; }
.search-box > .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: .95rem; }
.search-box input {
  width: 100%; padding: .7rem .9rem .7rem 2.5rem;
  border: 1.5px solid var(--line); border-radius: 12px;
  font-size: .98rem; background: #f7f9fd; outline: none;
}
.search-box input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(79,110,247,.12); }
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-hi); overflow: hidden; z-index: 60;
  max-height: 60vh; overflow-y: auto;
}
.sr-item { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border-bottom: 1px solid #f0f2f7; }
.sr-item:hover { background: #f5f7ff; }
.sr-tag { color: #fff; font-size: .74rem; font-weight: 700; border-radius: 6px; padding: 2px 8px; flex: none; }
.sr-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sr-text b { font-size: .92rem; }
.sr-text i { font-size: .78rem; color: var(--ink-3); font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-day { font-size: .74rem; color: var(--ink-3); flex: none; }
.sr-empty { padding: 1rem; color: var(--ink-3); font-size: .9rem; }

.top-actions { display: flex; align-items: center; gap: .7rem; margin-left: auto; }
.font-switch { display: flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.font-switch button {
  border: 0; background: #fff; padding: .42rem .6rem; cursor: pointer;
  font-size: .85rem; color: var(--ink-2);
}
.font-switch button.on { background: var(--brand); color: #fff; }
.btn-print {
  border: 0; cursor: pointer;
  background: linear-gradient(135deg, #6d86ff, #4f6ef7);
  color: #fff; font-size: .92rem; font-weight: 600;
  padding: .62rem 1rem; border-radius: 11px;
  box-shadow: 0 4px 12px rgba(79,110,247,.3);
}
.btn-print:hover { transform: translateY(-1px); }

.foot { text-align: center; color: var(--ink-3); font-size: .76rem; padding: .6rem 1rem 1.4rem; }
.empty { padding: 3rem; text-align: center; color: var(--ink-3); }

/* ============ 总纲：Hero ============ */
.hero { padding: 0; overflow: hidden; position: relative; }
.hero-img { width: 100%; height: 270px; object-fit: cover; display: block; }
.hero-body { padding: 1.3rem 1.5rem 1.5rem; }
.kicker { color: var(--brand); font-weight: 700; font-size: .85rem; letter-spacing: .04em; }
.hero-body h1 { font-size: 1.7rem; margin: .35rem 0 .7rem; }
.hero-lines { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .35rem; }
.hero-lines li { padding-left: 1.5rem; position: relative; color: var(--ink-2); font-size: .98rem; }
.hero-lines li::before { content: "✅"; position: absolute; left: 0; top: 1px; font-size: .85rem; }

/* ============ 通用表格 ============ */
.table-scroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tbl th, .tbl td { padding: .58rem .7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { background: #f5f7fd; font-weight: 700; white-space: nowrap; }
.tbl tr:hover td { background: #fafbff; }
.t-sub { font-weight: 700; white-space: nowrap; }
.t-target { color: var(--brand-d); font-weight: 700; white-space: nowrap; }
.score-tbl td:nth-child(2) { text-align: center; }
.ok { color: #15803d; }
.bad { color: #b91c1c; }

/* 升学路径 */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.mini-card { border: 1.5px solid var(--line); border-radius: 14px; padding: .95rem 1rem; background: #fff; }
.mini-card.hot { border-color: #ffd486; background: linear-gradient(180deg, #fffaf0, #fff); }
.mc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.mc-no { width: 26px; height: 26px; border-radius: 8px; background: #eef1fb; color: var(--brand-d); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.mc-badge { background: #f59e0b; color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.mini-card h3 { font-size: 1rem; margin-bottom: .3rem; }
.mini-card p { font-size: .84rem; color: var(--ink-2); margin: 0; }

/* 里程碑 */
.mile-wrap { display: flex; flex-direction: column; gap: 1rem; }
.mile-phase { border-left: 4px solid var(--brand); padding-left: 1rem; }
.mile-head { display: flex; align-items: baseline; gap: .7rem; margin-bottom: .5rem; }
.mile-head b { font-size: 1.02rem; }
.mile-head span { color: var(--ink-3); font-size: .82rem; }
.mile-rows { display: flex; flex-direction: column; gap: .45rem; }
.mile-row { display: flex; gap: .9rem; align-items: flex-start; }
.mile-t { flex: none; width: 64px; font-weight: 700; color: var(--brand-d); font-size: .88rem; padding-top: 2px; }
.mile-c { display: flex; flex-direction: column; font-size: .9rem; }
.mile-c b { font-weight: 600; }
.mile-c i { font-style: normal; color: var(--ink-3); font-size: .82rem; }

/* 周课表 */
.sched-tbl { min-width: 720px; }
.sched-tbl th { text-align: center; }
.sched-tbl td { text-align: center; font-size: .83rem; padding: .5rem .35rem; }
.sched-tbl .col-time { background: #f5f7fd; font-weight: 700; }
.c-en { background: #f1f9f3; } .c-ma { background: #eef4ff; } .c-zh { background: #fdf1f0; }
.c-ph { background: #f6f1fe; } .c-ch { background: #ecf9fc; } .c-pe { background: #fff7e8; }
.c-daily { background: #f3f4f8; }

/* 五科策略 */
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: .85rem; }
.strat-card { border: 1px solid var(--line); border-radius: 14px; padding: .95rem .9rem; background: #fff; }
.strat-badge { color: #fff; font-weight: 700; border-radius: 8px; padding: 2px 9px; font-size: .8rem; }
.strat-card h3 { margin: .55rem 0 .3rem; font-size: 1rem; }
.strat-card p { font-size: .83rem; color: var(--ink-2); margin: 0; }

/* 用法 */
.usage ol { display: flex; flex-direction: column; gap: .4rem; color: var(--ink-2); font-size: .95rem; }

/* ============ 每日视图 ============ */
.day-head { padding: 1.15rem 1.4rem; }
.dh-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.dh-no { color: var(--ink-3); font-size: .85rem; font-weight: 600; letter-spacing: .03em; }
.day-head h1 { font-size: 1.45rem; margin-top: .2rem; }
.dh-prog { width: 230px; }
.dh-prog span { font-size: .76rem; color: var(--ink-3); }
.prog { height: 10px; background: #eceff6; border-radius: 999px; overflow: hidden; margin-bottom: 3px; }
.prog i { display: block; height: 100%; background: linear-gradient(90deg, #6d86ff, #4f6ef7); border-radius: 999px; transition: width .3s; }

.tabbar { display: flex; gap: .55rem; margin-top: .95rem; flex-wrap: wrap; }
.tab {
  padding: .5rem 1.5rem; border-radius: 12px 12px 0 0;
  background: #f1f3f9; color: var(--ink-2);
  font-size: 1.02rem; border-bottom: 3px solid transparent;
}
.tab b { font-weight: 700; }
.tab.on { background: #fff; color: var(--sc); border-bottom-color: var(--sc); box-shadow: 0 -2px 8px rgba(0,0,0,.03); }
.tab:hover { background: #e8ecf7; }
.tab.on:hover { background: #fff; }

/* 学科面板：屏上只显示当前 Tab；打印时三科全部展开 */
.tab-panel { display: none; }
.tab-panel.on { display: block; }
.panel-sub-head { display: none; }

.focus {
  background: #fff8e6; border: 1px solid #ffe3a3; color: #7a5410;
  border-radius: 12px; padding: .7rem 1rem; font-size: .95rem; margin-bottom: 1.1rem;
}
.block-title { font-size: 1.14rem; margin: 1.3rem 0 .75rem; }

/* 英语词卡 */
.word-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .95rem; }
.word-card {
  background: #fff; border: 1.5px solid #dcefe1; border-top: 4px solid var(--en, #16a34a);
  border-radius: 14px; padding: 1rem 1.1rem 1.1rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.wc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.wc-w { display: flex; align-items: baseline; gap: .5rem; }
.wc-no { background: #e7f6ec; color: #15803d; border-radius: 7px; font-size: .78rem; font-weight: 700; padding: 1px 7px; }
.wc-w h3 { font-size: 1.42rem; letter-spacing: .01em; }
.wc-phon { color: var(--ink-2); font-size: .92rem; margin: .25rem 0 .6rem; }
.wc-phon .pos { color: #15803d; font-weight: 700; }
.wc-phon .cn { color: var(--ink); }
.wc-lab { font-size: .76rem; font-weight: 700; color: #15803d; letter-spacing: .08em; margin-top: .45rem; }
.ex-en { font-size: .95rem; margin-bottom: 1px; }
.ex-zh { font-size: .85rem; color: var(--ink-3); margin-bottom: .35rem; }
.dots { margin: .15rem 0 .2rem; display: flex; flex-direction: column; gap: 2px; }
.dots li { font-size: .88rem; color: var(--ink-2); }
.warn {
  margin-top: .55rem; background: #fef2f2; border-left: 3px solid #ef4444;
  border-radius: 0 8px 8px 0; padding: .45rem .7rem; font-size: .84rem; color: #991b1b;
}
.mnem { margin-top: .4rem; font-size: .84rem; color: #6d4c00; background: #fff8e6; border-radius: 8px; padding: .4rem .7rem; }

/* 打卡勾选 */
.chk {
  border: 1.5px solid #c9d2e3; background: #fff; border-radius: 999px;
  font-size: .78rem; color: var(--ink-3); padding: .18rem .6rem .18rem .35rem;
  display: inline-flex; align-items: center; gap: .25rem; cursor: pointer; flex: none;
}
.chk .box {
  width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #c9d2e3;
  display: grid; place-items: center; color: transparent; font-size: .65rem;
}
.chk.done { background: #e9f9ef; border-color: #16a34a; color: #15803d; font-weight: 700; }
.chk.done .box { background: #16a34a; border-color: #16a34a; color: #fff; }

/* 问答 / 答案折叠 */
.qa-card { display: flex; flex-direction: column; gap: .8rem; }
.qa-row { border-bottom: 1px dashed var(--line); padding-bottom: .65rem; }
.qa-q { display: block; font-size: .96rem; margin-bottom: .35rem; }
.write-line { border-bottom: 1.5px solid #dfe4ee; height: 1.5rem; margin-bottom: .45rem; }
.reveal {
  border: 1.5px solid var(--brand); background: #fff; color: var(--brand-d);
  border-radius: 999px; padding: .3rem 1rem; font-size: .85rem; cursor: pointer; font-weight: 600;
}
.reveal:hover, .reveal.open { background: var(--brand); color: #fff; }
.ans { margin-top: .6rem; background: #f5f8ff; border-radius: 10px; padding: .7rem .95rem; font-size: .92rem; }
.ans-line { margin-top: .5rem; font-size: .94rem; }
.steps { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .25rem; }
.steps li { font-size: .92rem; }

/* 数学 */
.goals { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .5rem; }
.goals li { font-size: .95rem; }
.concept-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; }
.concept-card { background: #f7f9ff; border: 1px solid #e1e9ff; border-radius: 12px; padding: .85rem 1rem; }
.concept-card h4 { color: var(--brand-d); font-size: 1rem; margin-bottom: .25rem; }
.concept-card p { font-size: .9rem; color: var(--ink-2); margin: 0; }
.ex-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .95rem 1.15rem; margin-bottom: .8rem; box-shadow: var(--shadow); }
.ex-q { font-size: .98rem; }
.ex-chk { float: right; }
.tip-card { background: #fff8e6; border: 1px solid #ffe3a3; font-size: .92rem; color: #7a5410; margin-top: .8rem; }

/* 语文 */
.poem-card {
  background: linear-gradient(180deg, #fbf7ef, #fff);
  border: 1px solid #ecdfc6; border-radius: 16px;
  padding: 1rem; box-shadow: var(--shadow); margin-bottom: 1rem;
  display: grid; grid-template-columns: 300px 1fr; gap: 1.2rem; align-items: center;
}
.poem-img { width: 100%; border-radius: 12px; display: block; }
.poem-lines { text-align: center; font-family: "STKaiti", "KaiTi", "FangSong", serif; }
.poem-lines p { font-size: 1.35rem; line-height: 2.1; margin: 0; letter-spacing: .06em; color: #3a2c12; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: .95rem; margin-bottom: .95rem; }
.sub-card { box-shadow: var(--shadow); }
.sub-card h3 { margin-bottom: .55rem; }
.notes { display: flex; flex-direction: column; gap: .3rem; }
.notes li { font-size: .9rem; }
.trans { font-size: .92rem; color: var(--ink-2); margin: 0; }
.warn-block { background: #fef2f2; border-radius: 8px; padding: .5rem .8rem; font-size: .88rem; color: #991b1b; margin: .7rem 0 0; }
.passage p { text-indent: 2em; font-size: .98rem; margin-bottom: .55rem; }
.mini-tbl td { font-size: .88rem; }
.fw-type { font-weight: 700; color: #c0392b; white-space: nowrap; width: 110px; }
.basic-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; }
.basic-card { background: #fdf1f0; border: 1px solid #f6d9d5; border-radius: 12px; padding: .7rem .8rem; }
.basic-card b { color: #c0392b; font-size: 1rem; }
.basic-card p { font-size: .82rem; color: var(--ink-2); margin: .2rem 0 0; }
.material-card { background: #fff8e6; border: 1px solid #ffe3a3; font-size: .92rem; color: #7a5410; margin-top: .9rem; }
.tomorrow { background: #f2f5ff; border: 1px solid #d9e1ff; font-size: .92rem; color: #32468f; }

/* ============ 史哲情商 ============ */
.hist-card {
  background: #fff; border: 1px solid #f0e2c8; border-left: 5px solid #b45309;
  border-radius: 12px; padding: .85rem 1rem; margin-bottom: .8rem; box-shadow: var(--shadow);
}
.hist-top { display: flex; align-items: center; gap: .6rem; margin-bottom: .35rem; }
.hist-top h3 { font-size: 1.06rem; margin: 0; color: #5a2e05; }
.hist-date {
  flex: none; background: #b45309; color: #fff; font-size: .78rem; font-weight: 700;
  border-radius: 7px; padding: 2px 8px; letter-spacing: .02em;
}
.hist-en { font-size: .86rem; color: #6b5a3e; font-style: italic; margin: .15rem 0 .45rem; }
.hist-body { font-size: .95rem; line-height: 1.85; margin: 0 0 .5rem; }
.hist-think {
  background: #fdf3e7; border-radius: 9px; padding: .5rem .8rem;
  font-size: .88rem; color: #7c4a13;
}

.ph-card {
  background: linear-gradient(180deg, #fdfaf4, #fff);
  border: 1px solid #e9ddc4; border-radius: 16px;
  padding: 1rem 1.15rem; margin-bottom: 1rem; box-shadow: var(--shadow);
}
.ph-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.ph-ico {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  font-size: 1.35rem; background: #f5ead6; border-radius: 50%;
}
.ph-head h3 { margin: 0; font-size: 1.15rem; color: #5a2e05; }
.ph-head i { display: block; font-style: normal; font-size: .8rem; color: #9a7b4f; margin-top: 1px; }
.ph-quote {
  font-family: "STKaiti", "KaiTi", serif; font-size: 1.2rem; color: #3a2c12;
  margin: .35rem 0 .15rem; letter-spacing: .04em;
}
.ph-quote-en { font-size: .88rem; color: #8a6d3b; font-style: italic; margin: 0 0 .6rem; }
.ph-body { font-size: .95rem; line-height: 1.9; color: var(--ink); }
.ph-life {
  margin-top: .55rem; font-size: .9rem; color: #7c4a13;
  background: #fdf3e7; border-radius: 9px; padding: .5rem .8rem;
}
.ph-en {
  margin-top: .65rem; background: #f5f8ff; border: 1px solid #e2e9fb;
  border-radius: 10px; padding: .6rem .85rem;
}
.ph-en .en-flag, .hpe-en-flag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  color: #3250a8; background: #e3ebfd; border-radius: 6px; padding: 1px 7px; margin-bottom: .3rem;
}
.ph-en p { margin: 0; font-size: .88rem; line-height: 1.8; color: #33415c; }

.eq-card { border-top: 4px solid #db2777; }
.eq-scene { font-size: .96rem; font-weight: 600; color: #831843; margin: 0 0 .7rem; }
.eq-lines { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .75rem; }
.eq-msg { display: flex; gap: .5rem; align-items: flex-start; max-width: 88%; }
.eq-msg p {
  margin: 0; background: #f3f4f8; border-radius: 4px 12px 12px 12px;
  padding: .45rem .75rem; font-size: .92rem; line-height: 1.6;
}
.eq-msg.me { align-self: flex-end; flex-direction: row-reverse; }
.eq-msg.me p { background: #fce7f3; color: #831843; border-radius: 12px 4px 12px 12px; }
.eq-who { flex: none; font-size: .76rem; color: var(--ink-3); margin-top: .35rem; min-width: 3.2em; text-align: center; }
.eq-compare { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: .7rem; }
.eq-resp { border-radius: 11px; padding: .65rem .8rem; }
.eq-resp.bad { background: #fef2f2; border: 1px solid #f6c9c9; }
.eq-resp.good { background: #ecfdf3; border: 1px solid #b7e4c7; }
.er-tag { font-size: .8rem; font-weight: 700; margin-bottom: .3rem; }
.eq-resp.bad .er-tag { color: #b91c1c; }
.eq-resp.good .er-tag { color: #15803d; }
.eq-resp p { margin: 0 0 .3rem; font-size: .93rem; line-height: 1.7; }
.eq-resp i { font-style: normal; font-size: .82rem; color: var(--ink-2); display: block; }
.eq-pattern {
  background: #fdf2f8; border: 1px dashed #f0a8c8; border-radius: 10px;
  padding: .55rem .8rem; font-size: .9rem; color: #9d174d; margin-bottom: .55rem;
}
.eq-en { font-size: .88rem; color: #33415c; background: #f5f8ff; border-radius: 9px; padding: .5rem .8rem; }

.mind-card { border-top: 4px solid #db2777; }
.mind-card.goal { border-top-color: #b45309; }
.mind-head h3 { margin: 0 0 .5rem; font-size: 1.12rem; color: #5a2e05; }
.mind-head h3 span { font-size: .82rem; color: #9a7b4f; font-weight: 500; margin-left: .4rem; }
.mind-why { font-size: .95rem; line-height: 1.85; margin: 0 0 .6rem; }
.mind-steps { margin: 0 0 .65rem 1.2rem; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.mind-steps li { font-size: .93rem; line-height: 1.7; }
.mind-practice {
  background: #fdf3e7; border-radius: 9px; padding: .55rem .8rem;
  font-size: .9rem; color: #7c4a13; margin-bottom: .55rem;
}
.mind-card.emo .mind-practice { background: #fdf2f8; color: #9d174d; }
.mind-en { font-size: .88rem; color: #33415c; background: #f5f8ff; border-radius: 9px; padding: .5rem .8rem; }

/* 原创微型阅读（中英双读） */
.read-card {
  background: linear-gradient(180deg, #fdfaf3, #fff);
  border: 1px solid #ecdfc6; border-top: 4px solid #b45309;
  border-radius: 16px; padding: 1.15rem 1.3rem; box-shadow: var(--shadow);
}
.read-head { text-align: center; margin-bottom: .8rem; }
.read-head h3 {
  margin: 0; font-size: 1.3rem; letter-spacing: .12em; color: #5a2e05;
  font-family: "STKaiti", "KaiTi", serif;
}
.read-head i {
  display: block; font-style: italic; font-size: .85rem; color: #9a7b4f;
  margin-top: .15rem; letter-spacing: .04em;
}
.read-cn p {
  font-family: "STSong", "SimSun", "Songti SC", serif;
  font-size: 1.02rem; line-height: 2.15; color: #33281a;
  text-indent: 2em; margin: 0 0 .55rem;
}
.read-cn p:last-child { margin-bottom: .8rem; }
.read-en {
  border-top: 1px dashed #e3d3b2; padding-top: .75rem;
}
.read-en .en-flag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  color: #3250a8; background: #e3ebfd; border-radius: 6px; padding: 1px 7px; margin-bottom: .45rem;
}
.read-en p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: .97rem; line-height: 2; color: #3a342a;
  margin: 0 0 .6rem;
}
.read-en p:last-child { margin-bottom: .2rem; }
.read-tip {
  margin-top: .75rem; background: #fdf3e7; border-radius: 9px;
  padding: .5rem .8rem; font-size: .84rem; color: #7c4a13;
}

.scrim { display: none; }

/* ============ 响应式 ============ */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .word-grid { grid-template-columns: 1fr; }
  .concept-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .basic-grid { grid-template-columns: repeat(2, 1fr); }
  .poem-card { grid-template-columns: 1fr; }
  .poem-img { max-height: 220px; object-fit: cover; }
  .entry-layout { grid-template-columns: 1fr; }
  .entry-form { grid-template-columns: 1fr; }
  .rv-grade { flex-direction: column; }
  .rv-front h2 { font-size: 1.7rem; }
  .eq-compare { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .sidebar {
    position: fixed; left: 0; top: 0; z-index: 80;
    transform: translateX(-105%); transition: transform .25s ease;
    box-shadow: var(--shadow-hi);
  }
  .sidebar.open { transform: translateX(0); }
  .menu-btn { display: block; }
  .scrim {
    display: block; position: fixed; inset: 0; z-index: 70;
    background: rgba(20,26,45,.45); border: 0;
  }
  .content { padding: 1rem .9rem 1.8rem; }
  .hero-img { height: 190px; }
  .hero-body h1 { font-size: 1.35rem; }
  .topbar { padding: .6rem .8rem; gap: .55rem; }
  .btn-print { padding: .55rem .7rem; font-size: .82rem; }
  .font-switch button { padding: .35rem .45rem; }
  .dh-prog { width: 100%; order: 3; }
  .dh-top { align-items: flex-start; }
  .poem-lines p { font-size: 1.2rem; }
}

/* ============ 侧栏角标 / 同步按钮 ============ */
.side-link { margin-bottom: 4px; }
.side-link.active { background: var(--brand); box-shadow: 0 4px 12px rgba(79,110,247,.4); }
.nav-badge {
  margin-left: auto; background: #ef4444; color: #fff;
  font-size: .72rem; font-weight: 700; border-radius: 999px;
  min-width: 20px; height: 20px; line-height: 20px; text-align: center; padding: 0 6px;
}
.btn-sync {
  border: 0; cursor: pointer; position: relative;
  background: linear-gradient(130deg, #22c55e, #15803d);
  color: #fff; font-size: .92rem; font-weight: 600;
  padding: .62rem 1rem; border-radius: 11px;
  box-shadow: 0 4px 12px rgba(22,163,74,.28);
}
.btn-sync:hover { transform: translateY(-1px); }
.btn-sync:disabled { opacity: .7; cursor: default; transform: none; }
.sync-dot {
  position: absolute; top: -4px; right: -4px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #f59e0b; border: 2px solid #fff;
}

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 16px);
  background: #1f2937; color: #fff; font-size: .92rem;
  padding: .7rem 1.2rem; border-radius: 12px; box-shadow: var(--shadow-hi);
  opacity: 0; pointer-events: none; transition: all .25s; z-index: 200; max-width: 86vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { background: #15803d; }
.toast.err { background: #b91c1c; }

/* ============ 今日复习 ============ */
.rev-head h1 { font-size: 1.5rem; margin-bottom: .3rem; }
.rev-sub { color: var(--ink-3); font-size: .9rem; margin: 0 0 .8rem; }
.rev-stat { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .9rem; color: var(--ink-2); }
.rev-stat b { color: var(--brand-d); font-size: 1.15rem; margin: 0 3px; }
.rev-prog { margin-top: .7rem; }
.rev-card { max-width: 760px; margin: 0 auto; }
.rv-tags { display: flex; align-items: center; gap: .55rem; margin-bottom: 1rem; flex-wrap: wrap; }
.rv-src { font-size: .76rem; color: var(--ink-3); background: #f1f3f9; border-radius: 6px; padding: 2px 8px; }
.rv-no { margin-left: auto; font-size: .82rem; color: var(--ink-3); }
.rv-front { text-align: center; padding: 1.6rem 1rem 1.8rem; border-bottom: 1px dashed var(--line); }
.rv-front h2 { font-size: 2.1rem; letter-spacing: .02em; margin-bottom: .5rem; }
.rv-front h2.rv-pattern { font-size: 1.5rem; line-height: 1.6; }
.rv-phon { color: var(--ink-2); font-size: 1.02rem; margin-bottom: .8rem; }
.rv-cat { color: #c2410c; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; }
.rv-hint { color: var(--ink-3); font-size: .86rem; }
.rv-back { padding: 1.1rem .4rem .4rem; }
.rv-cn { font-size: 1.3rem; font-weight: 700; color: #15803d; text-align: center; margin-bottom: 1rem; }
.rv-poem { text-align: center; font-family: "STKaiti","KaiTi","FangSong",serif; color: #3a2c12; }
.rv-poem p { font-size: 1.35rem; line-height: 2.1; margin: 0; }
.rv-zh { font-size: 1.02rem; line-height: 1.9; }
.rv-actions { text-align: center; margin-top: 1rem; }
.reveal.used { opacity: .55; }
.rv-grade { display: flex; gap: .7rem; margin-top: .9rem; }
.rv-grade button {
  flex: 1; border: 1.5px solid var(--line); background: #fff; border-radius: 12px;
  padding: .7rem .4rem; font-size: 1rem; font-weight: 700; cursor: pointer;
  display: flex; flex-direction: column; gap: 2px; transition: transform .1s;
}
.rv-grade button span { font-size: .74rem; font-weight: 400; color: var(--ink-3); }
.rv-grade button:active { transform: scale(.97); }
.rv-grade .g-good { border-color: #16a34a; color: #15803d; }
.rv-grade .g-hard { border-color: #d97706; color: #b45309; }
.rv-grade .g-bad { border-color: #dc2626; color: #b91c1c; }
.rv-feedback { text-align: center; color: var(--brand-d); font-size: .98rem; padding: .9rem; }
.rev-done { max-width: 640px; margin: 0 auto; text-align: center; }
.rev-done h2 { font-size: 1.5rem; margin-bottom: .9rem; }
.done-row { display: flex; justify-content: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.done-row span { border-radius: 999px; padding: .4rem 1rem; font-size: .92rem; font-weight: 600; }
.g-good-pill { background: #e9f9ef; color: #15803d; }
.g-hard-pill { background: #fff7e6; color: #b45309; }
.g-bad-pill { background: #fef2f2; color: #b91c1c; }
.done-links { display: flex; gap: .7rem; justify-content: center; margin-top: 1rem; }
.done-links .tab { border-radius: 12px; border-bottom: 3px solid transparent; }
.rev-empty { max-width: 640px; margin: 0 auto; }
.rev-empty h1 { font-size: 1.5rem; margin-bottom: .6rem; }
.rev-empty p { color: var(--ink-2); margin-bottom: 1rem; }

/* ============ SRS 徽章 ============ */
.srs-badge {
  font-size: .74rem; font-weight: 600; border-radius: 999px;
  padding: 3px 10px; white-space: nowrap; flex: none;
}
.srs-badge.fresh { background: #eef4ff; color: #2f6fed; }
.srs-badge.due { background: #fef2f2; color: #b91c1c; }
.srs-badge.today { background: #fff7e6; color: #b45309; }
.srs-badge.waiting { background: #f1f3f9; color: var(--ink-3); }
.srs-badge.mastered { background: #e9f9ef; color: #15803d; }

/* ============ 录入台 ============ */
.entry-layout { display: grid; grid-template-columns: 1fr 300px; gap: 1.1rem; align-items: start; }
.entry-form-card h1 { font-size: 1.4rem; margin-bottom: .25rem; }
.type-tabs { display: flex; gap: .5rem; margin: .8rem 0; flex-wrap: wrap; }
.type-tab {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 999px; padding: .42rem 1.2rem; font-size: .95rem; cursor: pointer; font-weight: 600;
}
.type-tab:hover { border-color: var(--brand); }
.entry-form { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1rem; }
.fld { display: flex; flex-direction: column; gap: .25rem; }
.fld span { font-size: .82rem; color: var(--ink-2); font-weight: 600; }
.fld input, .fld textarea, .fld select {
  border: 1.5px solid var(--line); border-radius: 10px; padding: .55rem .7rem;
  font-size: .95rem; font-family: inherit; background: #fafbfe; outline: none; width: 100%;
}
.fld input:focus, .fld textarea:focus, .fld select:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(79,110,247,.1); }
.fld textarea { resize: vertical; }
.entry-actions { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.btn-primary {
  border: 0; cursor: pointer; font-weight: 700; font-size: .95rem; color: #fff;
  background: linear-gradient(130deg, #6d86ff, #4f6ef7);
  padding: .62rem 1.3rem; border-radius: 11px; box-shadow: 0 4px 12px rgba(79,110,247,.3);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  font-size: .9rem; color: var(--ink-2); padding: .6rem 1.1rem; border-radius: 11px;
  display: inline-flex; align-items: center;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-d); }
.file-btn { position: relative; }
.entry-side h3 { margin-bottom: .7rem; }
.ms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.ms-grid > div {
  background: #f5f7fd; border-radius: 10px; padding: .55rem .7rem;
  display: flex; flex-direction: column; align-items: center;
}
.ms-grid b { font-size: 1.3rem; color: var(--brand-d); line-height: 1.2; }
.ms-grid span { font-size: .75rem; color: var(--ink-3); }
.ms-grid .ms-due { background: #fef2f2; }
.ms-grid .ms-due b { color: #b91c1c; }
.sync-tip { margin-top: .8rem; font-size: .8rem; color: var(--ink-3); background: #f5f8ff; border-radius: 10px; padding: .65rem .8rem; line-height: 1.7; }

/* ============ 记忆库 ============ */
.lib-filters { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: .9rem; }
.chip {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: .32rem .9rem; font-size: .85rem; color: var(--ink-2); cursor: pointer;
}
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.lib-list { display: flex; flex-direction: column; gap: .5rem; }
.lib-row {
  display: flex; align-items: center; gap: .75rem;
  border: 1px solid var(--line); border-radius: 12px; padding: .6rem .85rem; background: #fff;
}
.lib-row:hover { border-color: #c9d5f5; background: #fafbff; }
.lib-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lib-main b { font-size: .98rem; }
.lib-main b i { color: var(--ink-3); font-weight: 400; font-style: normal; font-size: .84rem; }
.lib-main i { font-size: .82rem; color: var(--ink-3); font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-main small { font-size: .74rem; color: #9aa3b8; }
.lib-del { border: 0; background: none; cursor: pointer; font-size: 1rem; opacity: .55; flex: none; }
.lib-del:hover { opacity: 1; }
.lib-empty { color: var(--ink-3); padding: 1.4rem; text-align: center; }

/* ============ 打印（A4） ============ */
@page { size: A4; margin: 11mm 10mm; }
@media print {
  body { background: #fff; font-size: 11pt; }
  .sidebar, .topbar, .foot, .scrim, .tabbar, .reveal { display: none !important; }
  .entry-actions, .lib-filters, .lib-del, .rv-actions, .rv-grade, .rev-prog { display: none !important; }
  .entry-layout { display: block; }
  .rv-back { display: block !important; }
  .rv-back[hidden] { display: block !important; }
  .main-wrap { display: block; }
  .content { max-width: none; padding: 0; gap: 6mm; display: block; }
  .card, .word-card, .ex-card, .concept-card, .poem-card, .sub-card, .basic-card,
  .hist-card, .ph-card, .eq-card, .mind-card, .read-card {
    box-shadow: none; break-inside: avoid; page-break-inside: avoid;
  }
  .card { border: 1px solid #ccc; border-radius: 8px; padding: 4mm; margin-bottom: 4mm; }
  .day-head { border: 0; padding: 0 0 3mm; margin-bottom: 4mm; border-bottom: 2px solid #333; }
  .day-head h1 { font-size: 18pt; }
  .dh-prog { display: none; }
  .tab-panels, .tab-panel { display: block !important; }
  .panel-sub-head {
    display: block !important; font-size: 15pt; font-weight: 700;
    border-bottom: 2px solid currentColor; margin: 4mm 0 2.5mm; padding-bottom: 1.5mm;
    print-color-adjust: exact; -webkit-print-color-adjust: exact;
  }
  .word-grid { grid-template-columns: 1fr 1fr; gap: 3mm; }
  .word-card { border: 1px solid #bbb; padding: 3mm; }
  .concept-grid { grid-template-columns: 1fr 1fr; }
  /* 答案显隐由打印弹窗选择的版本决定（含答案版 / 空白练习版） */
  body:not([data-print-answers="hide"]) .ans,
  body:not([data-print-answers="hide"]) .ans[hidden] { display: block !important; background: #f3f3f3; }
  body[data-print-answers="hide"] .ans,
  body[data-print-answers="hide"] .ans[hidden] { display: none !important; }
  .chk { border-color: #999; }
  .chk.done .box { background: #333; border-color: #333; }
  .block-title { margin: 5mm 0 2.5mm; }
  .hero-img, .poem-img { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  /* 史哲情商卡片的底色与徽章在纸面保留 */
  .hist-date, .hist-think, .ph-ico, .ph-life, .ph-en, .eq-msg p, .eq-resp,
  .eq-pattern, .eq-en, .mind-practice, .mind-en, .ph-quote, .read-card,
  .read-en .en-flag, .read-tip {
    print-color-adjust: exact; -webkit-print-color-adjust: exact;
  }
  .eq-lines { gap: 2mm; }
  /* 打印范围弹窗本身永不出现在纸面；未勾选模块按稳定标记隐藏（须在 .tab-panel 规则之后） */
  .print-mask { display: none !important; }
  [data-print-hide] { display: none !important; }
}

/* ============ 打印范围设置弹窗（屏幕交互层） ============ */
.print-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(22, 28, 48, .5);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.print-mask[hidden] { display: none; }
.print-dialog {
  width: 580px; max-width: 100%; max-height: 88vh;
  background: #fff; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .35);
  display: flex; flex-direction: column; overflow: hidden;
}
.pd-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #eef0f6;
}
.pd-head h2 { font-size: 1.05rem; margin: 0; }
.pd-x {
  border: 0; background: #f1f3f9; width: 30px; height: 30px;
  border-radius: 50%; cursor: pointer; color: #66708a;
}
.pd-x:hover { background: #e6e9f2; }
.pd-body { padding: 14px 20px 4px; overflow-y: auto; }
.pd-group { margin-bottom: 8px; }
.pd-ghead { padding: 5px 0; border-bottom: 1px dashed #dfe3ee; margin-bottom: 5px; }
.pd-ghead label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: .98rem; }
.pd-mods {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px 14px; padding: 2px 0 2px 26px;
}
.pd-mods.pd-flat { padding-left: 0; }
.pd-opt {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: .87rem; color: #3c4358; padding: 4px 6px;
  border-radius: 7px; cursor: pointer; line-height: 1.35;
}
.pd-opt:hover { background: #f4f6fc; }
.pd-opt input { margin-top: 3px; flex: none; }
.pd-note {
  background: #f4f6fc; border: 1px solid #e3e8f6; border-radius: 10px;
  padding: 12px 14px; font-size: .88rem; color: #4a5268; line-height: 1.65;
}
.pd-mode { padding: 10px 20px 6px; border-top: 1px solid #eef0f6; margin-top: 6px; }
.pd-mode:empty { display: none; }
.pd-mode-title { font-size: .86rem; font-weight: 700; color: #3c4358; margin-bottom: 5px; }
.pd-radio {
  display: flex; gap: 8px; align-items: center;
  font-size: .88rem; padding: 4px 0; cursor: pointer;
}
.pd-foot {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-top: 1px solid #eef0f6; margin-top: 8px;
}
.pd-quick { display: flex; gap: 6px; }
.btn-sm { padding: 5px 10px !important; font-size: .8rem !important; }
.pd-tip { flex: 1; font-size: .75rem; color: #98a0b5; }
.pd-foot .btn-primary { padding: 8px 16px; }
.pd-foot .btn-ghost { padding: 8px 14px; }
#pdGo:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 560px) {
  .pd-mods { grid-template-columns: 1fr; }
  .pd-tip { display: none; }
}

/* ============ 独立打印文档（#printArea：复习清单 / 记忆库总表） ============ */
#printArea { display: none; }
.pa-head {
  text-align: center; border-bottom: 2px solid #333;
  padding-bottom: 8px; margin-bottom: 10px;
}
.pa-title { font-size: 19pt; font-weight: 800; letter-spacing: 2px; }
.pa-meta { font-size: 10pt; color: #333; margin-top: 5px; }
.pa-who { font-size: 10.5pt; margin: 8px 0 10px; }
.pa-item { break-inside: avoid; padding: 7px 0; border-bottom: 1px dashed #999; }
.pa-q { font-size: 11.5pt; line-height: 1.5; }
.pa-tag {
  display: inline-block; border: 1px solid #555; color: #000 !important;
  background: #eee !important; border-radius: 4px; padding: 0 6px;
  font-size: 9pt; margin-right: 4px;
  print-color-adjust: exact; -webkit-print-color-adjust: exact;
}
.pa-phon { color: #444; font-size: 10pt; font-weight: 400; }
.pa-ask { font-size: 10.5pt; margin: 5px 0 2px; color: #222; }
.pa-lines { margin-top: 2px; }
.pa-line { border-bottom: 1px solid #777; height: 23px; }
.pa-ans { margin-top: 5px; font-size: 10.5pt; line-height: 1.65; }
.pa-ans p { margin: 3px 0; }
.pa-poem { text-align: center; letter-spacing: 2px; }
.pa-note { color: #333; }
.pa-sec {
  font-size: 13pt; font-weight: 800; border-left: 4px solid #333;
  padding-left: 8px; margin: 12px 0 5px; break-after: avoid;
}
.pa-lib {
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
  padding: 4px 0; border-bottom: 1px dotted #aaa; break-inside: avoid; font-size: 10.5pt;
}
.pa-lib-main { min-width: 0; }
.pa-lib-main b { margin-right: 6px; }
.pa-lib-main i { font-style: normal; color: #333; }
.pa-status {
  flex: none; font-size: 9pt; color: #444; border: 1px solid #888;
  border-radius: 4px; padding: 0 6px; white-space: nowrap;
}
.pa-empty { text-align: center; color: #666; padding: 30px 0; }
@media print {
  body[data-print-area="1"] .app { display: none !important; }
  body[data-print-area="1"] #printArea { display: block !important; }
}
