:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --accent: #db2777;
  --bg-soft: #f7fbf9;
  --footer-bg: #134e4a;
  --ink: #1f2933;
  --muted: #6b7a86;
  --line: #dbe7e4;
  --mark-green: rgba(163, 230, 53, .5);
  --mark-pink: rgba(249, 168, 212, .55);
  --wrap: 1040px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

.friend-links { display:none }

body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  color: var(--ink);
  background: #fdfefd;
  background-image: linear-gradient(transparent 31px, #eef4f2 31px, #eef4f2 32px);
  background-size: 100% 32px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 26px; position: relative; }
a { color: inherit; text-decoration: none; }

/* ---------- 顶栏 ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(253, 254, 253, .95); backdrop-filter: blur(8px); border-bottom: 2px solid var(--primary); }
.topbar-inner { max-width: var(--wrap); margin: 0 auto; padding: 14px 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.logo { font-size: 20px; font-weight: 900; color: var(--primary-dark); }
.logo-region { display: inline-block; white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--mark-pink); padding: 2px 10px; border-radius: 3px; margin-left: 8px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.nav a { color: var(--muted); font-weight: 600; }
.nav a:hover { color: var(--primary-dark); background: var(--mark-green); border-radius: 3px; }
.topbar-tel { font-size: 15px; font-weight: 800; color: #fff; background: var(--primary); padding: 8px 20px; border-radius: 8px; }
.topbar-tel:hover { background: var(--accent); }

/* ---------- 首屏（笔记本首页） ---------- */
.hero { padding: 84px 0 62px; border-bottom: 2px dashed var(--line); }
.hero-title { font-size: clamp(32px, 5vw, 56px); font-weight: 900; line-height: 1.3; }
.hero-title { background: linear-gradient(transparent 62%, var(--mark-green) 62%, var(--mark-green) 94%, transparent 94%); display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero-sub { margin-top: 20px; font-size: 17px; color: var(--muted); max-width: 640px; }
.hero-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-tags li { padding: 6px 14px; font-size: 13px; font-weight: 700; background: var(--mark-pink); border-radius: 3px; transform: skewX(-4deg); }
.hero-tags li:nth-child(even) { background: var(--mark-green); transform: skewX(4deg); }
.btn { display: inline-block; margin-top: 30px; padding: 14px 44px; background: var(--primary); color: #fff; font-size: 16px; font-weight: 800; border-radius: 10px; box-shadow: 3px 3px 0 var(--accent); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--accent); }

/* ---------- 照片带（贴在笔记里的照片） ---------- */
.bandsec { padding: 30px 0 0; }
.photoband { position: relative; width: 100%; overflow: hidden; min-height: 200px; background: var(--bg-soft); border: 2px solid var(--line); border-radius: 10px; box-shadow: 4px 4px 0 var(--mark-green); }
.photoband-track { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.photoband-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 40px; height: 40px; border: 2px solid var(--primary); border-radius: 10px; background: rgba(253, 254, 253, .92); color: var(--primary-dark); font-size: 18px; cursor: pointer; }
.photoband-arrow:hover { background: var(--mark-green); }
.photoband-prev { left: 14px; }
.photoband-next { right: 14px; }
.photoband-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; z-index: 5; }
.photoband-dot { width: 11px; height: 11px; border: 2px solid var(--primary); border-radius: 50%; background: #fff; cursor: pointer; }
.photoband-dot.is-active { background: var(--accent); border-color: var(--accent); }

/* ---------- 版块 ---------- */
.block { padding: 64px 0; }
.block-alt { background: var(--bg-soft); }
.block-head { margin-bottom: 34px; }
.deco { display: none; }
.block-no { display: inline-block; font-size: 13px; font-weight: 900; color: var(--accent); border: 2px solid var(--accent); border-radius: 50%; width: 34px; height: 34px; line-height: 30px; text-align: center; transform: rotate(-6deg); }
.block-title { margin-top: 10px; font-size: clamp(24px, 3.4vw, 38px); font-weight: 900; line-height: 1.4; }
.block-title { background: linear-gradient(transparent 60%, var(--mark-green) 60%, var(--mark-green) 92%, transparent 92%); display: inline-block; }
.block-alt .block-title { background: linear-gradient(transparent 60%, var(--mark-pink) 60%, var(--mark-pink) 92%, transparent 92%); }
.block-subtitle { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* ---------- 段落 ---------- */
.prose { max-width: 70ch; font-size: 16px; color: #37464f; }
.about-local { margin-top: 16px; }
.about-local a { color: var(--accent); font-weight: 700; background: var(--mark-pink); border-radius: 2px; padding: 0 3px; }
.bizcard { max-width: 430px; margin-top: 28px; background: #fff; border: 2px solid var(--line); border-radius: 8px; padding: 10px; box-shadow: 4px 4px 0 var(--mark-pink); }
.bizcard img { width: 100%; display: block; border-radius: 4px; }

/* ---------- 指标（成绩单） ---------- */
.stats { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.stat { background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 26px 16px; text-align: center; position: relative; }
.stat::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 14px; height: 8px; background: var(--mark-green); z-index: 0; }
.stat:nth-child(even)::after { background: var(--mark-pink); }
.stat-value { display: block; font-size: clamp(30px, 4.4vw, 46px); font-weight: 900; color: var(--primary-dark); line-height: 1.05; position: relative; z-index: 1; }
.stat-label { display: block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--muted); position: relative; z-index: 1; }

/* ---------- 产品 ---------- */
.prod-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.prod { background: #fff; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.prod:hover { transform: translateY(-4px); box-shadow: 4px 6px 0 var(--mark-green); }
.prod:nth-child(even):hover { box-shadow: 4px 6px 0 var(--mark-pink); }
.prod img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.prod-name { padding: 13px 14px; font-size: 15px; font-weight: 700; text-align: center; border-top: 2px dashed var(--line); }

/* ---------- 问答（错题本） ---------- */
.faq { list-style: none; display: grid; gap: 14px; max-width: 840px; }
.faq-item { background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 20px 26px; }
.faq-q { font-size: 16px; font-weight: 800; }
.faq-q::before { content: "Q. "; color: var(--accent); font-weight: 900; }
.faq-a { margin-top: 8px; color: var(--muted); font-size: 15px; }
.faq-a::before { content: "A. "; color: var(--primary); font-weight: 900; }

/* ---------- 流程（课程表步骤） ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.step { background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 26px 18px; text-align: center; }
.step-no { display: inline-block; font-size: 15px; font-weight: 900; color: var(--primary-dark); background: var(--mark-green); padding: 4px 14px; border-radius: 3px; transform: rotate(-3deg); }
.step:nth-child(even) .step-no { background: var(--mark-pink); color: var(--accent); transform: rotate(3deg); }
.step-title { margin-top: 14px; font-size: 17px; font-weight: 800; }
.step-desc { margin-top: 6px; color: var(--muted); font-size: 14px; }

/* ---------- 卡片（便利贴笔记） ---------- */
.card-grid { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; }
.card-grid > * { flex: 1 1 210px; }


.card { background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 28px 22px; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-4px) rotate(-.5deg); box-shadow: 4px 6px 0 var(--mark-green); }
.card:nth-child(even):hover { box-shadow: 4px 6px 0 var(--mark-pink); }
.card-title { font-size: 17px; font-weight: 800; display: inline; background: linear-gradient(transparent 64%, var(--mark-green) 64%, var(--mark-green) 94%, transparent 94%); }
.card:nth-child(even) .card-title { background: linear-gradient(transparent 64%, var(--mark-pink) 64%, var(--mark-pink) 94%, transparent 94%); }
.card-desc { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ---------- CTA ---------- */
.cta { padding: 74px 0; text-align: center; background: var(--primary-dark); color: #fff; }
.cta-title { font-size: clamp(24px, 3.6vw, 38px); font-weight: 900; }
.cta-sub { margin-top: 10px; font-size: 15px; opacity: .82; }
.cta-btn { margin-top: 28px; background: #fff; color: var(--primary-dark); box-shadow: 3px 3px 0 var(--accent); }

/* ---------- 页脚 ---------- */
.footer { background: var(--footer-bg); color: rgba(255, 255, 255, .82); padding: 46px 0 36px; }
.footer-name { font-size: 20px; font-weight: 900; color: #fff; }
.footer-desc { margin-top: 12px; font-size: 14px; opacity: .66; max-width: 60ch; }
.foot-sites { margin-top: 16px; font-size: 14px; }
.foot-sites a { color: #99f6e4; font-weight: 600; }
.footer-copy { margin-top: 18px; font-size: 13px; opacity: .5; }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .nav { display: none; }
}

/* 文章内容板块（详情页）：标题/时间 + 正文 + 侧栏推荐列表 */
.section-article {
  padding: 64px 0;
}

.article-head {
  text-align: center;
  margin-bottom: 44px;
}

.article-title {
  font-size: 28px;
  font-weight: 800;
  color: inherit;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}

.article-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.article-time {
  margin-top: 14px;
  font-size: 14px;
  opacity: 0.65;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  grid-template-rows: auto 1fr;
  gap: 36px;
  align-items: start;
}

.article-clamp {
  min-width: 0;
}

.article-clamp.is-clamped {
  max-height: 600px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 90px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 90px), transparent);
}

.article-clamp-btn {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  justify-self: center;
  margin-top: 4px;
  padding: 9px 34px;
  font-size: 14px;
  color: var(--primary);
  background: transparent;
  border: 1px solid var(--primary);
  border-radius: 20px;
  cursor: pointer;
}

.article-clamp-btn:hover {
  color: #fff;
  background: var(--primary);
}

.article-body {
  font-size: 16px;
  line-height: 1.9;
  opacity: 0.88;
  text-align: justify;
}

.article-body p {
  margin-bottom: 16px;
}

.article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 18px auto;
  border-radius: 10px;
}

.article-side {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  gap: 24px;
  min-width: 0;
}

.article-list-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px 22px;
  min-width: 0;
  overflow: hidden;
}

.article-list-title {
  font-size: 17px;
  font-weight: 700;
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

.article-list li {
  list-style: none;
  padding: 7px 0;
  border-bottom: 1px dashed #e5e7eb;
}

.article-list li:last-child {
  border-bottom: none;
}

.article-list a {
  display: block;
  font-size: 14px;
  color: inherit;
  opacity: 0.8;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-list a:hover {
  color: var(--primary);
  opacity: 1;
}

@media (max-width: 860px) {
  .article-layout {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .article-side {
    grid-column: 1;
    grid-row: 3;
  }
}

/* 关于我们双列：文字左 + 名片卡右 */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 34%, 400px);
  gap: 36px;
  align-items: start;
}

.about-grid .bizcard {
  margin: 0;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-grid .bizcard {
    margin: 24px auto 0;
  }
}

/* ---------- logo 牌匾字标（斜切色块） ---------- */
.logo-word { position: relative; display: inline-block; vertical-align: middle; white-space: nowrap; line-height: 1.2; padding: .26em .72em; background: linear-gradient(115deg, var(--primary-dark), var(--primary) 55%, var(--primary-dark)); color: #fff; -webkit-text-fill-color: #fff; transform: skewX(-12deg); border-radius: .14em; box-shadow: 0 3px 10px color-mix(in srgb, var(--primary) 40%, transparent); overflow: hidden; }
.logo-word-in { display: inline-block; transform: skewX(12deg); }
.logo-word::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: translateX(-160%); animation: logoShine 2.4s ease-in-out infinite; }
@keyframes logoShine { 0% { transform: translateX(-160%); } 100% { transform: translateX(320%); } }
@media (prefers-reduced-motion: reduce) { .logo-word::after { animation: none; } }
