/* 旭峰团队官网 —— 对齐朝阳区金融商会官网风格 http://www.cbdjr.com.cn/ */
:root {
  --gold: #c2a106;
  --gold-deep: #b59a4d;
  --gold-block: #b8a03d;
  --text: #333333;
  --text-muted: #666666;
  --line: #e6e6e6;
  --bg: #ffffff;
  --dark: #1f2430;
  --max: 1200px;
  --header-h: 86px;
  --font: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", SimHei, Arial, Helvetica, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
  padding: 0;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
  border: 1px solid rgba(194, 161, 6, 0.35);
}

.brand-name {
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  position: relative;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--gold);
}

.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 3px;
  background: var(--gold);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--gold);
}

/* Hero slider */
.hero {
  position: relative;
  height: min(62vh, 560px);
  min-height: 360px;
  overflow: hidden;
  background: #111;
}

.hero-slider {
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.28));
}

.hero-slide-solid {
  background:
    radial-gradient(circle at 70% 30%, rgba(194, 161, 6, 0.35), transparent 40%),
    linear-gradient(135deg, #141820, #2a2414 55%, #0f1218);
}

.hero-slide-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  text-align: center;
  color: #fff;
  padding: 24px;
}

.hero-slide-copy p {
  margin: 0 0 16px;
  letter-spacing: 0.35em;
  color: var(--gold);
  font-size: 14px;
}

.hero-slide-copy h2 {
  margin: 0;
  font-size: clamp(22px, 3.2vw, 36px);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}

.hero-dots button.is-active {
  background: var(--gold);
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-en {
  margin: 0 0 10px;
  color: #999;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 22px;
  color: var(--gold);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
}

.btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 42px;
  padding: 0 22px;
  margin-top: 10px;
  background: var(--gold-block);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.btn-more:hover {
  background: #a38d2f;
}

/* About */
.about {
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-visual {
  border: 1px solid var(--line);
  background: #0b1220;
  overflow: hidden;
  min-height: 420px;
}

.about-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-height: 520px;
  object-fit: cover;
  object-position: center center;
}

.about-copy p,
.about-copy li {
  color: var(--text-muted);
  font-size: 15px;
}

.about-copy h3 {
  margin: 28px 0 14px;
  font-size: 18px;
  color: #222;
}

.about-copy ol {
  padding-left: 1.2em;
  margin-bottom: 22px;
}

.about-copy li + li {
  margin-top: 10px;
}

/* Entry cards */
.entries {
  padding-top: 20px;
  background: #f6f6f6;
}

.entries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.entry-card {
  position: relative;
  min-height: 220px;
  padding: 34px 28px;
  overflow: hidden;
  color: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.entry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.entry-card.gold {
  background: var(--gold-block);
}

.entry-card.dark {
  background: #2b3340;
}

.entry-card h3 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
}

.entry-card i {
  display: block;
  width: 36px;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}

.entry-en {
  margin: 0 0 28px;
  font-size: 13px;
  letter-spacing: 0.14em;
  opacity: 0.9;
}

.entry-card span {
  font-size: 14px;
}

.entry-card::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 140px;
  height: 160px;
  border: 18px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  transform: rotate(18deg);
}

/* Detail */
.detail {
  background: #fff;
}

.detail-block {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.detail-block:last-child {
  border-bottom: 0;
}

.detail-block h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #222;
}

.tag-line {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  color: var(--gold);
  background: rgba(194, 161, 6, 0.08);
  border: 1px solid rgba(194, 161, 6, 0.25);
  font-size: 14px;
}

.detail-block > p:last-child {
  margin: 0;
  color: var(--text-muted);
  max-width: 860px;
}

/* Service */
.service {
  background: #f7f7f7;
}

.service-head {
  margin-bottom: 28px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-grid article {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px 22px;
}

.service-grid h3 {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 18px;
}

.service-grid p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* Slogan */
.slogan {
  background: var(--gold-block);
  color: #fff;
  text-align: center;
  padding: 36px 0;
}

.slogan p {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* Footer */
.site-footer {
  background: #2a2f38;
  color: rgba(255, 255, 255, 0.78);
  padding-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-bottom: 36px;
}

.footer-grid h4 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 16px;
}

.footer-grid a,
.footer-grid p {
  display: block;
  margin: 0 0 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
}

.footer-bottom p {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--gold-block);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #a38d2f;
}

/* Responsive */
@media (max-width: 1080px) {
  .brand-name {
    font-size: 22px;
  }

  .about-grid,
  .service-grid,
  .entries-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 8px;
    border-bottom: 1px solid #f0f0f0;
  }

  .site-nav a.is-active::after {
    display: none;
  }

  .about-grid,
  .entries-grid,
  .service-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 280px;
    height: 48vh;
  }

  .about-visual img,
  .hero-slide {
    object-position: center center;
    background-position: center center;
  }

  .section {
    padding: 52px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .brand-name {
    font-size: 20px;
  }

  .entry-card {
    min-height: 180px;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}
