/* ==========================================================================
   迅连宝 (xunlianbao.homes) - 高端商务·价格决策视觉规范
   配色：珍珠白、深石墨、暖铜色
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* 色彩系统 */
  --bg-body: #f8f9fa;
  --bg-card: #ffffff;
  --bg-subtle: #f3f4f6;
  --bg-dark: #111827;
  --bg-dark-card: #1f2937;

  --text-main: #111827;
  --text-sub: #4b5563;
  --text-muted: #6b7280;
  --text-on-dark: #f9fafb;
  --text-on-dark-sub: #9ca3af;

  --border-light: #e5e7eb;
  --border-medium: #d1d5db;
  --border-dark: #374151;

  --copper-base: #b45309;
  --copper-hover: #92400e;
  --copper-light: #fffbeb;
  --copper-border: #d97706;

  --container-max: 1200px;
  --nav-height: 4rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(17, 24, 39, 0.06);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 无障碍 Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--bg-dark);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* 通用无障碍键盘焦点 */
:focus-visible {
  outline: 2px solid var(--copper-base);
  outline-offset: 3px;
}

/* 锚点滚动距离 */
h1, h2, h3, h4, section, [id] {
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

/* 布局容器 */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  height: var(--nav-height);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-dark);
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark);
}
.brand-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.brand-title {
  color: var(--text-main);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav-link {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.25rem;
  border-bottom: 2px solid transparent;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  border-bottom-color: var(--copper-base);
}

/* 站内搜索组件 */
.search-box-wrapper {
  position: relative;
  min-width: 200px;
}
.search-input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-size: 0.875rem;
  color: var(--text-main);
  min-height: 44px;
}
.search-icon {
  position: absolute;
  left: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  fill: var(--text-muted);
  pointer-events: none;
}
.search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  width: 320px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  max-height: 360px;
  overflow-y: auto;
  display: none;
  z-index: 1001;
}
.search-result-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  display: block;
  color: var(--text-main);
}
.search-result-item:hover, .search-result-item:focus {
  background: var(--bg-subtle);
}
.search-result-item h4 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}
.search-result-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* 按钮规范 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  min-height: 44px;
  min-width: 44px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}
.btn-copper {
  background: var(--copper-base);
  color: #ffffff !important;
  border-color: var(--copper-border);
}
.btn-copper:hover {
  background: var(--copper-hover);
  color: #ffffff !important;
}
.btn-dark {
  background: var(--bg-dark);
  color: #ffffff !important;
  border-color: var(--border-dark);
}
.btn-dark:hover {
  background: #000000;
  color: #ffffff !important;
}
.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-medium);
}
.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--text-main);
}
.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
  min-height: 38px;
}

/* Hero 商务决策区 */
.hero-section {
  padding: 3.5rem 0 3.5rem;
  position: relative;
  background-color: var(--bg-body);
  background-image: 
    linear-gradient(135deg, rgba(248, 249, 250, 0.93) 0%, rgba(255, 255, 255, 0.88) 55%, rgba(243, 244, 246, 0.92) 100%),
    url('/assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border-light);
}
.hero-header {
  max-width: 860px;
  margin-bottom: 2rem;
}
.badge-tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: var(--copper-light);
  color: var(--copper-hover);
  border: 1px solid var(--copper-border);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-title {
  font-size: 2.35rem;
  line-height: 1.25;
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-sub);
  line-height: 1.6;
}

/* 最低价说明数据栏 */
.lowest-price-banner {
  background: var(--bg-card);
  border-left: 4px solid var(--copper-base);
  border-top: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.lowest-info-main {
  flex: 1;
  min-width: 280px;
}
.lowest-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--copper-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}
.lowest-val-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.lowest-price-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}
.lowest-conditions {
  font-size: 0.9rem;
  color: var(--text-sub);
}
.lowest-notes {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 热门套餐三栏卡片 */
.popular-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-dark);
}
.plan-card.highlight {
  border: 2px solid var(--copper-base);
  box-shadow: 0 4px 16px rgba(180, 83, 9, 0.12);
}
.plan-card-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--copper-base);
  background: var(--copper-light);
  border: 1px solid var(--copper-border);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}
.plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}
.plan-intent {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.plan-pricing {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}
.plan-price-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}
.plan-cycle {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-left: 0.25rem;
}
.plan-features-list {
  list-style: none;
  margin-bottom: 1.75rem;
  flex: 1;
}
.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}
.check-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 0.2rem;
  fill: var(--copper-base);
}
.plan-cta {
  width: 100%;
}

/* 内容板块标准排版 */
.content-section {
  padding: 3.5rem 0;
}
.section-alt {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.section-header {
  margin-bottom: 2.25rem;
}
.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-sub);
  max-width: 720px;
}

/* 人群决策对比卡片 */
.decision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.decision-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.decision-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}
.decision-card p {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.decision-spec-box {
  background: var(--bg-body);
  border: 1px solid var(--border-light);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-main);
}

/* 规格矩阵表格（含滚动容器） */
.table-responsive-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.pricing-matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
  min-width: 720px;
}
.pricing-matrix-table caption {
  padding: 1rem;
  font-weight: 700;
  text-align: left;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
  color: var(--text-main);
  white-space: normal;
  word-break: break-word;
}
.pricing-matrix-table th,
.pricing-matrix-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
}
.pricing-matrix-table thead th {
  background: var(--bg-dark);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pricing-matrix-table tbody tr:hover {
  background: var(--bg-subtle);
}
.table-footnote {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 服务能力与客户端网格 */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.capability-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.capability-card h3,
.capability-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}
.capability-card p {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.5;
}

/* FAQ 折叠手风琴（纯原生 details/summary） */
.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition: border-color 0.15s ease;
}
.faq-item[open] {
  border-color: var(--border-medium);
}
.faq-summary {
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
}
.faq-summary::-webkit-details-marker {
  display: none;
}
.faq-summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--copper-base);
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-summary::after {
  content: "−";
}
.faq-content {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.925rem;
  color: var(--text-sub);
  line-height: 1.6;
  border-top: 1px solid var(--border-light);
  padding-top: 0.85rem;
}
.faq-content p + p {
  margin-top: 0.5rem;
}

/* 文章列表与卡片 */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.article-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.article-preview-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-dark);
  box-shadow: var(--shadow-md);
}
.article-card-cat {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--copper-base);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.article-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}
.article-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
}
.article-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 0.75rem;
}

/* 文章正文排版规范 */
.article-layout {
  padding: 3rem 0;
  max-width: 820px;
  margin: 0 auto;
}
.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
.article-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.prose {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.75;
}
.prose h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.35rem;
}
.prose h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 1.5rem;
  margin-bottom: 0.65rem;
}
.prose p {
  margin-bottom: 1.25rem;
  color: var(--text-sub);
}
.prose ul, .prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  color: var(--text-sub);
}
.prose li {
  margin-bottom: 0.35rem;
}
.prose a:not(.btn) {
  color: var(--copper-base);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:not(.btn):hover {
  color: var(--copper-hover);
}
.prose .btn {
  text-decoration: none !important;
}
.prose pre {
  background: var(--bg-dark);
  color: #f3f4f6;
  padding: 1rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.prose code {
  font-family: var(--font-mono);
  background: var(--bg-subtle);
  color: var(--text-main);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.875em;
}
.prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}
.prose blockquote {
  border-left: 4px solid var(--copper-base);
  background: var(--copper-light);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-main);
}

/* 声明性提示框 */
.callout-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.5rem 0;
}
.callout-box.info {
  border-left: 4px solid var(--graphite-dark);
}
.callout-box.source {
  border-left: 4px solid var(--copper-base);
  font-size: 0.85rem;
}

/* 页脚 */
.site-footer {
  margin-top: auto;
  background: var(--bg-dark);
  color: var(--text-on-dark-sub);
  border-top: 1px solid var(--border-dark);
  padding: 3rem 0 2rem;
  font-size: 0.875rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-dark);
}
.footer-brand {
  max-width: 420px;
}
.footer-brand .brand-title {
  color: #ffffff;
}
.footer-brand p {
  margin-top: 0.75rem;
  line-height: 1.5;
  color: var(--text-on-dark-sub);
}
.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-nav-link {
  color: var(--text-on-dark-sub);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-nav-link:hover {
  color: #ffffff;
  text-decoration: underline;
}
.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

/* 响应式断点适配 (1440, 1024, 768, 390, 360) */
@media (max-width: 1024px) {
  .popular-plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .decision-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.75rem;
  }
  .popular-plans-grid {
    grid-template-columns: 1fr;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 0.75rem 0 0.5rem;
  }
  .search-box-wrapper {
    width: 100%;
    order: 3;
    margin-top: 0.35rem;
    margin-bottom: 0.25rem;
  }
  .main-nav {
    gap: 0.75rem;
  }
  .site-header {
    height: auto;
  }
  .footer-top {
    flex-direction: column;
  }
  .footer-nav {
    gap: 1.25rem;
  }
}

@media (max-width: 390px) {
  .hero-title {
    font-size: 1.5rem;
  }
  .lowest-val-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .btn {
    width: 100%;
  }
}

/* 动效偏好适配 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
