/* ============================================================
   yonode.com — 全站通用樣式
   設計風格：深海星空 · 極光霓虹
   主色：#0EA5E9（天際藍）輔色：#8B5CF6（科技紫）
   ============================================================ */

/* ── 字體 ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── CSS 變量 ── */
:root {
  --bg:          #0A0F1E;
  --bg2:         #0D1428;
  --card:        rgba(255,255,255,0.04);
  --card-hover:  rgba(255,255,255,0.07);
  --glass:       rgba(255,255,255,0.05);
  --border:      rgba(14,165,233,0.18);
  --border2:     rgba(139,92,246,0.18);

  --primary:     #0EA5E9;
  --primary-dark:#0284C7;
  --purple:      #8B5CF6;
  --cyan:        #06B6D4;
  --pink:        #EC4899;
  --green:       #10B981;
  --amber:       #F59E0B;

  --grad:        linear-gradient(135deg, #0EA5E9, #8B5CF6, #EC4899);
  --grad-blue:   linear-gradient(135deg, #0EA5E9, #06B6D4);
  --grad-purple: linear-gradient(135deg, #8B5CF6, #EC4899);

  --text:        #F1F5F9;
  --text2:       #CBD5E1;
  --muted:       #64748B;
  --accent:      #0EA5E9;

  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.6);
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.25);
  --shadow-glow: 0 0 20px rgba(14,165,233,0.3);

  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   24px;

  --nav-h:       64px;
  --container:   1200px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--cyan); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; }

/* ── 容器 ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 640px) { .container { padding: 0 16px; } }

/* ── Section ── */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
@media (max-width: 768px) { .section { padding: 48px 0; } }

/* ── 標題 ── */
.section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-desc {
  font-size: 16px;
  color: var(--text2);
  max-width: 600px;
}

/* ── 卡片 ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
  box-shadow: var(--shadow);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(14,165,233,0.4);
  background: var(--card-hover);
}

/* ── 按鈕 ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-blue);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: rgba(14,165,233,0.1);
  color: var(--primary);
}
.btn-ghost {
  background: var(--glass);
  color: var(--text2);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--card-hover);
  color: var(--text);
}
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 40px; font-size: 16px; }

/* ── Badge ── */
.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.badge-blue   { background: rgba(14,165,233,0.15);  color: var(--primary); }
.badge-purple { background: rgba(139,92,246,0.15);  color: var(--purple);  }
.badge-cyan   { background: rgba(6,182,212,0.15);   color: var(--cyan);    }
.badge-green  { background: rgba(16,185,129,0.15);  color: var(--green);   }
.badge-pink   { background: rgba(236,72,153,0.15);  color: var(--pink);    }
.badge-amber  { background: rgba(245,158,11,0.15);  color: var(--amber);   }

/* ── 分隔線 ── */
.divider { height: 1px; background: var(--border); margin: 32px 0; }

/* ── 麵包屑 ── */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--muted); }

/* ── 分頁 ── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pag-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  background: var(--card);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s;
}
.pag-btn:hover  { color: var(--primary); border-color: var(--primary); }
.pag-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── 標籤欄（Tab） ── */
.tab-bar {
  background: rgba(10,15,30,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--nav-h);
  z-index: 400;
  padding: 0 24px;
}
.tab-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-inner::-webkit-scrollbar { display: none; }
.tab-item {
  flex-shrink: 0;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.tab-item:hover  { color: var(--primary); }
.tab-item.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ── Grid 工具 ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px)  { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Flex 工具 ── */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap    { flex-wrap: wrap; }
.gap-8        { gap: 8px; }
.gap-16       { gap: 16px; }
.gap-24       { gap: 24px; }

/* ── 間距工具 ── */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }

/* ── 文字工具 ── */
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }
.text-small  { font-size: 13px; }
.text-bold   { font-weight: 700; }
.text-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero 通用 ── */
.hero {
  position: relative;
  padding: 100px 0 72px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 40%, rgba(14,165,233,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 60%, rgba(139,92,246,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero-desc {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text2);
  max-width: 600px;
  line-height: 1.7;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ── 表單 ── */
.form-group  { margin-bottom: 20px; }
.form-label  { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text2); }
.form-input  {
  width: 100%;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,165,233,0.15); }
textarea.form-input { resize: vertical; min-height: 120px; }

/* ── 導航 ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(10,15,30,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--glass); }
.nav-link .arrow { font-size: 10px; transition: transform 0.2s; }
.nav-item:hover .arrow { transform: rotate(180deg); }

/* 下拉菜單 */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #111827;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  transform: translateX(-50%) translateY(-8px);
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-group {
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 4px;
}
.dropdown-group:last-child { border: none; margin-bottom: 0; }
.dropdown-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  padding: 4px 12px 2px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text2);
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.dropdown a:hover { background: var(--card-hover); color: var(--text); }
.dropdown a .icon { font-size: 14px; width: 20px; text-align: center; }

/* 右側功能區 */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* 語言切換 */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
}
.lang-btn {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.lang-btn:hover  { color: var(--text); background: var(--card-hover); }
.lang-btn.active { color: var(--text); background: var(--primary); }

/* 漢堡菜單 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text2);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── 移動端菜單 ── */
#mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  background: rgba(10,15,30,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  overflow-y: auto;
  padding: 16px;
}
#mobile-menu.open { display: block; }
.mobile-nav-item { margin-bottom: 4px; }
.mobile-nav-link {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text2);
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}
.mobile-nav-link:hover { background: var(--glass); color: var(--text); }
.mobile-sub {
  padding: 4px 0 4px 16px;
}
.mobile-sub a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.mobile-sub a:hover { background: var(--glass); color: var(--text); }
.mobile-sub-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  padding: 8px 16px 2px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.7;
}
.mobile-lang {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}
.mobile-lang a {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  transition: all 0.15s;
}
.mobile-lang a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Footer ── */
#footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { font-size: 14px; color: var(--muted); line-height: 1.7; margin-top: 12px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--text2); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col a  { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; transition: color 0.15s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--primary); }

/* ── 客服浮窗 ── */
.float-cta {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.float-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s, filter 0.2s;
  text-decoration: none;
  color: #fff;
}
.float-btn:hover { transform: translateY(-2px); filter: brightness(1.1); color: #fff; }
.float-btn-main { background: var(--grad-blue); }
.float-btn-wechat { background: #07C160; }

/* ── 模型卡片 ── */
.model-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.2s;
}
.model-card:hover {
  border-color: rgba(14,165,233,0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}
.model-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255,255,255,0.08);
  padding: 8px;
  margin-bottom: 14px;
}
.model-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.model-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.model-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── 響應式 ── */
@media (max-width: 960px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 640px) {
  .hero { padding: 80px 0 48px; }
  .float-cta { right: 12px; bottom: 16px; }
  .float-btn span.label { display: none; }
  .float-btn { padding: 12px; border-radius: 50%; }
  #footer { margin-top: 48px; }
}

/* ── 底部固定 CTA 欄（移動端） ── */
.bottom-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(10,15,30,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  z-index: 800;
}
@media (max-width: 640px) { .bottom-cta-bar { display: flex; gap: 10px; } }
.bottom-cta-bar .btn { flex: 1; justify-content: center; padding: 12px; font-size: 14px; }

/* ── 文章正文 ── */
.art-body { font-size: 15px; line-height: 1.85; color: var(--text); }
.art-body h2, .art-body h3 { margin: 28px 0 12px; font-weight: 700; color: var(--text); }
.art-body h2 { font-size: 20px; }
.art-body h3 { font-size: 17px; }
.art-body p  { margin: 0 0 16px; }
.art-body ul, .art-body ol { margin: 0 0 16px 24px; list-style: revert; }
.art-body li { margin-bottom: 6px; }
.art-body img { max-width: 100%; border-radius: var(--radius-lg); margin: 8px 0; }
.art-body a   { color: var(--primary); text-decoration: underline; }
.art-body blockquote {
  border-left: 3px solid var(--primary);
  padding: 12px 20px;
  margin: 16px 0;
  background: rgba(14,165,233,0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text2);
}
.art-body code {
  font-family: 'SF Mono', 'Consolas', monospace;
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}
.art-body pre {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
  margin: 0 0 16px;
}
.art-body pre code { background: none; padding: 0; }

/* ── Glow 裝飾 ── */
.glow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  display: inline-block;
}

/* ── 漸變文字 ── */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
