/* ===== 川速发货 · 专业烟草辅料运输服务（纯 CSS 版） ===== */

:root {
  --green: #006937;
  --green-deep: #004f2a;
  --orange: #ff6900;
  --orange-dark: #e85f00;
  --ink: #0a0a0a;
  --paper: #f4f4f2;
  --line: #e3e3de;
  --line-dark: #d8d8d2;
  --gray: #737373;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--green); color: #ffffff; }

a { text-decoration: none; color: inherit; }
ol, ul { list-style: none; }
button { font-family: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.container { max-width: 1152px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s;
}
.btn-orange { background: var(--orange); }
.btn-orange:hover { background: var(--orange-dark); }
.btn-lg { height: 52px; padding: 0 36px; font-size: 16px; }
.btn-block { width: 100%; height: 44px; font-size: 16px; }

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  color: #a3a3a3;
  cursor: pointer;
}
.link-btn:hover { color: var(--green); text-decoration: underline; }
.link-green { color: var(--green); }

/* ---------- 顶部导航 ---------- */
#header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
#header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--line);
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: 1152px;
  margin: 0 auto;
  height: 64px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) { .header-inner { padding: 0 32px; } }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}
.brand-mark-light { background: #ffffff; color: var(--green); width: 24px; height: 24px; font-size: 10px; }
.brand-name { font-size: 18px; font-weight: 900; letter-spacing: -0.02em; color: var(--green); }
.footer .brand-name { color: rgba(255,255,255,0.9); font-size: 14px; }
.brand-sub {
  display: none;
  border-left: 1px solid rgba(0, 105, 55, 0.2);
  padding-left: 10px;
  font-size: 12px;
  color: #a3a3a3;
}
.footer .brand-sub { border-left-color: rgba(255,255,255,0.2); }
@media (min-width: 640px) { .brand-sub { display: inline; } }

.nav { display: none; align-items: center; gap: 32px; }
.nav a { font-size: 14px; color: #525252; transition: color 0.2s; }
.nav a:hover { color: var(--green); }
@media (min-width: 768px) { .nav { display: flex; } }

.header-actions { display: flex; align-items: center; gap: 12px; }
.user-box { display: flex; align-items: center; gap: 12px; }
.user-chip {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--green-deep);
}
.user-chip .icon { width: 16px; height: 16px; padding: 4px; background: var(--green); color: #fff; border-radius: 50%; box-sizing: content-box; }
.user-chip span:last-child { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logout-btn {
  display: flex; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer;
  font-size: 12px; color: #a3a3a3; transition: color 0.2s;
}
.logout-btn:hover { color: var(--green); }

.icon { width: 20px; height: 20px; }
.icon-sm { width: 14px; height: 14px; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}
.bg-lines {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.7;
}
.hero-inner {
  position: relative;
  max-width: 1152px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: 112px 16px 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 768px) { .hero-inner { padding: 112px 32px 96px; } }

.hero-kicker {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 24px;
}
.kicker-line { display: inline-block; width: 40px; height: 1px; background: var(--orange); }

.hero-title {
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--green);
  text-wrap: balance;
}

.hero-desc {
  margin-top: 32px;
  max-width: 576px;
  font-size: 16px;
  line-height: 1.75;
  color: #525252;
}
@media (min-width: 768px) { .hero-desc { font-size: 18px; } }

.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero-link {
  border-bottom: 2px solid var(--green);
  padding-bottom: 4px;
  font-size: 14px; font-weight: 500;
  color: var(--green);
  transition: color 0.2s, border-color 0.2s;
}
.hero-link:hover { color: var(--orange); border-bottom-color: var(--orange); }

.hero-stats {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (min-width: 768px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
.hero-stats dt { margin-top: 4px; font-size: 12px; color: var(--gray); }
.hero-stats dd { font-size: 30px; font-weight: 900; letter-spacing: -0.02em; color: var(--green-deep); }
@media (min-width: 768px) { .hero-stats dd { font-size: 36px; } }

/* ---------- 区块通用 ---------- */
.section { padding: 80px 0; }
@media (min-width: 768px) { .section { padding: 112px 0; } }
.section-white { background: #ffffff; }
.section-paper { background: var(--paper); }

.section-head {
  margin-bottom: 56px;
  display: flex; flex-direction: column; gap: 16px;
}
@media (min-width: 768px) {
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
.section-title {
  font-size: 36px; font-weight: 900; letter-spacing: -0.02em; color: var(--ink);
}
@media (min-width: 768px) { .section-title { font-size: 48px; } }
.section-lead { max-width: 448px; font-size: 14px; line-height: 1.75; color: var(--gray); }

/* ---------- 服务优势 ---------- */
.adv-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  transition: background-color 0.2s;
}
.adv-item:last-child { border-bottom: 1px solid var(--line); }
.adv-item:hover { background: var(--paper); }
@media (min-width: 768px) {
  .adv-item { grid-template-columns: 100px 1fr 1.2fr; column-gap: 40px; padding: 32px 16px; }
}
.adv-no { font-size: 20px; font-weight: 900; color: var(--green); }
@media (min-width: 768px) { .adv-no { font-size: 24px; } }
.adv-title { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; color: var(--ink); }
@media (min-width: 768px) { .adv-title { font-size: 30px; } }
.adv-desc {
  grid-column: span 2;
  margin-top: 12px;
  font-size: 14px; line-height: 1.75; color: var(--gray);
}
@media (min-width: 768px) { .adv-desc { grid-column: auto; margin-top: 0; } }

/* ---------- 运输保障（绿色区块） ---------- */
.section-green { background: var(--green); color: #ffffff; }
.green-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 0.35em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}
.green-title {
  max-width: 672px;
  font-size: 36px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.25;
}
@media (min-width: 768px) { .green-title { font-size: 48px; } }

.sec-grid {
  margin-top: 56px;
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}
@media (min-width: 768px) { .sec-grid { grid-template-columns: repeat(3, 1fr); } }
.sec-item { background: var(--green); padding: 32px; }
.sec-no { font-size: 14px; font-weight: 900; color: #ffb37a; }
.sec-title { margin-top: 12px; font-size: 24px; font-weight: 900; letter-spacing: -0.02em; }
.sec-desc { margin-top: 16px; font-size: 14px; line-height: 1.75; color: rgba(255, 255, 255, 0.7); }

/* ---------- 常见问题 ---------- */
.faq-grid { display: grid; gap: 48px; }
@media (min-width: 768px) { .faq-grid { grid-template-columns: 1fr 1.6fr; } }
.faq-lead { margin-top: 24px; max-width: 320px; font-size: 14px; line-height: 1.75; color: var(--gray); }

.acc-item { border-bottom: 1px solid var(--line-dark); }
.acc-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 0;
  background: none; border: none; cursor: pointer;
  font-size: 16px; font-weight: 700; text-align: left; color: var(--ink);
  transition: color 0.2s;
}
@media (min-width: 768px) { .acc-trigger { font-size: 18px; } }
.acc-trigger:hover { color: var(--green); }
.acc-icon { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.25s; }
.acc-item.open .acc-icon { transform: rotate(180deg); }
.acc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.acc-content p {
  padding-bottom: 24px;
  font-size: 14px; line-height: 1.75; color: #525252;
}

/* ---------- 页脚 ---------- */
.footer { background: var(--green-deep); color: #ffffff; }
.footer .container { padding-top: 80px; padding-bottom: 40px; }
@media (min-width: 768px) { .footer .container { padding-top: 112px; } }

.footer-cta {
  display: flex; flex-direction: column; align-items: flex-start; gap: 32px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
@media (min-width: 768px) {
  .footer-cta { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-cta-title { font-size: 36px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.25; }
.footer-cta-title span { color: #ffb37a; }
@media (min-width: 768px) { .footer-cta-title { font-size: 60px; } }

.footer-contacts {
  display: grid;
  gap: 40px;
  padding: 48px 0;
}
@media (min-width: 768px) {
  .footer-contacts { grid-template-columns: 1fr 1fr 1.4fr auto; gap: 32px; }
}
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-item .icon { margin-top: 4px; flex-shrink: 0; color: #ffb37a; }
.contact-label { font-size: 14px; font-weight: 700; color: #ffffff; }
.contact-value { margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, 0.6); }
.contact-qr { display: flex; align-items: center; gap: 16px; }
@media (min-width: 768px) { .contact-qr { flex-direction: column; align-items: flex-end; } }
.contact-qr img {
  width: 96px; height: 96px;
  background: #ffffff;
  padding: 6px;
  border-radius: 6px;
}
.contact-qr p { font-size: 12px; color: rgba(255, 255, 255, 0.5); }

.footer-bottom {
  display: flex; flex-direction: column; gap: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 12px; color: rgba(255, 255, 255, 0.5);
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- 登录弹窗 ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.modal-card {
  position: relative;
  width: 100%; max-width: 400px;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(0, 79, 42, 0.35);
  animation: modal-in 0.25s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-bar { height: 6px; background: var(--green); }
.modal-body { position: relative; padding: 32px; }
.modal-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; cursor: pointer;
  font-size: 22px; line-height: 1; color: #a3a3a3;
}
.modal-close:hover { color: var(--ink); }

.modal-title { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; color: var(--ink); }
.modal-desc { margin-top: 8px; font-size: 14px; color: var(--gray); }

#loginFormEl { margin-top: 24px; }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.field-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.field-row label { margin-bottom: 0; }
.field input {
  width: 100%; height: 40px;
  padding: 0 12px;
  font-size: 14px;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 105, 55, 0.12); }

.form-error { margin: -8px 0 12px; font-size: 14px; color: #dc2626; }

.remember {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 20px;
  font-size: 14px; color: #525252;
  cursor: pointer;
}
.remember input { accent-color: var(--green); width: 16px; height: 16px; cursor: pointer; }

.modal-note {
  margin-top: 16px;
  text-align: center;
  font-size: 12px; line-height: 1.8;
  color: #a3a3a3;
}

.login-success { padding: 40px 0; text-align: center; }
.success-icon { width: 48px; height: 48px; margin: 0 auto 12px; color: var(--green); }
.login-success p { font-size: 16px; font-weight: 500; }

.btn.loading { opacity: 0.8; pointer-events: none; }
.btn.loading::before {
  content: "";
  width: 14px; height: 14px;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 滚动入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .route-dash { animation: none; }
}

/* ---------- 首屏线路虚线流动 ---------- */
.route-dash { animation: dash-flow 30s linear infinite; }
@keyframes dash-flow { to { stroke-dashoffset: -440; } }
