/* ─────────────────────────────────────────
   小言讲粤语 · 移动端专用样式
   通过 media query 或 html.is-mobile 加载
   ───────────────────────────────────────── */

html {
  font-size: 16px;
}

body {
  background-attachment: scroll;
  padding-bottom: calc(3.75rem + env(safe-area-inset-bottom, 0));
}

.wrap {
  width: calc(100% - 1.25rem);
}

/* ── 顶栏：紧凑 ── */
.masthead-inner {
  padding: 0.65rem 0 0.55rem;
  gap: 0.65rem;
}

.logo-sub {
  display: none;
}

.logo-seal {
  width: 2.125rem;
  height: 2.125rem;
  font-size: 0.9375rem;
}

.logo-title {
  font-size: 1.0625rem;
}

.nav {
  display: none;
}

/* ── 底部 Tab 导航 ── */
.mobile-tabbar {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  margin: 0;
  padding: 0.35rem 0 calc(0.35rem + env(safe-area-inset-bottom, 0));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-top: 1px solid var(--rule-strong);
  box-shadow: 0 -4px 24px rgba(22, 38, 48, 0.08);
}

.mobile-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 3rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s ease;
}

.mobile-tab-icon {
  width: 1.375rem;
  height: 1.375rem;
  flex-shrink: 0;
  opacity: 0.72;
}

.mobile-tab[aria-current="page"] {
  color: var(--brand);
}

.mobile-tab[aria-current="page"] .mobile-tab-icon {
  opacity: 1;
}

.mobile-tab:active {
  color: var(--brand-deep);
}

/* ── 主内容 ── */
.main {
  padding: 1.25rem 0 2rem;
}

.kicker {
  font-size: 0.625rem;
  letter-spacing: 0.16em;
}

.display {
  font-size: 1.625rem;
  letter-spacing: 0.04em;
}

.display-sm {
  font-size: 1.5rem;
}

.lede {
  font-size: 0.875rem;
  line-height: 1.75;
}

.section-label {
  margin-bottom: 1rem;
}

/* ── 首页 Spotlight ── */
.spotlight {
  margin-bottom: 1.75rem;
}

.spotlight-card {
  padding: 1.25rem 1rem 1.15rem;
  border-radius: var(--radius);
  box-shadow: none;
  border-color: var(--rule-strong);
}

.spotlight-card:hover {
  transform: none;
  box-shadow: none;
}

.spotlight-card::after {
  font-size: 3rem;
  right: 0.35rem;
  top: 0.5rem;
}

.spotlight-meta {
  gap: 0.4rem;
  margin-top: 1rem;
}

.spotlight-meta li {
  padding: 0.3rem 0.6rem;
  font-size: 0.625rem;
}

.preview-item {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.85rem 0;
}

.preview-item:hover {
  background: transparent;
  margin-inline: 0;
  padding-inline: 0;
}

.preview-idx {
  width: auto;
  font-size: 0.75rem;
}

.preview-line {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.pq-a,
.pq-b {
  display: inline;
}

.spotlight-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.cta {
  width: 100%;
  min-height: 3rem;
  font-size: 0.9375rem;
  box-shadow: 0 3px 12px rgba(42, 99, 105, 0.22);
}

.cta:hover {
  transform: none;
}

.more-hint {
  text-align: center;
  font-size: 0.75rem;
}

/* ── 时间线 / 归档 ── */
.page-head {
  margin-bottom: 1.5rem;
  padding: 0 0 1rem;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 1px solid var(--rule-strong);
}

.page-head::before {
  display: none;
}

.timeline {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.page-archive .archive-list {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.timeline-list::before {
  left: 1.35rem;
}

.timeline-list a {
  padding: 0.75rem 0.25rem;
  gap: 0.75rem;
}

.timeline-list a:hover,
.archive-list a:hover {
  background: transparent;
  box-shadow: none;
  margin-inline: 0;
  padding-inline: 0.25rem;
}

.timeline-list time {
  width: 2.75rem;
  padding: 0.3rem 0.2rem;
}

.tl-day {
  font-size: 0.9375rem;
}

.timeline-text,
.archive-preview {
  font-size: 0.8125rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.timeline-arrow {
  opacity: 1;
  transform: none;
  color: var(--ink-faint);
}

.archive-list a:hover {
  transform: none;
  box-shadow: none;
}

.archive-list a {
  padding: 0.85rem 0.25rem;
  gap: 0.75rem;
}

.archive-date {
  width: 3rem;
  padding: 0.4rem;
}

.archive-day {
  font-size: 1.125rem;
}

/* ── 文章页 ── */
.page-article .issue {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.page-article .issue::before {
  display: none;
}

.issue-head {
  margin: 0 0 1.25rem;
  padding: 0 0 1.25rem;
  background: transparent;
  border-bottom: 2px solid var(--brand);
  border-radius: 0;
}

.issue-head::after {
  display: none;
}

.issue-title {
  font-size: 1.5rem;
}

.issue-sub {
  font-size: 0.75rem;
}

.phrase-list {
  width: 100%;
}

.phrase {
  width: 100%;
  padding: 0;
  margin-bottom: 0.75rem;
  border-bottom: none;
}

.phrase-row {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  padding: 1rem;
  margin-inline: 0;
  background: var(--surface-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(22, 38, 48, 0.04);
  box-sizing: border-box;
}

.phrase-main {
  width: 100%;
  min-width: 0;
  align-self: stretch;
}

.phrase:hover .phrase-row {
  background: var(--surface-raised);
  border-color: var(--rule);
  box-shadow: 0 1px 3px rgba(22, 38, 48, 0.04);
}

.phrase-idx {
  width: auto;
  height: auto;
  display: block;
  place-items: unset;
  padding: 0 0 0.5rem;
  font-size: 0.75rem;
  color: var(--brand);
  background: transparent;
  border-radius: 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0.65rem;
  align-self: flex-start;
}

.phrase-line {
  font-size: 1rem;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.phrase-a {
  font-size: 1.0625rem;
}

.phrase-sep {
  display: none;
}

.phrase-b {
  font-size: 1.0625rem;
  padding-left: 0.65rem;
  border-left: 3px solid var(--accent);
}

.phrase-detail {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
}

.phrase-jyut,
.phrase-remark,
.phrase-mean {
  width: 100%;
  font-size: 0.8125rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.jyut-text,
.remark-text,
.mean-text {
  width: 100%;
}

.note {
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 1rem;
}

/* ── 上下期 ── */
.pager {
  gap: 0.45rem;
  margin-top: 1.5rem;
}

.pager-cell {
  min-height: 2.5rem;
  padding: 0.5rem 0.65rem;
  gap: 0.45rem;
  border-radius: calc(var(--radius) - 2px);
  box-shadow: none;
}

.pager-icon {
  width: 1.375rem;
  height: 1.375rem;
  font-size: 0.9375rem;
}

.pager-label {
  font-size: 0.5625rem;
}

.pager-date {
  font-size: 0.8125rem;
}

a.pager-cell:hover {
  box-shadow: none;
  background: var(--surface-raised);
}

.main {
  padding: 1.25rem 0 2rem;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.main::before {
  display: none;
}

.timeline {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

/* ── 页脚 · 小言讲粤语介绍 ── */
.site-foot {
  margin-top: 1.25rem;
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0));
  background: transparent;
  border-top: none;
}

.follow-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  padding: 1.75rem 1.25rem 1.35rem;
  background: var(--surface-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.follow-main {
  display: contents;
}

.follow-brand {
  order: 1;
  justify-content: center;
  margin: 0 0 0.65rem;
  font-size: 1.0625rem;
}

.follow-brand-seal {
  width: 1.875rem;
  height: 1.875rem;
  font-size: 0.9375rem;
}

.follow-desc {
  order: 2;
  max-width: none;
  margin: 0 0 1.15rem;
  padding: 0 0.15rem;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.follow-qr {
  order: 3;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  min-width: 0;
  margin: 0 0 1.1rem;
  padding: 1rem 1.1rem;
  background: var(--brand-glow);
  border: none;
  border-radius: var(--radius);
  box-shadow: none;
}

.follow-qr:hover {
  transform: none;
  box-shadow: none;
}

.follow-qr-frame {
  padding: 0.5rem;
  border-radius: 10px;
  background: #fff;
}

.follow-qr-frame img {
  width: 5.5rem;
  height: 5.5rem;
}

.follow-qr-label {
  align-items: flex-start;
  text-align: left;
}

.follow-qr-label-main {
  font-size: 0.875rem;
  letter-spacing: 0.12em;
}

.follow-qr-label-sub {
  font-size: 0.6875rem;
}

.follow-qr-label-sub::before {
  content: none;
}

.follow-search {
  order: 4;
  margin: 0 auto 0.85rem;
  padding: 0.45rem 0.85rem;
}

.follow-search-name {
  font-size: 0.8125rem;
}

.follow-tags {
  order: 5;
  justify-content: center;
  gap: 0.4rem;
}

.follow-tags li {
  font-size: 0.6875rem;
  padding: 0.3rem 0.6rem;
  background: var(--brand-glow);
  border-color: transparent;
}

.foot-legal {
  padding-top: 0.75rem;
}

.foot-icp,
.foot-beian,
.foot-copy {
  font-size: 0.625rem;
}
