/* 天恒乐购 - 企业站全局样式（浅色系） */
:root {
  --bg-page: #f0f3f8;
  --bg-deep: #ffffff;
  --bg-card: #ffffff;
  --bg-elevated: #f7f8fa;
  --accent: #c17f0a;
  --accent-soft: rgba(193, 127, 10, 0.12);
  --text: #1a1f2e;
  --text-muted: #5c6473;
  --border: #e2e6ed;
  --gradient-hero: linear-gradient(165deg, #ffffff 0%, #f0f4fa 50%, #e8eef6 100%);
  --font-sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius: 12px;
  --shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 4px 24px rgba(15, 23, 42, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

a {
  color: #b37400;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #8f5c00;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.logo-img {
  height: 42px;
  width: auto;
  max-width: min(200px, 42vw);
  object-fit: contain;
  display: block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-list a {
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--text);
  background: var(--accent-soft);
}

/* 主内容区 */
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* 页脚 */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 2.5rem 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr auto;
  align-items: start;
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.footer-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  padding: 3.5rem 0 4rem;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -2rem -1.5rem 0;
  background: var(--gradient-hero);
  border-radius: 0 0 24px 24px;
  z-index: -1;
  border: 1px solid var(--border);
  border-top: none;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: var(--accent-soft);
  color: #8f5c00;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.hero-lead {
  max-width: 36rem;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(145deg, #e8a838 0%, #c17f0a 100%);
  color: #1a1f2e;
  box-shadow: 0 6px 20px rgba(193, 127, 10, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 10px 28px rgba(193, 127, 10, 0.35);
  color: #1a1f2e;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

/* 区块标题 */
.section {
  padding: 3rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: 1.65rem;
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: var(--text);
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 32rem;
  margin-inline: auto;
}

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(193, 127, 10, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* 数据条 */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 2rem;
  box-shadow: var(--shadow-card);
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.75rem;
  color: #b37400;
  font-weight: 800;
}

.stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* 内页：页面标题 */
.page-hero {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--text);
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 40rem;
}

/* 文章式内容 */
.prose {
  max-width: 720px;
}

.prose h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  padding-top: 0.5rem;
  color: var(--text);
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
}

.prose p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.prose ul {
  color: var(--text-muted);
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

/* 技术支持：布局 */
.support-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 340px;
  align-items: start;
}

@media (max-width: 900px) {
  .support-layout {
    grid-template-columns: 1fr;
  }
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-q:hover {
  background: var(--bg-page);
}

.faq-q .chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--accent);
}

.faq-item.open .faq-q .chevron {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-a {
  max-height: 320px;
}

.faq-a-inner {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.side-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: 5.5rem;
  box-shadow: var(--shadow-card);
}

.side-card h3 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--text);
}

.side-card dl {
  margin: 0;
  font-size: 0.9rem;
}

.side-card dt {
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.side-card dt:first-child {
  margin-top: 0;
}

.side-card dd {
  margin: 0.25rem 0 0;
}

/* 表单 */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 200;
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* 移动端导航 */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem;
    gap: 0;
    display: none;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list a {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
  }
}

body.layout-flex {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* —— 技术支持页（订货平台帮助）— 版式与局部强调 —— */
.support-help-main {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.support-help-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.support-help-hero h1 {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 700;
  color: #000000;
  letter-spacing: 0.04em;
}

.support-help-subtitle {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: #666666;
}

.support-contact-card {
  background: #f7f8fa;
  border-radius: 12px;
  padding: 1.35rem 1.5rem 1.5rem;
  margin-bottom: 2.5rem;
}

.support-section-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.support-section-title-row h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #000000;
}

.support-icon-phone {
  display: flex;
  color: #333333;
  flex-shrink: 0;
}

.support-icon-faq {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e53935;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}

.support-contact-line {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333333;
}

.support-contact-line:last-child {
  margin-bottom: 0;
}

.support-contact-hours {
  color: #333333;
}

.support-link-phone {
  color: #551a8b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.support-link-phone:hover {
  color: #6b2aad;
}

.support-faq-section {
  text-align: left;
}

.support-faq-list {
  margin: 0;
  padding: 0;
}

.support-faq-item {
  margin-bottom: 1.35rem;
}

.support-faq-item:last-child {
  margin-bottom: 0;
}

.support-faq-list dt {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #000000;
}

.support-faq-list dd {
  margin: 0;
  font-size: 0.95rem;
  color: #333333;
  line-height: 1.65;
}

.support-help-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.support-footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: #666666;
}

.support-footer-link-wrap {
  margin: 0.65rem 0 0;
}

.support-link-privacy {
  color: #0066cc;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.support-link-privacy:hover {
  color: #004499;
}

.support-privacy-main {
  text-align: left;
}

.support-privacy-h1 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #000000;
  text-align: center;
}

.support-privacy-text {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: #333333;
  line-height: 1.7;
}

.support-privacy-back {
  margin: 0;
  text-align: center;
}
