@charset "UTF-8";

/* ===== 泰圈 · 追剧日历主题 ===== */
:root {
  --orange: #0C94C2;
  --orange-deep: #12657C;
  --orange-soft: #D5E9FF;
  --cream: #ECFEFF;
  --ink: #0C2B3A;
  --muted: #446F8A;
  --line: #C4DDF3;
  --radius: 12px;
  --radius-sm: 8px;
  --shell: 1170px;
  --header-height: 72px;
  --num: "Bahnschrift", "DIN Alternate", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.72;
}

img {
  display: block;
  max-width: 100%;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.page-shell {
  width: min(calc(100% - 48px), var(--shell));
  margin: 0 auto;
}

/* ---- 图标 ---- */
.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.icon::before {
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  background: center / contain no-repeat;
}

.icon-download::before { background-image: url("../icons/download.svg"); }
.icon-menu::before { background-image: url("../icons/menu.svg"); }
.icon-close::before { background-image: url("../icons/close.svg"); }
.icon-plus::before { background-image: url("../icons/plus.svg"); }
.icon-globe::before { background-image: url("../icons/globe.svg"); }

/* ---- 页头 ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-top: 3px solid var(--orange);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 247, 237, 0.96);
  backdrop-filter: blur(6px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--shell));
  min-height: var(--header-height);
  margin: 0 auto;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  gap: clamp(15px, 2.2vw, 30px);
  list-style: none;
}

.primary-nav a {
  display: inline-block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 13.5px;
  letter-spacing: 0.03em;
  transition: color 160ms ease;
}

.primary-nav a:hover {
  color: var(--orange);
}

.nav-download,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav-download {
  min-height: 40px;
  min-width: 124px;
  padding: 0 15px;
  color: #FFF7ED;
  background: var(--orange);
}

.nav-download .icon,
.button-primary .icon {
  filter: brightness(0) invert(1);
}

.nav-download:hover {
  background: var(--orange-deep);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  cursor: pointer;
}

.menu-toggle .icon {
  width: 19px;
  height: 19px;
}

/* ---- 英雄区 ---- */
.hero {
  padding: 54px 0 64px;
  background:
    radial-gradient(660px 380px at 8% 6%, #CEE8FF 0%, rgba(255, 247, 237, 0) 70%),
    radial-gradient(520px 300px at 96% 92%, #D5E9FF 0%, rgba(255, 247, 237, 0) 72%);
  scroll-margin-top: calc(var(--header-height) + 10px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(28px, 4vw, 54px);
}

.hero-copy {
  max-width: 450px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(44px, 5.2vw, 64px);
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.hero-title {
  margin: 14px 0 16px;
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.38;
}

.hero-summary {
  max-width: 440px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14.8px;
  line-height: 1.88;
}

.button {
  min-height: 46px;
  min-width: 168px;
  padding: 0 24px;
}

.button-primary {
  color: #FFFFFF;
  background: var(--orange);
  box-shadow: 0 10px 22px rgba(12, 148, 194, 0.24);
}

.button-primary:hover {
  background: var(--orange-deep);
}

/* ---- 英雄组件：更新日历 + 字幕徽章 ---- */
.thaiCal {
  width: 100%;
  max-width: 486px;
  margin-left: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: 0 18px 40px rgba(12, 148, 194, 0.14);
}

.tcHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  gap: 10px;
}

.tcHead b {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tcHead span {
  flex: none;
  color: #6891B0;
  font-family: var(--num);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.tcWeek {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  padding: 0;
  margin: 0 0 14px;
  gap: 4px;
  list-style: none;
}

.tcWeek li {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 7px;
  border: 1px solid #CFE3F6;
  border-radius: var(--radius-sm);
  background: #FFFBF4;
}

.tcWeek li span {
  color: #6891B0;
  font-size: 10px;
}

.tcWeek li b {
  margin: 3px 0 5px;
  font-family: var(--num);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.tcWeek li i {
  display: block;
  width: 4px;
  height: 4px;
  margin-top: 2px;
  border-radius: 50%;
  background: #9CC8F0;
}

.tcWeek .is-done i {
  background: var(--orange);
}

.tcWeek .is-done b {
  color: var(--orange-deep);
}

.tcWeek .is-today {
  border-color: var(--orange);
  background: var(--orange);
}

.tcWeek .is-today span,
.tcWeek .is-today b {
  color: #FFF7ED;
}

.tcWeek .is-today i {
  background: #B0D9FF;
}

.tcShow {
  padding: 13px 14px 12px;
  border-radius: var(--radius-sm);
  background: #E7F3FF;
}

.tcShowTop {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.tcShowTop b {
  font-size: 14.5px;
  font-weight: 700;
}

.tcShowTop span {
  flex: none;
  color: var(--orange);
  font-family: var(--num);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.tcShowTime {
  margin: 4px 0 9px;
  color: #5A8AA3;
  font-size: 11px;
}

.tcBadges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.bd {
  padding: 2px 8px;
  border: 1px solid #A9CEEF;
  border-radius: 999px;
  color: #3B7798;
  background: #FFFBF4;
  font-size: 10.5px;
}

.bd-cn {
  border-color: var(--orange);
  color: #FFFFFF;
  background: var(--orange);
}

.bd-hd {
  border-color: #5BB0D9;
  color: var(--orange-deep);
}

.bd-new {
  border-color: #0971B4;
  color: #12657C;
  background: #B8D7FF;
  font-weight: 600;
}

.bd-raw {
  border-style: dashed;
  color: #446F8A;
}

.tcLegend {
  display: flex;
  align-items: center;
  padding-top: 11px;
  margin-top: 12px;
  border-top: 1px dashed #C1D9F0;
  gap: 16px;
}

.tcLegend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #5A8AA3;
  font-size: 10.5px;
}

.tcLegend span::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: #9CC8F0;
}

.tcLegend .lg-done::before {
  background: var(--orange);
}

.tcLegend .lg-today::before {
  background: var(--orange-deep);
  box-shadow: 0 0 0 2px rgba(12, 148, 194, 0.18);
}

/* ---- 核心特色 ---- */
.routes {
  padding: 64px 0 68px;
  background: #FFFFFF;
  scroll-margin-top: calc(var(--header-height) + 10px);
}

.section-heading {
  max-width: 620px;
  margin-bottom: 32px;
}

.section-heading h2 {
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.26;
}

.section-heading > p:last-child {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 14.4px;
}

.fours {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.four {
  min-width: 0;
  padding: 24px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FFFDF8;
}

.four .n {
  display: inline-block;
  padding-bottom: 3px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--orange);
  color: var(--orange);
  font-family: var(--num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.four h3 {
  margin: 0 0 7px;
  font-size: 18px;
  font-weight: 700;
}

.four p {
  margin: 0;
  color: var(--muted);
  font-size: 13.6px;
  line-height: 1.84;
}

/* ---- 界面展示（深色带） ---- */
.screens {
  padding: 66px 0 70px;
  color: #E2F1FF;
  background: #0C2B3A;
  scroll-margin-top: calc(var(--header-height) + 10px);
}

.screens .section-heading > p:last-child {
  color: #8CB1CB;
}

.covers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.covers figure {
  min-width: 0;
  margin: 0;
}

.covers img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  border: 1px solid #1C465B;
  border-radius: var(--radius-sm);
  background: #081F2A;
}

.covers b {
  display: block;
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 600;
}

.covers small {
  display: block;
  margin-top: 2px;
  color: #7397B0;
  font-size: 11px;
}

/* ---- FAQ ---- */
.faq {
  padding: 64px 0 24px;
  background: var(--cream);
  scroll-margin-top: calc(var(--header-height) + 10px);
}

.faq-list {
  display: grid;
  gap: 9px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FFFFFF;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 18px;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.faq-item summary .icon {
  flex: none;
  transition: transform 160ms ease;
  filter: invert(34%) sepia(64%) saturate(1800%) hue-rotate(4deg) brightness(90%) contrast(92%);
}

.faq-item[open] {
  border-color: #A4CCEC;
  box-shadow: 0 6px 16px rgba(12, 148, 194, 0.06);
}

.faq-item[open] summary .icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 18px 16px;
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
  font-size: 13.4px;
  line-height: 1.86;
}

/* ---- 官方入口 ---- */
.official {
  padding: 24px 0 64px;
  background: var(--cream);
}

.official .section-heading {
  margin-bottom: 20px;
}

.official-fold {
  border: 1px solid #A6CBEB;
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
}

.official-fold summary {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  color: var(--orange-deep);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.official-fold summary::-webkit-details-marker {
  display: none;
}

.official-fold summary::after {
  margin-left: auto;
  content: "查看";
  color: #6891B0;
  font-size: 11px;
  font-weight: 400;
}

.official-fold[open] summary::after {
  content: "收起";
}

.official-link {
  padding: 0 18px 14px;
}

.official-link p {
  margin: 0;
  padding-top: 12px;
  border-top: 1px dashed #BED7EF;
  font-size: 13.2px;
}

.official-link a {
  color: var(--orange);
  font-weight: 600;
  word-break: break-all;
}

/* ---- 用户评价 ---- */
.reviews {
  padding: 66px 0 70px;
  background: #DDECFB;
  scroll-margin-top: calc(var(--header-height) + 10px);
}

.rgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.review-card {
  display: flex;
  min-width: 0;
  min-height: 182px;
  flex-direction: column;
  padding: 18px;
  border: 1px solid #BCD4EB;
  border-radius: var(--radius);
  background: #FFFFFF;
}

.review-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 9px;
  border-bottom: 1px solid #D5E5F6;
}

.review-card header b {
  color: var(--orange-deep);
  font-size: 13px;
  font-weight: 700;
}

.review-card time {
  flex: none;
  color: #7A9BB5;
  font-family: var(--num);
  font-size: 10px;
}

.review-card > p {
  margin: 10px 0 0;
  color: #30576B;
  font-size: 13.2px;
  line-height: 1.86;
}

.rv-site {
  margin-top: auto;
  padding-top: 10px;
  color: var(--orange);
  font-size: 10.5px;
  word-break: break-all;
}

/* ---- 下载 ---- */
.download-cta {
  padding: 60px 0 66px;
  color: #E4F1FF;
  background: linear-gradient(150deg, #12657C 0%, #0C94C2 100%);
  scroll-margin-top: calc(var(--header-height) + 10px);
}

.download-cta h2 {
  color: #FFFFFF;
}

.download-cta .eyebrow {
  color: #A8D9FF;
}

.download-cta .section-heading > p:last-child {
  color: #A6D3F5;
}

.download-cta .button-primary {
  color: var(--orange-deep);
  background: #FFF7ED;
  box-shadow: none;
}

.download-cta .button-primary .icon {
  filter: invert(24%) sepia(48%) saturate(1800%) hue-rotate(4deg) brightness(86%) contrast(92%);
}

.download-cta .button-primary:hover {
  background: #CBE5FF;
}

.disclaimer {
  margin: 18px 0 0;
  color: #A2CFF0;
  font-size: 11.5px;
}

/* ---- 页脚 ---- */
.site-footer {
  padding: 26px 0 20px;
  color: #83ABC6;
  background: #061E2A;
  font-size: 11.5px;
}

.site-footer .page-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #A9D0EF;
}

.site-footer a:hover {
  color: #FFFFFF;
}

/* ---- 返回顶部 ---- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 148px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--orange);
  box-shadow: 0 10px 20px rgba(12, 148, 194, 0.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.to-top::before {
  width: 8px;
  height: 8px;
  border-top: 2px solid #FFFFFF;
  border-left: 2px solid #FFFFFF;
  content: "";
  transform: rotate(45deg) translate(1px, 1px);
}

.to-top.is-show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.to-top:hover {
  background: var(--orange-deep);
}

/* ---- 响应式 ---- */
@media (max-width: 1024px) {
  .rgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero-copy {
    max-width: 620px;
  }

  .thaiCal {
    max-width: 100%;
    margin: 0;
  }

  .covers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fours {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: 62px;
  }

  body {
    padding-top: var(--header-height);
  }

  .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
  }

  .page-shell,
  .nav-shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .nav-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-rows: var(--header-height);
    min-height: var(--header-height);
    column-gap: 8px;
  }

  .brand {
    grid-row: 1;
    grid-column: 1;
    gap: 7px;
    font-size: 17px;
  }

  .brand img {
    width: 28px;
    height: 28px;
  }

  .primary-nav {
    display: none;
    grid-row: 2;
    grid-column: 1 / -1;
    margin: 0 -16px;
    padding: 0 16px 12px;
    border-top: 1px solid var(--line);
    background: var(--cream);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 8px;
  }

  .primary-nav a {
    display: block;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #FFFFFF;
    font-size: 13px;
  }

  .nav-download {
    grid-row: 1;
    grid-column: 3;
    min-width: auto;
    min-height: 34px;
    margin-left: auto;
    padding: 0 10px;
    font-size: 12px;
  }

  .nav-download .icon {
    width: 14px;
    height: 14px;
  }

  .menu-toggle {
    display: inline-flex;
    grid-row: 1;
    grid-column: 4;
    width: 34px;
    height: 34px;
  }

  .hero {
    padding: 30px 0 42px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-title {
    font-size: 21px;
  }

  .thaiCal {
    padding: 14px;
    border-radius: 16px;
  }

  .tcWeek {
    gap: 3px;
  }

  .tcWeek li {
    padding: 6px 0 5px;
  }

  .tcWeek li b {
    font-size: 13px;
  }

  .routes,
  .screens,
  .reviews,
  .download-cta {
    padding: 42px 0;
  }

  .faq {
    padding: 42px 0 16px;
  }

  .official {
    padding: 16px 0 42px;
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .section-heading h2 {
    font-size: 25px;
  }

  .faq-list {
    grid-template-columns: 1fr;
  }

  .rgrid {
    grid-template-columns: 1fr;
  }

  .review-card {
    min-height: auto;
  }

  .site-footer .page-shell {
    display: block;
    text-align: center;
  }

  .site-footer p + p {
    margin-top: 6px;
  }

  .to-top {
    right: 16px;
    bottom: 132px;
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 380px) {
  .brand span {
    font-size: 15px;
  }

  .nav-download span {
    display: none;
  }

  .nav-download {
    width: 34px;
    padding: 0;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-title {
    font-size: 19px;
  }

  .primary-nav ul {
    grid-template-columns: 1fr;
  }

  .tcWeek li span {
    font-size: 9px;
  }

  .tcWeek li b {
    font-size: 12px;
  }
}
