/* ============================================
   闫宝龙-西安外贸网站建设 · 主样式
   ============================================ */

:root {
  --color-primary: #0B1A2F;
  --color-primary-2: #11253F;
  --color-accent: #C9A35E;
  --color-accent-2: #B08B45;
  --color-text: #1F2937;
  --color-text-soft: #4B5563;
  --color-text-mute: #6B7280;
  --color-bg: #FFFFFF;
  --color-bg-soft: #F5F2EC;
  --color-bg-cream: #EFE9DC;
  --color-bg-dark: #0B1A2F;
  --color-border: #E5E1D7;
  --color-border-dark: rgba(255, 255, 255, .12);

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;

  --shadow-sm: 0 2px 8px rgba(11, 26, 47, .04);
  --shadow-md: 0 8px 28px rgba(11, 26, 47, .08);
  --shadow-lg: 0 18px 48px rgba(11, 26, 47, .16);

  --radius: 4px;
  --radius-lg: 8px;

  --container: 1240px;
  --gutter: 24px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--color-accent); }

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; color: var(--color-primary); line-height: 1.3; margin: 0 0 .5em; }

em { font-style: normal; color: var(--color-accent); }

p { margin: 0 0 1em; color: var(--color-text-soft); }

button { font: inherit; background: none; border: 0; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.link-light { color: rgba(255, 255, 255, .85); }
.link-light:hover { color: var(--color-accent); }

/* ============================================
   Topbar
   ============================================ */
.topbar {
  background: var(--color-primary);
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  gap: 12px;
}
.topbar__phone { color: var(--color-accent); font-weight: 600; letter-spacing: .02em; }
.topbar__phone:hover { color: #fff; }

/* ============================================
   Hero (Nav + Banner)
   ============================================ */
.hero {
  position: relative;
  background: var(--color-primary);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero__gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(201, 163, 94, .18), transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(59, 130, 246, .12), transparent 60%),
    linear-gradient(180deg, #0B1A2F 0%, #0E2238 60%, #0B1A2F 100%);
}
.hero__lines {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: .55;
  animation: floatY 12s ease-in-out infinite alternate;
}
@keyframes floatY {
  from { transform: translateY(-10px); }
  to { transform: translateY(10px); }
}

.nav {
  position: relative;
  z-index: 5;
  padding: 22px 0;
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
.hero.is-scrolled .nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(11, 26, 47, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: var(--font-serif);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.logo:hover { color: #fff; }
.logo__name { font-size: 24px; letter-spacing: .04em; }
.logo__r { font-size: 11px; color: var(--color-accent); margin-left: 1px; }
.logo__divider { color: var(--color-accent); font-size: 18px; padding: 0 2px; }
.logo__sub { font-size: 16px; color: rgba(255, 255, 255, .88); font-weight: 500; letter-spacing: .04em; }
.logo--light { color: #fff; }

.nav__menu {
  display: flex; align-items: center; gap: 28px;
  font-size: 15px;
}
.nav__menu a {
  color: rgba(255, 255, 255, .85);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav__menu a:hover { color: var(--color-accent); }
.nav__menu a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--color-accent);
  transition: width .25s ease;
}
.nav__menu a:hover::after { width: 100%; }
.nav__cta {
  background: var(--color-accent);
  color: #0B1A2F !important;
  padding: 8px 18px !important;
  border-radius: var(--radius);
  font-weight: 600 !important;
}
.nav__cta::after { display: none !important; }
.nav__cta:hover { background: #d8b46f; color: #0B1A2F !important; }

.nav__toggle {
  display: none;
  width: 36px; height: 36px;
  position: relative;
}
.nav__toggle span {
  display: block; height: 2px; background: #fff;
  margin: 6px auto; width: 24px; border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.hero__content {
  position: relative; z-index: 2;
  padding: 70px 0 100px;
  text-align: left;
  max-width: 920px;
  animation: rise .9s ease-out both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: .35em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin: 0 0 18px;
}
.hero__title {
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.15;
  color: #fff;
  margin: 0 0 24px;
  letter-spacing: .01em;
}
.hero__title em { color: var(--color-accent); }
.hero__lead {
  font-size: clamp(15px, 1.4vw, 18px);
  color: rgba(255, 255, 255, .82);
  max-width: 760px;
  margin: 0 0 36px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 60px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all .25s ease;
  cursor: pointer;
  letter-spacing: .04em;
}
.btn--primary { background: var(--color-accent); color: #0B1A2F; }
.btn--primary:hover { background: #d8b46f; color: #0B1A2F; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201, 163, 94, .35); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: var(--color-accent); color: #fff; transform: translateY(-2px); }

.hero__metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  max-width: 780px;
}
.hero__metrics li { display: flex; flex-direction: column; gap: 4px; }
.hero__metrics strong {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}
.hero__metrics strong small { font-size: 16px; color: rgba(255, 255, 255, .7); margin-left: 2px; }
.hero__metrics span { color: rgba(255, 255, 255, .7); font-size: 14px; }

/* ============================================
   Sections
   ============================================ */
.section { padding: 96px 0; position: relative; }
.section--light { background: var(--color-bg); color: var(--color-text); }
.section--dark { background: var(--color-bg-dark); color: rgba(255, 255, 255, .9); }
.section--cream { background: var(--color-bg-cream); color: var(--color-text); }

.section__head { text-align: center; max-width: 820px; margin: 0 auto 64px; }
.section__eyebrow {
  font-size: 12px;
  letter-spacing: .4em;
  color: var(--color-accent);
  margin: 0 0 12px;
  text-transform: uppercase;
  font-weight: 500;
}
.section--dark .section__eyebrow { color: var(--color-accent); }
.section__title {
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 0 0 18px;
}
.section--dark .section__title { color: #fff; }
.section__lead { color: var(--color-text-soft); font-size: 16px; margin: 0; }
.section--dark .section__lead { color: rgba(255, 255, 255, .7); }
.section__head--light .section__eyebrow { color: var(--color-accent); }

/* Service grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  padding: 36px 32px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 163, 94, .5);
}
.service-card__num {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--color-accent);
  letter-spacing: .15em;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
  width: 60%;
}
.service-card h3 {
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--color-primary);
}
.service-card p {
  font-size: 14.5px;
  color: var(--color-text-soft);
  margin: 0 0 18px;
}
.service-card__link {
  font-size: 14px;
  color: var(--color-accent-2);
  font-weight: 600;
  letter-spacing: .04em;
}
.service-card__link:hover { color: var(--color-primary); }

/* Process */
.process {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  position: relative;
}
.process::before {
  content: "";
  position: absolute;
  top: 28px; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 163, 94, .5), transparent);
  z-index: 0;
}
.process__item {
  position: relative; z-index: 1;
  text-align: center;
  padding: 0 8px;
}
.process__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  margin-bottom: 18px;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-accent);
  background: var(--color-bg-dark);
}
.process__item h3 {
  font-size: 18px;
  color: #fff;
  margin: 0 0 8px;
}
.process__item p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .65);
  margin: 0;
}

/* Advantage */
.advantage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.advantage li {
  position: relative;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform .3s ease, box-shadow .3s ease;
}
.advantage li:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.advantage__num {
  position: absolute;
  top: 22px; right: 26px;
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  color: rgba(201, 163, 94, .25);
  line-height: 1;
}
.advantage h3 {
  font-size: 19px;
  margin: 0 0 10px;
  color: var(--color-primary);
  position: relative;
  padding-top: 8px;
}
.advantage h3::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 28px; height: 2px; background: var(--color-accent);
}
.advantage p { font-size: 14.5px; margin: 0; color: var(--color-text-soft); }

/* Industries */
.industries {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px;
  max-width: 980px; margin: 0 auto;
}
.industries li {
  padding: 12px 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 15px;
  color: var(--color-text);
  font-weight: 500;
  transition: all .25s ease;
  cursor: default;
}
.industries li:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

/* About */
.about {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 64px;
  align-items: center;
}
.about__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 520 / 640;
  background: #11253F;
}
.about__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 18%;
}
.about__badge {
  position: absolute;
  top: 20px; left: 20px;
  padding: 6px 14px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 12px;
  letter-spacing: .2em;
  font-weight: 700;
  border-radius: var(--radius);
}
.about__text .section__eyebrow { text-align: left; }
.about__text .section__title { text-align: left; }
.about__text p { color: var(--color-text-soft); }
.about__list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px;
  margin: 24px 0 32px;
}
.about__list li {
  position: relative; padding-left: 22px;
  font-size: 14.5px; color: var(--color-text);
}
.about__list li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 10px; height: 2px; background: var(--color-accent);
}

/* FAQ */
.faq { max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .25s ease, background .25s ease;
}
.faq__item[open] {
  background: rgba(201, 163, 94, .08);
  border-color: rgba(201, 163, 94, .35);
}
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 28px;
  cursor: pointer;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon {
  position: relative;
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute;
  left: 50%; top: 50%;
  background: var(--color-accent);
  transform: translate(-50%, -50%);
  transition: transform .3s ease, opacity .3s ease;
}
.faq__icon::before { width: 16px; height: 2px; }
.faq__icon::after { width: 2px; height: 16px; }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq__body {
  padding: 0 28px 24px;
  color: rgba(255, 255, 255, .8);
  font-size: 14.5px;
  line-height: 1.85;
}
.faq__body a { color: var(--color-accent); }
.faq__body a:hover { color: #fff; }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.contact__card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 32px 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.contact__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 163, 94, .4);
  color: inherit;
}
.contact__icon { font-size: 28px; margin-bottom: 12px; }
.contact__label { font-size: 13px; color: var(--color-text-mute); letter-spacing: .1em; margin-bottom: 6px; }
.contact__value { font-family: var(--font-serif); font-size: 19px; font-weight: 700; color: var(--color-primary); word-break: break-all; }
.contact__qr { padding: 20px; }
.contact__qr img { width: 160px; height: 160px; border-radius: var(--radius); margin-bottom: 12px; }
.contact__qr-tip { font-size: 13px; color: var(--color-text-mute); }

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, .75);
  padding: 70px 0 24px;
  font-size: 14px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.footer__brand p { color: rgba(255, 255, 255, .6); margin-top: 16px; }
.footer__col h4 {
  font-family: var(--font-serif);
  font-size: 16px;
  color: #fff;
  margin: 0 0 18px;
  letter-spacing: .08em;
  position: relative; padding-left: 14px;
}
.footer__col h4::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 3px; height: 14px; background: var(--color-accent);
}
.footer__services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 16px;
  max-height: 320px;
  overflow: hidden;
  position: relative;
}
.footer__services::after {
  content: ""; position: absolute;
  bottom: 0; left: 0; right: 0; height: 50px;
  background: linear-gradient(180deg, transparent, var(--color-primary));
  pointer-events: none;
}
.footer__services li a {
  color: rgba(255, 255, 255, .7);
  font-size: 13.5px;
  transition: color .2s ease, padding-left .2s ease;
  display: inline-block;
  padding: 2px 0;
}
.footer__services li a:hover { color: var(--color-accent); padding-left: 4px; }
.footer__contact li { margin-bottom: 8px; color: rgba(255, 255, 255, .7); font-size: 14px; }
.footer__contact a { color: rgba(255, 255, 255, .85); }
.footer__contact a:hover { color: var(--color-accent); }
.footer__qr { width: 120px; height: 120px; border-radius: var(--radius); margin-top: 14px; }

.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px;
  padding-top: 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}
.footer__bottom p { margin: 0; }

/* ============================================
   Reveal animation
   ============================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .advantage { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .process::before { display: none; }
  .footer__top { grid-template-columns: 1fr 1.5fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed;
    top: 70px; right: 0; left: 0;
    background: rgba(11, 26, 47, .98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px var(--gutter);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
  }
  .nav__menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__menu li { border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .nav__menu li:last-child { border-bottom: 0; }
  .nav__menu a { display: block; padding: 14px 0; font-size: 16px; }
  .nav__menu a::after { display: none; }
  .nav__cta { margin-top: 10px; text-align: center; }

  .about { grid-template-columns: 1fr; gap: 36px; }
  .about__media { max-width: 380px; margin: 0 auto; aspect-ratio: 4 / 5; }

  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .footer__services { grid-template-columns: 1fr 1fr; max-height: none; }
  .footer__services::after { display: none; }
}

@media (max-width: 720px) {
  .topbar__inner { font-size: 12px; }
  .hero__content { padding: 48px 0 70px; }
  .hero__metrics { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 40px; }
  .service-grid, .advantage { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr 1fr; }
  .about__list { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .topbar span { display: none; }
  .topbar__inner { justify-content: center; }
}

@media (max-width: 420px) {
  .contact { grid-template-columns: 1fr; }
  .hero__title { font-size: 32px; }
  .process { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
