/* ===== 全站共用元件（首頁、詳細頁、行銷頁、公司頁） ===== */

/* 按鈕 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--text); }

.btn-dark { background: #1d1d1f; color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-1px); }

.btn-lg { padding: 16px 32px; font-size: 16px; }

/* 導覽列（全站版） */
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: var(--soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover, .nav-links a.is-active { color: var(--text); }

.nav-links .nav-new {
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
}

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

.header-login {
  color: var(--soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.header-login:hover { color: var(--text); }

@media (max-width: 900px) {
  .nav-links { display: none; }
}

/* 首頁 hero */
.landing-hero {
  padding: clamp(80px, 10vw, 140px) 24px clamp(60px, 7vw, 96px);
  background: var(--panel);
  text-align: center;
}

.landing-hero h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 84px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

.landing-hero .hero-lede { margin-top: 22px; }

/* 提示輸入框（首頁） */
.prompt-box {
  max-width: 720px;
  margin: 44px auto 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
  text-align: left;
}

.prompt-box textarea {
  width: 100%;
  min-height: 74px;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  line-height: 1.6;
}

.prompt-box textarea::placeholder { color: var(--faint); }

.prompt-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.prompt-hint { color: var(--faint); font-size: 12px; }

/* 產品三模式 pills */
.mode-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--page-bg);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.mode-pill:hover { border-color: var(--accent); background: var(--accent-soft); }
.mode-pill .mode-icon { font-size: 17px; }
.mode-pill small { color: var(--faint); font-weight: 500; }

/* 通用 section */
.section { padding: clamp(64px, 8vw, 110px) 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-inner.narrow { max-width: 780px; }
.section.alt { background: var(--panel); }

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 800;
  letter-spacing: 0.005em;
  line-height: 1.25;
}

.section .lede {
  margin: 0 0 40px;
  color: var(--soft);
  font-size: clamp(15px, 1.9vw, 18px);
  max-width: 640px;
}

.section.center { text-align: center; }
.section.center .lede { margin-left: auto; margin-right: auto; }

/* 深色 showcase */
.section-dark {
  background: #101012;
  color: #f5f5f7;
}

.section-dark h2 { color: #fff; }
.section-dark .lede { color: rgba(245, 245, 247, 0.66); }

/* 功能卡片網格 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
  text-align: left;
}

.feature-card {
  padding: 26px 24px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.feature-card .f-icon { font-size: 26px; }

.feature-card h3 {
  margin: 14px 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.feature-card p { margin: 0; color: var(--soft); font-size: 14px; line-height: 1.7; }

.section-dark .feature-card {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: none;
}
.section-dark .feature-card p { color: rgba(245, 245, 247, 0.6); }

@media (max-width: 1000px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }

/* 三步驟 */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
  text-align: left;
}

.step {
  position: relative;
  padding: 28px 24px 26px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--panel);
}

.step .step-no {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
}

.step h3 { margin: 14px 0 8px; font-size: 17px; font-weight: 700; }
.step p { margin: 0; color: var(--soft); font-size: 14px; line-height: 1.7; }

@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* 瀏覽器模擬框（展示用） */
.frame {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  background: #f3f3f5;
  border-bottom: 1px solid var(--line-soft);
}

.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d6d6da; }

.frame-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 210px;
  padding: 34px 24px;
  color: #fff;
  text-align: center;
}

.frame-hero .fh-icon { font-size: 44px; line-height: 1; }
.frame-hero .fh-title { font-size: 22px; font-weight: 800; }
.frame-hero .fh-pill { width: 120px; height: 13px; border-radius: 999px; background: rgba(255,255,255,0.85); }

.frame-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 20px;
}

.frame-body i { height: 52px; border-radius: 9px; background: #eeeef0; }

/* 麵包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--faint);
  font-size: 13px;
}

.breadcrumb a { color: var(--faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }

/* 詳細頁 hero */
.detail-hero {
  padding: clamp(56px, 7vw, 92px) 24px clamp(44px, 5vw, 72px);
  background: var(--panel);
}

.detail-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.005em;
}

.detail-hero .hero-lede { margin: 0 0 30px; max-width: 640px; }

.hero-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* 重點清單 */
.check-list {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  text-align: left;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--soft);
  font-size: 15px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

@media (max-width: 640px) { .check-list { grid-template-columns: 1fr; } }

/* FAQ */
.faq-list { margin-top: 36px; display: grid; gap: 12px; text-align: left; }

.faq-item {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 20px;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "＋"; color: var(--faint); font-weight: 400; }
.faq-item[open] summary::after { content: "－"; }

.faq-item .faq-a {
  padding: 0 20px 18px;
  color: var(--soft);
  font-size: 14.5px;
  line-height: 1.8;
}

/* CTA 帶狀區 */
.cta-band {
  padding: clamp(64px, 8vw, 104px) 24px;
  background: #101012;
  color: #fff;
  text-align: center;
}

.cta-band h2 { margin: 0 0 14px; font-size: clamp(26px, 4vw, 40px); font-weight: 800; }
.cta-band p { margin: 0 auto 30px; max-width: 560px; color: rgba(245,245,247,0.66); font-size: 16px; }
.cta-band .hero-cta-row { justify-content: center; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.cta-band .btn-ghost:hover { border-color: #fff; }

/* 相關卡片（小型） */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.related-card {
  display: block;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.related-card:hover { transform: translateY(-3px); border-color: var(--line); }
.related-card .rc-cat { color: var(--faint); font-size: 12px; font-weight: 600; }
.related-card h3 { margin: 6px 0 0; font-size: 15.5px; font-weight: 700; }

@media (max-width: 800px) { .related-grid { grid-template-columns: 1fr; } }

/* 表格 */
.table-wrap { overflow-x: auto; margin-top: 36px; }

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
  font-size: 14px;
}

.compare-table th, .compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th { background: var(--page-bg); font-size: 13px; }
.compare-table td:first-child { font-weight: 700; white-space: nowrap; }
.compare-table .yes { color: #1a7f37; font-weight: 700; }
.compare-table .no { color: var(--faint); }

/* 風格卡片 */
.style-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.style-card {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.24s cubic-bezier(0.25,1,0.5,1), box-shadow 0.24s ease;
}

.style-card:hover { transform: translateY(-4px); }

.style-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  aspect-ratio: 16/10;
  color: #fff;
}

.style-thumb .st-name { font-size: 16px; font-weight: 800; letter-spacing: 0.04em; }
.style-thumb .st-bar { width: 84px; height: 9px; border-radius: 999px; background: rgba(255,255,255,0.8); }

.style-card .style-body { padding: 16px 18px 18px; }
.style-card h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.style-card p { margin: 0; color: var(--soft); font-size: 13px; }
.style-card .style-link { display: inline-block; margin-top: 10px; color: var(--accent); font-size: 13.5px; font-weight: 600; }

@media (max-width: 1000px) { .style-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .style-grid { grid-template-columns: 1fr; } }

/* 影片模板卡片 */
.video-cat { margin-top: 48px; }
.video-cat h2 { font-size: 22px; margin-bottom: 4px; }
.video-cat .cat-note { color: var(--faint); font-size: 13.5px; margin: 0 0 18px; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.video-card {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--panel);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.24s cubic-bezier(0.25,1,0.5,1);
}

.video-card:hover { transform: translateY(-4px); }

.video-thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16/9;
  color: #fff;
  font-size: 34px;
}

.video-thumb::after {
  content: "▶";
  position: absolute;
  right: 12px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  font-size: 11px;
}

.video-card .video-body { padding: 14px 16px 16px; }
.video-card h3 { margin: 0 0 4px; font-size: 15.5px; font-weight: 700; }
.video-card p { margin: 0; color: var(--soft); font-size: 13px; }

@media (max-width: 1000px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .video-grid { grid-template-columns: 1fr; } }

/* 提示詞區塊 */
.prompt-quote {
  margin: 30px 0 0;
  padding: 22px 24px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--page-bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.8;
}

.prompt-quote .pq-label {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* 案例晶片 */
.case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.case-chip {
  display: block;
  padding: 22px 20px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--panel);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.case-chip:hover { transform: translateY(-3px); }
.case-chip .cc-icon { font-size: 26px; }
.case-chip h3 { margin: 10px 0 4px; font-size: 16px; font-weight: 700; }
.case-chip p { margin: 0 0 10px; color: var(--soft); font-size: 13px; }
.case-chip span { color: var(--accent); font-size: 13px; font-weight: 600; }

@media (max-width: 1000px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .case-grid { grid-template-columns: 1fr; } }

/* 媒體 / 清單頁 */
.press-list { margin-top: 36px; display: grid; gap: 14px; }

.press-item {
  display: block;
  padding: 22px 24px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--panel);
  text-decoration: none;
  color: var(--text);
}

.press-item .pi-meta { color: var(--faint); font-size: 13px; }
.press-item h3 { margin: 6px 0 8px; font-size: 17px; font-weight: 700; line-height: 1.5; }
.press-item span { color: var(--accent); font-size: 13.5px; font-weight: 600; }

/* 聯絡頁 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.contact-card {
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--panel);
  text-align: center;
}

.contact-card .cc-icon { font-size: 26px; }
.contact-card h3 { margin: 10px 0 4px; font-size: 15.5px; }
.contact-card p { margin: 0; color: var(--soft); font-size: 14px; }

@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.form {
  margin-top: 36px;
  display: grid;
  gap: 14px;
  text-align: left;
}

.form label { font-size: 14px; font-weight: 700; }

.form input, .form textarea, .form select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
}

.form input:focus, .form textarea:focus { border-color: var(--accent); }

/* 法律頁 */
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; margin: 0 0 8px; }
.legal .legal-date { color: var(--faint); font-size: 13.5px; margin-bottom: 36px; }
.legal h2 { font-size: 20px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--soft); font-size: 15px; line-height: 1.9; }

/* 頁尾（完整版） */
.site-footer {
  padding: 56px 24px 44px;
  background: var(--panel);
  border-top: 1px solid var(--line-soft);
}

.site-footer .sf-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.site-footer .sf-brand { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.site-footer .sf-brand p { margin: 0; color: var(--soft); font-size: 13.5px; max-width: 240px; }

.site-footer h4 { margin: 0 0 12px; font-size: 13px; color: var(--faint); font-weight: 700; letter-spacing: 0.05em; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.site-footer li a { color: var(--soft); font-size: 14px; text-decoration: none; }
.site-footer li a:hover { color: var(--text); }

.site-footer .sf-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 800px) {
  .site-footer .sf-inner { grid-template-columns: 1fr 1fr; }
}
