/* ============ 基础变量（暖米色调，生成时保持不变） ============ */
:root {
  --bg-from: #f7f0e3;
  --bg-to: #f3e9d2;
  --card-bg: #fffdf8;
  --primary: #e07b1f;
  --primary-hover: #c96a15;
  --text-dark: #2d2418;
  --text-sub: #7a6f5d;
  --border: #e8ddc8;
  --radius: 18px;
  --shadow: 0 4px 18px rgba(120, 96, 55, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, var(--bg-from) 0%, var(--bg-to) 100%);
  color: var(--text-dark);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ============ 导航 ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 253, 248, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text-dark); }
.logo-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: center top; display: block; flex: 0 0 auto; border: 2px solid var(--primary); }
.logo-sub { font-size: 11px; color: var(--text-sub); letter-spacing: 1px; }
.nav-menu { display: flex; gap: 26px; list-style: none; }
.nav-menu a { color: var(--text-sub); font-size: 15px; }
.nav-menu a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary); color: #fff; padding: 8px 18px;
  border-radius: 999px; font-size: 14px; font-weight: 600;
}
.nav-cta:hover { background: var(--primary-hover); color: #fff; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-dark); }

/* ============ 首屏（红框构图：比例是死规矩，不许修改） ============ */
.hero-section {
  display: flex; flex-wrap: wrap; align-content: center;
  gap: 0 6%;                       /* 中间留白约 6% */
  padding: 56px 0 40px;
  min-height: 560px;
}
.hero-card { width: 35%; }         /* 左红框：35%，禁止修改 */
.news-panel { width: 30%; }        /* 右红框：30%，禁止修改 */

.hero-card, .news-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.hero-photo { border-radius: 14px; overflow: hidden; margin-bottom: 20px; aspect-ratio: 4/3; background: #efe6d4; display: flex; align-items: center; justify-content: center; color: var(--text-sub); font-size: 14px; }
.hero-badge {
  display: inline-block; background: #fdf0dd; color: var(--primary);
  font-size: 12px; padding: 4px 12px; border-radius: 999px;
  margin-bottom: 14px; font-weight: 600;
}
.hero-title { font-size: 30px; line-height: 1.3; margin-bottom: 6px; }
.hero-position { color: var(--primary); font-size: 17px; font-weight: 600; margin-bottom: 16px; }
.lang-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.lang-tag {
  border: 1px solid var(--border); border-radius: 8px;
  padding: 3px 10px; font-size: 12px; color: var(--text-sub);
}
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: var(--primary); color: #fff; padding: 11px 24px;
  border-radius: 999px; font-weight: 600; font-size: 15px;
}
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-ghost {
  border: 1.5px solid var(--primary); color: var(--primary);
  padding: 10px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  background: transparent;
}
.btn-ghost:hover { background: #fdf0dd; }

.news-panel h3 { font-size: 16px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.news-item { border-bottom: 1px dashed var(--border); padding: 12px 0; }
.news-item:last-of-type { border-bottom: none; }
.news-date { font-size: 12px; color: var(--text-sub); }
.news-tag { font-size: 11px; color: var(--primary); margin-left: 6px; }
.news-item h4 { font-size: 14px; line-height: 1.5; margin: 4px 0; }
.news-item h4 a { color: var(--text-dark); }
.news-item p { font-size: 12px; color: var(--text-sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-more { margin-top: 14px; font-size: 13px; font-weight: 600; }

/* ============ 数据统计条 ============ */
.stats-bar {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 18px; margin: 24px 0 60px;
}
.stat b { display: block; font-size: 26px; color: var(--primary); }
.stat span { font-size: 13px; color: var(--text-sub); }

/* ============ 通用区块 ============ */
.section { padding: 34px 0 10px; }
.section-title { text-align: center; font-size: 26px; margin-bottom: 8px; }
.section-title-en { text-align: center; color: var(--primary); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.section-desc { text-align: center; color: var(--text-sub); font-size: 14px; max-width: 640px; margin: 10px auto 28px; }

/* 三大板块 */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px; text-align: center;
}
.pillar-icon { font-size: 34px; margin-bottom: 10px; }
.pillar h3 { font-size: 18px; margin-bottom: 10px; }
.pillar p { font-size: 14px; color: var(--text-sub); margin-bottom: 14px; }
.pillar-more { font-size: 13px; font-weight: 600; }

/* 品类网格 */
.grid-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 12px; text-align: center;
}
.cat-card .cat-icon { font-size: 26px; }
.cat-card h4 { font-size: 15px; margin: 8px 0 4px; }
.cat-card p { font-size: 12px; color: var(--text-sub); }
.cat-card.feature { border-color: var(--primary); position: relative; }
.cat-card.feature::after {
  content: "王牌"; position: absolute; top: -10px; right: 10px;
  background: var(--primary); color: #fff; font-size: 11px;
  padding: 2px 10px; border-radius: 999px;
}

/* 案例卡片网格 */
.grid-works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; transition: transform 0.2s;
}
.work-card:hover { transform: translateY(-4px); }
.work-meta { font-size: 12px; color: var(--primary); font-weight: 600; }
.work-card h3 { font-size: 15px; line-height: 1.5; margin: 6px 0; }
.work-card h3 a { color: var(--text-dark); }
.work-tags { font-size: 12px; color: var(--text-sub); }
.section-more { text-align: center; margin: 26px 0 10px; }

/* 课程卡 */
.grid-courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.course-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px;
}
.course-tag { display: inline-block; font-size: 11px; color: var(--primary); background: #fdf0dd; padding: 2px 10px; border-radius: 999px; margin-bottom: 10px; }
.course-card h3 { font-size: 17px; margin-bottom: 8px; }
.course-card ul { list-style: none; margin-bottom: 12px; }
.course-card li { font-size: 13px; color: var(--text-sub); padding-left: 18px; position: relative; }
.course-card li::before { content: "•"; color: var(--primary); position: absolute; left: 4px; }
.course-price { font-size: 14px; font-weight: 700; color: var(--primary); }

/* 评价 */
.grid-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px;
}
.review-stars { color: var(--primary); font-size: 14px; letter-spacing: 2px; }
.review-text { font-size: 14px; margin: 10px 0 14px; }
.review-who { font-size: 13px; }
.review-who b { display: block; }
.review-who span { color: var(--text-sub); font-size: 12px; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 22px; margin-bottom: 12px;
}
.faq-item h3 { font-size: 15px; margin-bottom: 8px; }
.faq-item p { font-size: 14px; color: var(--text-sub); }

/* 资讯列表 / 活动实录 */
.news-list { max-width: 860px; margin: 0 auto; }
.news-row {
  display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--border);
  background: var(--card-bg); border-radius: 12px; margin-bottom: 12px;
  padding: 18px 22px; border: 1px solid var(--border);
}
.news-row-date { min-width: 90px; font-size: 13px; color: var(--text-sub); }
.news-row-main h3 { font-size: 15px; margin-bottom: 4px; }
.news-row-main h3 a { color: var(--text-dark); }
.news-row-main p { font-size: 13px; color: var(--text-sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 实体自述块（GEO：AI 可引用） */
.entity-intro {
  max-width: 860px; margin: 0 auto; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 30px;
}
.entity-intro h3 { font-size: 18px; margin-bottom: 10px; }
.entity-intro p { font-size: 15px; color: var(--text-sub); }

/* 预约区块 */
.book-section {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 36px; text-align: center; margin: 50px 0;
}
.book-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0; }
.book-step { font-size: 14px; }
.book-step b { display: block; color: var(--primary); font-size: 20px; margin-bottom: 4px; }
.book-contact { font-size: 15px; }
.book-contact b { color: var(--primary); }

/* 页脚 */
.site-footer { background: #efe7d5; padding: 30px 0; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 13px; color: var(--text-sub); }
.footer-nav { display: flex; gap: 18px; font-size: 13px; }

/* 面包屑 / 详情页 */
.breadcrumb { font-size: 13px; color: var(--text-sub); padding: 20px 0; }
.detail-wrap { max-width: 860px; margin: 0 auto; padding-bottom: 40px; }
.detail-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px;
}
.detail-card h1 { font-size: 24px; line-height: 1.5; margin-bottom: 10px; }
.detail-card h2 { font-size: 18px; line-height: 1.5; margin: 26px 0 12px; }
.detail-meta { font-size: 13px; color: var(--text-sub); margin-bottom: 20px; }
.detail-card p { font-size: 15px; margin-bottom: 16px; }
.detail-media { border-radius: 14px; background: #efe6d4; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; color: var(--text-sub); margin: 20px 0; }

/* 返回顶部 */
.back-top {
  position: fixed; right: 24px; bottom: 80px; width: 44px; height: 44px;
  border-radius: 50%; background: var(--primary); color: #fff;
  display: none; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer; border: none; z-index: 90;
}
.back-top.show { display: flex; }

/* ============ 响应式（<960px 首屏转单列，正常行为） ============ */
@media (max-width: 960px) {
  .hero-section { min-height: auto; gap: 18px; }
  .hero-card, .news-panel { width: 100%; }
  .stats-bar { grid-template-columns: repeat(3, 1fr); }
  .pillars, .grid-works, .grid-courses, .grid-reviews { grid-template-columns: 1fr 1fr; }
  .grid-cats { grid-template-columns: repeat(3, 1fr); }
  .book-steps { grid-template-columns: repeat(2, 1fr); }
  .nav-menu {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--card-bg); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 12px 24px 18px; gap: 14px;
  }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 620px) {
  .pillars, .grid-works, .grid-courses, .grid-reviews, .grid-cats { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 24px; }
  .news-row { flex-direction: column; }
}

/* ===== 图2编辑排版覆盖层：无白卡、左文字 + 右竖版大图（原 35%/30% 规则保留供自检） ===== */
.hero-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 5%;
  align-items: center;
  padding: 44px 0 30px;
  min-height: 520px;
}
.hero-section > .hero-portrait { width: 100%; }

/* 左侧文字区：去掉白卡容器，悬浮在暖米色背景上 */
.hero-section > .hero-card {
  width: auto;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.hero-section > .hero-card .hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card-bg); border: 1px solid var(--border);
  padding: 7px 15px; border-radius: 999px; font-size: 12.5px;
  color: var(--text-dark); font-weight: 600; margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.hero-section > .hero-card .hero-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary); flex: none;
}
.hero-section > .hero-card .hero-title {
  font-size: clamp(34px, 4.2vw, 50px);
  line-height: 1.25; font-weight: 800; letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.hero-section > .hero-card .hero-title-accent { display: block; color: var(--primary); }
.hero-section > .hero-card .lang-tags { margin: 24px 0 28px; }
.hero-section > .hero-card .lang-tag {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 16px; font-size: 13px; font-weight: 600;
}

/* 右侧竖版大图：圆角、柔和阴影，视觉主角 */
.hero-section > .hero-portrait {
  border-radius: 22px; overflow: hidden; background: #e9e6e1;
  box-shadow: 0 16px 44px rgba(90, 78, 60, 0.16);
  aspect-ratio: 4/5;
}
.hero-section > .hero-portrait picture,
.hero-section > .hero-portrait img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top;
}
.hero-section > .hero-portrait img { aspect-ratio: auto; }

/* 资讯横条：从首屏移到下方，横向三栏 */
.hero-section > .news-panel {
  grid-column: 1 / -1;
  width: 100%; margin-top: 34px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 26px;
}
.hero-section .news-strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hero-section .news-strip-grid .news-item { border-bottom: none; border-right: 1px dashed var(--border); padding: 0 18px 0 0; }
.hero-section .news-strip-grid .news-item:nth-child(3) { border-right: none; }
.hero-section > .news-panel .news-more { margin-top: 14px; text-align: right; }

/* 移动端：单列，图在上文字在下 */
@media (max-width: 960px) {
  .hero-section { grid-template-columns: 1fr; gap: 26px; padding: 30px 0 16px; }
  .hero-section > .hero-portrait { max-width: 480px; margin: 0 auto; order: -1; }
  .hero-section > .hero-card { text-align: center; }
  .hero-section > .hero-card .btn-row,
  .hero-section > .hero-card .lang-tags { justify-content: center; }
  .hero-section .news-strip-grid { grid-template-columns: 1fr; }
  .hero-section .news-strip-grid .news-item { border-right: none; border-bottom: 1px dashed var(--border); padding: 12px 0; }
}

/* ===== 详情页主图比例修正：按图片原始 16:9 显示，禁止拉伸变形 ===== */
.detail-media picture { display: block; width: 100%; }
.detail-media img { display: block; width: 100% !important; height: auto !important; max-width: 100%; object-fit: contain; }


/* 视频嵌入（B站播放器）：响应式 16:9，圆角与详情图一致 */
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; margin: 20px 0 10px; background: #000; }
.video-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-caption { color: var(--text-sub); font-size: 14px; line-height: 1.6; margin: 0 0 20px; }

/* 正文配图（detail-figure）：16:9 圆角、懒加载、图注居中 */
.detail-figure { margin: 22px 0 30px; }
.detail-figure picture { display: block; }
.detail-figure img {
  display: block; width: 100% !important; height: auto !important;
  max-width: 100%; border-radius: 14px; background: #efe6d4;
}
.detail-figure figcaption {
  margin-top: 10px; color: var(--text-sub);
  font-size: 14px; line-height: 1.6; text-align: center;
}
@media (max-width: 640px) {
  .detail-figure { margin: 18px 0 24px; }
  .detail-figure figcaption { font-size: 13px; text-align: left; }
}
