/* ====================================================================
   LinkCube绿叶 - 核心样式表 (MODULAR BENTO-CUBE & ROYAL COBALT)
   规范：AG WEBSITE GENERATION SPECIFICATION 2026 (LAYER 1 & LAYER 2)
   风格：立体几何模块工坊 / 现代 Bento Grid 与皇家钴蓝精工风
   ==================================================================== */

:root {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-card-hover: #fafafa;
  --border-color: #e2e8f0;
  --border-accent: #bfdbfe;
  --border-focus: #2563eb;
  --text-main: #090e17;
  --text-muted: #334155;
  --text-light: #64748b;
  --brand-primary: #2563eb;
  --brand-primary-hover: #1d4ed8;
  --brand-surface: #eff6ff;
  --brand-glow: rgba(37, 99, 235, 0.08);
  --accent-indigo: #4f46e5;
  --accent-cyan: #0284c7;
  --shadow-sm: 0 1px 2px 0 rgba(9, 14, 23, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(9, 14, 23, 0.06), 0 2px 4px -2px rgba(9, 14, 23, 0.04);
  --radius-sm: 4px;
  --radius-base: 8px;
  --radius-lg: 12px;
  --container-max: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* 顶部导航 - 半透明高斯模糊毛玻璃 */
.site-header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
  cursor: pointer;
}

.brand-icon-box {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.brand-icon-box svg {
  width: 20px;
  height: 20px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover {
  color: var(--brand-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-base);
  padding: 8px;
  cursor: pointer;
  color: var(--text-main);
  min-width: 44px;
  min-height: 44px;
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* 按钮设计 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-base);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  min-height: 44px;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background-color: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

.btn-outline {
  background-color: #ffffff;
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-outline:hover {
  background-color: var(--bg-subtle);
  border-color: #cbd5e1;
}

.btn-lg {
  padding: 13px 28px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* 面包屑导航 */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb-nav a {
  color: var(--text-muted);
}

.breadcrumb-nav a:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--text-light);
  user-select: none;
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 600;
}

/* 非对称双列 Hero 区块 (Asymmetric Hero with 3D Isometric Cube Visual) */
.hero-section {
  padding: 68px 0 60px;
  border-bottom: 1px solid var(--border-color);
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero-layout-2col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background-color: var(--brand-surface);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 20px;
}

.hero-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.hero-title {
  font-size: 2.75rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.hero-title span {
  color: var(--brand-primary);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  font-size: 0.88rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-primary);
}

/* Hero 右侧立体数据立方几何容器 */
.hero-visual-cube {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.cube-svg-canvas {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
}

/* 通用区块头 */
.page-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: left;
  max-width: 720px;
  margin-bottom: 48px;
}

.section-header.center-mode {
  text-align: center;
  margin: 0 auto 52px;
}

.section-tag-module {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--brand-primary);
  margin-bottom: 8px;
  display: inline-block;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ====================================================================
   BENTO GRID (便当盒栅格系统)
   ==================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.bento-span-4 {
  grid-column: span 4;
}

.bento-span-6 {
  grid-column: span 6;
}

.bento-span-8 {
  grid-column: span 8;
}

.bento-span-12 {
  grid-column: span 12;
}

.bento-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bento-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.bento-card.highlight {
  border-color: var(--border-accent);
  background: linear-gradient(180deg, #ffffff 0%, #fcfdfe 100%);
}

.bento-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.bento-icon-wrapper {
  width: 42px;
  height: 42px;
  background-color: var(--brand-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-base);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
}

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

.bento-meta-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-primary);
  background-color: var(--brand-surface);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
}

.bento-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.bento-card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.bento-tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag-pill {
  font-size: 0.85rem;
  font-weight: 500;
  background-color: var(--bg-subtle);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

/* 使用场景卡 (Dossier 风格) */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.scenario-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
}

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

.scenario-mod-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-primary);
  letter-spacing: 0.05em;
}

.scenario-device-text {
  font-size: 0.85rem;
  color: var(--text-light);
}

.scenario-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.scenario-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* 定价区 */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 1px var(--brand-primary), var(--shadow-md);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.pricing-badge-popular {
  position: absolute;
  top: -12px;
  right: 24px;
  background-color: var(--brand-primary);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.pricing-tier-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.pricing-tier-target {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 22px;
}

.pricing-cost-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.pricing-curr {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
}

.pricing-num {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.pricing-unit {
  font-size: 0.95rem;
  color: var(--text-light);
}

.pricing-features-list {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.pricing-feature-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.spec-check-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--brand-primary);
  stroke-width: 2.5;
  flex-shrink: 0;
}

/* FAQ 原生手风琴 (details / summary) */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item[open] {
  border-color: var(--border-accent);
}

.faq-question {
  padding: 22px 24px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand-primary);
  line-height: 1;
  margin-left: 16px;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 24px 22px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Final CTA 区块 */
.final-cta-section {
  background-color: #ffffff;
  padding: 80px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.final-cta-box {
  max-width: 720px;
  margin: 0 auto;
}

.final-cta-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.final-cta-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* 页脚 */
.site-footer {
  background-color: #ffffff;
  padding: 52px 0 36px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 22px;
}

.footer-link {
  color: var(--text-muted);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-link:hover {
  color: var(--brand-primary);
}

.footer-affiliate-notice {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 16px;
}

.footer-disclaimer {
  max-width: 780px;
  margin: 0 auto 16px;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-light);
}

.footer-copyright {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* 文章正文与文章页样式 (Prose) */
.page-article-container {
  max-width: 820px;
  margin: 44px auto 80px;
  padding: 0 24px;
}

.article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.article-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1e293b;
}

.article-body h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 44px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 28px 0 12px;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  margin: 0 0 24px 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body blockquote {
  border-left: 4px solid var(--brand-primary);
  background-color: var(--bg-surface);
  padding: 16px 20px;
  margin: 24px 0;
  color: var(--text-muted);
  border-radius: 0 var(--radius-base) var(--radius-base) 0;
}

.article-body a {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover {
  color: var(--brand-primary-hover);
}

.article-cta-box {
  background-color: var(--brand-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  text-align: center;
  margin: 48px 0;
}

.article-cta-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.article-cta-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.article-faq-section {
  margin: 48px 0;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.article-internal-links {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin: 40px 0;
}

.internal-links-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.internal-links-list {
  list-style: disc;
  margin-left: 20px;
  color: var(--brand-primary);
}

.internal-links-list li {
  margin-bottom: 6px;
}

/* 资讯索引页 (guides.html) 卡片网格 */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin: 40px 0 60px;
}

.guide-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.guide-card:hover {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
}

.guide-card-date {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.guide-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.4;
}

.guide-card-snippet {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.guide-card-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-primary);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* 移动端吸底 CTA 栏 */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 12px 20px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  z-index: 99;
  transform: translateY(100%);
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0;
}

.mobile-sticky-cta.visible {
  transform: translateY(0);
  opacity: 1;
}

.mobile-sticky-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mobile-sticky-info {
  display: flex;
  flex-direction: column;
}

.mobile-sticky-brand {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.mobile-sticky-tip {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* 响应式断点 */
@media (max-width: 900px) {
  .hero-layout-2col {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .bento-span-4, .bento-span-8, .bento-span-6 {
    grid-column: span 12;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.1rem;
  }
  
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 16px 20px;
    gap: 10px;
    box-shadow: var(--shadow-md);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu .nav-link {
    display: block;
    padding: 10px 0;
    font-size: 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .mobile-sticky-cta {
    display: block;
  }

  body {
    padding-bottom: 70px;
  }

  .page-section {
    padding: 52px 0;
  }

  .hero-section {
    padding: 44px 0 40px;
  }
}

/* 减弱动效适配 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
