/* ========== 基础 ========== */
:root {
  --bg: #0a0c11;
  --bg2: #10131a;
  --gold: #c9a35a;
  --gold-l: #ecd08f;
  --text: #d9dbe0;
  --muted: #8a8f9c;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.9; overflow-x: hidden; }
body.loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ========== 开屏 ========== */
.loader {
  position: fixed; inset: 0; z-index: 999; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  transition: opacity .8s var(--ease), visibility .8s;
}
.loader img { width: 110px; animation: pulse 1.6s ease-in-out infinite; }
.loader-line { width: 160px; height: 1px; background: rgba(201,163,90,.2); overflow: hidden; position: relative; }
.loader-line::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: translateX(-100%); animation: load 1.2s var(--ease) infinite; }
.loader.done { opacity: 0; visibility: hidden; }
@keyframes pulse { 50% { transform: scale(1.06); filter: drop-shadow(0 0 18px rgba(236,208,143,.5)); } }
@keyframes load { to { transform: translateX(100%); } }

/* ========== 导航 ========== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .4s, padding .4s, box-shadow .4s; padding: 22px 0; }
.nav.scrolled { background: rgba(10,12,17,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 12px 0; box-shadow: 0 1px 0 rgba(201,163,90,.18); }
.nav-inner { display: flex; align-items: center; gap: 40px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 18px; letter-spacing: 2px; color: #fff; }
.brand img { width: 40px; height: 40px; }
.menu { display: flex; gap: 34px; margin-left: auto; }
.menu a { position: relative; font-size: 15px; color: #c9ccd4; letter-spacing: 1px; transition: color .3s; }
.menu a::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 0; height: 1px; background: var(--gold); transition: width .35s var(--ease), left .35s var(--ease); }
.menu a:hover, .menu a.active { color: var(--gold-l); }
.menu a:hover::after, .menu a.active::after { width: 100%; left: 0; }
.nav-tel { border: 1px solid rgba(201,163,90,.6); color: var(--gold-l); padding: 6px 18px; border-radius: 40px; font-size: 14px; letter-spacing: 1px; transition: all .3s; }
.nav-tel:hover { background: var(--gold); color: #111; }
.burger { display: none; background: none; border: 0; width: 30px; height: 22px; position: relative; cursor: pointer; margin-left: auto; }
.burger i { position: absolute; left: 0; right: 0; height: 2px; background: var(--gold-l); transition: all .35s var(--ease); }
.burger i:nth-child(1) { top: 0; } .burger i:nth-child(2) { top: 10px; } .burger i:nth-child(3) { top: 20px; }
.burger.open i:nth-child(1) { top: 10px; transform: rotate(45deg); }
.burger.open i:nth-child(2) { opacity: 0; }
.burger.open i:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ========== 首屏 ========== */
.hero { position: relative; height: 100vh; min-height: 620px; display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center; }
.hero-bg {
  position: absolute; inset: -6% 0; background: url(../images/hero.jpg) center/cover no-repeat;
  transform: scale(1.15); animation: heroZoom 14s var(--ease) forwards; will-change: transform;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at center, rgba(10,12,17,.35) 0%, rgba(10,12,17,.85) 75%), linear-gradient(to bottom, rgba(10,12,17,.5), transparent 30%, transparent 70%, var(--bg)); }
.hero-fx { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-content { position: relative; z-index: 3; padding: 0 20px; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-content > * { opacity: 0; transform: translateY(30px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.ready .hero-content > * { opacity: 1; transform: none; }
.ready .hero-content > :nth-child(2) { transition-delay: .25s; }
.ready .hero-content > :nth-child(3) { transition-delay: .45s; }
.ready .hero-content > :nth-child(4) { transition-delay: .7s; }
.ready .hero-content > :nth-child(5) { transition-delay: .95s; }
.hero-logo { width: 150px; margin: 0 auto 22px; filter: drop-shadow(0 0 30px rgba(236,208,143,.35)); }
.ready .hero-logo { animation: float 6s ease-in-out 1.5s infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.hero-en { font-size: 13px; letter-spacing: 10px; color: var(--gold); margin-bottom: 10px; }
.hero-title { font-family: var(--serif); font-size: clamp(34px, 6vw, 68px); font-weight: 700; letter-spacing: .18em; color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.ready .hero-title { animation: shine 6s linear 2s infinite; }
.hero-title {
  background: linear-gradient(100deg, #fff 0%, #fff 40%, var(--gold-l) 50%, #fff 60%, #fff 100%);
  background-size: 250% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes shine { from { background-position: 150% center; } to { background-position: -100% center; } }
.hero-motto { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 18px 0 44px; font-family: var(--serif); font-size: clamp(16px, 2.2vw, 24px); letter-spacing: .5em; color: var(--gold-l); }
.hero-motto em { width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.hero-btns { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.btn { position: relative; overflow: hidden; display: inline-block; padding: 13px 40px; font-size: 15px; letter-spacing: 3px; border-radius: 2px; transition: all .4s var(--ease); }
.btn-gold { background: linear-gradient(135deg, #b48a42, var(--gold-l), #b48a42); background-size: 200% auto; color: #15120b; font-weight: 600; }
.btn-gold:hover { background-position: right center; box-shadow: 0 10px 30px rgba(201,163,90,.35); transform: translateY(-2px); }
.btn-line { border: 1px solid rgba(255,255,255,.4); color: #fff; }
.btn-line:hover { border-color: var(--gold); color: var(--gold-l); transform: translateY(-2px); }
.scroll-hint { position: absolute; z-index: 3; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 4px; color: var(--muted); }
.scroll-hint span { width: 1px; height: 46px; background: rgba(201,163,90,.25); position: relative; overflow: hidden; }
.scroll-hint span::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--gold-l); animation: drop 1.8s ease-in-out infinite; }
@keyframes drop { to { top: 100%; } }

/* ========== 通用区块 ========== */
.section { position: relative; padding: 130px 0; overflow: hidden; }
.head { text-align: center; margin-bottom: 70px; }
.eyebrow { font-size: 12px; letter-spacing: 8px; color: var(--gold); margin-bottom: 10px; }
.title { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 42px); color: #fff; letter-spacing: 6px; font-weight: 700; position: relative; display: inline-block; padding-bottom: 18px; }
.title::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 48px; height: 2px; background: var(--gold); transform: translateX(-50%); }
.sub { margin-top: 18px; color: var(--muted); letter-spacing: 2px; }

/* 滚动出现 */
.reveal { opacity: 0; transform: translateY(50px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.from-left { transform: translateX(-60px); }
.reveal.from-right { transform: translateX(60px); }
.reveal.in { opacity: 1; transform: none; }

/* ========== 关于我们 ========== */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
.img-frame { position: relative; }
.img-frame::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; border: 1px solid rgba(201,163,90,.5); z-index: 0; transition: inset .6s var(--ease); }
.img-frame:hover::before { inset: 12px -12px -12px 12px; }
.img-frame img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: saturate(.9); transition: transform 1.2s var(--ease); }
.img-frame { overflow: visible; }
.about-text .title::after { left: 0; transform: none; }
.about-text .title { margin-bottom: 28px; }
.about-text p:not(.eyebrow) { color: #b9bdc7; text-align: justify; margin-bottom: 18px; font-size: 16px; }
.tags { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.tags span { border: 1px solid rgba(201,163,90,.4); color: var(--gold-l); padding: 6px 22px; font-size: 14px; letter-spacing: 3px; }
/* ========== 核心业务 ========== */
.practice { background: var(--bg2); }
.practice::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 15% 20%, rgba(201,163,90,.08), transparent 40%), radial-gradient(circle at 85% 80%, rgba(201,163,90,.06), transparent 40%); }
.cards { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  position: relative; padding: 44px 30px 40px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07);
  transition: transform .5s var(--ease), border-color .5s, background .5s, box-shadow .5s, opacity 1s var(--ease);
  transform-style: preserve-3d;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-l)); transition: width .6s var(--ease); }
.card:hover { border-color: rgba(201,163,90,.45); background: rgba(201,163,90,.06); box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.card:hover::before { width: 100%; }
.card-no { font-family: var(--serif); font-size: 54px; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(201,163,90,.6); margin-bottom: 22px; transition: color .5s; }
.card:hover .card-no { color: rgba(201,163,90,.25); }
.card h3 { font-family: var(--serif); font-size: 21px; color: #fff; letter-spacing: 2px; margin-bottom: 18px; }
.card li { position: relative; padding-left: 16px; color: #a9aeb9; font-size: 14px; line-height: 2.2; }
.card li::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; border: 1px solid var(--gold); transform: translateY(-50%) rotate(45deg); }

/* ========== 团队优势 ========== */
.team-bg, .contact-bg { position: absolute; inset: -20% 0; background-size: cover; background-position: center; will-change: transform; }
.team-bg { background-image: linear-gradient(rgba(10,12,17,.9), rgba(10,12,17,.92)), url(../images/office.jpg); }
.team .wrap { position: relative; }
.leader { max-width: 860px; margin: 0 auto 70px; text-align: center; padding: 50px 60px; border: 1px solid rgba(201,163,90,.3); background: rgba(10,12,17,.55); backdrop-filter: blur(6px); position: relative; }
.leader::before, .leader::after { content: ""; position: absolute; width: 22px; height: 22px; border-color: var(--gold-l); border-style: solid; }
.leader::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.leader::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.leader-name { font-family: var(--serif); font-size: 34px; color: #fff; letter-spacing: 10px; }
.leader-role { color: var(--gold); letter-spacing: 4px; margin: 6px 0 24px; font-size: 15px; }
.leader p { color: #b9bdc7; text-align: justify; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.value { text-align: center; padding: 40px 30px; transition: transform .5s var(--ease), opacity 1s var(--ease); }
.value:hover { transform: translateY(-8px); }
.value-icon { width: 76px; height: 76px; margin: 0 auto 24px; border-radius: 50%; border: 1px solid rgba(201,163,90,.5); display: flex; align-items: center; justify-content: center; position: relative; transition: background .5s; }
.value-icon::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px dashed rgba(201,163,90,.3); animation: spin 18s linear infinite; }
.value:hover .value-icon { background: rgba(201,163,90,.12); }
.value-icon svg { width: 32px; height: 32px; fill: none; stroke: var(--gold-l); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
@keyframes spin { to { transform: rotate(360deg); } }
.value h3 { font-family: var(--serif); font-size: 22px; color: #fff; letter-spacing: 4px; margin-bottom: 12px; }
.value p { color: var(--muted); font-size: 15px; }

/* ========== 服务流程 ========== */
.process { background: var(--bg); }
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.steps-line { position: absolute; top: 36px; left: 10%; right: 10%; height: 1px; background: rgba(255,255,255,.1); }
.steps-line i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-l)); box-shadow: 0 0 10px var(--gold); transition: width 2.4s var(--ease); }
.steps.in .steps-line i { width: 100%; }
.step { position: relative; text-align: center; opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.steps.in .step { opacity: 1; transform: none; }
.step b { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%; background: var(--bg); border: 1px solid rgba(201,163,90,.5); font-family: var(--serif); font-size: 22px; color: var(--gold-l); transition: all .5s var(--ease); }
.step:hover b { background: var(--gold); color: #15120b; box-shadow: 0 0 30px rgba(201,163,90,.5); }
.step h3 { font-family: var(--serif); font-size: 19px; color: #fff; letter-spacing: 3px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; padding: 0 6px; }
/* ========== 联系我们 ========== */
.contact-bg { background-image: linear-gradient(rgba(10,12,17,.82), rgba(10,12,17,.94)), url(../images/hero.jpg); }
.contact-inner { position: relative; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 0 auto; }
.contact-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 24px; border: 1px solid rgba(201,163,90,.3); background: rgba(10,12,17,.5); backdrop-filter: blur(6px); transition: border-color .4s, background .4s, transform .5s var(--ease), opacity 1s var(--ease); }
.contact-item:hover { border-color: var(--gold); background: rgba(201,163,90,.08); transform: translateY(-4px); }
.contact-item.wide { grid-column: 1 / -1; }
.ci-label { font-size: 13px; letter-spacing: 4px; color: var(--gold); }
.ci-value { font-family: var(--serif); font-size: 30px; color: #fff; letter-spacing: 3px; }
.ci-value.small { font-size: 20px; letter-spacing: 1px; text-align: center; }

/* ========== 页脚 ========== */
.footer { background: #07080c; border-top: 1px solid rgba(201,163,90,.18); padding: 40px 0; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 46px; height: 46px; }
.footer-brand strong { display: block; font-family: var(--serif); color: #fff; letter-spacing: 2px; font-size: 16px; }
.footer-brand span { color: var(--gold); letter-spacing: 3px; font-size: 13px; }
.footer-copy { text-align: right; }
.footer-copy a:hover { color: var(--gold-l); }

.to-top { position: fixed; right: 26px; bottom: 26px; z-index: 90; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(201,163,90,.6); color: var(--gold-l); background: rgba(10,12,17,.8); font-size: 18px; opacity: 0; transform: translateY(20px); pointer-events: none; transition: all .4s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--gold); color: #15120b; }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 50px; }
  .nav-tel { display: none; }
}
@media (max-width: 768px) {
  .section { padding: 90px 0; }
  .head { margin-bottom: 50px; }
  .burger { display: block; }
  .brand span { font-size: 16px; }
  .menu {
    position: fixed; top: 0; right: 0; bottom: 0; width: 72%; max-width: 300px; margin: 0;
    flex-direction: column; justify-content: center; gap: 30px; padding: 0 40px;
    background: rgba(10,12,17,.97); border-left: 1px solid rgba(201,163,90,.2);
    transform: translateX(100%); transition: transform .5s var(--ease);
  }
  .menu.open { transform: none; }
  .menu a { font-size: 18px; }
  .burger { z-index: 2; }
  .about-grid { grid-template-columns: 1fr; }
  .img-frame::before { inset: 14px -14px -14px 14px; }
  .img-frame img { aspect-ratio: 4/3; }
  .cards, .values, .contact-grid { grid-template-columns: 1fr; }
  .leader { padding: 36px 24px; }
  .leader-name { font-size: 28px; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .steps-line { top: 0; bottom: 0; left: 36px; right: auto; width: 1px; height: auto; }
  .steps-line i { width: 100%; height: 0; transition: height 2.4s var(--ease); }
  .steps.in .steps-line i { width: 100%; height: 100%; }
  .step { display: grid; grid-template-columns: 72px 1fr; column-gap: 22px; text-align: left; align-items: center; }
  .step b { grid-row: span 2; margin: 0; }
  .step h3 { margin: 0; }
  .step p { padding: 0; }
  .ci-value { font-size: 24px; }
  .ci-value.small { font-size: 16px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-copy { text-align: center; }
  .hero-motto { gap: 12px; letter-spacing: .3em; }
  .hero-motto em { width: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .step, .hero-content > * { opacity: 1 !important; transform: none !important; }
}
