/* ==========================================================================
   多彩编程 mzph.cn — 圆形嵌套组件库
   核心：大小圆形嵌套，层次清晰，每个模块独立原创
   ========================================================================== */

/* ==========================================================================
   圆形嵌套原子：orbit-ring（同心圆轨道）
   ========================================================================== */
.orbit {
  position: relative; border-radius: 50%; display: grid; place-items: center;
}
.orbit-ring {
  border: 2px dashed rgba(127, 207, 168, 0.35); border-radius: 50%;
  position: absolute; inset: 0; animation: spin-slow 40s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
.orbit-ring.reverse { animation-direction: reverse; animation-duration: 50s; }

/* ==========================================================================
   圆形徽章（语言/分类标记）
   ========================================================================== */
.lang-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px 5px 6px;
  border-radius: var(--r-full); font-size: 12px; font-weight: 700;
  background: var(--paper); box-shadow: var(--shadow-sm);
}
.lang-pill .pip { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 9px; }
.pip-html { background: #E8704A; }
.pip-css { background: #4A90D9; }
.pip-js { background: #F0C84A; color: #5C4500; }
.pip-vue { background: #42B883; }
.pip-react { background: #61DAFB; color: #08465C; }
.pip-ng { background: #C9366B; }
.pip-py { background: #3776AB; }
.pip-php { background: #777BB4; }
.pip-c { background: #5C6BC0; }
.pip-node { background: #6FAE5E; }
.pip-go { background: #00ADD8; }
.pip-sql { background: #E0A32E; }

/* ==========================================================================
   圆形知识卡（嵌套结构：大圆含小圆）
   ========================================================================== */
.know-cluster {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.cluster-card {
  position: relative; border-radius: var(--r-xl); padding: 38px 28px 30px;
  background: var(--paper); box-shadow: var(--shadow-sm);
  transition: all .35s; overflow: hidden; border: 1px solid var(--line);
}
.cluster-card::before {
  content: ""; position: absolute; top: -50px; right: -50px; width: 140px; height: 140px;
  border-radius: 50%; opacity: .5; transition: all .4s;
}
.cluster-card.t-mint::before { background: var(--mint-soft); }
.cluster-card.t-sun::before { background: var(--sun-soft); }
.cluster-card.t-sky::before { background: var(--sky-soft); }
.cluster-card.t-lilac::before { background: #EFE6FB; }
.cluster-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cluster-card:hover::before { transform: scale(1.3); }
.cluster-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; position: relative; z-index: 1; }
.cluster-ico {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
}
.t-mint .cluster-ico { background: var(--mint); color: #2E6B4A; }
.t-sun .cluster-ico { background: var(--sun); color: #8A6800; }
.t-sky .cluster-ico { background: var(--sky); color: #2C6A8C; }
.t-lilac .cluster-ico { background: var(--lilac); color: #5A3F8C; }
.cluster-head h3 { font-size: 1.15rem; }
.cluster-head .sub { font-size: 12px; color: var(--ink-faint); font-weight: 600; letter-spacing: .04em; }
.cluster-list { position: relative; z-index: 1; }
.cluster-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13.5px; border-bottom: 1px dashed var(--line); }
.cluster-list li:last-child { border-bottom: none; }
.cluster-list li .node {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
}
.cluster-list li a { color: var(--ink-soft); }
.cluster-list li a:hover { color: var(--coral); }
.cluster-foot { margin-top: 16px; position: relative; z-index: 1; }
.cluster-foot a { font-size: 13px; font-weight: 700; color: var(--coral); display: inline-flex; align-items: center; gap: 4px; }

/* ==========================================================================
   文章列表卡（圆形缩略图 + 摘要）
   ========================================================================== */
.news-item {
  display: flex; gap: 22px; padding: 22px; border-radius: var(--r-lg);
  background: var(--paper); box-shadow: var(--shadow-sm); transition: all .3s;
  border: 1px solid var(--line); margin-bottom: 18px;
}
.news-item:hover { box-shadow: var(--shadow-md); transform: translateX(6px); }
.n-thumb {
  width: 200px; height: 138px; border-radius: var(--r-md); flex-shrink: 0; overflow: hidden; position: relative;
}
.n-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-item:hover .n-thumb img { transform: scale(1.08); }
.n-thumb .cat-tag {
  position: absolute; top: 10px; left: 10px; padding: 3px 11px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 700; color: #fff; background: rgba(255,154,118,.92); backdrop-filter: blur(4px);
}
.n-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.n-body h4 { font-size: 1.12rem; margin-bottom: 8px; transition: color .25s; }
.news-item:hover .n-body h4 { color: var(--coral); }
.n-excerpt { font-size: 13.5px; color: var(--ink-soft); margin-bottom: auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.n-foot { display: flex; align-items: center; gap: 16px; margin-top: 14px; font-size: 12.5px; color: var(--ink-faint); }
.n-foot .date { display: flex; align-items: center; gap: 5px; }
.n-foot .read { color: var(--coral); font-weight: 700; margin-left: auto; }

/* 文章 mini（侧边栏小卡，圆形缩略） */
.news-mini { margin-bottom: 14px; }
.mini-item { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: var(--r-sm); transition: background .25s; }
.mini-item:hover { background: var(--mint-soft); }
.m-thumb { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 3px solid var(--mint-soft); }
.m-thumb img { width: 100%; height: 100%; object-fit: cover; }
.m-body { flex: 1; min-width: 0; }
.m-body h5 { font-size: 13.5px; line-height: 1.4; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-item:hover .m-body h5 { color: var(--coral); }
.m-date { font-size: 11.5px; color: var(--ink-faint); }

/* ==========================================================================
   统计圆形（数字大圆）
   ========================================================================== */
.stat-rings { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.stat-circle {
  width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  position: relative; background: var(--paper); box-shadow: var(--shadow-md);
}
.stat-circle::before {
  content: ""; position: absolute; inset: 10px; border-radius: 50%; border: 2px dashed var(--mint);
}
.stat-circle.t-sun::before { border-color: var(--sun-deep); }
.stat-circle.t-sky::before { border-color: var(--sky-deep); }
.stat-circle.t-coral::before { border-color: var(--coral); }
.stat-circle strong { font-size: 2rem; font-weight: 900; color: var(--ink); line-height: 1; position: relative; z-index: 1; }
.stat-circle span { font-size: 12px; color: var(--ink-soft); position: relative; z-index: 1; margin-top: 4px; }

/* ==========================================================================
   步骤圆（流程）
   ========================================================================== */
.step-flow { display: flex; justify-content: space-between; gap: 20px; position: relative; flex-wrap: wrap; }
.step-flow::before {
  content: ""; position: absolute; top: 36px; left: 8%; right: 8%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--mint) 0 8px, transparent 8px 16px); z-index: 0;
}
.step-node { flex: 1; text-align: center; position: relative; z-index: 1; min-width: 160px; }
.step-bubble {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center;
  background: var(--paper); box-shadow: var(--shadow-md); border: 3px solid var(--mint); position: relative;
}
.step-node:nth-child(2) .step-bubble { border-color: var(--sun-deep); }
.step-node:nth-child(3) .step-bubble { border-color: var(--sky-deep); }
.step-node:nth-child(4) .step-bubble { border-color: var(--coral); }
.step-bubble .num { font-size: 1.5rem; font-weight: 900; color: var(--ink); }
.step-node h4 { font-size: 1.02rem; margin-bottom: 8px; }
.step-node p { font-size: 13px; }

/* ==========================================================================
   侧边栏卡片
   ========================================================================== */
.side-card {
  background: var(--paper); border-radius: var(--r-lg); padding: 24px; margin-bottom: 22px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.side-card h4 { font-size: 1.05rem; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px dashed var(--line); position: relative; }
.side-card h4::after { content: ""; position: absolute; bottom: -2px; left: 0; width: 36px; height: 2px; background: var(--coral); border-radius: 2px; }
.side-card .tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.side-card .tag-cloud a { padding: 5px 13px; border-radius: var(--r-full); font-size: 12px; background: var(--mint-soft); color: var(--ink-soft); transition: all .25s; }
.side-card .tag-cloud a:hover { background: var(--coral); color: #fff; }
.side-cta-box {
  background: linear-gradient(135deg, var(--mint) 0%, var(--sky) 100%); color: var(--ink);
  border-radius: var(--r-lg); padding: 26px; text-align: center;
}
.side-cta-box h4 { color: var(--ink); border: none; }
.side-cta-box p { font-size: 13px; color: rgba(58,74,92,.7); margin-bottom: 16px; }

/* ==========================================================================
   文章详情
   ========================================================================== */
.article-wrap { background: var(--paper); border-radius: var(--r-lg); padding: 40px; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.article-head { margin-bottom: 26px; padding-bottom: 24px; border-bottom: 2px dashed var(--line); }
.article-head h1 { font-size: 1.9rem; margin-bottom: 14px; line-height: 1.35; }
.article-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--ink-faint); }
.article-meta span { display: flex; align-items: center; gap: 6px; }
.article-content { font-size: 15.5px; line-height: 1.95; color: var(--ink); }
.article-content p { color: var(--ink); margin-bottom: 18px; }
.article-content h2 { font-size: 1.4rem; margin: 32px 0 16px; padding-left: 16px; border-left: 4px solid var(--coral); }
.article-content h3 { font-size: 1.15rem; margin: 26px 0 12px; }
.article-content img { border-radius: var(--r-md); margin: 22px 0; box-shadow: var(--shadow-sm); }
.article-content pre {
  background: #2D3748; color: #E2E8F0; padding: 20px 24px; border-radius: var(--r-md);
  font-family: "SF Mono", "Fira Code", Consolas, monospace; font-size: 13.5px; line-height: 1.7;
  overflow-x: auto; margin: 20px 0; position: relative;
}
.article-content pre::before { content: "CODE"; position: absolute; top: 10px; right: 14px; font-size: 10px; letter-spacing: .2em; color: rgba(255,255,255,.3); }
.article-content code { background: var(--mint-soft); color: #2E6B4A; padding: 2px 7px; border-radius: 6px; font-family: "SF Mono", Consolas, monospace; font-size: .9em; }
.article-content pre code { background: none; color: inherit; padding: 0; }
.article-content ul, .article-content ol { margin: 16px 0 16px 22px; }
.article-content ul li, .article-content ol li { margin-bottom: 8px; color: var(--ink); }
.article-content ul li { list-style: none; position: relative; padding-left: 22px; }
.article-content ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--mint-deep); }
.article-content blockquote {
  background: var(--sun-soft); border-left: 4px solid var(--sun-deep); padding: 16px 22px; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin: 20px 0;
}
.article-content blockquote p { color: #8A6800; margin: 0; }
.article-foot { margin-top: 30px; padding-top: 24px; border-top: 2px dashed var(--line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.article-tags a { padding: 6px 14px; border-radius: var(--r-full); font-size: 12.5px; background: var(--sky-soft); color: var(--sky-deep); font-weight: 600; }
.article-tags a:hover { background: var(--sky); color: #fff; }

/* ==========================================================================
   列表+侧边布局
   ========================================================================== */
.news-page-grid { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; }
.news-page-main { min-width: 0; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-item { background: var(--paper); border-radius: var(--r-md); padding: 0; margin-bottom: 14px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); overflow: hidden; }
.faq-q { padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font-weight: 700; color: var(--ink); }
.faq-q .q-ico { width: 28px; height: 28px; border-radius: 50%; background: var(--mint-soft); color: var(--mint-deep); display: grid; place-items: center; flex-shrink: 0; transition: all .3s; }
.faq-item.open .q-ico { background: var(--coral); color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 22px 20px; font-size: 14px; color: var(--ink-soft); line-height: 1.8; }

/* ==========================================================================
   CTA 横幅
   ========================================================================== */
.cta-band {
  background: linear-gradient(135deg, var(--mint) 0%, var(--sky) 100%); border-radius: var(--r-xl);
  padding: 48px 50px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band::before, .cta-band::after { content: ""; position: absolute; border-radius: 50%; }
.cta-band::before { width: 180px; height: 180px; background: rgba(255,230,154,.4); top: -80px; right: 10%; }
.cta-band::after { width: 120px; height: 120px; background: rgba(255,255,255,.3); bottom: -50px; left: 8%; }
.cta-text { position: relative; z-index: 1; }
.cta-text h3 { font-size: 1.5rem; color: var(--ink); margin-bottom: 8px; }
.cta-text p { color: rgba(58,74,92,.7); }
.cta-actions { display: flex; gap: 14px; position: relative; z-index: 1; flex-wrap: wrap; }

/* ==========================================================================
   团队/案例 圆形头像卡
   ========================================================================== */
.circle-card {
  background: var(--paper); border-radius: var(--r-lg); padding: 30px 24px; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: all .3s;
}
.circle-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.cc-avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px; overflow: hidden; border: 4px solid var(--mint-soft); position: relative; }
.cc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.circle-card h4 { font-size: 1.05rem; margin-bottom: 4px; }
.circle-card .role { font-size: 12.5px; color: var(--coral); font-weight: 600; margin-bottom: 10px; }
.circle-card p { font-size: 13px; }

/* ==========================================================================
   时间线（圆形节点）
   ========================================================================== */
.timeline { position: relative; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--mint), var(--sky)); }
.tl-item { position: relative; padding-bottom: 32px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -31px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--mint-deep); }
.tl-item .tl-year { font-size: 12px; font-weight: 700; color: var(--coral); letter-spacing: .08em; }
.tl-item h4 { font-size: 1.05rem; margin: 4px 0 6px; }
.tl-item p { font-size: 13.5px; }

/* ==========================================================================
   表单
   ========================================================================== */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 13px 18px; border: 2px solid var(--line); border-radius: var(--r-md);
  font-family: inherit; font-size: 14px; color: var(--ink); background: var(--paper); transition: border-color .25s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--mint); }
.form-tip { font-size: 13px; margin-top: 10px; min-height: 18px; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .news-page-grid { grid-template-columns: 1fr; }
  .know-cluster { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .news-item { flex-direction: column; }
  .n-thumb { width: 100%; height: 180px; }
  .know-cluster { grid-template-columns: 1fr; }
  .stat-rings { gap: 16px; }
  .stat-circle { width: 120px; height: 120px; }
  .stat-circle strong { font-size: 1.5rem; }
  .step-flow::before { display: none; }
  .article-wrap { padding: 24px; }
  .article-head h1 { font-size: 1.5rem; }
  .cta-band { padding: 32px 26px; }
}
@media (max-width: 560px) {
  .stat-rings { gap: 12px; }
  .stat-circle { width: 100px; height: 100px; }
  .stat-circle strong { font-size: 1.3rem; }
}
