/* ===========================================
   纽约一品养生馆 · 进口清关攻略
   小清新风格 · 宋体字体
   =========================================== */

/* ---------- 基础设置 ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-cream: #FBF6E9;
  --color-cream-dark: #F2EBD8;
  --color-sage: #94A684;
  --color-sage-dark: #6E8B5D;
  --color-sage-light: #C8D5B9;
  --color-pink: #E8B4B8;
  --color-pink-light: #F5D9DC;
  --color-text: #4A4540;
  --color-text-soft: #7A7268;
  --color-text-light: #A89F95;
  --color-line: #E2DCC9;
  --color-yellow: #FAF3DD;
  --color-accent: #B8624F;
  --shadow-soft: 0 2px 12px rgba(110, 139, 93, 0.08);
  --shadow-card: 0 4px 20px rgba(110, 139, 93, 0.10);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Songti SC", "STSong", "SimSun", "Source Han Serif SC",
               "Noto Serif CJK SC", "Source Han Serif CN", "宋体", serif;
  background: linear-gradient(135deg, #FDFAF1 0%, #F5F1E0 100%);
  color: var(--color-text);
  line-height: 1.85;
  font-size: 16px;
  letter-spacing: 0.02em;
  min-height: 100vh;
}

/* 背景装饰 */
body::before {
  content: "";
  position: fixed;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(200,213,185,0.25) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232,180,184,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- 顶部导航 ---------- */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 250, 241, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
  padding: 14px 0;
}

.top-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
}

.brand-text h1 {
  font-size: 19px;
  font-weight: 600;
  color: var(--color-sage-dark);
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.brand-text .subtitle {
  font-size: 12px;
  color: var(--color-text-soft);
  letter-spacing: 0.15em;
  margin-top: 3px;
}

.search-box {
  flex: 1;
  max-width: 360px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border: 1px solid var(--color-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  font-family: inherit;
  font-size: 14px;
  color: var(--color-text);
  outline: none;
  transition: all 0.25s ease;
}

.search-box input:focus {
  border-color: var(--color-sage);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(148, 166, 132, 0.12);
}

.search-box::before {
  content: "🔍";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  opacity: 0.5;
}

.top-actions {
  display: flex;
  gap: 10px;
}

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--color-line);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 0.2s ease;
  font-family: inherit;
  color: var(--color-text-soft);
}

.btn-icon:hover {
  background: var(--color-sage-light);
  color: var(--color-sage-dark);
  transform: translateY(-1px);
}

/* ---------- 主布局 ---------- */
.layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}

/* ---------- 侧边导航 ---------- */
.sidebar {
  position: sticky;
  top: 92px;
  height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-sage-light) transparent;
}

.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb {
  background: var(--color-sage-light);
  border-radius: 3px;
}

.sidebar h3 {
  font-size: 12px;
  color: var(--color-text-light);
  letter-spacing: 0.2em;
  margin-bottom: 14px;
  padding-left: 12px;
  font-weight: normal;
}

.nav-list {
  list-style: none;
  margin-bottom: 24px;
}

.nav-list li {
  margin-bottom: 2px;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  color: var(--color-text-soft);
  text-decoration: none;
  font-size: 14px;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
  letter-spacing: 0.05em;
}

.nav-list a:hover {
  background: rgba(200, 213, 185, 0.25);
  color: var(--color-sage-dark);
}

.nav-list a.active {
  background: var(--color-sage-light);
  color: var(--color-sage-dark);
  border-left-color: var(--color-sage-dark);
  font-weight: 600;
}

/* 进度条 */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-sage), var(--color-pink));
  z-index: 200;
  transition: width 0.1s ease;
}

/* ---------- 主内容区 ---------- */
main {
  min-width: 0;
}

.section {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 44px 48px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  position: relative;
  scroll-margin-top: 90px;
}

.section-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-sage-light);
  color: var(--color-sage-dark);
  border-radius: 12px;
  font-size: 12px;
  letter-spacing: 0.15em;
  margin-bottom: 14px;
}

.section h2 {
  font-size: 28px;
  color: var(--color-sage-dark);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.section .lead {
  color: var(--color-text-soft);
  font-size: 15px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--color-line);
  line-height: 1.9;
}

.section h3 {
  font-size: 20px;
  color: var(--color-sage-dark);
  margin: 28px 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--color-sage);
  letter-spacing: 0.03em;
}

.section h4 {
  font-size: 16px;
  color: var(--color-text);
  margin: 20px 0 10px;
  font-weight: 600;
}

.section p {
  margin-bottom: 14px;
  color: var(--color-text);
}

.section ul, .section ol {
  margin: 10px 0 14px 24px;
  color: var(--color-text);
}

.section li {
  margin-bottom: 8px;
  line-height: 1.85;
}

.section strong {
  color: var(--color-sage-dark);
  font-weight: 600;
}

.section em {
  color: var(--color-accent);
  font-style: normal;
  font-weight: 600;
}

/* ---------- 首页 Hero ---------- */
.hero {
  background: linear-gradient(135deg, rgba(200,213,185,0.4) 0%, rgba(245,217,220,0.4) 100%);
  text-align: center;
  padding: 56px 48px;
}

.hero-leaf {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  opacity: 0.9;
}

.hero h2 {
  font-size: 34px;
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}

.hero .hero-sub {
  font-size: 15px;
  color: var(--color-text-soft);
  letter-spacing: 0.2em;
  margin-bottom: 24px;
}

.hero .hero-desc {
  max-width: 600px;
  margin: 0 auto 28px;
  color: var(--color-text);
  font-size: 15px;
  line-height: 2;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  padding: 18px 12px;
  border: 1px solid rgba(200, 213, 185, 0.5);
}

.stat-card .num {
  font-size: 26px;
  color: var(--color-sage-dark);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.stat-card .label {
  font-size: 12px;
  color: var(--color-text-soft);
  margin-top: 4px;
  letter-spacing: 0.1em;
}

/* ---------- 提示框 ---------- */
.callout {
  margin: 18px 0;
  padding: 16px 20px;
  border-radius: 12px;
  border-left: 4px solid;
  font-size: 14.5px;
  line-height: 1.9;
}

.callout-info {
  background: rgba(200, 213, 185, 0.22);
  border-color: var(--color-sage);
  color: var(--color-text);
}

.callout-warn {
  background: rgba(250, 243, 221, 0.6);
  border-color: #D4B86A;
  color: var(--color-text);
}

.callout-danger {
  background: rgba(232, 180, 184, 0.22);
  border-color: var(--color-accent);
  color: var(--color-text);
}

.callout strong {
  display: block;
  margin-bottom: 4px;
  color: inherit;
}

/* ---------- 流程卡片 ---------- */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.flow-card {
  background: linear-gradient(135deg, #fff 0%, var(--color-cream) 100%);
  border-radius: 14px;
  padding: 22px 20px;
  border: 1px solid var(--color-line);
  position: relative;
  transition: all 0.3s ease;
}

.flow-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-sage-light);
}

.flow-card .step-num {
  position: absolute;
  top: -10px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: var(--color-sage);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.flow-card h4 {
  color: var(--color-sage-dark);
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 16px;
}

.flow-card p {
  font-size: 13.5px;
  color: var(--color-text-soft);
  line-height: 1.8;
  margin: 0;
}

/* ---------- 文件清单 ---------- */
.doc-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.doc-item {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  border: 1px solid var(--color-line);
  display: flex;
  gap: 14px;
}

.doc-item .doc-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--color-sage-light);
  color: var(--color-sage-dark);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.doc-item h4 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--color-sage-dark);
}

.doc-item .doc-en {
  font-size: 12px;
  color: var(--color-text-light);
  font-family: Georgia, serif;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.doc-item p {
  font-size: 13px;
  color: var(--color-text-soft);
  line-height: 1.75;
  margin: 0;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--color-pink-light);
  color: var(--color-accent);
  border-radius: 8px;
  font-size: 11px;
  margin-left: 4px;
  letter-spacing: 0.05em;
}

.tag.green {
  background: var(--color-sage-light);
  color: var(--color-sage-dark);
}

/* ---------- 产品 Tab ---------- */
.tabs {
  display: flex;
  gap: 4px;
  margin: 20px 0 0;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--color-line);
}

.tab-btn {
  padding: 10px 18px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  color: var(--color-text-soft);
  transition: all 0.2s ease;
  letter-spacing: 0.05em;
}

.tab-btn:hover {
  color: var(--color-sage-dark);
}

.tab-btn.active {
  color: var(--color-sage-dark);
  border-bottom-color: var(--color-sage-dark);
  font-weight: 600;
}

.tab-content {
  display: none;
  padding: 22px 0 0;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 表格 ---------- */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.styled-table th {
  background: var(--color-sage-light);
  color: var(--color-sage-dark);
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.05em;
}

.styled-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--color-line);
  vertical-align: top;
  line-height: 1.75;
}

.styled-table tr:last-child td {
  border-bottom: none;
}

.styled-table tr:hover td {
  background: rgba(200, 213, 185, 0.1);
}

/* ---------- FAQ 折叠 ---------- */
.faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--color-line);
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item:hover {
  border-color: var(--color-sage-light);
}

.faq-question {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--color-text);
  transition: all 0.2s ease;
  user-select: none;
}

.faq-question:hover {
  background: rgba(200, 213, 185, 0.1);
}

.faq-question .arrow {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-sage-light);
  color: var(--color-sage-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-question .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
}

.faq-item.open .faq-answer {
  max-height: 1200px;
  padding: 0 20px 18px;
}

.faq-answer p {
  font-size: 14.5px;
  color: var(--color-text-soft);
  line-height: 1.9;
}

/* ---------- 检查清单 ---------- */
.checklist {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  border: 1px solid var(--color-line);
  margin: 16px 0;
}

.checklist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--color-line);
}

.checklist-header h4 {
  font-size: 15px;
  color: var(--color-sage-dark);
  margin: 0;
}

.checklist-progress {
  font-size: 13px;
  color: var(--color-text-soft);
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  cursor: pointer;
  border-bottom: 1px dashed var(--color-line);
  transition: all 0.2s ease;
}

.check-item:last-child { border-bottom: none; }

.check-item:hover { background: rgba(200, 213, 185, 0.08); }

.check-item input[type="checkbox"] {
  margin-top: 5px;
  width: 16px;
  height: 16px;
  accent-color: var(--color-sage);
  cursor: pointer;
  flex-shrink: 0;
}

.check-item .check-text {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
}

.check-item.checked .check-text {
  color: var(--color-text-light);
  text-decoration: line-through;
}

.check-item .check-hint {
  display: block;
  font-size: 12.5px;
  color: var(--color-text-light);
  margin-top: 3px;
}

/* ---------- 联系卡片 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.contact-card {
  background: linear-gradient(135deg, #fff 0%, var(--color-cream) 100%);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--color-line);
}

.contact-card h4 {
  color: var(--color-sage-dark);
  font-size: 15px;
  margin: 0 0 8px;
}

.contact-card .desc {
  font-size: 13px;
  color: var(--color-text-soft);
  margin-bottom: 10px;
  line-height: 1.75;
}

.contact-card a {
  font-size: 13px;
  color: var(--color-accent);
  text-decoration: none;
  word-break: break-all;
}

.contact-card a:hover { text-decoration: underline; }

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--color-sage);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 4px 16px rgba(110, 139, 93, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 50;
}

.back-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-top:hover {
  background: var(--color-sage-dark);
  transform: translateY(-2px);
}

/* ---------- 页脚 ---------- */
footer {
  text-align: center;
  padding: 32px 24px 24px;
  color: var(--color-text-light);
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 2;
}

footer .footer-leaf {
  width: 32px;
  height: 32px;
  margin: 0 auto 8px;
  opacity: 0.6;
}

footer .disclaimer {
  max-width: 720px;
  margin: 12px auto 0;
  font-size: 11.5px;
  color: var(--color-text-light);
  line-height: 1.9;
  font-style: italic;
}

/* ---------- 高亮搜索结果 ---------- */
.search-highlight {
  background: var(--color-yellow);
  padding: 1px 3px;
  border-radius: 3px;
  color: var(--color-accent);
}

.no-match { display: none !important; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .sidebar {
    position: static;
    height: auto;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    padding: 16px;
  }
  .section { padding: 28px 24px; }
  .hero { padding: 36px 24px; }
  .hero h2 { font-size: 26px; }
  .top-bar-inner { flex-wrap: wrap; padding: 0 16px; }
  .search-box { order: 3; max-width: 100%; }
  .brand-text h1 { font-size: 16px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .section h2 { font-size: 22px; }
  .hero h2 { font-size: 22px; }
  .flow-grid, .doc-list, .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 打印样式 ---------- */
@media print {
  body { background: white; }
  .top-bar, .sidebar, .back-top, .search-box, .top-actions { display: none; }
  .layout { grid-template-columns: 1fr; padding: 0; }
  .section { box-shadow: none; border: 1px solid #ddd; page-break-inside: avoid; }
}
