/* =====================================================
   广州芝蜀商贸有限公司 · 官方网站(备案审核展示页)
   纯静态、零外部依赖:字体走系统栈,图标为内联 SVG
   目录:
   01 设计变量 / 02 基础 / 03 顶部导航 / 04 首屏
   05 通用区块 / 06 关于芝蜀 / 07 卡片体系 / 08 发展历程
   09 联系我们 / 10 站点声明 / 11 页脚 / 12 返回顶部
   13 动画 / 14 响应式
   ===================================================== */

/* ---------- 01 设计变量 ---------- */

:root {
  --ink: #17241f;
  --muted: #55645d;
  --faint: #8b9a93;
  --accent: #0e7d5a;
  --accent-deep: #0a5c43;
  --accent-soft: #e8f3ee;
  --line: #dfe8e3;
  --bg: #f6f9f7;
  --card: #ffffff;
  --hero-ink: #0b2018;
  --gold: #c9a15c;
  --shadow-sm: 0 1px 3px rgba(23, 36, 31, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(23, 36, 31, 0.16);
  --radius: 14px;
  --header-h: 68px;
}

/* ---------- 02 基础 ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(14, 125, 90, 0.18); }

.container {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

strong { color: var(--accent-deep); font-weight: 600; }

/* ---------- 03 顶部导航 ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -12px rgba(23, 36, 31, 0.18);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-mark {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-domain {
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: 0.04em;
}

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

.nav-link {
  position: relative;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--accent-deep);
  background: var(--accent-soft);
}

.nav-link.is-active {
  color: var(--accent-deep);
  font-weight: 600;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

/* ---------- 04 首屏 ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--hero-ink);
  color: #fff;
  padding: calc(var(--header-h) + 48px) 0 96px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(720px 420px at 20% 0%, rgba(14, 125, 90, 0.55) 0%, transparent 62%),
    radial-gradient(640px 380px at 85% 18%, rgba(201, 161, 92, 0.16) 0%, transparent 60%),
    radial-gradient(900px 520px at 50% 110%, rgba(14, 125, 90, 0.4) 0%, transparent 65%),
    linear-gradient(180deg, #0b2018 0%, #0e2c21 55%, #0b2018 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(640px 420px at 50% 42%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(640px 420px at 50% 42%, #000 0%, transparent 78%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.92);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6fd3a8;
  box-shadow: 0 0 10px rgba(111, 211, 168, 0.9);
}

.hero-title {
  font-size: clamp(30px, 5.4vw, 52px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-wrap: balance;
}

.hero-subtitle {
  max-width: 640px;
  font-size: clamp(15px, 2.2vw, 18px);
  color: rgba(255, 255, 255, 0.82);
}

.hero-domain {
  font-size: 13px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, #12996e 0%, var(--accent-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(18, 153, 110, 0.65);
}

.btn-primary:hover {
  box-shadow: 0 14px 30px -10px rgba(18, 153, 110, 0.8);
  transform: translateY(-2px);
}

.btn-ghost {
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.hero-stats {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 22px;
  height: 34px;
  margin-left: -11px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  z-index: 1;
}

.hero-scroll::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.6);
  animation: scroll-hint 1.8s ease-in-out infinite;
}

@keyframes scroll-hint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(9px); opacity: 0.25; }
}

/* ---------- 05 通用区块 ---------- */

.section { padding: 88px 0; }

.section-alt {
  background: linear-gradient(180deg, #eef4f0 0%, #f2f7f4 100%);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.35;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 15.5px;
  color: var(--muted);
}

/* ---------- 06 关于芝蜀 ---------- */

.about-body { max-width: 820px; margin: 0 auto; }

.about-h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 30px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
  line-height: 1.4;
}

.about-h3:first-child { margin-top: 0; }

.about-body > p {
  color: var(--muted);
  margin-bottom: 14px;
  text-align: justify;
}

.quote {
  margin: 28px 0;
  padding: 22px 26px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  border: 1px solid rgba(14, 125, 90, 0.16);
}

.quote-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: 0.05em;
}

.quote-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.feature-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-item h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--accent-deep);
  margin-bottom: 8px;
}

.feature-item h3 svg {
  width: 19px;
  height: 19px;
  color: var(--accent);
  flex: none;
}

.feature-item p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.about-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.fact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.fact-label {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--faint);
  margin-bottom: 6px;
}

.fact-value {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- 07 卡片体系 ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card-grid--three { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(14, 125, 90, 0.35);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-icon svg { width: 22px; height: 22px; }

.card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.card-text {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.8;
  text-align: justify;
}

.grid-note {
  margin-top: 26px;
  text-align: center;
  font-size: 13.5px;
  color: var(--faint);
}

/* ---------- 08 发展历程 ---------- */

.timeline {
  list-style: none;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(14, 125, 90, 0.15) 100%);
}

.tl-item {
  position: relative;
  padding: 0 0 34px 26px;
}

.tl-item:last-child { padding-bottom: 0; }

.tl-node {
  position: absolute;
  left: -28px;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(14, 125, 90, 0.12);
}

.tl-time {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 10px;
}

.tl-title {
  font-size: 17.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tl-text {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.8;
  text-align: justify;
}

/* ---------- 09 联系我们 ---------- */

.contact-panel {
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.contact-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: start;
}

.contact-row + .contact-row { border-top: 1px solid var(--line); }

.contact-row dt {
  padding: 18px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-deep);
  background: rgba(14, 125, 90, 0.05);
  letter-spacing: 0.06em;
}

.contact-row dd {
  padding: 18px 22px;
  font-size: 14.5px;
  color: var(--ink);
}

/* ---------- 10 站点声明 ---------- */

.notice-list {
  list-style: none;
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.notice-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 16px 22px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.8;
  text-align: justify;
}

.notice-list li strong { color: var(--ink); }

/* ---------- 11 页脚 ---------- */

.site-footer {
  background: #0b2018;
  color: rgba(255, 255, 255, 0.75);
  padding: 44px 0 36px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

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

.footer-mark {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.footer-sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}

.footer-meta { text-align: right; }

.footer-copy {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
}

.footer-beian { margin-top: 8px; }

.beian-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13.5px;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.beian-link:hover {
  color: #6fd3a8;
  border-bottom-color: #6fd3a8;
}

/* ---------- 12 返回顶部 ---------- */

.back-top {
  position: fixed;
  right: 26px;
  bottom: 30px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -10px rgba(14, 125, 90, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s,
    background-color 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-top:hover { background: var(--accent-deep); }

.back-top svg { width: 20px; height: 20px; }

/* ---------- 13 动画 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-scroll::before { animation: none; }
  .card, .feature-item, .btn { transition: none; }
}

/* ---------- 14 响应式 ---------- */

@media (max-width: 920px) {
  .site-header { height: auto; }
  .header-inner {
    height: auto;
    justify-content: center;
    flex-wrap: wrap;
    padding: 8px 0;
  }
  :root { --header-h: 108px; }
  .brand-name { white-space: normal; font-size: 14px; }
  .site-nav { flex-wrap: wrap; justify-content: center; row-gap: 2px; }
  .nav-link { padding: 6px 10px; font-size: 13.5px; }
  .hero { min-height: 0; }
}

@media (max-width: 720px) {
  :root { --header-h: 118px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .feature-grid,
  .card-grid,
  .card-grid--three { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr; }
  .timeline { padding-left: 22px; }
  .tl-node { left: -22px; width: 14px; height: 14px; }
  .tl-item { padding-left: 18px; }
  .contact-row { grid-template-columns: 1fr; }
  .contact-row dt { padding: 12px 20px 0; background: none; }
  .contact-row dd { padding: 4px 20px 14px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
  .back-top { right: 18px; bottom: 20px; }
}
