/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  background: #0a0e17;
  color: #e0e6f0;
  line-height: 1.7;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== Layout ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-dark { background: #0d1220; }
.section-accent { background: linear-gradient(135deg, #0d1f3c 0%, #0a1628 100%); }
.section-contact { background: linear-gradient(135deg, #1a0a2e 0%, #0d1220 100%); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.section-header p { color: #8899bb; font-size: 1.05rem; }

/* ===== Navbar ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,14,23,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1e2a40;
  padding: 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; }
.logo-icon { font-size: 1.4rem; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: #aab8cc; font-size: 0.95rem; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.btn-nav {
  background: #1565c0; color: #fff !important;
  padding: 8px 20px; border-radius: 8px;
  font-weight: 600; transition: background .2s !important;
}
.btn-nav:hover { background: #1976d2 !important; }

/* ===== Hero ===== */
.hero {
  padding: 100px 0 80px;
  background: radial-gradient(ellipse at 60% 0%, #0d2a5e 0%, #0a0e17 60%);
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(21,101,192,0.2);
  border: 1px solid #1565c0;
  color: #64b5f6;
  padding: 6px 18px; border-radius: 20px;
  font-size: 0.85rem; font-weight: 600;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900; line-height: 1.2;
  margin-bottom: 24px;
}
.highlight {
  background: linear-gradient(90deg, #42a5f5, #1565c0);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-desc {
  max-width: 640px; margin: 0 auto 40px;
  color: #8899bb; font-size: 1.1rem;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 60px; flex-wrap: wrap; }
.btn-primary {
  background: #1565c0; color: #fff;
  padding: 14px 32px; border-radius: 10px;
  font-weight: 700; font-size: 1rem;
  transition: background .2s, transform .1s;
  display: inline-block;
}
.btn-primary:hover { background: #1976d2; transform: translateY(-1px); }
.btn-secondary {
  background: transparent; color: #64b5f6;
  padding: 14px 32px; border-radius: 10px;
  font-weight: 600; font-size: 1rem;
  border: 1.5px solid #1565c0;
  transition: background .2s;
  display: inline-block;
}
.btn-secondary:hover { background: rgba(21,101,192,0.15); }
.btn-outline {
  background: transparent; color: #64b5f6;
  padding: 12px 28px; border-radius: 10px;
  font-weight: 600; border: 1.5px solid #1565c0;
  transition: background .2s; display: inline-block;
  text-align: center; width: 100%;
}
.btn-outline:hover { background: rgba(21,101,192,0.15); }
.btn-large { padding: 16px 48px; font-size: 1.1rem; }

.hero-stats {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 1.8rem; font-weight: 900; color: #42a5f5; }
.stat-label { font-size: 0.85rem; color: #8899bb; }

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: #0d1220;
  border: 1px solid #1e2a40;
  border-radius: 16px;
  padding: 28px;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: #1565c0; transform: translateY(-3px); }
.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: #8899bb; font-size: 0.95rem; line-height: 1.7; }

/* ===== Sources ===== */
.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px; margin-bottom: 16px;
}
.source-item {
  background: #131b2e;
  border: 1px solid #1e2a40;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.6;
}
.source-icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }

/* ===== Workflow Steps ===== */
.steps {
  display: flex; align-items: flex-start;
  gap: 8px; flex-wrap: wrap; justify-content: center;
}
.step {
  background: #131b2e;
  border: 1px solid #1e2a40;
  border-radius: 12px;
  padding: 20px 16px;
  width: 160px; text-align: center;
}
.step-num {
  width: 36px; height: 36px;
  background: #1565c0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
  margin: 0 auto 10px;
}
.step h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 0.8rem; color: #8899bb; }
.step-arrow { font-size: 1.5rem; color: #1565c0; align-self: center; padding: 0 4px; }

/* ===== Compliance ===== */
.compliance-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.compliance-text h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 16px; }
.compliance-text p { color: #8899bb; margin-bottom: 20px; }
.compliance-list { display: flex; flex-direction: column; gap: 10px; }
.compliance-list li { font-size: 0.95rem; }

/* Mock Screen */
.mock-screen {
  background: #0d1220; border: 1px solid #1e2a40;
  border-radius: 12px; overflow: hidden;
}
.mock-bar {
  background: #131b2e; padding: 10px 14px;
  display: flex; gap: 6px;
}
.mock-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #2a3a50;
}
.mock-content { padding: 20px; }
.mock-title { font-weight: 700; margin-bottom: 8px; color: #42a5f5; }
.mock-channel { font-size: 0.85rem; color: #8899bb; margin-bottom: 16px; }
.mock-files { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.mock-file {
  background: #131b2e; border-radius: 6px;
  padding: 8px 12px; font-size: 0.82rem;
  display: flex; justify-content: space-between;
  color: #aab8cc;
}
.mock-file.active { background: #1565c0; color: #fff; }
.mock-file span { color: #8899bb; }
.mock-file.active span { color: rgba(255,255,255,0.7); }
.mock-player {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.85rem;
}
.mock-progress {
  flex: 1; height: 4px; background: #1e2a40; border-radius: 2px;
}
.mock-progress-fill {
  width: 35%; height: 100%; background: #1565c0; border-radius: 2px;
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px; margin-bottom: 32px;
}
.pricing-card {
  background: #0d1220; border: 1px solid #1e2a40;
  border-radius: 16px; padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.pricing-card.featured {
  border-color: #1565c0;
  background: linear-gradient(135deg, #0d1f3c 0%, #0d1220 100%);
}
.pricing-badge { font-size: 0.85rem; font-weight: 700; color: #64b5f6; }
.pricing-price { font-size: 1.8rem; font-weight: 900; }
.pricing-desc { color: #8899bb; font-size: 0.9rem; }
.pricing-features { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pricing-features li { font-size: 0.9rem; }
.pricing-features li.disabled { color: #4a5568; }
.pricing-note {
  text-align: center; color: #8899bb; font-size: 0.88rem; line-height: 1.8;
}

/* ===== Specs Table ===== */
.specs-table-wrap { overflow-x: auto; margin-bottom: 20px; }
.specs-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.95rem;
}
.specs-table th, .specs-table td {
  padding: 14px 20px; text-align: left;
  border-bottom: 1px solid #1e2a40;
}
.specs-table th { background: #131b2e; color: #64b5f6; font-weight: 700; }
.specs-table tr:hover td { background: #0d1220; }
.specs-note { color: #8899bb; font-size: 0.9rem; line-height: 1.8; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  background: #0d1220; border: 1px solid #1e2a40;
  border-radius: 12px; padding: 24px;
}
.faq-q { font-weight: 700; margin-bottom: 10px; color: #64b5f6; }
.faq-a { color: #8899bb; font-size: 0.95rem; }

/* ===== Contact ===== */
.contact-block { text-align: center; }
.contact-block h2 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.contact-block > p { color: #8899bb; margin-bottom: 40px; }
.contact-methods {
  display: flex; justify-content: center; gap: 40px;
  flex-wrap: wrap; margin-bottom: 40px;
}
.contact-item { display: flex; align-items: center; gap: 14px; text-align: left; }
.contact-icon { font-size: 2rem; }
.contact-item strong { display: block; font-weight: 700; }
.contact-item p { color: #8899bb; font-size: 0.9rem; }

/* ===== Footer ===== */
.footer {
  background: #060a12;
  border-top: 1px solid #1e2a40;
  padding: 32px 0;
}
.footer-inner { text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.footer-copy { color: #4a5568; font-size: 0.85rem; }
.footer-tech { color: #2a3a50; font-size: 0.8rem; }

/* ===== Responsive ===== */

/* 漢堡按鈕（桌機隱藏） */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background .2s;
}
.nav-toggle:hover { background: #1e2a40; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: #e0e6f0; border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
/* 漢堡 → X 動畫 */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  /* 顯示漢堡按鈕 */
  .nav-toggle { display: flex; }

  /* 導覽列改為下拉式 */
  .nav-links {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(10,14,23,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #1e2a40;
    flex-direction: column;
    padding: 12px 16px 20px;
    gap: 4px;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .navbar { position: sticky; }

  /* 手機版連結樣式 */
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block; padding: 12px 16px;
    border-radius: 8px; font-size: 1rem;
    color: #aab8cc;
  }
  .nav-links a:hover, .nav-links a.active {
    background: #1e2a40; color: #fff;
  }
  .btn-nav {
    background: #1565c0 !important; color: #fff !important;
    text-align: center; margin-top: 8px;
  }

  /* Hero */
  .hero { padding: 60px 0 48px; }
  .hero-title { font-size: 1.8rem; }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 1.4rem; }

  /* 功能卡片 */
  .features-grid { grid-template-columns: 1fr; }

  /* 合規區塊 */
  .compliance-block { grid-template-columns: 1fr; }

  /* 定價 */
  .pricing-grid { grid-template-columns: 1fr; }

  /* 步驟 */
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }

  /* 聯絡 */
  .contact-methods { flex-direction: column; align-items: flex-start; }

  /* Footer */
  .footer-inner { gap: 12px; }
}

/* ===== website2 額外樣式 ===== */

/* 公告橫幅 */
.announcement-bar {
  background: #1565c0; color: #fff;
  text-align: center; padding: 8px 16px; font-size: 0.88rem;
}

/* 頁面 Hero（內頁用） */
.page-hero {
  padding: 60px 0 48px;
  background: radial-gradient(ellipse at 60% 0%, #0d2a5e 0%, #0a0e17 60%);
  border-bottom: 1px solid #1e2a40;
}
.page-hero h1 { font-size: 2.2rem; font-weight: 900; margin-bottom: 10px; }
.page-hero p { color: #8899bb; font-size: 1.05rem; }

/* 功能列表（features.php） */
.features-list { display: flex; flex-direction: column; gap: 16px; }
.feature-item {
  display: flex; gap: 20px; align-items: flex-start;
  background: #0d1220; border: 1px solid #1e2a40;
  border-radius: 14px; padding: 24px;
  transition: border-color .2s;
}
.feature-item:hover { border-color: #1565c0; }
.feature-item .feature-icon { font-size: 2rem; flex-shrink: 0; }
.feature-item h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.feature-item p { color: #8899bb; font-size: 0.95rem; }

/* 規格表 */
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.spec-table th, .spec-table td {
  padding: 13px 18px; text-align: left;
  border-bottom: 1px solid #1e2a40;
}
.spec-table th { background: #131b2e; color: #64b5f6; font-weight: 700; }
.spec-table tr:hover td { background: #0d1220; }

/* 標籤列表 */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  background: #131b2e; border: 1px solid #1e2a40;
  border-radius: 20px; padding: 6px 16px;
  font-size: 0.9rem; color: #aab8cc;
}

/* 關於我們 */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.lead { font-size: 1.05rem; color: #c0cce0; line-height: 1.9; }
.about-values { display: flex; flex-direction: column; gap: 14px; }
.value-card {
  background: #0d1220; border: 1px solid #1e2a40;
  border-radius: 12px; padding: 20px;
  display: flex; gap: 14px; align-items: flex-start;
}
.value-icon { font-size: 1.5rem; flex-shrink: 0; }
.value-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.value-card p { color: #8899bb; font-size: 0.9rem; }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.tech-item {
  background: #131b2e; border: 1px solid #1e2a40;
  border-radius: 10px; padding: 16px;
}
.tech-item h4 { color: #64b5f6; font-size: 0.82rem; font-weight: 700; margin-bottom: 4px; }
.tech-item p { color: #e0e6f0; font-size: 0.95rem; }

/* 下載頁 */
.download-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.download-card {
  background: #0d1220; border: 1px solid #1e2a40;
  border-radius: 14px; padding: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: border-color .2s;
}
.download-card:hover { border-color: #1565c0; }
.dl-info h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.dl-info p { color: #8899bb; font-size: 0.9rem; margin-bottom: 8px; }
.dl-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.meta-tag {
  background: #131b2e; border: 1px solid #1e2a40;
  border-radius: 4px; padding: 3px 10px;
  font-size: 0.8rem; color: #8899bb;
}
.dl-action { flex-shrink: 0; }
.empty-state { text-align: center; padding: 60px 0; }
.empty-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: #8899bb; }
.download-note {
  background: #0d1220; border: 1px solid #1e2a40;
  border-radius: 14px; padding: 24px 28px; margin-top: 24px;
}
.download-note h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }
.download-note ol { padding-left: 20px; color: #8899bb; }
.download-note li { margin-bottom: 6px; }
.download-note a { color: #64b5f6; }

/* 聯絡頁 */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; }
.contact-form-wrap h2, .contact-info h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; color: #8899bb; font-size: 0.88rem; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; background: #0d1220;
  border: 1px solid #1e2a40; border-radius: 8px;
  padding: 10px 14px; color: #e0e6f0;
  font-size: 0.95rem; font-family: inherit;
  transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: #1565c0;
}
.required { color: #ef5350; }
.info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.info-icon { font-size: 1.5rem; flex-shrink: 0; }
.info-item strong { display: block; font-weight: 700; margin-bottom: 2px; }
.info-item p { color: #8899bb; font-size: 0.9rem; }
.info-item a { color: #64b5f6; }

/* Alert */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 0.95rem; }
.alert-success { background: #1b3a1b; border: 1px solid #2e7d32; color: #a5d6a7; }
.alert-error   { background: #3a1b1b; border: 1px solid #c62828; color: #ef9a9a; }

/* btn 相容 */
.btn { display: inline-block; padding: 10px 24px; border-radius: 8px; font-size: 0.95rem; font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: all .2s; text-decoration: none; }
.btn.btn-primary { background: #1565c0; color: #fff; border-color: #1565c0; }
.btn.btn-primary:hover { background: #1976d2; }
.btn.btn-outline { background: transparent; color: #64b5f6; border-color: #1565c0; }
.btn.btn-outline:hover { background: rgba(21,101,192,0.15); }

/* section-alt */
.section-alt { background: #0d1220; }

/* Responsive 補充 */
@media (max-width: 768px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .download-card { flex-direction: column; align-items: flex-start; }
  .page-hero h1 { font-size: 1.6rem; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-cats { gap: 8px; }
  .faq-q { font-size: 0.95rem; padding: 14px 16px; }
  .faq-a { padding: 0 16px 14px; }
  .spec-table { font-size: 0.85rem; }
  .spec-table th, .spec-table td { padding: 10px 12px; }
}

/* ===== FAQ 頁面 ===== */
.faq-cats {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 40px;
}
.faq-cat-btn {
  background: #131b2e; border: 1px solid #1e2a40;
  border-radius: 20px; padding: 6px 18px;
  font-size: 0.9rem; color: #aab8cc;
  transition: background .2s, border-color .2s;
}
.faq-cat-btn:hover { background: #1565c0; border-color: #1565c0; color: #fff; }

.faq-section { margin-bottom: 48px; }
.faq-cat-title {
  font-size: 1.1rem; font-weight: 700; color: #64b5f6;
  border-bottom: 1px solid #1e2a40;
  padding-bottom: 10px; margin-bottom: 20px;
}

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #0d1220; border: 1px solid #1e2a40;
  border-radius: 12px; overflow: hidden;
  transition: border-color .2s;
}
.faq-item:hover { border-color: #1565c0; }
.faq-q {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px; cursor: pointer;
  font-weight: 700; font-size: 1rem;
  user-select: none;
}
.faq-q-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: #1565c0; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 900; flex-shrink: 0;
}
.faq-toggle {
  margin-left: auto; font-size: 1.2rem; color: #64b5f6;
  transition: transform .2s; flex-shrink: 0;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 20px 18px 20px;
  color: #8899bb; font-size: 0.95rem; line-height: 1.8;
  gap: 12px;
}
.faq-item.open .faq-a { display: flex; }
.faq-a-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: #131b2e; border: 1px solid #1e2a40;
  color: #64b5f6;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 900; flex-shrink: 0; margin-top: 2px;
}

.faq-cta {
  text-align: center; margin-top: 60px;
  padding: 48px 24px;
  background: linear-gradient(135deg, #0d1f3c 0%, #0d1220 100%);
  border: 1px solid #1e2a40; border-radius: 16px;
}
.faq-cta h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.faq-cta p { color: #8899bb; margin-bottom: 24px; }
