/* ============================================================
   深爱榜IP工作室 · 官网样式
   设计基调：纸白暖底 · 墨色衬线标题 · 深红主色 · 细线分隔
   ============================================================ */

:root {
  --ink: #17120f;
  --ink-2: #3a3129;
  --muted: #7d6e62;
  --faint: #a89a8d;
  --line: #e9dfd2;
  --line-2: #dccfbc;
  --paper: #fdfbf7;
  --paper-2: #f6f0e6;
  --white: #ffffff;
  --red: #9d2b1c;
  --red-2: #c14a26;
  --red-soft: #f7e9e4;
  --gold: #b08a52;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --w: 1160px;
  --radius: 6px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

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

/* ---------------- 顶部导航 ---------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .inner {
  max-width: var(--w); margin: 0 auto; padding: 0 28px;
  height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 40px; width: auto; }
.logo .name {
  font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: 1px; color: var(--ink);
}
.logo .name em { font-style: normal; color: var(--red); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; font-size: 15px; color: var(--ink-2); border-radius: 4px;
  transition: color .18s, background .18s;
}
.nav a:hover { color: var(--red); background: var(--red-soft); }
.nav a.active { color: var(--red); font-weight: 600; position: relative; }
.nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--red); border-radius: 2px;
}
.nav-cta {
  margin-left: 10px; padding: 9px 20px !important;
  background: var(--red) !important; color: #fff !important; border-radius: 999px !important;
}
.nav-cta:hover { background: var(--red-2) !important; }
.nav-cta.active::after { display: none; }
.menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(193, 74, 38, 0.10), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(176, 138, 82, 0.12), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero .inner { max-width: var(--w); margin: 0 auto; padding: 96px 28px 84px; text-align: center; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 4px; color: var(--gold);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 18px; margin-bottom: 30px;
  background: rgba(255,255,255,.6);
}
.hero h1 {
  font-family: var(--serif); font-weight: 700; color: var(--ink);
  font-size: clamp(38px, 6vw, 62px); letter-spacing: 4px; line-height: 1.25;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero .slogan {
  margin-top: 22px; font-size: clamp(16px, 2.2vw, 21px); color: var(--ink-2); letter-spacing: 2px;
}
.hero .motto {
  margin-top: 14px; font-family: var(--serif); font-size: 15px; color: var(--gold); letter-spacing: 6px;
}
.hero .chips { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hero .chips span {
  font-size: 13px; color: var(--ink-2); background: var(--white); border: 1px solid var(--line);
  padding: 6px 16px; border-radius: 999px;
}
.hero .btn-row { margin-top: 40px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-block; padding: 13px 34px; border-radius: 999px;
  font-size: 15px; letter-spacing: 1px; cursor: pointer; border: 1px solid transparent;
  transition: all .2s;
}
.btn-solid { background: var(--red); color: #fff; }
.btn-solid:hover { background: var(--red-2); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(157,43,28,.22); }
.btn-line { border-color: var(--red); color: var(--red); background: transparent; }
.btn-line:hover { background: var(--red-soft); }
.btn-ghost { border-color: var(--line-2); color: var(--ink-2); background: var(--white); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

/* ---------------- 区块 ---------------- */
.section { padding: 88px 0; }
.section.tinted { background: var(--paper-2); }
.section.slim { padding: 56px 0; }

.sec-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.kicker {
  font-size: 12px; letter-spacing: 5px; color: var(--red); font-weight: 600;
  text-transform: uppercase; margin-bottom: 14px;
}
.sec-head h2 {
  font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); font-weight: 700; color: var(--ink);
  letter-spacing: 2px;
}
.sec-head .lead { margin-top: 16px; color: var(--muted); font-size: 16px; }
.divider {
  width: 46px; height: 3px; background: linear-gradient(90deg, var(--red), var(--gold));
  margin: 20px auto 0; border-radius: 2px;
}

/* ---------------- 卡片网格 ---------------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; position: relative; overflow: hidden;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--red), var(--gold));
  opacity: 0; transition: opacity .22s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(23,18,15,.08); border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card .num {
  font-family: var(--serif); font-size: 15px; color: var(--gold); letter-spacing: 2px; margin-bottom: 12px;
}
.card h3 { font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 10px; letter-spacing: .5px; }
.card p { font-size: 14.5px; color: var(--muted); line-height: 1.85; }
.card .more {
  display: inline-block; margin-top: 16px; font-size: 14px; color: var(--red);
}
.card .more:hover { text-decoration: underline; }
.card .icon {
  width: 46px; height: 46px; border-radius: 10px; background: var(--red-soft);
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px;
}

/* 卡片：可点击链接式 */
a.card { display: block; }

/* ---------------- 数据带 ---------------- */
.stats-band {
  background: var(--ink); border-radius: var(--radius); padding: 46px 20px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.stats-band .item { text-align: center; padding: 0 12px; }
.stats-band .item + .item { border-left: 1px solid rgba(255,255,255,.12); }
.stats-band b {
  display: block; font-family: var(--serif); font-size: 34px; color: #f4e3c8; letter-spacing: 1px;
}
.stats-band span { display: block; margin-top: 6px; font-size: 13.5px; color: rgba(255,255,255,.65); letter-spacing: 1px; }

/* ---------------- 引言块 ---------------- */
.quote {
  max-width: 860px; margin: 0 auto; text-align: center;
  font-family: var(--serif); font-size: clamp(19px, 2.6vw, 25px); color: var(--ink-2);
  line-height: 2; letter-spacing: 1px;
}
.quote strong { color: var(--red); }
.quote-src { margin-top: 18px; font-size: 13px; color: var(--faint); letter-spacing: 2px; }

/* ---------------- 时间轴（时代机遇/历程） ---------------- */
.tl { position: relative; max-width: 880px; margin: 0 auto; }
.tl::before {
  content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--line-2);
}
.tl .item { position: relative; padding: 0 0 34px 64px; }
.tl .item:last-child { padding-bottom: 0; }
.tl .dot {
  position: absolute; left: 8px; top: 4px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--red); display: flex; align-items: center; justify-content: center;
}
.tl .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.tl h4 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.tl p { color: var(--muted); font-size: 15px; }

/* 发展历程：阶段区块 */
.stage-sec { padding: 40px 0 34px; }
.stage-sec + .stage-sec { border-top: 1px solid var(--line); }
.stage-head {
  display: flex; align-items: center; gap: 18px;
  max-width: 880px; margin: 0 auto 8px;
}
.stage-no {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%;
  background: var(--red); color: #fff; font-family: var(--serif);
  font-size: 20px; font-weight: 700; letter-spacing: .04em;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(157, 43, 28, .22);
}
.stage-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.stage-title h3 { font-size: 26px; margin: 0; line-height: 1.25; }
.stage-years {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  background: var(--red-soft); color: var(--red);
  font-size: 13px; font-weight: 700; letter-spacing: .08em; white-space: nowrap;
}
.stage-desc {
  max-width: 880px; margin: 0 auto 30px; padding-left: 74px;
  color: var(--muted); font-size: 15px; line-height: 1.9;
}

/* ---------------- 团队 ---------------- */
.member {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: all .22s;
}
.member:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(23,18,15,.08); }
.member .avatar {
  width: 64px; height: 64px; border-radius: 50%; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--red), var(--gold));
  color: #fff; font-family: var(--serif); font-size: 24px;
  display: flex; align-items: center; justify-content: center;
}
.member h4 { font-size: 18px; font-weight: 700; }
.member .role { font-size: 13px; color: var(--gold); margin: 4px 0 10px; letter-spacing: 1px; }
.member p { font-size: 14px; color: var(--muted); line-height: 1.85; }

/* ---------------- 内容页（关于/服务详情） ---------------- */
.page-head {
  background:
    radial-gradient(700px 300px at 90% -30%, rgba(193, 74, 38, .08), transparent 60%),
    var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 56px; text-align: center;
}
.page-head .crumb { font-size: 13px; color: var(--faint); letter-spacing: 2px; margin-bottom: 14px; }
.page-head .crumb a:hover { color: var(--red); }
.page-head h1 {
  font-family: var(--serif); font-size: clamp(30px, 4.4vw, 44px); font-weight: 700; letter-spacing: 3px;
}
.page-head .sub { margin-top: 14px; color: var(--muted); font-size: 16px; max-width: 720px; margin-left: auto; margin-right: auto; }

/* ---------------- 栏目页头 · 背景图横幅 ---------------- */
.page-head.has-bg {
  position: relative;
  background-color: #3a1b14;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding: 84px 0 76px;
  border-bottom: none;
  color: #fff;
}
.page-head.has-bg::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(28,12,8,.40), rgba(28,12,8,.14) 50%, rgba(28,12,8,.40));
}
.page-head.has-bg > * { position: relative; z-index: 1; }
.page-head.has-bg .crumb,
.page-head.has-bg .crumb a { color: rgba(255,255,255,.72); }
.page-head.has-bg .crumb a:hover { color: #ffd9a8; }
.page-head.has-bg h1 { color: #fff; text-shadow: 0 2px 22px rgba(0,0,0,.38); }
.page-head.has-bg .sub { color: rgba(255,255,255,.86); }
.page-head.has-bg .subtabs a {
  background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.38); color: #fff;
}
.page-head.has-bg .subtabs a:hover { border-color: #ffd9a8; color: #ffd9a8; }
.page-head.has-bg .subtabs a.on { background: var(--red); border-color: var(--red); color: #fff; }
.bg-about { background-image: url("../assets/bg-about.jpg"); }
.bg-services { background-image: url("../assets/bg-services.jpg"); }
.bg-cases { background-image: url("../assets/bg-cases.jpg"); }
.bg-news { background-image: url("../assets/bg-news.jpg"); }
.bg-responsibility { background-image: url("../assets/bg-responsibility.jpg"); }
.bg-contact { background-image: url("../assets/bg-contact.jpg"); }
@media (max-width: 680px) {
  .page-head.has-bg { padding: 56px 0 48px; background-position: 42% center; }
}

/* 子栏目切换 */
.subtabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.subtabs a {
  display: inline-block; padding: 9px 22px; border-radius: 999px; font-size: 14.5px;
  border: 1px solid var(--line-2); color: var(--ink-2); background: var(--white);
  transition: all .18s ease; letter-spacing: .5px;
}
.subtabs a:hover { border-color: var(--red); color: var(--red); }
.subtabs a.on { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }

.prose { max-width: 800px; margin: 0 auto; }
.prose h3 {
  font-family: var(--serif); font-size: 24px; margin: 44px 0 16px; letter-spacing: 1px;
  padding-left: 14px; border-left: 4px solid var(--red);
}
.prose p { color: var(--ink-2); margin-bottom: 16px; font-size: 16px; line-height: 2; }
.prose ul { margin: 0 0 18px 4px; }
.prose ul li {
  position: relative; padding-left: 22px; margin-bottom: 10px; color: var(--ink-2); font-size: 15.5px; line-height: 1.9;
}
.prose ul li::before {
  content: ""; position: absolute; left: 2px; top: 12px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--gold);
}
.prose .note {
  background: var(--red-soft); border: 1px solid #eddcd4; border-radius: var(--radius);
  padding: 18px 22px; font-size: 15px; color: var(--ink-2); margin: 24px 0;
}
.prose blockquote {
  border-left: 4px solid var(--gold); padding: 6px 0 6px 18px; margin: 22px 0;
  color: var(--muted); font-family: var(--serif); font-size: 17px;
}

/* 服务详情锚点目录 */
.toc {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 8px;
}
.toc a {
  font-size: 13.5px; color: var(--ink-2); background: var(--white); border: 1px solid var(--line);
  padding: 7px 16px; border-radius: 999px; transition: all .18s;
}
.toc a:hover { border-color: var(--red); color: var(--red); }

/* ---------------- 文章列表/详情 ---------------- */
.article-card {
  display: flex; gap: 24px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; transition: all .22s; align-items: stretch;
}
.article-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(23,18,15,.08); }
.article-card .cover {
  flex: 0 0 220px; min-height: 150px; border-radius: 4px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--red), var(--gold));
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.article-card .cover.no-img::after {
  content: attr(data-abbr); font-family: var(--serif); font-size: 40px; letter-spacing: 2px; opacity: .9;
}
.article-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.article-card h3 { font-size: 19px; margin-bottom: 8px; }
.article-card h3 a:hover { color: var(--red); }
.article-card .meta { font-size: 13px; color: var(--faint); margin-bottom: 10px; display: flex; gap: 14px; flex-wrap: wrap; }
.article-card .meta .tag { color: var(--red); border: 1px solid #eddcd4; border-radius: 3px; padding: 1px 8px; background: var(--red-soft); }
.article-card p { font-size: 14.5px; color: var(--muted); }
.list-col { display: flex; flex-direction: column; gap: 20px; }

.article-body { max-width: 800px; margin: 0 auto; }
.article-body h1 {
  font-family: var(--serif); font-size: clamp(26px, 4vw, 38px); line-height: 1.5; letter-spacing: 1px;
}
.article-body .meta { margin: 18px 0 0; font-size: 14px; color: var(--faint); display: flex; gap: 16px; flex-wrap: wrap; }
.article-body .meta .tag { color: var(--red); }
.article-body .hr { height: 1px; background: var(--line); margin: 30px 0 36px; }
.article-content { font-size: 16.5px; line-height: 2.1; color: var(--ink-2); }
.article-content p { margin-bottom: 20px; }
.article-content h2, .article-content h3 { font-family: var(--serif); margin: 34px 0 14px; color: var(--ink); }
.article-content h2 { font-size: 24px; }
.article-content h3 { font-size: 20px; }
.article-content img { border-radius: var(--radius); margin: 10px 0 22px; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 20px; }
.article-content ul li { list-style: disc; margin-bottom: 8px; }
.article-content ol li { list-style: decimal; margin-bottom: 8px; }
.article-content a { color: var(--red); text-decoration: underline; }

/* ---------------- 联系页 ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.info-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-item .ic {
  flex: 0 0 44px; height: 44px; border-radius: 10px; background: var(--red-soft);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.info-item b { display: block; font-size: 15px; margin-bottom: 3px; }
.info-item span { font-size: 14.5px; color: var(--muted); }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.form-card h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 6px; }
.form-card .hint { font-size: 13.5px; color: var(--faint); margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 7px; }
.field label i { color: var(--red); font-style: normal; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line-2); border-radius: 4px; padding: 11px 14px;
  font-size: 15px; font-family: var(--sans); background: var(--paper); color: var(--ink);
  outline: none; transition: border .18s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--red); }
.field textarea { min-height: 120px; resize: vertical; }
.form-msg { margin-top: 14px; font-size: 14px; display: none; }
.form-msg.ok { display: block; color: #2e7d32; }
.form-msg.err { display: block; color: var(--red); }

/* ---------------- CTA 带 ---------------- */
.cta-band {
  background: linear-gradient(120deg, #211a15, #3a2018 55%, #59281a);
  border-radius: 10px; padding: 58px 40px; text-align: center; color: #fff;
}
.cta-band h2 { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 34px); letter-spacing: 2px; }
.cta-band p { margin: 12px 0 26px; color: rgba(255,255,255,.72); font-size: 15.5px; }
.cta-band .btn { background: #f4e3c8; color: #4a1f14; font-weight: 600; }
.cta-band .btn:hover { background: #fff; }

/* ---------------- 页脚 ---------------- */
.footer { background: var(--ink); color: rgba(255,255,255,.72); margin-top: 90px; }
.footer .cols {
  max-width: var(--w); margin: 0 auto; padding: 64px 28px 40px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
}
.footer h4 {
  font-family: var(--serif); color: #f4e3c8; font-size: 17px; letter-spacing: 2px; margin-bottom: 18px;
}
.footer a { display: block; font-size: 14px; padding: 4px 0; color: rgba(255,255,255,.66); }
.footer a:hover { color: #f4e3c8; }
.footer p { font-size: 14px; line-height: 2; }
.footer .brandline { font-family: var(--serif); font-size: 15px; color: rgba(255,255,255,.85); letter-spacing: 3px; margin-bottom: 14px; }
.footer .copyright {
  border-top: 1px solid rgba(255,255,255,.1); text-align: center; padding: 22px;
  font-size: 13px; color: rgba(255,255,255,.4); letter-spacing: 1px;
}
.footer .admin-link { opacity: .35; font-size: 12px; }
.footer .admin-link:hover { opacity: .8; }

/* ---------------- 动效 ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 12px 20px 18px; gap: 2px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; }
  .menu-btn { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .stats-band .item:nth-child(3) { border-left: none; }
  .article-card { flex-direction: column; }
  .article-card .cover { flex: none; height: 160px; }
  .hero .inner { padding: 64px 24px 56px; }
  .section { padding: 60px 0; }
  .footer .cols { grid-template-columns: 1fr; }
  .stage-head { gap: 12px; }
  .stage-no { width: 44px; height: 44px; font-size: 16px; }
  .stage-title { gap: 10px; }
  .stage-title h3 { font-size: 20px; }
  .stage-years { font-size: 12px; padding: 3px 10px; }
  .stage-desc { font-size: 14px; padding-left: 0; }
}
