/* ------------
   Guide pages (/guide/) — standalone stylesheet, not loaded by the tool pages.
   Tokens mirror style.css / landing-hero.css so the guide reads as the same product.
   ------------ */
:root {
  --slate-50: #f8fafc;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --purple-50: #faf5ff;
  --purple-600: #9333ea;
  --purple-700: #7e22ce;
  --blue-600: #2563eb;
  --amber-50: #fffbeb;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --radius: 0.625rem;
  --radius-lg: 0.875rem;
  /* same Latin stack as the tool page, with explicit CJK fallbacks */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { background: #fff; color: var(--slate-700); min-height: 100vh; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--purple-600); outline-offset: 2px; border-radius: 4px; }

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

/* Same container as the tool page header */
.g-container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.g-wrap { max-width: 46rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) {
  .g-container { padding: 0 2rem; }
  .g-wrap { padding: 0 1.5rem; }
}

/* Header — mirrors .header / .logo-group / .btn-gradient */
.g-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--slate-200);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.g-header-row { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.g-brand { display: flex; align-items: center; color: var(--slate-900); font-weight: 700; font-size: 1.25rem; min-width: 0; white-space: nowrap; }
.g-brand:hover { text-decoration: none; }
.g-brand-mark {
  flex-shrink: 0;
  width: 2rem; height: 2rem; margin-right: 0.5rem;
  border-radius: 0.5rem;
  background: linear-gradient(to bottom right, var(--purple-600), var(--blue-600));
  color: #fff; font-size: 0.875rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.g-nav { display: flex; align-items: center; font-size: 0.9375rem; white-space: nowrap; }
.g-nav a { color: var(--slate-700); margin-left: 1.25rem; padding: 0.5rem 0; }
.g-nav a:hover { color: var(--purple-600); text-decoration: none; }
.g-nav .g-btn {
  color: #fff; padding: 0.5rem 0.875rem; margin-left: 1.25rem;
  background: linear-gradient(to right, var(--purple-600), var(--blue-600));
  border-radius: var(--radius); font-size: 0.875rem; font-weight: 600;
}
.g-nav .g-btn:hover { color: #fff; opacity: 0.92; }

/* Hero band — same background recipe as .landing-hero-bg */
.g-band {
  background:
    radial-gradient(ellipse 65% 45% at 50% -15%, rgba(168, 85, 247, 0.11), transparent 55%),
    radial-gradient(ellipse 40% 30% at 100% 20%, rgba(59, 130, 246, 0.07), transparent 50%),
    linear-gradient(180deg, var(--slate-50) 0%, #ffffff 100%);
  padding-bottom: 0.5rem;
}

.g-crumbs { font-size: 0.8125rem; color: var(--slate-500); padding-top: 1rem; }
.g-crumbs ol { list-style: none; }
.g-crumbs li { display: inline; }
.g-crumbs li + li::before { content: "/"; margin: 0 0.375rem; color: var(--slate-300); }
.g-crumbs a { color: var(--slate-500); }

.g-hero { padding: 1rem 0 0.5rem; }
.g-hero h1 {
  color: var(--slate-900);
  font-size: 1.625rem; /* fallback for browsers without clamp() */
  font-size: clamp(1.5rem, 4.2vw, 2.125rem);
  font-weight: 800; line-height: 1.3; letter-spacing: -0.02em;
}
.g-lead { margin-top: 0.75rem; font-size: 1rem; line-height: 1.75; color: var(--slate-600); }

/* Subtitle strip: rendered like the product's bilingual subtitle output (white source line + amber target line) */
.g-screen {
  margin-top: 1.25rem;
  min-height: 8.5rem;
  border-radius: 0.75rem;
  background: #231a3d;
  background: radial-gradient(120% 140% at 20% 0%, #3b2a63 0%, #1c1830 60%);
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding: 1rem 1rem 1.125rem; text-align: center;
}
.g-screen p { line-height: 1.45; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); font-size: 0.9375rem; }
.g-sub-src { color: #fff; }
.g-sub-tgt { color: #fbbf24; font-weight: 600; }

/* Article */
.g-article { padding: 0.5rem 0 1rem; line-height: 1.8; }
.g-article h2 { color: var(--slate-900); font-size: 1.3125rem; line-height: 1.4; margin: 2.25rem 0 0.75rem; }
.g-article h3 { color: var(--slate-900); font-size: 1.0625rem; line-height: 1.5; margin: 1.5rem 0 0.5rem; }
.g-article p { margin: 0.75rem 0; }
.g-article ul, .g-article ol { margin: 0.75rem 0 0.75rem 1.25rem; }
.g-article li { margin: 0.375rem 0; }
.g-article strong { color: var(--slate-900); }

.g-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1rem 0; }
.g-article table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.6; }
.g-article th, .g-article td { text-align: left; padding: 0.625rem 0.75rem; border-bottom: 1px solid var(--slate-200); vertical-align: top; }
.g-article th { color: var(--slate-900); font-weight: 700; background: var(--slate-50); }

/* Steps: only used where the content is a real sequence */
.g-steps { list-style: none; margin-left: 0 !important; }
.g-steps > li { counter-increment: g-step; position: relative; padding-left: 2.75rem; margin: 1.25rem 0; }
.g-steps { counter-reset: g-step; }
.g-steps > li::before {
  content: counter(g-step);
  position: absolute; left: 0; top: 0.125rem;
  width: 1.875rem; height: 1.875rem; line-height: 1.875rem; text-align: center;
  border-radius: 50%; background: var(--purple-50); color: var(--purple-700);
  font-weight: 800; font-size: 0.9375rem;
}
.g-steps h3 { margin-top: 0; }

.g-note { border-left: 3px solid var(--amber-500); background: var(--amber-50); padding: 0.75rem 1rem; margin: 1rem 0; font-size: 0.9375rem; color: #78350f; border-radius: 0 0.5rem 0.5rem 0; }

.g-figure { margin: 1.25rem 0; }
.g-figure img { border-radius: 0.75rem; border: 1px solid var(--slate-200); }
.g-figure figcaption { font-size: 0.8125rem; color: var(--slate-500); margin-top: 0.375rem; }

.g-faq dt { color: var(--slate-900); font-weight: 700; margin-top: 1.25rem; }
.g-faq dd { margin: 0.375rem 0 0; }

/* CTA — same amber pill as the tool page's 「立即使用」 */
.g-cta-panel { background: var(--purple-50); border-radius: var(--radius-lg); padding: 1.5rem 1.25rem; margin: 2.5rem 0 1rem; text-align: center; }
.g-cta-panel p { margin: 0 0 1rem; color: var(--slate-900); font-weight: 600; }
.g-cta {
  display: inline-block;
  /* amber-600: same amber family as 「立即使用」, dark enough for WCAG large-text contrast */
  background: var(--amber-600); color: #fff;
  border-radius: 50px; padding: 0.8125rem 2rem;
  font-size: 1.1875rem; font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.g-cta:hover { background: #b45309; color: #fff; text-decoration: none; }

.g-related { border-top: 1px solid var(--slate-200); padding: 1.5rem 0 2rem; }
.g-related h2 { font-size: 1.0625rem; color: var(--slate-900); margin-bottom: 0.5rem; }
.g-related ul { list-style: none; }
.g-related li { padding: 0.5rem 0; line-height: 1.6; }
.g-related span { display: block; font-size: 0.875rem; color: var(--slate-500); }

/* Footer — same tone as .company-info */
.g-footer { border-top: 1px solid #e6e6e6; font-size: 12px; color: #555; line-height: 1.7; padding: 1.25rem 0 1.75rem; text-align: center; }
.g-footer a { color: #0066cc; text-decoration: underline; }

@media (max-width: 767px) {
  .g-header-row { height: 3.25rem; }
  .g-brand { font-size: 1.0625rem; letter-spacing: -0.01em; }
  .g-brand-mark { width: 1.75rem; height: 1.75rem; border-radius: 0.4375rem; font-size: 0.75rem; }
  .g-nav a { margin-left: 0.875rem; }
  .g-nav .g-btn { margin-left: 0.875rem; padding: 0.4375rem 0.75rem; }
  .g-hero h1 { font-size: 1.5rem; }
}
@media (max-width: 400px) {
  .g-nav .g-hide-sm { display: none; }
}
@media (max-width: 340px) {
  .g-nav a[href="faq.html"] { display: none; }
}
