/* ============================================================
   www.retea7.com  —  一比一复刻 webdesign（RETEA网页设计）
   响应式：PC(≥1280) / 平板(768-1279) / 手机(≤767)
   配色：青 #A9EDFE(hero) 绿 #34cd8b(按钮/强调) 黄 #f6f04c(辅助) 黑 #0f111a(页脚)
   字体：Inter / 微软雅黑（替代 uemo 专有 Techna-Sans）
   ============================================================ */
:root {
  --brand-cyan: #A9EDFE;
  --brand-green: #34cd8b;
  --brand-green-dark: #006539;
  --brand-yellow: #f6f04c;
  --ink: #0f111a;
  --text: #1a1a1a;
  --muted: #6b7280;
  --line: #ececec;
  --header-h: 72px;
  --maxw: 1280px;
  --shadow-green: 0 5px 10px 0 rgba(0, 101, 57, .34);
  --radius: 16px;
  font-family: "Inter", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { color: var(--text); background: #fff; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { width: min(92%, var(--maxw)); margin: 0 auto; }

/* ---------- 通用按钮（绿色胶囊） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font-weight: 600; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  border: none; font-family: inherit;
}
.btn-primary { background: var(--brand-green); color: #fff; box-shadow: var(--shadow-green); }
.btn-primary:hover { transform: translateY(-2px); background: #2bb87c; }
.btn-lg { height: 52px; padding: 0 38px; font-size: 17px; }
.btn-sm { height: 40px; padding: 0 22px; font-size: 14px; }

/* ---------- 头部 ---------- */
.index_nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  color: #fff;
  transition: background .3s ease, color .3s ease, box-shadow .3s ease;
  background: transparent;
}
.index_nav.mini {
  background: #fff; color: #222;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .08);
}
.nav-inner { width: min(92%, var(--maxw)); margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; }
.brand img { height: 50px; width: auto; }
.nav-desktop { flex: 1; }
.nav-desktop ul { display: flex; justify-content: center; gap: 8px; }
.nav-desktop li a {
  display: block; padding: 8px 26px; font-size: 16px; font-weight: 500;
  position: relative; transition: color .2s;
}
.index_nav:not(.mini) .nav-desktop li a { color: #fff; }
.index_nav.mini .nav-desktop li a { color: #444; }
.nav-desktop li a:hover { color: var(--brand-green); }
.header_right { display: flex; align-items: center; gap: 14px; }
.search_btn {
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: transparent; color: inherit; display: inline-flex; align-items: center; justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.5' y2='16.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.search_btn .iconfont { display: none; }
.index_nav.mini .search_btn { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.5' y2='16.5'/%3E%3C/svg%3E"); }
.menu_toggle { display: none; width: 40px; height: 40px; border: none; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 8px; }
.menu_toggle span { display: block; height: 2px; width: 22px; background: currentColor; border-radius: 2px; transition: .25s; }
.menu_toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu_toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu_toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动端下拉导航 */
.mobile_nav {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
  background: #fff; max-height: 0; overflow: hidden; transition: max-height .3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
}
.mobile_nav.open { max-height: 80vh; }
.mobile_nav ul { padding: 8px 0; }
.mobile_nav li a { display: block; padding: 14px 24px; font-size: 16px; color: #333; border-bottom: 1px solid var(--line); }
.mobile_nav li:last-child a { border-bottom: none; }

/* 搜索浮层（简版） */
.searchview { position: fixed; inset: 0; z-index: 200; display: none; }
.searchview.open { display: block; }
.search_mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.searchview_wrapper { position: absolute; top: 22%; left: 50%; transform: translateX(-50%); width: min(90%, 560px); }
.search_bar { background: #fff; border-radius: 999px; padding: 6px 22px; box-shadow: var(--shadow-green); }
.searchform_input { width: 100%; height: 48px; border: none; outline: none; font-size: 16px; font-family: inherit; }
.search_close { position: absolute; top: -54px; right: 0; width: 38px; height: 38px; cursor: pointer; }
.search_close span { position: absolute; top: 18px; left: 4px; width: 30px; height: 2px; background: #fff; }
.search_close span:first-child { transform: rotate(45deg); }
.search_close span:last-child { transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 70px) 0 0; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--brand-cyan);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: var(--hero-img, none);
  background-size: cover; background-position: center; opacity: .9;
}
.hero-inner { position: relative; z-index: 2; padding-bottom: 60px; }
.hero-text { max-width: 820px; }
.hero-eyebrow { letter-spacing: 4px; font-weight: 700; color: var(--brand-green-dark); opacity: .8; font-size: 14px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(30px, 5vw, 58px); line-height: 1.15; font-weight: 800; color: #fff; text-shadow: 0 2px 18px rgba(0, 60, 90, .25); }
.hero-subtitle, #hero-subtitle { margin-top: 18px; font-size: clamp(15px, 1.6vw, 19px); color: rgba(255, 255, 255, .92); max-width: 680px; }
.hero-btn, #hero-btn { margin-top: 30px; }
.shape { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .16); z-index: 1; }
.shape-1 { width: 220px; height: 220px; top: 12%; right: -60px; }
.shape-2 { width: 120px; height: 120px; bottom: 18%; right: 18%; }
.shape-3 { width: 80px; height: 80px; top: 30%; left: 6%; }

/* 数据条 */
.stats-band { position: relative; z-index: 3; background: rgba(255, 255, 255, .92); margin: 30px auto 0; border-radius: var(--radius); max-width: min(92%, var(--maxw)); padding: 26px 10px; box-shadow: 0 12px 30px rgba(0, 60, 90, .15); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; }
.stat-number { font-size: clamp(26px, 3.4vw, 44px); font-weight: 800; color: var(--brand-green); line-height: 1.1; }
.stat-label { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ---------- 区块标题 ---------- */
.section-head { text-align: center; margin: 0 auto 40px; max-width: 720px; }
.section-eyebrow { letter-spacing: 3px; text-transform: uppercase; font-size: 13px; font-weight: 700; color: var(--brand-green); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(24px, 3vw, 38px); font-weight: 800; color: #111; }

/* ---------- 模块通用 ---------- */
.module { padding: clamp(56px, 8vw, 96px) 0; }
.cases { background: #fff; }
.templates { background: #f7fafb; }

/* 案例网格 */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.case-card { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .06); transition: transform .25s, box-shadow .25s; cursor: pointer; }
.case-card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(0, 0, 0, .12); }
.case-card .thumb { aspect-ratio: 4 / 3; background: #eef2f4 center/cover no-repeat; }
.case-card .body { padding: 16px 18px 20px; }
.case-card h3 { font-size: 17px; font-weight: 700; color: #1a1a1a; }
.case-card .cat { margin-top: 6px; font-size: 13px; color: var(--brand-green); }

/* 模板网格 */
.tpl-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.tpl-filter .chip { padding: 8px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: #555; cursor: pointer; transition: .2s; }
.tpl-filter .chip.active, .tpl-filter .chip:hover { background: var(--brand-green); color: #fff; border-color: var(--brand-green); }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.tpl-card { position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .06); transition: transform .25s; cursor: pointer; }
.tpl-card:hover { transform: translateY(-6px); }
.tpl-card .no { position: absolute; top: 12px; left: 14px; z-index: 2; font-weight: 800; font-size: 20px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.tpl-card .thumb { aspect-ratio: 4 / 3; background: #eef2f4 center/cover no-repeat; }
.tpl-card .body { padding: 14px 16px 18px; }
.tpl-card h3 { font-size: 16px; font-weight: 700; }
.tpl-card .cat { margin-top: 4px; font-size: 13px; color: var(--muted); }

/* ---------- 页脚 ---------- */
.footer { background: var(--ink); color: #cfd3da; padding: clamp(48px, 6vw, 72px) 0 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 36px; }
.footer-brand img { height: 44px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-slogan { font-size: 14px; line-height: 1.8; max-width: 320px; }
.footer-contact { margin-top: 12px; font-size: 14px; color: #fff; }
.foot_nav { display: flex; flex-direction: column; gap: 12px; }
.foot_nav a { font-size: 14px; color: #cfd3da; transition: color .2s; }
.foot_nav a:hover { color: var(--brand-green); }
.footer-share { display: flex; gap: 12px; }
.footer-share a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; transition: .2s; }
.footer-share a:hover { background: var(--brand-green); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; font-size: 13px; color: #8a909c; }

/* ============================================================
   响应式断点
   ============================================================ */

/* 平板：768 - 1279 */
@media (max-width: 1279px) {
  :root { --header-h: 64px; }
  .nav-desktop li a { padding: 8px 18px; font-size: 15px; }
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* 手机：≤767 —— 头部收成汉堡，网格单列，数据条 2x2 */
@media (max-width: 767px) {
  .nav-desktop { display: none; }
  .menu_toggle { display: flex; }
  .search_btn { display: none; }
  .hero { padding-top: calc(var(--header-h) + 36px); text-align: center; }
  .hero-text { margin: 0 auto; }
  .hero-eyebrow { letter-spacing: 2px; }
  .stats-band { border-radius: 14px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 8px; }
  .case-grid, .tpl-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-share { justify-content: flex-start; }
  .section-head { margin-bottom: 28px; }
  .module { padding: 48px 0; }
}

/* 大屏：≥1921（2K/4K 限制最大宽度，避免拉伸） */
@media (min-width: 1921px) {
  :root { --maxw: 1600px; }
  .hero h1 { font-size: 64px; }
}
