/* ============================================================
   重庆有意思影视文化有限公司 · 官网样式
   风格：简约 / 专业 / 影视质感
   移动端优先设计
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --ink: #17181a;          /* 主文字 / 深色背景 */
  --ink-soft: #2a2c30;
  --gray: #6b6f76;         /* 次要文字 */
  --gray-light: #9a9ea6;
  --line: #e8e6e1;         /* 分隔线 */
  --paper: #ffffff;        /* 白底 */
  --paper-warm: #f7f6f3;   /* 暖白底 */
  --accent: #b08d4f;       /* 金色强调 */
  --accent-deep: #8f7038;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --maxw: 1140px;
  --header-h: 68px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea { font: inherit; }

/* ---------- 通用 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 76px 0; }
.section-warm { background: var(--paper-warm); }
.section-ink { background: var(--ink); color: #fff; }

.section-head { text-align: center; margin-bottom: 48px; }
.section-kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(26px, 4.5vw, 38px);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.3;
}
.section-desc {
  color: var(--gray);
  max-width: 620px;
  margin: 14px auto 0;
  font-size: 15px;
}
.section-ink .section-desc { color: #a9abb0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: all .25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-soft); transform: translateY(-2px); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  right: -2px; top: -2px;
}
.brand-text b { font-size: 17px; letter-spacing: .5px; display: block; }
.brand-text span { font-size: 10px; color: var(--gray); letter-spacing: 2px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: 15px;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav a:hover { color: var(--accent); }
.nav a.active { color: var(--accent); font-weight: 600; }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px; height: 40px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  margin: 5px auto;
  transition: .3s;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(176,141,79,.22), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(176,141,79,.10), transparent 40%);
}
.hero-inner {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 20px;
}
.hero-kicker {
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead {
  font-size: clamp(15px, 2.5vw, 19px);
  color: #c9cacc;
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.9;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 58px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 26px;
}
.hero-meta div b {
  font-size: 28px; color: #fff; display: block; line-height: 1.2;
}
.hero-meta div span { font-size: 13px; color: var(--gray-light); }

/* ---------- 关于简介（首页） ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-visual {
  background: linear-gradient(145deg, #232529, #101113);
  border-radius: var(--radius);
  min-height: 320px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.about-visual .glyph {
  font-size: 120px;
  color: rgba(176,141,79,.35);
  font-weight: 800;
  line-height: 1;
}
.about-visual .tag {
  position: absolute;
  bottom: 20px; left: 22px;
  color: #fff;
  font-size: 13px;
  letter-spacing: 2px;
}
.text-block p { color: var(--gray); margin-bottom: 16px; font-size: 15px; }
.text-block p:last-of-type { margin-bottom: 26px; }
.feature-list { display: grid; gap: 14px; margin: 26px 0 30px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.feature-list .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-top: 11px; flex: none;
}

/* ---------- 服务卡片 ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: all .25s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.card-icon {
  width: 48px; height: 48px;
  background: var(--paper-warm);
  border-radius: 10px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--gray); font-size: 14px; line-height: 1.8; }

/* ---------- 作品案例 ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.work-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  color: #fff;
  transition: transform .3s ease;
}
.work-item:hover { transform: scale(1.02); }
.work-1 { background: linear-gradient(135deg, #3a3f47, #1b1d21); }
.work-2 { background: linear-gradient(135deg, #6b5636, #2c2618); }
.work-3 { background: linear-gradient(135deg, #40535a, #1c2629); }
.work-4 { background: linear-gradient(135deg, #5a4048, #291d21); }
.work-5 { background: linear-gradient(135deg, #3e4a3a, #1c221a); }
.work-6 { background: linear-gradient(135deg, #4a4358, #221f2a); }
.work-item .work-info { position: relative; z-index: 2; }
.work-item .work-cat { font-size: 12px; color: var(--accent); letter-spacing: 2px; }
.work-item h4 { font-size: 18px; margin-top: 4px; }
.work-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent 55%);
}
.work-item > * { position: relative; z-index: 2; }

/* ---------- 数字统计 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stats b {
  font-size: clamp(30px, 5vw, 46px);
  color: var(--accent);
  display: block;
  line-height: 1.1;
}
.stats span { font-size: 14px; color: #a9abb0; }

/* ---------- CTA ---------- */
.cta {
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.cta h2 { font-size: clamp(24px, 4vw, 34px); margin-bottom: 14px; }
.cta p { color: #a9abb0; margin-bottom: 28px; }

/* ---------- 内页 Page Hero ---------- */
.page-hero {
  background: var(--ink);
  color: #fff;
  padding: 70px 20px 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 30%, rgba(176,141,79,.2), transparent 50%);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: 2px; }
.page-hero p { color: #b9bbc0; margin-top: 12px; font-size: 15px; }
.crumb { font-size: 13px; color: var(--gray-light); margin-bottom: 18px; }
.crumb a:hover { color: var(--accent); }

/* ---------- 关于页 ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 2px; background: var(--line);
}
.timeline li { position: relative; padding-bottom: 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -25px; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--accent);
}
.timeline b { color: var(--accent); margin-right: 12px; }
.timeline h4 { display: inline; font-size: 17px; }
.timeline p { color: var(--gray); font-size: 14px; margin-top: 4px; }

.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.value-item {
  text-align: center; padding: 30px 20px;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.value-item .num {
  font-size: 34px; color: var(--accent); font-weight: 800; margin-bottom: 8px;
}
.value-item h4 { font-size: 17px; margin-bottom: 8px; }
.value-item p { color: var(--gray); font-size: 14px; }

/* ---------- 服务页 ---------- */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}
.service-row:last-child { border-bottom: none; }
.service-row:nth-child(even) .service-visual { order: 2; }
.service-visual {
  background: linear-gradient(145deg, #26282c, #141518);
  border-radius: var(--radius);
  min-height: 210px;
  display: grid; place-items: center;
  color: rgba(176,141,79,.4);
  font-size: 60px; font-weight: 800;
}
.service-row h3 { font-size: 24px; margin-bottom: 12px; }
.service-row p { color: var(--gray); font-size: 15px; margin-bottom: 18px; }
.service-row .tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list span {
  font-size: 13px; color: var(--accent-deep);
  background: var(--paper-warm);
  border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 20px;
}

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-info .ci-item {
  display: flex; gap: 16px; margin-bottom: 26px; align-items: flex-start;
}
.contact-info .ci-icon {
  width: 44px; height: 44px; flex: none;
  background: var(--paper-warm); border: 1px solid var(--line);
  border-radius: 50%; display: grid; place-items: center; color: var(--accent);
}
.contact-info .ci-icon svg { width: 20px; height: 20px; }
.contact-info h4 { font-size: 15px; margin-bottom: 3px; }
.contact-info p { color: var(--gray); font-size: 14px; }

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; margin-bottom: 7px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-warm); font-size: 14px; color: var(--ink);
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 12px; color: var(--gray-light); margin-top: 4px; }
.form-msg {
  margin-top: 14px; font-size: 14px; color: var(--accent-deep);
  min-height: 20px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--ink);
  color: #9a9ca1;
  padding: 54px 0 24px;
  font-size: 14px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand b { color: #fff; font-size: 19px; display: block; margin-bottom: 10px; }
.footer-brand p { line-height: 1.9; }
.footer-col h5 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col li { margin-bottom: 9px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center;
  padding-top: 22px;
  font-size: 12px;
  color: #6f7176;
  line-height: 1.9;
}

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px;
  width: 44px; height: 44px;
  background: var(--ink); color: #fff;
  border: none; border-radius: 50%;
  cursor: pointer; font-size: 18px;
  opacity: 0; visibility: hidden;
  transition: .3s; z-index: 90;
  box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--accent); }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 900px) {
  .grid-3, .works-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .about-split { gap: 34px; }
  .contact-grid { gap: 30px; }
}

@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 10px 20px 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a.active::after { display: none; }

  .hero-inner { min-height: 460px; padding: 60px 20px; }
  .hero-meta { gap: 24px; }
  .hero-meta div b { font-size: 23px; }

  .about-split, .grid-3, .grid-2, .works-grid,
  .values-grid, .service-row, .contact-grid { grid-template-columns: 1fr; }
  .service-row { gap: 22px; padding: 32px 0; }
  .service-row:nth-child(even) .service-visual { order: 0; }
  .service-visual { min-height: 160px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .brand-text span { display: none; }
}
