/* ============================================
   chenjingxing v2 — 重设计
   视觉：暖米色纸感 + 深墨绿点缀，高端生活方式杂志风
   大留白、不对称排版、无卡片
   ============================================ */

:root {
  --paper: #f5f1e9;
  --paper-2: #ece6d8;
  --ink: #1c1c1a;
  --ink-soft: #4a4a45;
  --muted: #8a8a82;
  --accent: #0f5132;      /* 深墨绿 */
  --accent-2: #2d6a4f;
  --line: #d9d2c3;
  --serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* 纸纹肌理 */
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(15,81,50,0.025) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(160,82,45,0.02) 0%, transparent 50%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== 导航 ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--accent);
  transition: all .4s ease;
}
.nav__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand {
  font-family: var(--serif);
  font-size: 24px; font-weight: 700;
  letter-spacing: 3px;
  color: var(--paper);
  display: flex; flex-direction: column; line-height: 1.1;
}
.nav__brand-en {
  font-family: var(--sans);
  font-size: 9px; font-weight: 500;
  letter-spacing: 4px;
  color: rgba(245,241,233,0.6);
  margin-top: 2px;
}
.nav__links ul { display: flex; gap: 44px; list-style: none; margin: 0; padding: 0; }
.nav__links li { margin: 0; padding: 0; }
.nav__links a {
  font-size: 14px; font-weight: 400;
  color: rgba(245,241,233,0.85);
  position: relative;
  transition: color .35s ease, transform .35s ease;
  display: inline-block;
  padding-bottom: 2px;
}
/* 下划线：从中心向两侧展开 */
.nav__links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 50%;
  width: 0; height: 1px;
  background: var(--paper);
  transform: translateX(-50%);
  transition: width .35s ease;
}
.nav__links a:hover {
  color: var(--paper);
  transform: translateY(-2px);
  text-shadow: 0 0 12px rgba(245,241,233,0.25);
}
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  border: 1px solid rgba(245,241,233,0.6);
  color: var(--paper);
  padding: 11px 28px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 1px;
  transition: all .35s ease;
  position: relative;
  overflow: hidden;
}
.nav__cta:hover {
  background: var(--paper);
  color: var(--accent);
  border-color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* ========== 汉堡菜单按钮（移动端） ========== */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav__toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== 移动端下拉菜单 ========== */
.nav__mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--accent);
  padding: 80px 24px 40px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
  z-index: 1000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav__mobile.is-open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}
.nav__mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav__mobile li {
  border-bottom: 1px solid rgba(245,241,233,0.12);
}
.nav__mobile li:last-child { border-bottom: none; }
.nav__mobile li a {
  display: block;
  padding: 18px 0;
  color: rgba(245,241,233,0.95);
  text-decoration: none;
  font-size: 18px;
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__mobile li a:hover {
  color: var(--paper);
}
.nav__mobile-cta {
  display: block;
  margin-top: 16px;
  padding: 12px 24px;
  border: 1px solid rgba(245,241,233,0.6);
  border-radius: 4px;
  color: var(--paper);
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  transition: all 0.25s ease;
}
.nav__mobile-cta:hover {
  background: var(--paper);
  color: var(--accent);
}
.nav.is-scrolled {
  background: rgba(15,81,50,0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

/* ===== Hero ===== */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 56px 80px;
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}
.hero__text { position: relative; z-index: 2; }
.hero__eyebrow {
  font-size: 12px; letter-spacing: 5px;
  color: var(--accent);
  margin-bottom: 32px;
  font-weight: 500;
  opacity: 0;
  animation: fadeUp 1s .2s forwards;
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(44px, 5.5vw, 82px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 1px;
  color: var(--ink);
}
.hero__title .line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s forwards;
}
.hero__title .line:nth-child(1) { animation-delay: .4s; }
.hero__title .line:nth-child(2) { animation-delay: .6s; }
.hero__title .italic {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.hero__sub {
  font-size: 17px; color: var(--ink-soft);
  margin-top: 36px;
  max-width: 440px;
  opacity: 0;
  animation: fadeUp 1s .8s forwards;
}
.hero__meta {
  margin-top: 56px;
  display: flex; gap: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  opacity: 0;
  animation: fadeUp 1s 1s forwards;
}
.hero__meta-item {
  display: flex; flex-direction: column;
}
.hero__meta-num {
  font-family: var(--serif);
  font-size: 32px; font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.hero__meta-label {
  font-size: 12px; color: var(--muted);
  margin-top: 8px;
  letter-spacing: 1px;
}
.hero__btn {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 48px;
  background: var(--accent);
  color: var(--paper);
  padding: 18px 44px;
  font-size: 15px; font-weight: 500;
  letter-spacing: 2px;
  transition: all .3s;
  opacity: 0;
  animation: fadeUp 1s 1.2s forwards;
}
.hero__btn:hover { background: var(--ink); gap: 18px; }
.hero__portrait {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--paper-2);
  overflow: hidden;
}
.hero__portrait img, .hero__portrait-bg {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__portrait-frame {
  position: absolute;
  top: 20px; left: 20px; right: -20px; bottom: -20px;
  border: 1px solid var(--accent);
  z-index: -1;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 通用 Section ===== */
.section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 140px 56px;
}
.section__label {
  font-size: 11px; letter-spacing: 5px;
  color: var(--accent);
  margin-bottom: 48px;
  font-weight: 600;
  text-transform: uppercase;
}
.section__headline {
  font-family: var(--serif);
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 72px;
  max-width: 700px;
  color: var(--ink);
}
.accent { color: var(--accent); font-style: italic; font-weight: 500; }

/* ===== 理念 ===== */
.philosophy {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
  align-items: start;
}
.philosophy__headline {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 1px;
  color: var(--ink);
  position: sticky;
  top: 140px;
}
.philosophy__body {
  border-left: 2px solid var(--accent);
  padding-left: 48px;
}
.philosophy__body p {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  line-height: 2.1;
}
.philosophy__body p:first-child {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.8;
}

/* ===== 服务项目 ===== */
.specialty {
  background: var(--paper-2);
  max-width: none;
  padding-left: calc((100vw - 1320px) / 2 + 56px);
  padding-right: calc((100vw - 1320px) / 2 + 56px);
}
.specialty__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.spec {
  padding: 48px 40px;
  border: 1px solid var(--line);
  margin: -1px 0 0 -1px;
  transition: all .4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.spec::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--accent);
  transition: width .4s;
}
.spec:hover { background: var(--paper); }
.spec:hover::before { width: 100%; }
.spec__no {
  font-family: var(--serif);
  font-size: 13px; color: var(--muted);
  letter-spacing: 3px;
  display: block;
  margin-bottom: 16px;
}
.spec__body h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
}
.spec__body p {
  font-size: 14px; color: var(--ink-soft);
  line-height: 1.9;
}

/* ===== 精选案例 ===== */
.cases__featured {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0;
  margin-bottom: 48px;
  min-height: 520px;
}
.case-featured__img {
  background-size: cover; background-position: center;
  min-height: 100%;
  position: relative;
}
.case-featured__body {
  background: var(--ink);
  color: var(--paper);
  padding: 56px;
  display: flex; flex-direction: column; justify-content: center;
}
.case-featured__tag {
  font-size: 11px; letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 600;
}
.case-featured__body h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
}
.case-featured__body p {
  font-size: 15px;
  color: rgba(245,241,233,0.7);
  line-height: 2;
  margin-bottom: 32px;
}
.case-featured__more {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--paper);
  border-bottom: 1px solid var(--paper);
  padding-bottom: 4px;
  align-self: flex-start;
}
.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.case {
  display: flex; flex-direction: column;
  transition: transform .4s ease;
}
.case:hover { transform: translateY(-8px); }
.case__img {
  aspect-ratio: 4/3;
  background-size: cover; background-position: center;
  margin-bottom: 20px;
}
.case__body h3 {
  font-family: var(--serif);
  font-size: 19px; font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--ink);
}
.case__body p {
  font-size: 13px; color: var(--muted);
  line-height: 1.8;
}

/* ===== 科普文章 ===== */
.science__layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
}
.science__featured {
  border-top: 2px solid var(--ink);
  padding-top: 24px;
}
.science__featured .science__item {
  border: none;
  padding: 0;
  display: flex; flex-direction: column;
}
.science__featured .science__item:hover { background: none; padding: 0; }
.science__featured .science__img {
  aspect-ratio: 4/3;
  margin-bottom: 24px;
}
.science__featured .science__body h3 {
  font-size: 28px;
}
.science__list {
  display: flex; flex-direction: column;
}
.science__item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  transition: all .3s;
}
.science__item:last-child { border-bottom: 1px solid var(--line); }
.science__item:hover { padding-left: 12px; }
.science__img {
  aspect-ratio: 4/3;
  background-size: cover; background-position: center;
}
.science__date {
  font-size: 11px; color: var(--accent);
  letter-spacing: 2px;
  font-weight: 600;
}
.science__body h3 {
  font-family: var(--serif);
  font-size: 18px; font-weight: 700;
  margin: 8px 0 10px;
  line-height: 1.5;
  color: var(--ink);
}
.science__body p {
  font-size: 13px; color: var(--muted);
  line-height: 1.8;
}

/* ===== 空状态 ===== */
.empty-tip {
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 4px;
  background: var(--paper-2);
}
.empty-tip p {
  font-size: 14px; color: var(--muted);
  line-height: 2;
}

/* ===== 预约 CTA ===== */
.contact {
  background: var(--accent);
  max-width: none;
  padding: 140px 56px;
  text-align: center;
  color: var(--paper);
}
.contact__inner { max-width: 900px; margin: 0 auto; }
.contact__title {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 28px;
}
.contact__title .accent { color: #a8d5ba; }
.contact__sub {
  font-size: 16px;
  color: rgba(245,241,233,0.8);
  margin-bottom: 64px;
}
.contact__channels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(245,241,233,0.2);
}
.contact__item {
  padding: 36px 20px;
  display: flex; flex-direction: column; gap: 10px;
  border-right: 1px solid rgba(245,241,233,0.2);
  transition: background .3s;
}
.contact__item:last-child { border-right: none; }
.contact__item:hover { background: rgba(0,0,0,0.15); }
.contact__item-label {
  font-size: 11px; color: rgba(245,241,233,0.6);
  letter-spacing: 3px;
}
.contact__item-val {
  font-family: var(--serif);
  font-size: 15px; font-weight: 700;
}

/* ===== 页脚 ===== */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 56px 40px;
}
.footer__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 20px;
}
.footer__brand {
  display: flex; align-items: baseline; gap: 16px;
}
.footer__name {
  font-family: var(--serif);
  font-size: 26px; font-weight: 700;
}
.footer__en {
  font-size: 10px; letter-spacing: 3px;
  color: var(--muted);
}
.footer__claim {
  font-size: 12px; color: var(--muted);
  line-height: 1.8;
  max-width: 600px;
}
.footer__copy {
  font-size: 12px; color: var(--muted);
  margin-top: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(245,241,233,0.1);
}

/* ===== 滚动揭示 ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 文章详情页 ===== */
.article-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 140px 24px 100px;
}
.article-page__back {
  font-size: 13px; color: var(--accent);
  letter-spacing: 1px;
}
.article-page__cat {
  display: inline-block;
  margin: 32px 0 16px;
  font-size: 11px; color: var(--accent);
  letter-spacing: 4px;
  font-weight: 600;
}
.article-page__title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 24px;
  color: var(--ink);
}
.article-page__meta {
  font-size: 13px; color: var(--muted);
  margin-bottom: 48px;
  display: flex; gap: 12px;
}
.article-page__cover {
  aspect-ratio: 4/3;
  background-size: cover; background-position: center;
  margin-bottom: 56px;
}
.article-page__content {
  font-size: 16px;
  line-height: 2.1;
  color: var(--ink-soft);
}
.article-page__content p { margin-bottom: 24px; }
.article-page__content h2, .article-page__content h3 {
  font-family: var(--serif);
  margin: 40px 0 16px;
  color: var(--ink);
}
.article-page__content img { max-width: 100%; height: auto; }
.article-page__foot {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.article-page__tags {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 32px;
}
.article-page__tag {
  font-size: 12px;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-soft);
  transition: all .3s;
}
.article-page__tag:hover { border-color: var(--accent); color: var(--accent); }
.article-page__nav {
  display: flex; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.article-page__nav-item {
  font-size: 14px; color: var(--ink-soft);
  max-width: 45%;
}
.article-page__nav-item:hover { color: var(--accent); }

/* ===== 分类列表页 ===== */
.category-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 140px 24px 100px;
}
.category-page__head { margin-bottom: 64px; }
.category-page__title {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  margin: 16px 0;
  color: var(--ink);
}
.category-page__intro {
  font-size: 16px; color: var(--ink-soft);
}
.cat-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  transition: padding-left .3s;
}
.cat-item:last-child { border-bottom: 1px solid var(--line); }
.cat-item:hover { padding-left: 12px; }
.cat-item__img {
  aspect-ratio: 4/3;
  background-size: cover; background-position: center;
}
.cat-item__date {
  font-size: 11px; color: var(--accent);
  letter-spacing: 2px;
  font-weight: 600;
}
.cat-item__body h3 {
  font-family: var(--serif);
  font-size: 22px; font-weight: 700;
  margin: 10px 0 12px;
  color: var(--ink);
}
.cat-item__body p {
  font-size: 14px; color: var(--muted);
  line-height: 1.9;
}
.category-page__pagebar {
  display: flex; gap: 8px;
  justify-content: center;
  margin-top: 64px;
}
.pagebar__item {
  min-width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  font-size: 14px;
  transition: all .3s;
}
.pagebar__item:hover { border-color: var(--accent); color: var(--accent); }
.pagebar__item.is-active { background: var(--accent); color: var(--paper); border-color: var(--accent); }

/* ===== 404 ===== */
.error-page {
  min-height: 70vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 100px 24px;
}
.error-page__code {
  font-family: var(--serif);
  font-size: clamp(80px, 12vw, 160px);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 24px;
}
.error-page__text {
  font-size: 18px; color: var(--ink-soft);
  margin-bottom: 40px;
}
.error-page__btn {
  background: var(--accent);
  color: var(--paper);
  padding: 16px 40px;
  font-size: 15px; font-weight: 500;
  letter-spacing: 2px;
  transition: all .3s;
}
.error-page__btn:hover { background: var(--ink); }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__portrait { max-width: 420px; }
  .philosophy { grid-template-columns: 1fr; gap: 40px; }
  .philosophy__headline { position: static; }
  .specialty__list { grid-template-columns: 1fr; }
  .cases__featured { grid-template-columns: 1fr; }
  .cases__grid { grid-template-columns: repeat(2, 1fr); }
  .science__layout { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  .nav__inner { padding: 14px 20px; position: relative; }
  .nav__brand { font-size: 17px; }
  .nav__brand-en { font-size: 9px; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile { display: block; }
  .hero { padding: 100px 24px 60px; }
  .section { padding: 80px 24px; }
  .specialty { padding-left: 24px; padding-right: 24px; }
  .contact { padding: 80px 24px; }
  .footer { padding: 48px 24px 32px; }
  .cases__grid { grid-template-columns: 1fr; }
  .contact__channels { grid-template-columns: repeat(2, 1fr); }
  .contact__item:nth-child(2) { border-right: none; }
  .contact__item:nth-child(-n+2) { border-bottom: 1px solid rgba(245,241,233,0.2); }
  .cat-item { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 480px) {
  .contact__channels { grid-template-columns: 1fr; }
  .contact__item { border-right: none !important; }
  .contact__item:not(:last-child) { border-bottom: 1px solid rgba(245,241,233,0.2); }
  .hero__meta { flex-direction: column; gap: 24px; }
}
