/* tutoring.css —— 白底简约 + 橙色品牌点缀 + 深空蓝专业感 */
.page-tutoring{
    --bg: #ffffff;
    --bg2:#f6f7fb;
    --ink:#0b1220;
    --navy:#0f2747;
    --muted:#6b7280;
    --line: rgba(15, 39, 71, .12);

    --accent:#ff6a00;     /* 品牌橙：只用于按钮/高亮 */
    --accent2:#ff9f1c;
    --shadow: 0 18px 48px rgba(15,39,71,.12);
    --radius: 18px;

    background: radial-gradient(1200px 800px at 15% 0%, rgba(255,106,0,.07), transparent 55%),
    radial-gradient(1100px 800px at 90% 15%, rgba(15,39,71,.06), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
    color: var(--ink);
    font-family: ui-serif, Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", serif;
}

/* 如果你全站是 sans，更简约：可改成下面这行（更推荐教育机构） */
/* .page-tutoring{ font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif; } */

.t-container{
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.t-section{ padding: 70px 0; }
.t-muted{ color: var(--muted); }

.t-h1{
    margin: 10px 0 12px;
    font-size: 46px;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: var(--navy);
}
.t-h2{
    margin: 0 0 10px;
    font-size: 30px;
    letter-spacing: -0.2px;
    color: var(--navy);
}
.t-h3{
    margin: 0 0 10px;
    font-size: 22px;
    color: var(--navy);
}
.t-lead{
    margin: 0 0 18px;
    line-height: 1.75;
    font-size: 15px;
    color: rgba(15,39,71,.78);
    max-width: 680px;
}

.t-accent{ color: var(--accent); }
.t-pill{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,106,0,.08);
    border: 1px solid rgba(255,106,0,.18);
    color: rgba(15,39,71,.92);
    font-weight: 700;
    font-size: 13px;
}

/* Buttons */
.t-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy);
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
    text-decoration: none;
}
.t-btn:hover{ transform: translateY(-1px); box-shadow: 0 10px 22px rgba(15,39,71,.10); }
.t-btn--primary{
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-color: transparent;
    color: #fff;
}
.t-btn--ghost{
    background: rgba(15,39,71,.04);
}

/* Card */
.t-card{
    border-radius: var(--radius);
    background: rgba(255,255,255,.86);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.t-card--soft{
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(10px);
}
.t-card__hd{ padding: 16px 16px 10px; }
.t-card__title{ font-weight: 900; color: var(--navy); }
.t-card__sub{ font-size: 13px; color: var(--muted); margin-top: 4px; }

/* HERO */
.t-hero{
    position: relative;
    overflow: hidden;
    padding: 54px 0 26px;
    min-height: 640px;
    background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(246,247,251,.82));
    border-bottom: 1px solid var(--line);
}
#tHeroCanvas{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.t-hero__overlay{
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 500px at 20% 10%, rgba(255,106,0,.10), transparent 58%),
    radial-gradient(900px 600px at 85% 18%, rgba(15,39,71,.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.20), rgba(246,247,251,.92));
    pointer-events: none;
}

.t-hero__inner{
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 18px;
    align-items: start;
}

.t-hero__actions{ display: flex; gap: 10px; margin: 18px 0 12px; flex-wrap: wrap; }
.t-hero__stats{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 8px;
}
.t-stat{
    padding: 14px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.75);
    border: 1px solid var(--line);
}
.t-stat__num{
    font-weight: 950;
    font-size: 22px;
    color: var(--navy);
}
.t-stat__label{ font-size: 12px; color: var(--muted); margin-top: 4px; }

.t-hero__side{ align-self: stretch; }
.t-quick{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 16px 16px;
}
.t-quick__btn{
    border-radius: 14px;
    padding: 12px 10px;
    border: 1px solid var(--line);
    background: rgba(255,106,0,.06);
    color: var(--navy);
    font-weight: 900;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease;
}
.t-quick__btn:hover{ transform: translateY(-1px); background: rgba(255,106,0,.10); }

.t-note{
    padding: 0 16px 16px;
    font-size: 12px;
    color: rgba(15,39,71,.66);
    line-height: 1.6;
}
.t-note code{
    background: rgba(15,39,71,.06);
    padding: 2px 6px;
    border-radius: 8px;
    border: 1px solid var(--line);
}

/* Section Head */
.t-section__head{ margin-bottom: 16px; }

/* Toolbar */
.t-toolbar{
    display: grid;
    grid-template-columns: 1.6fr .9fr;
    gap: 12px;
    align-items: center;
    padding: 12px 12px;
    border-radius: 18px;
    background: rgba(255,255,255,.78);
    border: 1px solid var(--line);
    box-shadow: 0 12px 26px rgba(15,39,71,.08);
}

.t-tabs{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.t-tab{
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(15,39,71,.04);
    color: rgba(15,39,71,.86);
    font-weight: 900;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}
.t-tab:hover{ transform: translateY(-1px); }
.t-tab.is-active{
    background: rgba(255,106,0,.12);
    border-color: rgba(255,106,0,.25);
}

.t-search{
    display: grid;
    grid-template-columns: 1fr 170px;
    gap: 10px;
}
.t-search input, .t-search select{
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    color: rgba(15,39,71,.88);
    outline: none;
}
.t-search input:focus, .t-search select:focus{
    border-color: rgba(255,106,0,.35);
    box-shadow: 0 0 0 6px rgba(255,106,0,.12);
}

/* Grid */
.t-grid{
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* Course Card */
.t-course{
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,.88);
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(15,39,71,.10);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
    position: relative;
}
.t-course:hover{ transform: translateY(-2px); box-shadow: 0 22px 50px rgba(15,39,71,.14); }

.t-course__img{
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #f3f4f6;
}
.t-course__body{ padding: 12px 12px 14px; }
.t-course__cat{
    font-size: 12px;
    color: rgba(15,39,71,.70);
    font-weight: 900;
}
.t-course__title{
    margin: 6px 0 8px;
    font-size: 16px;
    line-height: 1.25;
    color: var(--navy);
    font-weight: 950;
}
.t-course__meta{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: rgba(15,39,71,.70);
}
.t-chip{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(15,39,71,.03);
}
.t-course__desc{
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(15,39,71,.72);
}

/* Pathway */
.t-pathway{
    margin-top: 18px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.80);
    box-shadow: 0 18px 46px rgba(15,39,71,.10);
    padding: 16px 16px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 14px;
    align-items: center;
}
.t-pathway__actions{ display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

.t-map{
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: zoom-in;
}
.t-map img{
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
}
.t-map__scan{
    position: absolute;
    inset: -40% 0;
    background: linear-gradient(90deg, transparent, rgba(255,106,0,.18), transparent);
    transform: translateX(-120%);
    animation: scan 3.8s ease-in-out infinite;
    pointer-events: none;
}
@keyframes scan{
    0%{ transform: translateX(-120%); }
    55%{ transform: translateX(120%); }
    100%{ transform: translateX(120%); }
}
.t-map__hint{
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.86);
    border: 1px solid var(--line);
    color: rgba(15,39,71,.78);
    font-weight: 900;
    font-size: 12px;
}

/* FAQ */
.t-faq{
    margin-top: 18px;
    padding: 16px 16px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.78);
    box-shadow: 0 18px 46px rgba(15,39,71,.08);
}
.t-accordion{
    margin-top: 10px;
    display: grid;
    gap: 10px;
}
.t-acc__q{
    width: 100%;
    text-align: left;
    padding: 14px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(15,39,71,.03);
    font-weight: 950;
    color: var(--navy);
    cursor: pointer;
}
.t-acc__a{
    display: none;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px dashed var(--line);
    background: rgba(255,106,0,.06);
    color: rgba(15,39,71,.78);
    line-height: 1.7;
}
.t-acc__a code{
    background: rgba(255,255,255,.75);
    border: 1px solid var(--line);
    padding: 2px 6px;
    border-radius: 8px;
}

/* CTA */
.t-cta{
    padding: 56px 0;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,.40), rgba(246,247,251,.92));
}
.t-cta__inner{
    padding: 18px 18px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.82);
    box-shadow: 0 18px 46px rgba(15,39,71,.10);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.t-cta__actions{ display: flex; gap: 10px; flex-wrap: wrap; }

/* Modal */
.t-modal{
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
}
.t-modal.is-open{ display: block; }

.t-modal__backdrop{
    position: absolute;
    inset: 0;
    background: rgba(15,39,71,.35);
    backdrop-filter: blur(6px);
}
.t-modal__panel{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(980px, calc(100% - 28px));
    border-radius: 22px;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--line);
    box-shadow: 0 24px 80px rgba(15,39,71,.22);
    overflow: hidden;
}
.t-modal__panel--wide{ width: min(1100px, calc(100% - 28px)); }

.t-modal__close{
    position: absolute;
    right: 12px;
    top: 10px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.86);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: rgba(15,39,71,.75);
    z-index: 3;
}
.t-modal__body{
    display: grid;
    grid-template-columns: .95fr 1.05fr;
}
.t-modal__media{
    background: rgba(15,39,71,.03);
    border-right: 1px solid var(--line);
}
.t-modal__media img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 360px;
}
.t-modal__content{
    padding: 18px 18px;
}
.t-modal__pill{
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,106,0,.10);
    border: 1px solid rgba(255,106,0,.20);
    font-weight: 950;
    color: rgba(15,39,71,.88);
    font-size: 12px;
}
.t-modal__title{
    margin: 10px 0 6px;
    font-size: 22px;
    color: var(--navy);
    font-weight: 950;
}
.t-modal__meta{
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0 10px;
    color: rgba(15,39,71,.72);
    font-size: 12px;
}
.t-modal__desc{
    margin: 0 0 12px;
    line-height: 1.75;
    color: rgba(15,39,71,.78);
}
.t-modal__tags{ display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.t-modal__actions{ display: flex; gap: 10px; flex-wrap: wrap; }
.t-modal__foot{
    margin-top: 12px;
    font-size: 12px;
    color: rgba(15,39,71,.62);
    border-top: 1px dashed var(--line);
    padding-top: 10px;
}

.t-mapbig{ background: #fff; }
.t-mapbig img{
    width: 100%;
    height: auto;
    display: block;
}

/* Reveal */
.reveal{
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .75s ease, transform .75s ease;
}
.reveal.is-in{
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px){
    .t-hero__inner{ grid-template-columns: 1fr; }
    .t-hero__stats{ grid-template-columns: 1fr 1fr; }
    .t-toolbar{ grid-template-columns: 1fr; }
    .t-grid{ grid-template-columns: 1fr 1fr; }
    .t-pathway{ grid-template-columns: 1fr; }
    .t-modal__body{ grid-template-columns: 1fr; }
    .t-modal__media{ border-right: none; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px){
    .t-h1{ font-size: 34px; }
    .t-grid{ grid-template-columns: 1fr; }
    .t-search{ grid-template-columns: 1fr; }
    .t-cta__inner{ flex-direction: column; align-items: flex-start; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
    .reveal{ transition: none; }
    .t-map__scan{ animation: none; }
    .t-btn{ transition: none; }
}
.t-empty{
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.76);
  color: rgba(15,39,71,.70);
}
.t-acc__a.is-open{ display:block; }
.t-acc__q.is-open{ background: rgba(255,106,0,.10); }


.t-modal__specs{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:12px;
  margin:18px 0;
}
.t-spec{
  border:1px solid rgba(15,39,71,.10);
  background:#f8fafc;
  border-radius:18px;
  padding:14px 16px;
}
.t-spec__label{
  font-size:12px;
  color:#6b7280;
  margin-bottom:6px;
}
.t-spec__value{
  font-size:15px;
  font-weight:700;
  color:#0f2747;
  line-height:1.45;
}
.t-modal__section{
  margin:20px 0;
}
.t-modal__section-title{
  margin:0 0 10px;
  font-size:16px;
  color:#0f2747;
}
.t-modal__copy{
  margin:0;
  line-height:1.8;
  color:#334155;
}
.t-table-wrap{
  overflow:auto;
  border:1px solid rgba(15,39,71,.10);
  border-radius:18px;
  background:#fff;
}
.t-table{
  width:100%;
  border-collapse:collapse;
  min-width:560px;
}
.t-table th,
.t-table td{
  padding:12px 14px;
  text-align:left;
  vertical-align:top;
  border-bottom:1px solid rgba(15,39,71,.08);
  font-size:14px;
  line-height:1.6;
}
.t-table th{
  background:#f8fafc;
  color:#0f2747;
  font-weight:700;
}
.t-table tr:last-child td{
  border-bottom:none;
}
.t-table--outline th:nth-child(1),
.t-table--outline td:nth-child(1){min-width:90px;}
.t-table--outline th:nth-child(2),
.t-table--outline td:nth-child(2){min-width:180px;}
.t-table--outline th:nth-child(3),
.t-table--outline td:nth-child(3){min-width:220px;}
@media (max-width: 768px){
  .t-modal__specs{grid-template-columns:1fr;}
}
.t-rich-content p:first-child{ margin-top:0; }
.t-rich-content p:last-child{ margin-bottom:0; }
.t-rich-content ul,
.t-rich-content ol{
  margin:0 0 12px 20px;
  color: rgba(15,39,71,.78);
  line-height:1.75;
}
.t-rich-content blockquote{
  margin:0 0 12px;
  padding:10px 14px;
  border-left:4px solid rgba(255,106,0,.35);
  background:rgba(255,106,0,.05);
  border-radius:0 14px 14px 0;
  color: rgba(15,39,71,.72);
}
.t-rich-content a{ color: var(--accent); }

/* ===== Modal polish upgrade ===== */
.t-modal{
  align-items:center;
  justify-content:center;
}
.t-modal.is-open{
  display:flex;
}
.t-modal__panel{
  width:min(1180px, calc(100% - 32px));
  max-height:calc(100vh - 32px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.t-modal__body{
  display:flex;
  flex-direction:column;
  gap:22px;
  padding:20px;
  overflow:auto;
  overscroll-behavior:contain;
}
.t-modal__hero{
  display:grid;
  grid-template-columns:minmax(280px, 420px) minmax(0, 1fr);
  gap:22px;
  align-items:start;
}
.t-modal__media{
  border:0;
  border-radius:22px;
  overflow:hidden;
  min-width:0;
  background:linear-gradient(180deg, rgba(15,39,71,.04), rgba(255,255,255,.8));
  box-shadow:inset 0 0 0 1px rgba(15,39,71,.08), 0 18px 42px rgba(15,39,71,.08);
}
.t-modal__media img{
  width:100%;
  height:auto;
  max-height:330px;
  min-height:0;
  display:block;
  object-fit:cover;
  aspect-ratio:16/10;
}
.t-modal__intro{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.t-modal__title{
  margin:0;
  font-size:clamp(28px, 3vw, 38px);
  line-height:1.12;
  letter-spacing:-0.02em;
}
.t-modal__meta{
  margin:0;
}
.t-modal__desc,
.t-modal__copy,
.t-rich-content,
.t-table td,
.t-table th{
  writing-mode:horizontal-tb;
  white-space:normal;
  word-break:break-word;
  overflow-wrap:anywhere;
}
.t-modal__desc{
  padding:16px 18px;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,106,0,.05), rgba(15,39,71,.03));
  border:1px solid rgba(15,39,71,.08);
  margin:0;
}
.t-modal__layout{
  display:grid;
  grid-template-columns:minmax(0, 1.38fr) minmax(280px, .72fr);
  gap:20px;
  align-items:start;
}
.t-modal__main,
.t-modal__aside{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:18px;
}
.t-modal__aside-card,
.t-modal__section{
  background:#fff;
  border:1px solid rgba(15,39,71,.08);
  border-radius:20px;
  padding:18px;
  box-shadow:0 14px 34px rgba(15,39,71,.06);
}
.t-modal__section--highlight{
  background:linear-gradient(180deg, rgba(255,106,0,.06), rgba(255,255,255,1));
}
.t-modal__section-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:end;
  margin-bottom:12px;
}
.t-modal__section-title,
.t-modal__aside-title{
  margin:0;
  font-size:16px;
  line-height:1.3;
  color:#0f2747;
  font-weight:900;
}
.t-modal__section-note,
.t-modal__aside-copy{
  margin:8px 0 0;
  color:#64748b;
  line-height:1.75;
  font-size:14px;
}
.t-modal__highlights{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:12px;
}
.t-highlight{
  position:relative;
  padding:14px 14px 14px 40px;
  border-radius:16px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(255,106,0,.18);
  color:#334155;
  line-height:1.75;
  min-height:100%;
}
.t-highlight::before{
  content:'✦';
  position:absolute;
  left:14px;
  top:14px;
  width:18px;
  height:18px;
  display:grid;
  place-items:center;
  color:var(--accent);
  font-size:14px;
  font-weight:900;
}
.t-modal__specs{
  margin:0;
  grid-template-columns:repeat(3, minmax(0,1fr));
}
.t-spec{
  background:linear-gradient(180deg, #ffffff, #f7fafc);
  border:1px solid rgba(15,39,71,.08);
  box-shadow:none;
}
.t-spec__value{
  font-size:16px;
}
.t-modal__tags{
  margin:0;
}
.t-chip{
  background:#f8fafc;
}
.t-table-wrap{
  border-radius:16px;
  overflow:auto;
  background:#fff;
}
.t-table-wrap--compact .t-table{
  min-width:0;
}
.t-table{
  min-width:720px;
}
.t-table th{
  position:sticky;
  top:0;
  z-index:1;
}
.t-table td{
  color:#334155;
}
.t-table--outline th:nth-child(4),
.t-table--outline td:nth-child(4){min-width:180px;}
.t-table--outline th:nth-child(5),
.t-table--outline td:nth-child(5){min-width:180px;}
.t-modal__actions{
  margin-top:4px;
}
.t-modal__foot{
  margin-top:0;
  padding:0 4px 4px;
  border-top:none;
}
@media (max-width: 1080px){
  .t-modal__hero,
  .t-modal__layout{
    grid-template-columns:1fr;
  }
  .t-modal__media img{
    max-height:280px;
  }
}
@media (max-width: 768px){
  .t-modal__panel{
    width:min(100%, calc(100% - 12px));
    max-height:calc(100vh - 12px);
    border-radius:18px;
  }
  .t-modal__body{
    padding:14px;
    gap:14px;
  }
  .t-modal__title{
    font-size:24px;
  }
  .t-modal__highlights{
    grid-template-columns:1fr;
  }
  .t-modal__specs{
    grid-template-columns:1fr;
  }
  .t-modal__section,
  .t-modal__aside-card{
    padding:14px;
    border-radius:16px;
  }
}
