/* === 基礎變數 === */
:root {
  --black: #383838;
  --red: #E9505A;
  --red-dark: #d43d47;
  --red-glow: rgba(233, 80, 90, 0.15);
  --text: #2d2d2d;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --border: #e5e7eb;
  --radius: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text); line-height: 1.75; background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; }

/* === 導覽列 === */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(56, 56, 56, 0.85);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06); transition: var(--transition);
}
.site-nav.scrolled { background: rgba(56, 56, 56, 0.95); box-shadow: 0 4px 30px rgba(0,0,0,0.2); }
.nav-container {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-brand { display: flex; align-items: center; gap: 14px; }
.nav-logo-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo { height: 34px; width: auto; transition: var(--transition); filter: brightness(0) invert(1); }
.nav-logo:hover { opacity: 0.85; }
.nav-brand-info { display: flex; flex-direction: column; line-height: 1.3; }
.nav-brand-name { color: #fff; font-size: 17px; font-weight: 700; letter-spacing: 0.3px; }
.nav-brand-text { color: rgba(255,255,255,0.4); font-size: 11px; letter-spacing: 0.3px; white-space: nowrap; }
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav-link {
  color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 18px; border-radius: 8px; transition: var(--transition); letter-spacing: 0.2px;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-link.active { color: #fff; background: var(--red); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 20px; }
.nav-btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 9px 22px; border-radius: 8px; transition: var(--transition); white-space: nowrap; letter-spacing: 0.3px;
}
.nav-btn-outline { color: rgba(255,255,255,0.75); border: 1.5px solid rgba(255,255,255,0.2); background: transparent; }
.nav-btn-outline:hover { border-color: rgba(255,255,255,0.5); color: #fff; }
.nav-btn-primary { background: var(--red); color: #fff; border: 1.5px solid var(--red); }
.nav-btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(233,80,90,0.35); }

/* === 語言切換器 === */
.nav-lang { position: relative; margin-left: 6px; }
.nav-lang-btn {
  display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 7px 12px;
  cursor: pointer; transition: var(--transition); color: rgba(255,255,255,0.7); font-size: 12px;
}
.nav-lang-btn:hover, .nav-lang-btn-open { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.25); color: #fff; }
.nav-lang-icon { width: 15px; height: 15px; flex-shrink: 0; }
.nav-lang-label { font-weight: 500; white-space: nowrap; }
.nav-lang-arrow { width: 12px; height: 12px; flex-shrink: 0; transition: transform 0.2s ease; }
.nav-lang-btn-open .nav-lang-arrow { transform: rotate(180deg); }
.nav-lang-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 160px;
  background: rgba(50,50,50,0.98); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
  padding: 6px; box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 100;
}
.nav-lang-dropdown-open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-lang-option {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 14px; border-radius: 8px; text-decoration: none;
  color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 500;
  transition: var(--transition);
}
.nav-lang-option:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-lang-current { color: var(--red); }
.nav-lang-current:hover { color: var(--red); }
.nav-lang-check { width: 14px; height: 14px; color: var(--red); flex-shrink: 0; }
.nav-lang-option-label { flex: 1; }

/* === 漢堡選單 === */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; z-index: 10;
}
.hamburger-line { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }
.hamburger-active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger-active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger-active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 960px) {
  .nav-hamburger { display: flex; }
  .nav-menu {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(56, 56, 56, 0.98); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    flex-direction: column; padding: 20px 32px 28px;
    border-top: 1px solid rgba(255,255,255,0.06); box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  }
  .nav-menu-open { display: flex; }
  .nav-links { flex-direction: column; width: 100%; gap: 4px; }
  .nav-links li { width: 100%; }
  .nav-link { display: block; padding: 14px 18px; font-size: 15px; }
  .nav-actions { margin-left: 0; margin-top: 16px; width: 100%; flex-direction: column; }
  .nav-btn { width: 100%; text-align: center; padding: 14px 22px; font-size: 14px; }
  .nav-lang { margin-left: 0; width: 100%; }
  .nav-lang-btn { width: 100%; justify-content: center; padding: 10px 16px; font-size: 13px; }
  .nav-lang-dropdown { right: auto; left: 0; width: 100%; }
}

/* === 頁尾 === */
footer { background: #1a1a1c; color: rgba(255,255,255,0.85); position: relative; }
.footer-top-bar { height: 3px; background: linear-gradient(90deg, var(--red), rgba(233,80,90,0.3), transparent); }
.footer-container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.footer-main { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px; padding: 64px 0 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand-top { display: flex; align-items: center; gap: 12px; }
.footer-logo { height: 28px; width: auto; display: block; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-brand-name { color: #fff; font-size: 17px; font-weight: 700; letter-spacing: 0.3px; }
.footer-brand-desc { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.8; max-width: 280px; }
.footer-copyright { font-size: 12px; color: rgba(255,255,255,0.3); line-height: 1.6; margin-top: 4px; }
.footer-title { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.5); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1.5px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-link { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 14px; transition: var(--transition); display: inline-block; }
.footer-link:hover { color: #fff; transform: translateX(2px); }
.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.footer-contact-item { font-size: 13px; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 10px; transition: var(--transition); }
.footer-contact-item:hover { color: rgba(255,255,255,0.85); }
.footer-contact-item a { color: inherit; text-decoration: none; }
.footer-icon { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.55; }
.footer-cta { display: flex; flex-direction: column; gap: 14px; }
.footer-cta-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 22px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; transition: var(--transition); }
.footer-cta-primary { background: var(--red); color: #fff; border: 1px solid var(--red); }
.footer-cta-primary:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(233,80,90,0.3); }
.footer-cta-outline { background: transparent; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.15); }
.footer-cta-outline:hover { border-color: rgba(255,255,255,0.35); color: #fff; }
.footer-cta-icon { width: 14px; height: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-bottom-left { font-size: 12px; color: rgba(255,255,255,0.25); }
.footer-bottom-left a { color: rgba(255,255,255,0.35); text-decoration: none; transition: var(--transition); }
.footer-bottom-left a:hover { color: rgba(255,255,255,0.6); }
.footer-notice { text-align: center; font-size: 11px; color: rgba(255,255,255,0.2); line-height: 1.8; flex: 1; }
.footer-notice-en { font-size: 10px; color: rgba(255,255,255,0.15); margin-top: 4px; }
.footer-bottom-right { font-size: 12px; color: rgba(255,255,255,0.25); white-space: nowrap; }
@media (max-width: 960px) { .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; padding: 48px 0 36px; } }
@media (max-width: 600px) { .footer-main { grid-template-columns: 1fr; gap: 32px; } .footer-links { display: none; } .footer-bottom { flex-direction: column; text-align: center; gap: 16px; } }

/* === 幫助文章 === */
.help-header {
  background: linear-gradient(170deg, #2c2420 0%, #383230 40%, #2a2520 100%);
  color: #fff; padding: 72px 0 0; position: relative; overflow: hidden;
}
.help-header::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(139,90,43,0.04) 79px, rgba(139,90,43,0.04) 80px);
  pointer-events: none; z-index: 0;
}
.help-header-inner { max-width: 800px; margin: 0 auto; padding: 56px 32px 48px; position: relative; z-index: 2; }
.help-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 20px; }
.help-breadcrumb a { color: rgba(255,255,255,0.45); text-decoration: none; transition: var(--transition); }
.help-breadcrumb a:hover { color: rgba(255,255,255,0.8); }
.help-breadcrumb span { color: rgba(255,255,255,0.25); }
.help-breadcrumb-current { color: rgba(255,255,255,0.7); }
.help-category {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--red);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px;
}
.help-header h1 { font-size: 36px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.3; }

.help-body { padding: 60px 0 100px; background: var(--bg-alt); }
.help-container { max-width: 800px; margin: 0 auto; padding: 0 32px; }
.help-content {
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: 48px; line-height: 1.9;
}
.help-content h2 {
  font-size: 22px; font-weight: 700; color: var(--black);
  margin: 40px 0 16px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.help-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.help-content h3 { font-size: 18px; font-weight: 600; color: var(--black); margin: 28px 0 12px; }
.help-content p { font-size: 15px; color: var(--text-light); margin-bottom: 16px; }
.help-content p:last-child { margin-bottom: 0; }
.help-content a { color: var(--red); text-decoration: none; font-weight: 500; transition: var(--transition); }
.help-content a:hover { text-decoration: underline; }
.help-content strong { color: var(--text); font-weight: 600; }
.help-content em { font-style: italic; }
.help-content ol, .help-content ul { margin: 16px 0; padding-left: 24px; }
.help-content li { font-size: 15px; color: var(--text-light); margin-bottom: 12px; line-height: 1.9; }
.help-content li:last-child { margin-bottom: 0; }
.help-content img {
  display: block; margin: 24px auto; border-radius: 12px;
  box-shadow: var(--shadow-md); border: 1px solid var(--border);
}
.help-content code {
  background: var(--bg-alt); padding: 2px 8px; border-radius: 4px;
  font-size: 13px; color: var(--text); border: 1px solid var(--border);
}
.help-content .note-box {
  background: rgba(233,80,90,0.04); border-left: 3px solid var(--red);
  padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 24px 0;
  font-size: 14px; color: var(--text-light);
}
.help-content .warning-box {
  background: rgba(245,158,11,0.06); border-left: 3px solid #f59e0b;
  padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 24px 0;
  font-size: 14px; color: var(--text-light);
}
.help-content .advisory-list { list-style: none; padding-left: 0; margin: 20px 0; }
.help-content .advisory-list li { margin-bottom: 8px; }
.help-content .advisory-list a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px; background: var(--bg-alt);
  border: 1px solid var(--border); font-size: 14px; font-weight: 600;
  transition: var(--transition);
}
.help-content .advisory-list a:hover {
  text-decoration: none; border-color: var(--red);
  box-shadow: var(--shadow-sm); transform: translateX(4px);
}

.help-nav-bottom {
  margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.help-nav-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--red);
  text-decoration: none; transition: var(--transition);
  padding: 10px 20px; border-radius: 10px; background: var(--bg-alt);
  border: 1px solid var(--border);
}
.help-nav-link:hover { border-color: var(--red); box-shadow: var(--shadow-sm); }
.help-nav-link svg { width: 16px; height: 16px; }

@media (max-width: 768px) {
  .help-header h1 { font-size: 28px; }
  .help-content { padding: 28px 20px; }
  .help-nav-bottom { flex-direction: column; }
}
