/* ============================================================
   安营驻车 · 样式表（精简版）
   ============================================================ */

/* ===== 全局重置 & 字体 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background-color: #f6faf6;
  color: #1e2b1e;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ===== 颜色变量 ===== */
:root {
  --green-deep: #0f7b3f;
  --green-main: #1fa053;
  --green-light: #d4f0e0;
  --green-soft: #eaf7ef;
  --green-accent: #2ecc71;
  --green-dark: #0a4a27;
  --gray-100: #f8fbf8;
  --gray-200: #e2ebe2;
  --text-dark: #1a2e1a;
  --text-light: #4f6b4f;
  --shadow-sm: 0 4px 12px rgba(0, 40, 0, 0.06);
  --shadow-md: 0 10px 30px rgba(0, 40, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 40, 0, 0.12);
  --radius-card: 24px;
}

/* ===== 通用容器 ===== */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   头部导航
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 40, 0, 0.04);
  border-bottom: 1px solid rgba(46, 204, 113, 0.15);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
  background: white;
  padding: 2px;
  box-shadow: var(--shadow-sm);
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
  padding: 8px 16px;
  border-radius: 40px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--green-light);
  color: var(--green-deep);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--green-deep);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

/* ============================================================
   首页 Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 85vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d3b1e 0%, #1b6b33 50%, #0f4f28 100%);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.45;
  background-image: url('./caodizhangpeng.jpeg');
  background-size: cover;
  background-position: center 30%;
  mix-blend-mode: overlay;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(31, 160, 83, 0.25) 0%, rgba(10, 46, 26, 0.85) 90%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  width: 100%;
  padding: 32px 24px 60px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-text {
  flex: 1 1 500px;
  width: 100%;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-text h1 .highlight {
  color: #b7f5cf;
  text-decoration: underline;
  text-decoration-color: var(--green-accent);
  text-underline-offset: 16px;
  text-decoration-thickness: 1px;
}

.hero-text p {
  font-size: 1.35rem;
  font-weight: 400;
  max-width: 600px;
  margin-bottom: 32px;
  color: #e2f0e2;
  line-height: 1.6;
}

/* ===== 二维码 ===== */
.hero-qr-simple {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 4px;
}

.hero-qr-img {
  width: 150px;
  height: 150px;
  display: block;
  border-radius: 16px;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero-qr-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-qr-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-qr-sub {
  font-size: 0.95rem;
  color: #cde6d4;
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ===== 右侧手机模型 ===== */
.hero-visual {
  flex: 1 1 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.phone-mockup {
  width: 100%;
  max-width: 280px;
  border-radius: 40px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
  border: 6px solid rgba(255, 255, 255, 0.25);
  overflow: hidden;
  background: #fff;
  transition: transform 0.4s ease;
}

.phone-mockup:hover {
  transform: scale(1.02) translateY(-6px);
}

.phone-mockup img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================================
   公共 Section 标题
   ============================================================ */
.section-label {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-deep);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 2px;
  padding: 6px 20px;
  border-radius: 40px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-sub {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 680px;
  margin-bottom: 48px;
}

/* ============================================================
   特色优势
   ============================================================ */
.features {
  background: var(--gray-100);
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid rgba(27, 140, 75, 0.08);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-light);
}

.feature-icon {
  font-size: 3.8rem;
  margin-bottom: 20px;
  display: block;
  text-align: center;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 12px;
  text-align: center;
}

.feature-card p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
}

/* ============================================================
   关于我们
   ============================================================ */
.about {
  padding: 80px 0;
  background: var(--green-soft);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.stat-item h4 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--green-deep);
}

.stat-item p {
  font-size: 0.95rem;
  color: var(--text-light);
}

.about-image {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   底部
   ============================================================ */
footer {
  background: #0a2e1a;
  color: #cde6d4;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  padding: 2px;
}

.footer-brand span {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #a8c9b4;
  max-width: 400px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-col li {
  margin-bottom: 12px;
  color: #a8c9b4;
  font-size: 0.95rem;
}

/* 二维码放在 footer-col 里时，限制尺寸 */
.footer-col .hero-qr-img {
  width: 120px;
  height: 120px;
  margin-top: 8px;
}

/* ===== 底部版权区 ===== */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #7a9e87;
}

/* 备案链接样式（放在媒体查询外部，所有尺寸都生效） */
.footer-bottom a {
  color: #a8c9b4;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--green-accent);
  text-decoration: underline;
}

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px 50px;
  }

  .hero-text {
    align-items: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-qr-simple {
    justify-content: center;
  }

  .hero-visual {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }

  .phone-mockup {
    max-width: 260px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 10px 16px;
  }

  .logo-text {
    font-size: 1.15rem;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 16px 20px 24px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--gray-200);
    gap: 6px;
    align-items: stretch;
    border-radius: 0 0 20px 20px;
    z-index: 200;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 1.05rem;
    text-align: left;
  }

  .hero-text h1 {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .hero-text p {
    font-size: 1.1rem;
  }

  .hero-qr-simple {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .hero-qr-img {
    width: 130px;
    height: 130px;
  }

  .hero-qr-title {
    font-size: 1.05rem;
  }

  .hero-qr-sub {
    font-size: 0.85rem;
  }

  .hero-visual {
    flex-direction: column;
  }

  .phone-mockup {
    max-width: 240px;
  }

  .features,
  .about {
    padding: 60px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-content {
    padding: 28px 16px 40px;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .section-sub {
    font-size: 1rem;
    margin-bottom: 32px;
  }

  .about-stats {
    gap: 24px;
  }

  .stat-item h4 {
    font-size: 1.8rem;
  }

  .hero-qr-img {
    width: 120px;
    height: 120px;
  }
}

/* ===== 修复 iOS 100vh 问题 ===== */
@supports (-webkit-touch-callout: none) {
  .hero {
    min-height: -webkit-fill-available;
  }
}

/* ===== 图片懒加载占位 ===== */
img[loading="lazy"] {
  background: #e2ebe2;
  min-height: 100px;
}


/* ============================================================
   教学视频列表页（videos.html）
   ============================================================ */
.video-list-section {
  padding: 40px 0 80px;
  background: var(--green-soft);
}

.video-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 分组标题 */
.video-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-deep);
  padding: 18px 6px 8px;
  letter-spacing: 0.5px;
}

.video-group-title .group-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  background: var(--green-deep);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(15, 123, 63, 0.25);
}

/* 视频条目 */
.video-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  background: #fff;
  border-radius: 18px;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(27, 140, 75, 0.06);
  transition: all 0.25s ease;
}

.video-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-light);
}

.video-item:hover .video-arrow {
  color: var(--green-accent);
  transform: translateX(4px);
}

/* 编号 */
.video-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 44px;
  padding: 0 10px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--green-deep);
  background: var(--green-light);
  border-radius: 12px;
  flex-shrink: 0;
  font-feature-settings: "tnum";
}

/* 主体 */
.video-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.video-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}

.video-desc {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* 箭头 */
.video-arrow {
  font-size: 1.6rem;
  color: #b8cdbf;
  line-height: 1;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

/* 移动端 */
@media (max-width: 768px) {
  .video-list-section {
    padding: 30px 0 60px;
  }

  .video-item {
    padding: 14px 16px;
    gap: 12px;
    border-radius: 16px;
  }

  .video-num {
    min-width: 46px;
    height: 40px;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .video-title {
    font-size: 1rem;
  }

  .video-desc {
    font-size: 0.82rem;
  }

  .video-arrow {
    font-size: 1.4rem;
  }

  .video-group-title {
    font-size: 0.98rem;
    padding: 14px 4px 6px;
  }

  .video-group-title .group-num {
    min-width: 30px;
    height: 30px;
    font-size: 0.85rem;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .video-item {
    padding: 12px 14px;
    gap: 10px;
  }

  .video-num {
    min-width: 42px;
    height: 36px;
    font-size: 0.88rem;
  }

  .video-title {
    font-size: 0.95rem;
  }

  .video-desc {
    display: none;   /* 小屏隐藏副标题，保持简洁 */
  }
}

/* ===== 教学视频页头部：左文右码 ===== */
.page-header-inner {
  display: flex;
  align-items: flex-start;   /* 顶部对齐 */
  justify-content: space-between;
  gap: 30px;
}

.page-header-text {
  flex: 1;
  min-width: 0;
}

/* 右侧二维码：顶部与"教学视频"标签对齐 */
.page-header-inner .hero-qr-img {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  margin-top: 30px;
}

/* 移动端：改为上下排列，二维码居中 */
@media (max-width: 768px) {
  .page-header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-header-inner .hero-qr-img {
    width: 100px;
    height: 100px;
  }
}
