/* ===== 设计变量 ===== */
:root {
  --gold: #D4A24C;
  --gold-deep: #A87B1E;
  --gold-light: #F4D58D;
  --gold-soft: #FBEFD6;
  --purple: #B9A7E0;
  --purple-light: #EAE3F7;
  --purple-soft: #F5F1FB;
  --ink: #2A2620;
  --muted: #6B6357;
  --bg: #FFFBF2;
  --bg-alt: #FCF7EE;
  --white: #FFFFFF;
  --line: #ECE3D2;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(168, 123, 30, .10);
  --shadow-soft: 0 4px 16px rgba(42, 38, 32, .06);
  --maxw: 1120px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ===== 通用按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1.5px solid transparent; cursor: pointer; transition: .25s ease;
  white-space: nowrap;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #fff; box-shadow: 0 8px 20px rgba(168, 123, 30, .28);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(168, 123, 30, .36); }
.btn--ghost { background: transparent; border-color: var(--gold); color: var(--gold-deep); }
.btn--ghost:hover { background: var(--gold-soft); }
.btn--full { width: 100%; }

/* ===== 导航 ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 251, 242, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand__mark {
  height: 39px; width: auto; border-radius: 9px; overflow: hidden; display: inline-block; flex: none;
  box-shadow: var(--shadow-soft);
}
img.brand__mark { width: auto !important; height: 39px !important; object-fit: contain; display: block; }
.brand__name { font-size: 19px; letter-spacing: .5px; }
.brand__name em { font-style: normal; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 1.5px; display: block; line-height: 1; }
.brand__logo { position: relative; display: inline-block; }
.brand__mark-wrap { position: relative; display: inline-block; line-height: 0; }
.brand__reg {
  position: absolute; top: -2px; right: -14px;
  font-size: 13px; font-weight: 800; color: var(--gold-deep);
  line-height: 1; text-decoration: none;
}
.brand__sub { position: absolute; left: 100%; top: 56%; margin-left: 8px; white-space: nowrap; font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: .3px; }

.nav__links { margin-left: auto; display: flex; gap: 4px; }
.nav__links a {
  padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--muted); font-weight: 500; transition: .2s;
}
.nav__links a:hover { color: var(--ink); background: var(--gold-soft); }
.nav__links a.active { color: var(--gold-deep); background: var(--gold-soft); font-weight: 600; }

.nav__cta { margin-left: 8px; padding: 9px 20px; font-size: 14px; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto;
}
.nav__toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(185, 167, 224, .35) 0%, transparent 60%),
    radial-gradient(50% 50% at 10% 20%, rgba(212, 162, 76, .25) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-alt), var(--bg));
}
.hero__inner {
  position: relative; max-width: var(--maxw); margin: 0 auto; padding: 90px 20px 80px;
}
.pill {
  display: inline-block; padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--purple-soft); color: #6f5aa8; border: 1px solid var(--purple-light);
}
.hero__title { font-size: clamp(34px, 7vw, 60px); line-height: 1.15; margin: 18px 0 18px; font-weight: 800; letter-spacing: -.5px; }
.ink-gold {
  background: linear-gradient(120deg, var(--gold-deep), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { max-width: 620px; font-size: clamp(15px, 2.4vw, 18px); color: var(--muted); }
.hero__actions { display: flex; gap: 14px; margin: 30px 0 44px; flex-wrap: wrap; }
.hero__stats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 720px; }
.hero__stats li { background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.hero__stats strong { display: block; font-size: 30px; color: var(--gold-deep); font-weight: 800; }
.hero__stats strong span { font-size: 16px; }
.hero__stats li span:last-child { font-size: 13px; color: var(--muted); }
.hero__promise { margin: 18px auto 0; text-align: center; font-size: 13px; color: var(--gold-deep); font-weight: 600; letter-spacing: .5px; }

/* ===== Section 通用 ===== */
.section { max-width: var(--maxw); margin: 0 auto; padding: 76px 20px; }
.section--alt { max-width: none; background: var(--bg-alt); }
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { text-align: center; margin-bottom: 44px; }
.eyebrow { font-size: 12px; letter-spacing: 3px; font-weight: 700; color: var(--gold-deep); }
.section__head h2 { font-size: clamp(26px, 5vw, 40px); margin: 10px 0 12px; font-weight: 800; }
.lead { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 16px; }
.block-title { font-size: 20px; margin: 48px 0 22px; font-weight: 700; position: relative; padding-left: 14px; }
.block-title::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; border-radius: 3px; background: linear-gradient(var(--gold), var(--purple)); }

/* ===== 关于我们 ===== */
.about__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: start; }
.about__text p { font-size: 16px; color: var(--muted); }
.about__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chip { background: var(--gold-soft); color: var(--gold-deep); padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.about__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mini-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; box-shadow: var(--shadow-soft); }
.mini-card h3 { font-size: 16px; margin-bottom: 6px; color: var(--gold-deep); }
.mini-card p { font-size: 14px; color: var(--muted); }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
.timeline__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; border-top: 3px solid var(--gold); }
.timeline__year { font-weight: 800; color: var(--gold-deep); font-size: 18px; }
.timeline__item p { font-size: 14px; color: var(--muted); margin-top: 6px; }

.about__values { margin-top: 16px; font-size: 14px; color: var(--muted); }
.about__values strong { color: var(--gold-deep); }
.gov__caption { margin-top: 18px; font-size: 14px; color: var(--muted); text-align: center; }

/* ===== 品牌与资质 ===== */
.brand__identity { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-soft); }
.logo-mark { height: 18px; width: auto; border-radius: 4px; overflow: hidden; display: block; box-shadow: var(--shadow-soft); }
img.logo-mark { width: 100%; height: auto; object-fit: contain; display: block; }
.brand__logo-card h3 { font-size: 18px; }
.brand__logo-card p { font-size: 14px; color: var(--muted); }
.brand__voice { font-size: 15px; color: var(--muted); align-self: center; }

.creds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cred { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px; box-shadow: var(--shadow-soft); transition: .25s; }
.cred:hover { transform: translateY(-4px); border-color: var(--gold-light); }
.cred__icon { font-size: 28px; }
.cred h4 { margin: 10px 0 6px; font-size: 16px; }
.cred p { font-size: 14px; color: var(--muted); }

.cred-tall {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-image:
    linear-gradient(rgba(255, 251, 242, .62), rgba(255, 251, 242, .62)),
    url('assets/资本向善金融通鉴01.jpg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
.cred--inner {
  background: transparent;
  border: none;
  box-shadow: none;
  flex: 1 1 0;
}
.cred--inner:hover { transform: none; border-color: transparent; }

/* ===== 产品矩阵 ===== */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; transition: .25s; }
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product__top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.product__top h3 { font-size: 17px; }
.product__top h3 .soon { font-size: 12px; font-weight: 500; opacity: .8; }
.product__tag { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-deep); }
.product__tag--purple { background: var(--purple-soft); color: #6f5aa8; }
.product p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.product ul { list-style: none; margin-top: auto; }
.product li { font-size: 13.5px; padding: 6px 0 6px 20px; position: relative; color: var(--ink); }
.product li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 700; }

.solutions-flow { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.flow-step { flex: 1 1 160px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; text-align: center; box-shadow: var(--shadow-soft); }
.flow-step span { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--gold)); color: #fff; font-weight: 800; margin-bottom: 10px; }
.flow-step h4 { font-size: 16px; }
.flow-step p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.flow-arrow { display: grid; place-items: center; color: var(--gold); font-size: 22px; font-weight: 800; }

/* ===== 案例 ===== */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-soft); transition: .25s; }
.case:hover { transform: translateY(-4px); border-color: var(--purple-light); }
.case__metric { margin-bottom: 12px; }
.case__metric strong { font-size: 34px; color: var(--gold-deep); font-weight: 800; }
.case__metric strong span { font-size: 18px; }
.case__metric strong .case__arrow { width: 26px; height: 26px; vertical-align: -2px; margin-left: 4px; color: #dc3545; }
.case__metric strong .case__arrow--down { color: #28a745; }
.case__metric span:last-child { display: block; font-size: 13px; color: var(--muted); }
.case p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.case__tag { display: inline-block; font-size: 12px; font-weight: 600; color: #6f5aa8; background: var(--purple-soft); padding: 4px 12px; border-radius: 999px; }
.case--image { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.case--image img { flex: 1 1 260px; max-width: 380px; width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius-sm); }
.case--image .case__body { flex: 1 1 280px; }
.case__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.case__view { font-size: 11px; font-weight: 600; color: #fff; background: var(--gold-deep); border: none; padding: 3px 12px; border-radius: 999px; cursor: pointer; transition: .2s; }
.case__view:hover { background: #b5863a; }
.case--view { padding-bottom: 56px; }
.case--view .case__view { position: absolute; bottom: 24px; right: 24px; }
.case__image { margin-top: 16px; }
.case__image[hidden] { display: none; }
.case__image img { width: 100%; max-height: 340px; object-fit: contain; border-radius: var(--radius-sm); border: 1px solid var(--line); display: block; background: #fff; }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: 22px; box-shadow: var(--shadow-soft); }
.quote p { font-size: 15px; }
.quote footer { margin-top: 12px; font-size: 13px; color: var(--gold-deep); font-weight: 600; }

/* ===== 生态 ===== */
.eco { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.eco__card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-soft); }
.eco__card h3 { font-size: 18px; margin-bottom: 10px; }
.eco__card p { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.link-arrow { color: var(--gold-deep); font-weight: 600; font-size: 14px; }
.link-arrow:hover { color: var(--purple); }

.partners { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }
.partner { border: 1px dashed var(--line); border-radius: 999px; padding: 10px 20px; font-size: 14px; color: var(--muted); background: var(--white); }

/* ===== 联系我们 ===== */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; }
.contact__info { display: flex; flex-direction: column; gap: 18px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow-soft); }
.info-row span { font-size: 22px; }
.info-row h4 { font-size: 14px; color: var(--muted); font-weight: 600; }
.info-row p { font-size: 15px; }
.contact__qr { width: 120px; height: 120px; object-fit: contain; border-radius: 8px; background: #fff; padding: 4px; margin-top: 8px; box-shadow: var(--shadow-soft); }

.contact__form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-soft); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; background: var(--bg); color: var(--ink); transition: .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.field textarea { resize: vertical; }
.contact__form .field:last-of-type { margin-bottom: 8px; }
.form__hint { font-size: 14px; margin-top: 0; min-height: 0; }
.form__hint.ok { color: #2e8b57; margin-top: 10px; }
.form__hint.err { color: #c0392b; margin-top: 10px; }

/* ===== 页脚 ===== */
.footer { background: linear-gradient(135deg, #F7CB4E, #F2A83A); color: #3A2E1A; padding: 48px 20px 30px; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: start; justify-content: space-between; }
.footer__brand { display: flex; gap: 12px; align-items: center; }
.footer .brand__mark { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); }
.footer__brand strong { font-size: 17px; color: #2A2013; }
.footer__brand p { font-size: 13px; color: #6B5836; margin-top: 2px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px; }
.footer__links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: #4A3A22; font-weight: 500; transition: .2s; }
.footer__links a:hover { color: #2A2013; background: rgba(255,255,255,.5); }
.footer__legal { font-size: 12px; color: #5A4A2E; line-height: 1.6; }
.footer__qr { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.footer__qr img { width: 90px; height: 90px; object-fit: contain; border-radius: 8px; background: #fff; padding: 4px; }
.footer__qr p { font-size: 11px; color: #B7AE9C; line-height: 1.4; max-width: 120px; }
.footer__qr a { font-size: 12px; color: var(--gold-light); word-break: break-all; }
.footer__qr a:hover { color: var(--gold); }

/* ===== 滚动出现动画 ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .creds, .cases, .quotes, .eco { grid-template-columns: repeat(2, 1fr); }
  .cred-tall { grid-column: auto; grid-row: auto; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav__inner { padding: 12px 16px; gap: 10px; }
  .nav__links {
    position: fixed; top: 66px; left: 0; right: 0; bottom: 0;
    flex-direction: column; gap: 6px; background: var(--bg);
    padding: 20px; transform: translateX(100%); transition: transform .3s ease;
    box-shadow: var(--shadow);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { padding: 14px 16px; font-size: 17px; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .hero__inner { padding: 56px 18px 48px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero__stats li { padding: 14px 10px; }
  .hero__stats strong { font-size: 24px; }
  .hero__stats strong span { font-size: 14px; }
  .hero__actions { gap: 10px; }
  .about__cards { grid-template-columns: 1fr; }
  .products, .creds, .cases, .quotes, .eco { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .solutions-flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
  .section { padding: 52px 18px; }
  .section__head { margin-bottom: 30px; }
  .product, .cred, .case, .quote, .eco__card { padding: 18px; }
  .case--image img { height: 160px; }
  .contact__form, .brand__identity { padding: 20px; }
  .footer__inner { grid-template-columns: 1fr; gap: 22px; }
  .brand__identity { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

@media (max-width: 480px) {
  .nav__inner { padding: 10px 14px; }
  .brand__name { font-size: 16px; }
  .brand__mark { height: 34px !important; }
  .hero__title { letter-spacing: -0.3px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__stats { gap: 8px; }
  .hero__stats li { padding: 12px 6px; }
  .section { padding: 46px 16px; }
  .product, .cred, .case, .quote, .eco__card, .mini-card { padding: 16px; }
  .contact__form, .brand__identity { padding: 18px; }
  .field input, .field select, .field textarea { padding: 11px 12px; font-size: 16px; }
  .footer { padding: 40px 16px 26px; }
  .footer__legal { font-size: 11px; }
  .case__metric strong { font-size: 28px; }
}
