/* ==========================================================================
   多彩编程 mzph.cn — 其他页面专属样式
   每个页面模块独立原创设计
   ========================================================================== */

/* ---------- 分类详情页：圆形语言大头像 + 知识点环 ---------- */
.cat-hero { padding: calc(var(--nav-h) + 50px) 0 50px; position: relative; overflow: hidden; }
.cat-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.cat-big-circle {
  width: 320px; height: 320px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; position: relative;
  box-shadow: var(--shadow-lg);
}
.cat-big-circle::before {
  content: ""; position: absolute; inset: -20px; border-radius: 50%; border: 2px dashed rgba(127,207,168,.4); animation: spin-slow 50s linear infinite;
}
.cat-big-circle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; padding: 8px; background: var(--paper); }
.cat-lang-badge {
  position: absolute; bottom: -10px; right: -10px; width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.3rem; font-weight: 900; color: #fff; box-shadow: var(--shadow-md); border: 4px solid var(--paper); z-index: 2;
}
.cat-info h1 { margin-bottom: 16px; }
.cat-info .cat-desc { font-size: 16px; margin-bottom: 24px; }
.cat-meta-row { display: flex; gap: 26px; flex-wrap: wrap; margin-bottom: 26px; }
.cat-meta-row .cm { display: flex; flex-direction: column; }
.cat-meta-row .cm strong { font-size: 1.8rem; font-weight: 900; color: var(--coral); }
.cat-meta-row .cm span { font-size: 12.5px; color: var(--ink-soft); }

/* 知识点圆形列表 */
.kp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.kp-card {
  background: var(--paper); border-radius: var(--r-lg); padding: 26px 24px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); transition: all .3s; position: relative; overflow: hidden;
}
.kp-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.kp-card .kp-num {
  position: absolute; top: 14px; right: 18px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--mint-soft); color: var(--mint-deep); display: grid; place-items: center; font-weight: 800; font-size: 13px;
}
.kp-card h4 { font-size: 1.08rem; margin-bottom: 10px; padding-right: 40px; }
.kp-card p { font-size: 13.5px; margin-bottom: 14px; }
.kp-card .kp-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.kp-card .kp-tags span { padding: 3px 10px; border-radius: var(--r-full); font-size: 11.5px; background: var(--sky-soft); color: var(--sky-deep); font-weight: 600; }

/* ---------- 教程页：路线圆环 ---------- */
.tut-track { position: relative; }
.tut-stage {
  display: grid; grid-template-columns: 200px 1fr; gap: 30px; padding: 28px; border-radius: var(--r-lg);
  background: var(--paper); box-shadow: var(--shadow-sm); border: 1px solid var(--line); margin-bottom: 18px; transition: all .3s;
}
.tut-stage:hover { box-shadow: var(--shadow-md); transform: translateX(6px); }
.tut-stage-no {
  width: 130px; height: 130px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: linear-gradient(135deg, var(--mint), var(--mint-deep)); color: #fff; box-shadow: var(--shadow-sm);
}
.tut-stage:nth-child(2) .tut-stage-no { background: linear-gradient(135deg, var(--sun), var(--sun-deep)); color: #6B4F00; }
.tut-stage:nth-child(3) .tut-stage-no { background: linear-gradient(135deg, var(--sky), var(--sky-deep)); }
.tut-stage:nth-child(4) .tut-stage-no { background: linear-gradient(135deg, var(--lilac), #B9A3E8); }
.tut-stage:nth-child(5) .tut-stage-no { background: linear-gradient(135deg, var(--coral), var(--coral-deep)); }
.tut-stage-no strong { font-size: 1.6rem; line-height: 1; }
.tut-stage-no span { font-size: 11px; letter-spacing: .08em; margin-top: 4px; }
.tut-stage-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.tut-stage-body p { font-size: 13.5px; margin-bottom: 12px; }
.tut-topics { display: flex; gap: 8px; flex-wrap: wrap; }
.tut-topics span { padding: 5px 12px; border-radius: var(--r-full); font-size: 12px; background: var(--mint-soft); color: var(--mint-deep); font-weight: 600; }

/* ---------- 案例页 ---------- */
.case-detail-hero { padding: calc(var(--nav-h) + 50px) 0 40px; }
.case-banner { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: 36px; position: relative; }
.case-banner img { width: 100%; height: 380px; object-fit: cover; }
.case-banner .case-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(58,74,92,.7)); display: flex; align-items: flex-end; padding: 30px 36px; }
.case-banner .case-overlay h1 { color: #fff; }
.case-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 36px; }
.case-info-cell { background: var(--paper); border-radius: var(--r-md); padding: 20px; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.case-info-cell strong { display: block; font-size: 1.5rem; font-weight: 900; color: var(--coral); }
.case-info-cell span { font-size: 12.5px; color: var(--ink-soft); }

/* 案例列表卡 */
.case-list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-list-card {
  background: var(--paper); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); transition: all .35s;
}
.case-list-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.case-list-card .cl-img { height: 180px; overflow: hidden; position: relative; }
.case-list-card .cl-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.case-list-card:hover .cl-img img { transform: scale(1.08); }
.case-list-card .cl-tag { position: absolute; top: 12px; left: 12px; padding: 4px 12px; border-radius: var(--r-full); font-size: 11px; font-weight: 700; color: #fff; background: rgba(127,207,168,.92); }
.case-list-card .cl-body { padding: 20px 22px; }
.case-list-card .cl-body h4 { font-size: 1.05rem; margin-bottom: 8px; }
.case-list-card .cl-body p { font-size: 13px; margin-bottom: 14px; }
.case-list-card .cl-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-faint); }
.case-list-card .cl-foot .more { color: var(--coral); font-weight: 700; }

/* ---------- 团队页 ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- 荣誉/资质 圆形 ---------- */
.honor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.honor-card {
  background: var(--paper); border-radius: var(--r-lg); padding: 30px; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: all .3s;
}
.honor-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.honor-medal { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--sun), var(--coral)); color: #fff; box-shadow: var(--shadow-sm); }
.honor-card h4 { font-size: 1.05rem; margin-bottom: 6px; }
.honor-card .year { font-size: 12px; color: var(--coral); font-weight: 700; margin-bottom: 8px; }
.honor-card p { font-size: 13px; }

/* ---------- 文化页：价值观圆 ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.value-circle {
  text-align: center; padding: 36px 24px; border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: all .3s;
}
.value-circle:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.value-ico { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--mint-soft); color: var(--mint-deep); }
.value-circle:nth-child(2) .value-ico { background: var(--sun-soft); color: #C99A1E; }
.value-circle:nth-child(3) .value-ico { background: var(--sky-soft); color: var(--sky-deep); }
.value-circle:nth-child(4) .value-ico { background: #FFE7DE; color: var(--coral); }
.value-circle:nth-child(5) .value-ico { background: #EFE6FB; color: #5A3F8C; }
.value-circle:nth-child(6) .value-ico { background: #E0EDD8; color: #6FAE5E; }
.value-circle h4 { font-size: 1.15rem; margin-bottom: 10px; }
.value-circle p { font-size: 13.5px; }

/* ---------- 站点地图 ---------- */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sitemap-col { background: var(--paper); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.sitemap-col h4 { font-size: 1.05rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px dashed var(--line); display: flex; align-items: center; gap: 8px; }
.sitemap-col h4 .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.sitemap-col ul li { margin-bottom: 9px; }
.sitemap-col ul li a { font-size: 13.5px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px; }
.sitemap-col ul li a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.sitemap-col ul li a:hover { color: var(--coral); }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 40px) 20px; }
.nf-circle { width: 200px; height: 200px; border-radius: 50%; margin: 0 auto 30px; display: grid; place-items: center; background: linear-gradient(135deg, var(--mint), var(--sun), var(--sky)); box-shadow: var(--shadow-lg); position: relative; }
.nf-circle::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 2px dashed rgba(255,255,255,.6); }
.nf-circle strong { font-size: 3.5rem; font-weight: 900; color: #fff; position: relative; z-index: 1; }

/* ---------- 工具页 ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tool-card {
  background: var(--paper); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: all .3s;
}
.tool-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.tool-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.tool-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--mint-soft); color: var(--mint-deep); flex-shrink: 0; }
.tool-card h4 { font-size: 1.1rem; }
.tool-card .tool-sub { font-size: 12px; color: var(--ink-faint); }
.tool-card p { font-size: 13.5px; margin-bottom: 14px; }
.tool-features { display: flex; gap: 6px; flex-wrap: wrap; }
.tool-features span { padding: 4px 11px; border-radius: var(--r-full); font-size: 11.5px; background: var(--sun-soft); color: #C99A1E; font-weight: 600; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .cat-hero-inner { grid-template-columns: 1fr; }
  .cat-big-circle { width: 260px; height: 260px; }
  .kp-grid, .case-list-grid, .honor-grid, .value-grid, .tool-grid, .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .case-info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .tut-stage { grid-template-columns: 1fr; }
  .tut-stage-no { margin: 0 auto; }
  .case-banner img { height: 240px; }
}
@media (max-width: 560px) {
  .kp-grid, .case-list-grid, .honor-grid, .value-grid, .tool-grid, .sitemap-grid, .team-grid, .case-info-grid { grid-template-columns: 1fr; }
  .cat-big-circle { width: 220px; height: 220px; }
}
