/* ============================================================
   极友派 OPC 联盟 · 设计系统
   对标无限极官网（温暖克制的新中式健康品牌质感）
   ============================================================ */

:root {
  /* 颜色 · 对标无限极 */
  --c-primary: #A0342C;        /* 深赭红 · 品牌主色 */
  --c-primary-dark: #7E2820;   /* 深红 hover */
  --c-gold: #C9A96E;           /* 暖金 · 辅色 */
  --c-gold-light: #E8D9B8;     /* 浅金 */
  --c-bg: #FAF7F2;             /* 暖白 · 页面背景 */
  --c-bg-deep: #F3EDE4;        /* 稍深暖白 */
  --c-surface: #FFFFFF;        /* 卡片白 */
  --c-text: #2B2B2B;           /* 主文字 */
  --c-text-soft: #555555;      /* 次文字 */
  --c-text-muted: #999999;     /* 弱化 */
  --c-border: #E5DFD5;         /* 细边框 */
  --c-shadow: rgba(0, 0, 0, .06);

  /* 字体 */
  --font-serif: "Songti SC", "Noto Serif SC", "SimSun", "STSong", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;

  /* 布局 */
  --container: 1200px;
  --radius-sm: 2px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --section-pad: 80px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-dark); }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; color: var(--c-text); line-height: 1.4; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* 焦点可见性（无障碍） */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

/* ---------- 顶部导航 ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 242, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-nav.is-scrolled { border-bottom-color: var(--c-border); box-shadow: 0 2px 12px var(--c-shadow); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--c-text); letter-spacing: 1px; }
.nav-logo .logo-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--c-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 18px; font-weight: 700;
}
.nav-logo .logo-sub { font-family: var(--font-sans); font-size: 11px; color: var(--c-text-muted); letter-spacing: 3px; margin-left: 2px; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block; padding: 10px 18px; color: var(--c-text); font-size: 15px;
  position: relative; white-space: nowrap;
}
.nav-menu > li > a::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 2px;
  height: 2px; background: var(--c-gold);
  transform: scaleX(0); transform-origin: center; transition: transform .25s;
}
.nav-menu > li > a:hover::after,
.nav-menu > li > a.is-active::after { transform: scaleX(1); }
.nav-menu > li > a.is-active { color: var(--c-primary); }

/* 移动端汉堡 */
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: none; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--c-text); transition: .25s; }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle.is-open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero 轮播 ---------- */
.hero-slider { position: relative; height: 560px; overflow: hidden; }
.hero-track { display: flex; height: 100%; transition: transform .6s ease; }
.hero-slide {
  min-width: 100%; height: 100%; position: relative;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-bg-deep);
}
.hero-slide .slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43, 20, 16, .35) 0%, rgba(43, 20, 16, .15) 60%, rgba(43, 20, 16, .45) 100%);
}
.hero-slide .slide-content { position: relative; z-index: 2; text-align: center; color: #fff; max-width: 720px; padding: 0 24px; }
.hero-slide .slide-kicker { font-size: 14px; letter-spacing: 4px; color: var(--c-gold-light); margin-bottom: 14px; }
.hero-slide .slide-title { font-size: clamp(30px, 5vw, 48px); font-weight: 700; color: #fff; margin: 0 0 18px; letter-spacing: 2px; }
.hero-slide .slide-desc { font-size: 16px; color: rgba(255, 255, 255, .92); margin: 0 0 28px; }
.hero-slide .slide-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* 轮播箭头 + 指示点 */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4);
  background: rgba(0,0,0,.15); color: #fff; font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: .25s;
}
.hero-arrow:hover { background: rgba(0,0,0,.35); }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }
.hero-dots { position: absolute; bottom: 24px; left: 0; right: 0; z-index: 5; display: flex; justify-content: center; gap: 10px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); transition: .25s; padding: 0; }
.hero-dots button.is-active { background: #fff; width: 26px; border-radius: 5px; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500; letter-spacing: 1px;
  border: 1px solid transparent; transition: .25s; min-height: 46px;
}
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn-outline-dark { background: transparent; color: var(--c-text); border-color: var(--c-border); }
.btn-outline-dark:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* ---------- 板块通用 ---------- */
.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--c-bg-deep); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head .section-kicker { font-size: 13px; letter-spacing: 3px; color: var(--c-gold); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 36px); margin: 0 0 14px; letter-spacing: 1px; }
.section-head h2::after {
  content: ""; display: block; width: 48px; height: 3px; background: var(--c-gold);
  margin: 18px auto 0;
}
.section-head p { color: var(--c-text-soft); font-size: 15px; margin: 0; }

/* ---------- 入口卡片（对标无限极 BRAND 卡片） ---------- */
.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.entry-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.entry-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.10); }
.entry-card .media { aspect-ratio: 4/3; position: relative; background: var(--c-bg-deep); overflow: hidden; }
.entry-card .media img { width: 100%; height: 100%; object-fit: cover; }
.entry-card .body { padding: 28px 26px; flex: 1; display: flex; flex-direction: column; }
.entry-card .body h3 { font-size: 20px; margin: 0 0 10px; }
.entry-card .body p { color: var(--c-text-soft); font-size: 14px; margin: 0 0 20px; flex: 1; }
.entry-card .entry-link { align-self: flex-start; color: var(--c-primary); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.entry-card .entry-link::after { content: "→"; transition: transform .25s; }
.entry-card .entry-link:hover::after { transform: translateX(4px); }

/* ---------- 图片占位（media-slot） ---------- */
.media-slot {
  position: relative; width: 100%; height: 100%;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(201,169,110,.12) 0%, transparent 55%),
    linear-gradient(135deg, #F7F2E9 0%, #EDE5D6 100%);
  display: flex; align-items: center; justify-content: center;
}
.media-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-slot .media-mark {
  font-family: var(--font-serif); font-size: 40px; color: rgba(160,52,44,.24);
  border: 2px solid rgba(160,52,44,.28); width: 68px; height: 68px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; transform: rotate(-6deg);
  background: rgba(255,255,255,.4);
}

/* ---------- 团队卡片 ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.team-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.team-card .media { aspect-ratio: 3/4; position: relative; background: var(--c-bg-deep); }
.team-card .media img { width: 100%; height: 100%; object-fit: cover; }
.team-card .body { padding: 20px 22px; }
.team-card .body .role { font-size: 12px; color: var(--c-gold); letter-spacing: 1px; margin: 0 0 6px; }
.team-card .body h3 { font-size: 17px; margin: 0 0 6px; }
.team-card .body p { font-size: 13px; color: var(--c-text-soft); margin: 0; }

/* ---------- 动态列表 ---------- */
.news-list { max-width: 860px; margin: 0 auto; }
.news-item { display: flex; align-items: center; gap: 20px; padding: 20px 4px; border-bottom: 1px solid var(--c-border); transition: .25s; }
.news-item:hover { padding-left: 12px; }
.news-item .date { font-size: 13px; color: var(--c-text-muted); white-space: nowrap; min-width: 96px; }
.news-item .title { flex: 1; color: var(--c-text); font-size: 15px; }
.news-item:hover .title { color: var(--c-primary); }
.news-item .arrow { color: var(--c-gold); }

/* ---------- 表单 ---------- */
.form-card { max-width: 640px; margin: 0 auto; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 40px; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 14px; margin-bottom: 8px; color: var(--c-text); }
.form-field label .req { color: var(--c-primary); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--c-border); border-radius: var(--radius-md);
  font-size: 15px; font-family: inherit; color: var(--c-text); background: var(--c-bg); transition: border-color .25s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--c-primary); outline: none; }
.form-field textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: 13px; color: var(--c-text-muted); margin-top: 6px; }
.form-result { text-align: center; margin-top: 16px; min-height: 24px; font-size: 14px; }
.form-result.ok { color: #2d7a4f; }
.form-result.err { color: var(--c-primary); }

/* ---------- 页脚 ---------- */
.site-footer { background: #2B1E1A; color: rgba(255,255,255,.7); padding: 56px 0 0; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-col h4 { color: #fff; font-family: var(--font-sans); font-size: 15px; margin: 0 0 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: rgba(255,255,255,.6); font-size: 14px; }
.footer-col ul a:hover { color: var(--c-gold-light); }
.footer-brand { font-family: var(--font-serif); font-size: 18px; color: #fff; margin-bottom: 12px; }
.footer-brand .mark { color: var(--c-gold); }
.footer-desc { font-size: 13px; line-height: 1.8; max-width: 300px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; text-align: center; font-size: 12px; color: rgba(255,255,255,.4); }

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed; right: 28px; bottom: 28px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: var(--c-primary); color: #fff; font-size: 20px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: .3s; display: flex; align-items: center; justify-content: center;
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--c-primary-dark); }

/* ---------- 滚动渐入 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-track { transition: none; }
}

/* ---------- 面包屑 / 页面头 ---------- */
.page-head { background: var(--c-bg-deep); padding: 72px 0 56px; text-align: center; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; }
.page-head p { color: var(--c-text-soft); max-width: 680px; margin: 0 auto; font-size: 15px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .entry-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
@media (max-width: 768px) {
  :root { --section-pad: 56px; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--c-bg); border-bottom: 1px solid var(--c-border);
    box-shadow: 0 12px 24px var(--c-shadow);
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav-menu.is-open { max-height: 420px; }
  .nav-menu > li > a { padding: 16px 24px; border-top: 1px solid var(--c-border); }
  .nav-menu > li > a::after { display: none; }
  .hero-slider { height: 100dvh; max-height: 520px; }
  .entry-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-arrow { display: none; }
}
