/* ==========================================================================
   尧图网站设计 - 详情页附加样式
   ========================================================================== */

/* ---------- 详情页大图横幅 ---------- */
.detail-banner {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 50px;
  box-shadow: var(--shadow-md);
}

.detail-banner img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.detail-banner .banner-cap {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 36px 40px;
  background: linear-gradient(0deg, rgba(31, 58, 27, 0.88) 0%, transparent 100%);
  color: #fff;
}

.detail-banner .banner-cap .cap-label {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(127, 176, 105, 0.3);
  border: 1px solid rgba(168, 213, 186, 0.4);
  border-radius: var(--r-pill);
  font-size: 12px;
  color: var(--green-soft);
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.detail-banner .banner-cap h2 {
  color: #fff;
  font-size: 30px;
  margin-bottom: 8px;
}

.detail-banner .banner-cap p {
  color: rgba(251, 249, 242, 0.82);
  font-size: 15px;
}

/* ---------- 特性卡组（详情页，三栏居中） ---------- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.spec-card {
  padding: 34px 28px;
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  text-align: center;
  transition: all 0.4s ease;
}

.spec-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, var(--white) 0%, var(--green-mist) 100%);
  border-color: var(--green-soft);
}

.spec-card .spec-ico {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-mist), var(--blue-mist));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.spec-card:hover .spec-ico {
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  transform: scale(1.05);
}

.spec-card:hover .spec-ico svg {
  stroke: #fff;
}

.spec-card h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.spec-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.8;
}

/* ==========================================================================
   教程内容排版（教程详情页用）
   ========================================================================== */
.lesson-wrap {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 48px 52px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.lesson-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
  margin-bottom: 34px;
}

.lesson-head .lesson-meta-top {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.lesson-head .lesson-meta-top span {
  padding: 4px 14px;
  background: var(--green-mist);
  border-radius: var(--r-pill);
  font-size: 12.5px;
  color: var(--green-deep);
  font-weight: 500;
}

.lesson-head h1 {
  font-size: 30px;
  line-height: 1.4;
  margin-bottom: 16px;
}

.lesson-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13px;
  color: var(--muted);
}

.lesson-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lesson-content {
  font-size: 16px;
  line-height: 2;
  color: var(--body);
}

.lesson-content p {
  margin-bottom: 22px;
}

.lesson-content h2 {
  font-size: 22px;
  margin: 36px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--green);
  color: var(--ink);
}

.lesson-content h3 {
  font-size: 18px;
  margin: 28px 0 12px;
  color: var(--ink);
}

.lesson-content img {
  border-radius: var(--r-md);
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}

.lesson-content ul,
.lesson-content ol {
  margin: 0 0 22px 22px;
}

.lesson-content ul li {
  margin-bottom: 8px;
  list-style: disc;
}

.lesson-content ol li {
  list-style: decimal;
}

/* 代码块 */
.lesson-content pre {
  background: var(--green-ink);
  color: var(--cream);
  padding: 22px 26px;
  border-radius: var(--r-md);
  margin: 22px 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
}

.lesson-content pre code {
  color: var(--cream);
}

.lesson-content code {
  background: var(--green-mist);
  color: var(--green-deep);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 14px;
}

/* 提示框 */
.lesson-content .tip-box {
  background: linear-gradient(135deg, var(--green-mist), var(--blue-mist));
  border-left: 4px solid var(--green);
  padding: 18px 22px;
  border-radius: var(--r-sm);
  margin: 22px 0;
}

.lesson-content .tip-box strong {
  color: var(--green-deep);
}

/* 上一课/下一课导航 */
.lesson-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px dashed var(--line);
}

.lesson-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--cream-2);
  border-radius: var(--r-md);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.lesson-nav a:hover {
  background: var(--white);
  border-color: var(--green-soft);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.lesson-nav a.next {
  text-align: right;
  justify-content: flex-end;
}

.lesson-nav a .ln-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.lesson-nav a .ln-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

/* ==========================================================================
   新闻列表页
   ========================================================================== */
.news-page-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 50px;
  align-items: start;
}

.news-page-main .news-item {
  margin-bottom: 22px;
}

.news-side .side-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  margin-bottom: 26px;
}

.news-side .side-card h4 {
  font-size: 17px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green-mist);
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-side .side-card h4::before {
  content: "";
  width: 5px;
  height: 18px;
  background: linear-gradient(180deg, var(--green), var(--blue-soft));
  border-radius: 3px;
}

/* ==========================================================================
   文章排版（show.html 资讯详情）
   ========================================================================== */
.article-wrap {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 50px 56px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.article-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 26px;
  margin-bottom: 32px;
}

.article-head h1 {
  font-size: 30px;
  line-height: 1.4;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-content {
  font-size: 16px;
  line-height: 2;
  color: var(--body);
}

.article-content p {
  margin-bottom: 22px;
}

.article-content h2 {
  font-size: 22px;
  margin: 36px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--green);
}

.article-content h3 {
  font-size: 18px;
  margin: 28px 0 12px;
}

.article-content img {
  border-radius: var(--r-md);
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}

.article-content ul,
.article-content ol {
  margin: 0 0 22px 22px;
}

.article-content ul li {
  margin-bottom: 8px;
  list-style: disc;
}

.article-content ol li {
  list-style: decimal;
}

.article-foot {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.article-tags a {
  display: inline-block;
  padding: 5px 14px;
  background: var(--green-mist);
  border-radius: var(--r-pill);
  font-size: 12.5px;
  color: var(--green-deep);
  margin-right: 8px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.open {
  box-shadow: var(--shadow-md);
  border-color: var(--green-soft);
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.faq-q .faq-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green-mist);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-deep);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #fff;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-a {
  max-height: 400px;
}

.faq-a-inner {
  padding: 0 26px 24px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.9;
}

/* ==========================================================================
   价格表
   ========================================================================== */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
}

.price-card.featured {
  border-color: var(--green-soft);
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
}

.price-card .price-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 18px;
  background: linear-gradient(135deg, var(--green-soft), var(--green));
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
}

.price-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.price-card .price-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}

.price-card .price-num {
  font-size: 42px;
  color: var(--green-deep);
  font-family: var(--font-en);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 6px;
}

.price-card .price-unit {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 26px;
}

.price-card ul {
  text-align: left;
  margin-bottom: 28px;
}

.price-card ul li {
  padding: 9px 0;
  font-size: 14px;
  color: var(--body);
  border-bottom: 1px dashed var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-card ul li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
}

/* ==========================================================================
   联系页
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.contact-info-card {
  background: linear-gradient(150deg, var(--green-ink), var(--green-deep));
  color: var(--cream);
  border-radius: var(--r-xl);
  padding: 44px 38px;
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 213, 186, 0.15) 0%, transparent 70%);
}

.contact-info-card h3 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.contact-info-card .ci-item {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
  position: relative;
  z-index: 2;
}

.contact-info-card .ci-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(168, 213, 186, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-card .ci-body p {
  color: rgba(251, 249, 242, 0.6);
  font-size: 12.5px;
  margin-bottom: 4px;
}

.contact-info-card .ci-body strong {
  color: #fff;
  font-size: 16px;
}

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 40px 38px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 13px;
  color: var(--body);
  margin-bottom: 8px;
  font-weight: 600;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--cream);
  transition: all 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--green-soft);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(127, 176, 105, 0.1);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-tip {
  font-size: 13px;
  margin-top: 10px;
  min-height: 18px;
}

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

.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.4s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.team-card .t-photo {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.team-card .t-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.team-card:hover .t-photo img {
  transform: scale(1.05);
}

.team-card .t-info {
  padding: 22px 20px;
  text-align: center;
}

.team-card .t-info h4 {
  font-size: 18px;
  margin-bottom: 4px;
}

.team-card .t-info .t-role {
  font-size: 12.5px;
  color: var(--green);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.team-card .t-info p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
}

/* ==========================================================================
   时间线
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--green), var(--blue-soft));
}

.tl-item {
  position: relative;
  padding-bottom: 40px;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--green);
  z-index: 2;
}

.tl-item .tl-year {
  font-size: 22px;
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 6px;
}

.tl-item h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.tl-item p {
  font-size: 14px;
  color: var(--muted);
}

/* ==========================================================================
   标签筛选
   ========================================================================== */
.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 44px;
}

.tag-filter button {
  padding: 9px 22px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--body);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tag-filter button:hover,
.tag-filter button.active {
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #fff;
  border-color: transparent;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1100px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .news-page-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .lesson-wrap { padding: 40px 36px; }
}

@media (max-width: 700px) {
  .spec-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .article-wrap { padding: 30px 24px; }
  .lesson-wrap { padding: 28px 22px; }
  .article-head h1 { font-size: 22px; }
  .lesson-head h1 { font-size: 22px; }
  .detail-banner img { height: 260px; }
  .detail-banner .banner-cap h2 { font-size: 22px; }
  .detail-banner .banner-cap { padding: 24px 26px; }
  .form-row { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .lesson-nav { grid-template-columns: 1fr; }
}
