@charset "utf-8";
/* =========================================================
   TeraCopy 中文網站 · 全局公共樣式 common.css
   主題色：#1A1A1A / #003258 / #1B5E20
   ========================================================= */

:root {
  --tc-ink: #1A1A1A;
  --tc-ink-2: #141414;
  --tc-ink-3: #202020;
  --tc-blue: #003258;
  --tc-blue-lt: #0a5c96;
  --tc-blue-glow: rgba(10, 92, 150, .38);
  --tc-green: #1B5E20;
  --tc-green-lt: #2e9e3a;
  --tc-green-glow: rgba(46, 158, 58, .32);

  --tc-text: #ECEFF1;
  --tc-text-soft: #A9B2BA;
  --tc-text-dim: #78838C;
  --tc-line: rgba(255, 255, 255, .09);
  --tc-line-2: rgba(255, 255, 255, .16);
  --tc-panel: #191919;
  --tc-panel-2: #1E1E1E;

  --tc-radius-s: 8px;
  --tc-radius-m: 14px;
  --tc-radius-l: 22px;
  --tc-max: 1240px;
  --tc-nav-h: 72px;

  --tc-font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC",
    "Noto Sans CJK SC", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tc-font-mono: "JetBrains Mono", "Cascadia Mono", "SFMono-Regular", Consolas,
    "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--tc-ink);
  color: var(--tc-text);
  font-family: var(--tc-font);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* 通用容器 ------------------------------------------------ */
.tc-container {
  width: 100%;
  max-width: var(--tc-max);
  margin: 0 auto;
  padding: 0 24px;
}

.tc-section { padding: 96px 0; position: relative; }
.tc-section--tight { padding: 68px 0; }
.tc-section--alt { background: linear-gradient(180deg, #171717 0%, #1A1A1A 100%); }

/* 通用區塊標題 -------------------------------------------- */
.tc-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--tc-text-dim);
  margin-bottom: 18px;
}
.tc-eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--tc-green-lt), var(--tc-blue-lt));
}

.tc-title { font-size: clamp(28px, 3.4vw, 42px); }
.tc-title em { font-style: normal; color: #5ec36a; }
.tc-lead {
  margin-top: 16px;
  max-width: 720px;
  color: var(--tc-text-soft);
  font-size: 17px;
}

/* 通用按鈕 ------------------------------------------------ */
.tc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
  white-space: nowrap;
}
.tc-btn svg { width: 18px; height: 18px; flex: none; }
.tc-btn:hover { transform: translateY(-2px); }

.tc-btn--buy {
  background: linear-gradient(135deg, #1B5E20 0%, #2e9e3a 100%);
  color: #fff;
  box-shadow: 0 10px 26px -12px var(--tc-green-glow);
}
.tc-btn--buy:hover { box-shadow: 0 16px 34px -12px rgba(46, 158, 58, .55); }

.tc-btn--ghost {
  background: rgba(255, 255, 255, .04);
  border-color: var(--tc-line-2);
  color: var(--tc-text-soft);
}
.tc-btn--ghost:hover { color: #fff; border-color: rgba(255, 255, 255, .34); }

.tc-btn--blue {
  background: linear-gradient(135deg, #003258 0%, #0a5c96 100%);
  color: #fff;
  box-shadow: 0 10px 26px -12px var(--tc-blue-glow);
}

.tc-btn--lg { height: 54px; padding: 0 30px; font-size: 16px; }

/* 通用卡片 ------------------------------------------------ */
.tc-card {
  background: linear-gradient(180deg, var(--tc-panel-2) 0%, var(--tc-panel) 100%);
  border: 1px solid var(--tc-line);
  border-radius: var(--tc-radius-l);
  padding: 32px;
  transition: border-color .25s ease, transform .25s ease;
}
.tc-card:hover { border-color: var(--tc-line-2); transform: translateY(-3px); }

/* 滾動淡入 ------------------------------------------------ */
.tc-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.tc-reveal.is-visible { opacity: 1; transform: none; }

/* 無障礙 -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .tc-reveal { opacity: 1; transform: none; }
}

/* 內頁頁頭 ------------------------------------------------ */
.tc-pagehead {
  position: relative;
  padding: calc(var(--tc-nav-h, 72px) + 56px) 0 48px;
  background:
    radial-gradient(720px 280px at 8% 20%, rgba(0, 50, 88, .42) 0%, transparent 70%),
    radial-gradient(640px 260px at 96% 80%, rgba(27, 94, 32, .22) 0%, transparent 70%),
    linear-gradient(180deg, #101010 0%, #1A1A1A 100%);
  border-bottom: 1px solid var(--tc-line);
}
.tc-pagehead h1 { font-size: clamp(32px, 4.2vw, 48px); }
.tc-pagehead p { margin-top: 14px; max-width: 720px; color: var(--tc-text-soft); font-size: 17px; }

/* 代碼塊 -------------------------------------------------- */
.tc-code {
  margin: 14px 0;
  padding: 14px 16px;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--tc-line);
  background: #101416;
  color: #c9e8cf;
  font-family: var(--tc-font-mono);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 步驟列表 ------------------------------------------------ */
.tc-steps { margin: 12px 0 0; padding: 0; list-style: none; }
.tc-steps li {
  position: relative;
  padding: 8px 0 8px 28px;
  color: var(--tc-text-soft);
}
.tc-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--tc-blue-lt), var(--tc-green-lt));
}

@media (max-width: 900px) {
  .tc-section { padding: 68px 0; }
  body { font-size: 15px; }
  .tc-pagehead { padding: calc(var(--tc-nav-h, 72px) + 36px) 0 36px; }
}
