﻿/* ==========================================================
   上线性能与顺滑度增强引擎 (Smoothness & Performance Optimization)
   ========================================================== */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

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

/* 硬件加速与流畅悬停 */
a, button, .media-news-card, .btn-media-primary, .btn-media-secondary, .faq-card, .intro-panel {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* 移动端平滑滚动与防抖 */
.table-wrapper, .table-container, .code-box, pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* 媒体图片防溢出与自适应 */
img, svg, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 消除点击高亮延迟 */
a, button, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}


:root {
  --bg: #fbf7ef;
  --paper: #ffffff;
  --ink: #231f20;
  --muted: #726b63;
  --line: #eadfcd;
  --blue: #3563e9;
  --green: #16a34a;
  --peach: #fff0df;
  --lavender: #f2ecff;
  --shadow: rgba(64, 45, 24, .10);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background:
    radial-gradient(circle at 8% 12%, rgba(53,99,233,.10), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(242,140,56,.12), transparent 30%),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.72;
}
a { color: var(--blue); text-decoration: none; font-weight: 800; }
a:hover { text-decoration: underline; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.notice { background: #fff7df; color: #73520d; border-bottom: 1px solid #efd28a; padding: 10px 0; font-size: 13px; }
.site-header { background: rgba(251,247,239,.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { min-height: 70px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { color: var(--ink); font-size: 21px; font-weight: 950; letter-spacing: -0.03em; }
.brand::before { content: "✎"; color: var(--blue); margin-right: 8px; }
.nav, .footer-links { display: flex; flex-wrap: wrap; gap: 10px; }
.nav a, .footer-links a { color: var(--ink); background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-size: 14px; }
.nav a:hover, .footer-links a:hover { background: #fff; border-color: var(--blue); text-decoration: none; }
.hero { padding: 68px 0 38px; }
.hero .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, .85fr); gap: 34px; align-items: center; }
.eyebrow { display: inline-flex; padding: 6px 12px; background: var(--lavender); color: var(--blue); border-radius: 999px; font-size: 13px; font-weight: 950; margin-bottom: 16px; }
.hero h1 { max-width: 820px; font-size: clamp(36px, 5.5vw, 72px); line-height: 1.04; letter-spacing: -0.07em; margin-bottom: 20px; }
.hero p { max-width: 780px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-width: 180px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); font-weight: 950; }
.button.primary { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 16px 34px rgba(53,99,233,.18); }
.button.secondary { background: #fff; color: var(--ink); }
.writing-board { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 26px; box-shadow: 0 28px 70px var(--shadow); min-height: 380px; }
.doc-title { height: 16px; width: 58%; border-radius: 999px; background: var(--ink); margin-bottom: 24px; }
.doc-line { height: 10px; border-radius: 999px; background: #e9e1d4; margin: 13px 0; }
.doc-line.w80 { width: 80%; } .doc-line.w92 { width: 92%; } .doc-line.w70 { width: 70%; } .doc-line.w55 { width: 55%; }
.bubble { max-width: 82%; padding: 12px 14px; border-radius: 18px; margin: 16px 0; font-size: 14px; box-shadow: 0 10px 22px rgba(35,31,32,.07); }
.bubble.user { margin-left: auto; background: var(--peach); color: #7a3b00; }
.bubble.ai { background: var(--lavender); color: #35206f; }
.section { padding: 48px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 22px; }
.section h2 { font-size: clamp(28px, 4vw, 48px); letter-spacing: -0.06em; line-height: 1.06; }
.section-note { max-width: 450px; color: var(--muted); }
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card, .intro-box, .article { background: rgba(255,255,255,.82); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 42px var(--shadow); }
.card { min-height: 204px; padding: 24px; }
.card .num { display: inline-flex; padding: 4px 9px; border-radius: 999px; background: var(--lavender); color: var(--blue); font-weight: 950; font-size: 12px; margin-bottom: 30px; }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p, .intro-box p, .intro-box li, td { color: var(--muted); }
.card strong, td strong { color: var(--green); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.intro-box { padding: 28px; }
.intro-box h3 { font-size: 28px; margin-bottom: 12px; }
.intro-box ul { margin: 14px 0 0 20px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 42px var(--shadow); }
table { width: 100%; min-width: 760px; border-collapse: collapse; }
th, td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #fff7ef; color: #6d5744; font-size: 13px; }
tr:last-child td { border-bottom: 0; }
.faq-list { display: grid; gap: 12px; }
details { background: rgba(255,255,255,.86); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
summary { cursor: pointer; list-style: none; font-weight: 950; }
summary::-webkit-details-marker { display: none; }
details p { margin-top: 10px; color: var(--muted); }
.article { max-width: 880px; margin: 42px auto; padding: 38px; }
.article h1 { font-size: clamp(34px, 5vw, 62px); line-height: 1.05; letter-spacing: -0.06em; margin-bottom: 20px; }
.article h2 { font-size: 28px; margin: 34px 0 12px; border-top: 1px solid var(--line); padding-top: 20px; }
.article p, .article li { color: var(--muted); margin-bottom: 12px; }
.article ul { margin-left: 20px; }
.site-footer { margin-top: 42px; padding: 36px 0; background: rgba(255,255,255,.72); border-top: 1px solid var(--line); }
.site-footer p { margin-top: 14px; color: var(--muted); font-size: 14px; }
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 16px 0; }
  .grid-6, .intro-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-note { margin-top: 10px; }
}
