:root {
  --color-primary: #3b82f6;
  --color-primary-dark: #2563eb;
  --color-accent: #0ea5e9;
  --color-bg: #ffffff;
  --color-bg-secondary: #f8fafc;
  --color-bg-tertiary: #f1f5f9;
  --color-text: #1e293b;
  --color-text-secondary: #475569;
  --color-text-muted: #94a3b8;
  --color-border: #e2e8f0;
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1100px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); text-decoration: underline; }

/* Nav */
.site-nav {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.nav-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
}
.nav-links { display: flex; gap: 20px; }
.nav-links a {
  font-size: 14px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--color-primary); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; font-size: 20px; cursor: pointer; }

/* Hero */
.hero {
  text-align: center;
  padding: 60px 24px 40px;
}
.hero h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}
.hero p {
  font-size: 16px;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Download section */
.download-section {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.download-card {
  text-align: center;
}
.download-card img {
  width: 120px;
  height: auto;
  margin-bottom: 12px;
}
.download-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .1s;
  border: none;
  cursor: pointer;
}
.download-btn:hover {
  background: var(--color-primary-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

/* Features */
.features {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 60px;
}
.features h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 36px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-item {
  text-align: center;
}
.feature-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 12px 0 8px;
  color: var(--color-primary);
}
.feature-item p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Articles section */
.articles-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 60px;
}
.articles-section h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 36px;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.article-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  text-decoration: none;
}
.article-card-body { padding: 20px; }
.article-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.article-card h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.articles-more {
  text-align: center;
  margin-top: 32px;
}
.articles-more a {
  display: inline-block;
  padding: 12px 36px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}
.articles-more a:hover { background: var(--color-primary-dark); color: #fff; text-decoration: none; }

/* FAQ */
.faq-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 60px;
}
.faq-section h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 36px;
}
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-q {
  padding: 16px 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding-bottom: 16px;
}
.faq-arrow {
  transition: transform .3s;
  font-size: 12px;
  color: var(--color-text-muted);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }

/* Article detail */
.article-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}
.article-detail h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
  line-height: 1.4;
}
.article-meta {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.article-meta .tag {
  background: var(--color-bg-tertiary);
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: 600;
  color: var(--color-text-secondary);
}
.article-detail h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 32px 0 16px;
  color: var(--color-text);
}
.article-detail h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--color-text);
}
.article-detail p {
  margin-bottom: 16px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}
.article-detail ul, .article-detail ol {
  margin: 0 0 16px 20px;
  color: var(--color-text-secondary);
}
.article-detail li { margin-bottom: 8px; line-height: 1.7; }
.article-detail code {
  background: var(--color-bg-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: "Fira Code", "Consolas", monospace;
}
.article-detail pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 16px 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.6;
}
.article-detail pre code { background: none; padding: 0; color: inherit; }
.article-detail blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 8px 20px;
  margin: 16px 0;
  background: var(--color-bg-secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--color-text-secondary);
}
.article-detail img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 16px 0;
}
.article-detail a { color: var(--color-primary); }
.breadcrumb {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }

/* Articles listing */
.articles-listing {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 60px;
}
.articles-listing h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
}
.category-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.category-tab {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  background: var(--color-bg-secondary);
  color: var(--color-text-secondary);
  text-decoration: none;
  border: 1px solid var(--color-border);
  transition: all .2s;
}
.category-tab:hover, .category-tab.active {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* Footer */
.site-footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: 40px 24px 20px;
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.footer-logo { font-size: 18px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.footer-logo-icon { width: 28px; height: 28px; border-radius: 5px; flex-shrink: 0; }
.footer-desc { font-size: 13px; color: var(--color-text-secondary); max-width: 400px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13px; color: var(--color-text-secondary); text-decoration: none; }
.footer-links a:hover { color: var(--color-primary); }
.footer-copy {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}
.footer-copy p { font-size: 12px; color: var(--color-text-muted); }

/* ===== Rich Footer (multi-column) ===== */
.footer-rich { padding: 48px 24px 20px; }
.footer-rich .footer-rich-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 32px;
  align-items: flex-start;
}
.footer-col { display: flex; flex-direction: column; }
.footer-col-brand .footer-logo {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-text);
}
.footer-col-brand .footer-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}
.footer-download-btn {
  display: inline-block;
  padding: 8px 20px;
  background: var(--color-primary);
  color: #fff !important;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
  align-self: flex-start;
}
.footer-download-btn:hover { background: var(--color-primary-dark); }
.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}
.footer-col-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col-links a {
  font-size: 13px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color .2s;
}
.footer-col-links a:hover { color: var(--color-primary); }

@media (max-width: 768px) {
  .footer-rich .footer-rich-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-col-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-rich .footer-rich-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* News float */
.news-float {
  display: none;
}

/* ===== Download CTA Components ===== */

/* Full variant - homepage hero */
.download-cta-full {
  background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg-tertiary) 100%);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--color-border);
}
.cta-header { text-align: center; margin-bottom: 28px; }
.cta-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
}
.cta-header p {
  font-size: 14px;
  color: var(--color-text-secondary);
}
.cta-platforms {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cta-platform-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: var(--color-primary);
  color: #fff !important;
  border-radius: var(--radius);
  text-decoration: none !important;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.cta-platform-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  text-decoration: none !important;
}
.platform-icon {
  color: #fff;
  display: flex;
  align-items: center;
}
.platform-text { display: flex; flex-direction: column; }
.platform-label { font-size: 15px; font-weight: 600; }
.platform-sub { font-size: 11px; opacity: .85; }

/* Compact variant - article pages */
.download-cta-compact {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 0 auto 40px;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.download-cta-compact-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 40px;
}
.cta-compact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.cta-compact-text h4 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.cta-compact-text p {
  font-size: 13px;
  color: rgba(255,255,255,.85);
}
.cta-compact-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cta-mini-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  color: #fff !important;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  border: 1px solid rgba(255,255,255,.25);
  transition: background .2s, transform .15s;
}
.cta-mini-btn:hover {
  background: rgba(255,255,255,.25);
  transform: translateY(-1px);
  text-decoration: none !important;
}
.platform-icon-sm {
  color: #fff;
  display: flex;
  align-items: center;
}
.platform-icon-sm svg { width: 20px; height: 20px; }

/* Inline variant - small inline CTA */
.download-cta-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  padding: 14px 20px;
  background: var(--color-bg-secondary);
  border-radius: var(--radius);
  border-left: 3px solid var(--color-primary);
}
.cta-inline-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--color-primary);
  color: #fff !important;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background .2s;
}
.cta-inline-btn:hover { background: var(--color-primary-dark); text-decoration: none !important; }
.cta-inline-note {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Floating download button (mobile) */
.float-download {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  padding: 12px 24px;
  background: var(--color-primary);
  color: #fff !important;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  transition: transform .2s;
}
.float-download:hover { transform: scale(1.05); text-decoration: none !important; }
.float-download::before {
  content: "⬇ ";
  font-size: 16px;
}

@media (max-width: 768px) {
  .float-download { display: inline-block; }
  .download-cta-full { padding: 24px 16px; }
  .cta-platforms { flex-direction: column; gap: 12px; }
  .cta-platform-btn { width: 100%; justify-content: center; }
  .cta-compact-inner { flex-direction: column; text-align: center; }
  .cta-compact-btns { justify-content: center; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 12px;
  }
  .nav-links.nav-open { display: flex; }
  .feature-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 24px; }
  .download-section { gap: 16px; }
}

/* ===== Template A Styles ===== */
.ta-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ta-notice-bar { background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark)); color: #fff; text-align: center; padding: 8px 20px; font-size: 13px; }
.ta-notice-bar a { color: #fff; text-decoration: underline; font-weight: 600; }
.ta-nav { position: sticky; top: 0; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid #e8e8e8; z-index: 100; padding: 14px 0; }
.ta-nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ta-nav-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: var(--color-text); text-decoration: none; }
.ta-nav-brand span { color: var(--color-primary); }
.ta-nav-menu { display: flex; gap: 32px; align-items: center; list-style: none; }
.ta-nav-menu a { font-size: 15px; color: var(--color-text); text-decoration: none; transition: color .2s; }
.ta-nav-menu a:hover { color: var(--color-primary); }
.ta-nav-download-btn { background: var(--color-primary); color: #fff !important; padding: 8px 24px; border-radius: 8px; font-weight: 600; transition: background .2s; }
.ta-nav-download-btn:hover { background: var(--color-primary-dark); }
.ta-nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }
.ta-hero { background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 8%, #fff) 0%, #fff 50%, color-mix(in srgb, var(--color-primary) 8%, #fff) 100%); padding: 60px 0 50px; overflow: hidden; }
.ta-hero-inner { display: flex; align-items: center; gap: 60px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ta-hero-left { flex: 1; }
.ta-hero-badge { display: inline-flex; align-items: center; gap: 6px; background: color-mix(in srgb, var(--color-primary) 12%, #fff); color: var(--color-primary); padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.ta-hero h1 { font-size: 42px; line-height: 1.3; margin-bottom: 16px; font-weight: 800; color: #1a1a1a; }
.ta-highlight { color: var(--color-primary); }
.ta-hero-tagline { font-size: 18px; color: #666; margin-bottom: 24px; line-height: 1.8; }
.ta-hero-meta { display: flex; gap: 24px; margin-bottom: 30px; font-size: 14px; color: #666; flex-wrap: wrap; }
.ta-hero-meta strong { color: #1a1a1a; font-weight: 600; }
.ta-hero-cta { display: flex; gap: 16px; margin-bottom: 30px; }
.ta-btn-primary { background: var(--color-primary); color: #fff; padding: 14px 36px; border-radius: 10px; font-size: 16px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; transition: all .2s; box-shadow: 0 4px 14px color-mix(in srgb, var(--color-primary) 30%, transparent); text-decoration: none; }
.ta-btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); color: #fff; }
.ta-btn-secondary { background: #fff; color: var(--color-primary); border: 2px solid var(--color-primary); padding: 12px 34px; border-radius: 10px; font-size: 16px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; transition: all .2s; text-decoration: none; }
.ta-btn-secondary:hover { background: color-mix(in srgb, var(--color-primary) 8%, #fff); }
.ta-hero-trust { display: flex; gap: 28px; flex-wrap: wrap; }
.ta-trust-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #666; }
.ta-hero-right { flex: 0 0 400px; text-align: center; }
.ta-hero-logo { width: 200px; height: 200px; margin: 0 auto 20px; filter: drop-shadow(0 10px 30px color-mix(in srgb, var(--color-primary) 20%, transparent)); }
.ta-platform-icons { display: flex; justify-content: center; gap: 16px; margin-top: 20px; }
.ta-platform-icons span { width: 48px; height: 48px; background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.ta-download-section { padding: 70px 0; background: #f5f7fa; }
.ta-section-title { text-align: center; font-size: 32px; font-weight: 800; margin-bottom: 12px; color: #1a1a1a; }
.ta-section-subtitle { text-align: center; color: #666; font-size: 16px; margin-bottom: 50px; }
.ta-download-grid { display: grid; gap: 20px; max-width: 1100px; margin: 0 auto; }
.ta-download-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; padding: 28px 20px; text-align: center; transition: all .3s; position: relative; }
.ta-download-card:hover { border-color: var(--color-primary); box-shadow: 0 8px 25px color-mix(in srgb, var(--color-primary) 12%, transparent); transform: translateY(-4px); }
.ta-download-card .ta-platform-icon { font-size: 40px; margin-bottom: 12px; }
.ta-download-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.ta-version { font-size: 12px; color: #666; margin-bottom: 4px; }
.ta-size { font-size: 13px; color: var(--color-primary); font-weight: 600; margin-bottom: 16px; }
.ta-req { font-size: 11px; color: #666; margin-bottom: 14px; line-height: 1.5; white-space: pre-line; }
.ta-dl-btn { display: block; background: color-mix(in srgb, var(--color-primary) 12%, #fff); color: var(--color-primary); padding: 10px; border-radius: 8px; font-size: 14px; font-weight: 600; transition: all .2s; text-decoration: none; }
.ta-dl-btn:hover { background: var(--color-primary); color: #fff; }
.ta-badge { position: absolute; top: -8px; right: 12px; background: #34c759; color: #fff; font-size: 10px; padding: 3px 8px; border-radius: 10px; font-weight: 600; }
.ta-features { padding: 70px 0; }
.ta-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.ta-feature-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; padding: 32px 28px; transition: all .3s; }
.ta-feature-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,.08); transform: translateY(-4px); }
.ta-feature-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 20px; }
.ta-fi-blue { background: #E8F1FF; color: #007AFF; }
.ta-fi-green { background: #E8FBE8; color: #34c759; }
.ta-fi-orange { background: #FFF3E0; color: #ff9500; }
.ta-fi-purple { background: #F3E8FF; color: #af52de; }
.ta-fi-red { background: #FFEBEB; color: #ff3b30; }
.ta-fi-teal { background: #E0F7FA; color: #0097a7; }
.ta-feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.ta-feature-card p { color: #666; font-size: 15px; line-height: 1.8; }
.ta-how-it-works { padding: 70px 0; background: #f5f7fa; }
.ta-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 50px; position: relative; }
.ta-steps::before { content: ""; position: absolute; top: 40px; left: 20%; right: 20%; height: 2px; background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark)); opacity: .2; }
.ta-step { text-align: center; position: relative; }
.ta-step-num { width: 80px; height: 80px; background: #fff; border: 3px solid var(--color-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; color: var(--color-primary); margin: 0 auto 24px; position: relative; z-index: 1; box-shadow: 0 4px 15px color-mix(in srgb, var(--color-primary) 15%, transparent); }
.ta-step h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.ta-step p { color: #666; font-size: 15px; line-height: 1.8; max-width: 280px; margin: 0 auto; }
.ta-tutorials { padding: 70px 0; }
.ta-tutorials-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.ta-tutorials-header .ta-section-title { text-align: left; margin-bottom: 0; }
.ta-view-all { color: var(--color-primary); font-size: 15px; font-weight: 600; text-decoration: none; }
.ta-tutorials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ta-tutorial-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; overflow: hidden; transition: all .3s; text-decoration: none; color: inherit; display: block; }
.ta-tutorial-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,.08); transform: translateY(-4px); }
.ta-tutorial-thumb { height: 160px; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.ta-tutorial-body { padding: 20px; }
.ta-tutorial-cat { display: inline-block; background: color-mix(in srgb, var(--color-primary) 12%, #fff); color: var(--color-primary); font-size: 12px; padding: 3px 10px; border-radius: 6px; font-weight: 600; margin-bottom: 10px; }
.ta-tutorial-card h3 { font-size: 16px; font-weight: 700; line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ta-date { font-size: 13px; color: #666; }
.ta-faq { padding: 70px 0; background: #f5f7fa; }
.ta-faq-list { max-width: 800px; margin: 0 auto; }
.ta-faq-item { background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; margin-bottom: 16px; overflow: hidden; }
.ta-faq-q { padding: 20px 24px; font-size: 16px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background .2s; color: #1a1a1a; }
.ta-faq-q:hover { background: #f5f7fa; }
.ta-arrow { transition: transform .3s; font-size: 14px; color: #666; }
.ta-faq-q.open .ta-arrow { transform: rotate(180deg); }
.ta-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; padding: 0 24px; color: #666; font-size: 15px; line-height: 1.8; }
.ta-faq-a.open { max-height: 300px; padding: 0 24px 20px; }
.ta-cta-banner { padding: 60px 0; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); text-align: center; }
.ta-cta-banner h2 { color: #fff; font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.ta-cta-banner p { color: rgba(255,255,255,.9); font-size: 16px; margin-bottom: 30px; }
.ta-btn-white { background: #fff; color: var(--color-primary); padding: 16px 48px; border-radius: 10px; font-size: 17px; font-weight: 700; display: inline-block; transition: all .2s; box-shadow: 0 4px 15px rgba(0,0,0,.15); text-decoration: none; }
.ta-btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(0,0,0,.2); }
.ta-footer { background: #1a1a2e; color: #a0a0b0; padding: 50px 0 30px; }
.ta-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ta-footer-brand p { font-size: 14px; line-height: 1.8; margin-top: 16px; }
.ta-footer-logo { display: flex; align-items: center; gap: 10px; }
.ta-footer-logo span { color: #fff; font-size: 18px; font-weight: 700; }
.ta-footer-col h4 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.ta-footer-col ul { list-style: none; }
.ta-footer-col ul li { margin-bottom: 10px; }
.ta-footer-col ul a { font-size: 14px; color: #a0a0b0; text-decoration: none; transition: color .2s; }
.ta-footer-col ul a:hover { color: #fff; }
.ta-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; text-align: center; font-size: 13px; }

/* Template A Responsive */
@media(max-width: 968px) {
  .ta-hero-inner { flex-direction: column; text-align: center; }
  .ta-hero-right { flex: 0 0 auto; }
  .ta-download-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .ta-features-grid, .ta-tutorials-grid, .ta-steps { grid-template-columns: 1fr; }
  .ta-footer-grid { grid-template-columns: 1fr 1fr; }
  .ta-nav-menu { display: none; }
  .ta-nav-toggle { display: block; }
  .ta-hero h1 { font-size: 28px; }
}

/* ===== Template B Styles ===== */
.tb-container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.tb-nav { background: var(--color-primary); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.tb-nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1100px; margin: 0 auto; padding: 0 24px; height: 56px; }
.tb-nav-brand { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 18px; font-weight: 700; text-decoration: none; }
.tb-nav-brand img { border-radius: 6px; }
.tb-nav-links { display: flex; gap: 24px; }
.tb-nav-links a { color: rgba(255,255,255,.9); font-size: 14px; text-decoration: none; transition: color .2s; }
.tb-nav-links a:hover { color: #fff; }
.tb-nav-download { background: rgba(255,255,255,.2); color: #fff; padding: 6px 16px; border-radius: 6px; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .2s; }
.tb-nav-download:hover { background: rgba(255,255,255,.3); color: #fff; }
.tb-nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }
.tb-hero { padding: 48px 0; background: linear-gradient(135deg, color-mix(in srgb, var(--color-primary) 5%, #fff), #fff); }
.tb-hero-content { display: flex; gap: 48px; align-items: flex-start; }
.tb-hero-left { flex: 1; }
.tb-hero-logo { border-radius: 16px; margin-bottom: 16px; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.tb-hero-badge { display: inline-block; background: color-mix(in srgb, var(--color-primary) 12%, #fff); color: var(--color-primary); padding: 4px 12px; border-radius: 16px; font-size: 12px; font-weight: 600; margin-bottom: 16px; }
.tb-hero h1 { font-size: 36px; font-weight: 800; color: #1a1a1a; margin-bottom: 12px; }
.tb-hero-tagline { font-size: 16px; color: #666; line-height: 1.8; margin-bottom: 20px; }
.tb-hero-meta { display: flex; gap: 20px; margin-bottom: 24px; font-size: 14px; color: #666; flex-wrap: wrap; }
.tb-hero-meta strong { color: #1a1a1a; }
.tb-hero-cta { display: flex; gap: 16px; align-items: center; }
.tb-btn-primary { background: var(--color-primary); color: #fff; padding: 12px 32px; border-radius: 8px; font-size: 15px; font-weight: 700; text-decoration: none; transition: all .2s; }
.tb-btn-primary:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-1px); }
.tb-btn-text { color: var(--color-primary); font-size: 15px; font-weight: 600; text-decoration: none; }
.tb-hero-right { flex: 0 0 360px; }
.tb-quick-features { display: flex; flex-direction: column; gap: 16px; }
.tb-quick-feature { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: #fff; border-radius: 10px; border: 1px solid #e8e8e8; }
.tb-qf-icon { font-size: 24px; flex-shrink: 0; }
.tb-quick-feature strong { display: block; font-size: 15px; margin-bottom: 4px; color: #1a1a1a; }
.tb-quick-feature p { font-size: 13px; color: #666; line-height: 1.5; }
.tb-download { padding: 48px 0; }
.tb-section-title { font-size: 28px; font-weight: 800; color: #1a1a1a; margin-bottom: 28px; }
.tb-download-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.tb-dl-card { display: flex; align-items: center; gap: 16px; padding: 20px; background: #fff; border: 2px solid #e8e8e8; border-radius: 12px; text-decoration: none; color: inherit; transition: all .2s; }
.tb-dl-card:hover { border-color: var(--color-primary); background: color-mix(in srgb, var(--color-primary) 3%, #fff); }
.tb-dl-icon { font-size: 32px; }
.tb-dl-info { flex: 1; }
.tb-dl-info strong { display: block; font-size: 16px; color: #1a1a1a; margin-bottom: 2px; }
.tb-dl-info span { display: block; font-size: 13px; color: var(--color-primary); }
.tb-dl-info small { display: block; font-size: 12px; color: #999; }
.tb-dl-arrow { font-size: 24px; color: var(--color-primary); font-weight: 700; }
.tb-how { padding: 48px 0; background: #f5f7fa; }
.tb-steps-row { display: flex; gap: 32px; flex-wrap: wrap; }
.tb-step-item { display: flex; gap: 16px; align-items: flex-start; flex: 1; min-width: 250px; }
.tb-step-num { width: 40px; height: 40px; background: var(--color-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; flex-shrink: 0; }
.tb-step-content strong { display: block; font-size: 16px; color: #1a1a1a; margin-bottom: 4px; }
.tb-step-content p { font-size: 14px; color: #666; line-height: 1.6; }
.tb-articles { padding: 48px 0; }
.tb-articles-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.tb-view-all { color: var(--color-primary); font-size: 15px; font-weight: 600; text-decoration: none; }
.tb-article-list { display: flex; flex-direction: column; gap: 12px; }
.tb-article-item { display: flex; align-items: center; gap: 16px; padding: 20px; background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; text-decoration: none; color: inherit; transition: all .2s; }
.tb-article-item:hover { border-color: var(--color-primary); box-shadow: 0 4px 15px rgba(0,0,0,.06); }
.tb-article-cat { display: inline-block; background: color-mix(in srgb, var(--color-primary) 12%, #fff); color: var(--color-primary); font-size: 12px; padding: 3px 10px; border-radius: 6px; font-weight: 600; flex-shrink: 0; min-width: 70px; text-align: center; }
.tb-article-info { flex: 1; }
.tb-article-info h3 { font-size: 16px; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; }
.tb-article-info p { font-size: 13px; color: #666; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.tb-article-date { font-size: 13px; color: #999; flex-shrink: 0; }
.tb-faq-section { padding: 48px 0; background: #f5f7fa; }
.tb-faq-list { max-width: 800px; margin: 0 auto; }
.tb-faq-item { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.tb-faq-q { padding: 18px 22px; font-size: 15px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: #1a1a1a; }
.tb-faq-q:hover { background: #f5f7fa; }
.tb-faq-arrow { transition: transform .3s; font-size: 12px; color: #666; }
.tb-faq-q.open .tb-faq-arrow { transform: rotate(180deg); }
.tb-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; padding: 0 22px; color: #666; font-size: 14px; line-height: 1.8; }
.tb-faq-a.open { max-height: 300px; padding: 0 22px 18px; }
.tb-cta { padding: 40px 0; }
.tb-cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); border-radius: 16px; padding: 32px 40px; }
.tb-cta-inner h2 { color: #fff; font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.tb-cta-inner p { color: rgba(255,255,255,.9); font-size: 15px; }
.tb-cta-inner .tb-btn-primary { background: #fff; color: var(--color-primary); flex-shrink: 0; }
.tb-cta-inner .tb-btn-primary:hover { background: #f0f0f0; }
.tb-footer { background: #1a1a2e; color: #a0a0b0; padding: 40px 0 20px; }
.tb-footer-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1100px; margin: 0 auto; padding: 0 24px; gap: 32px; }
.tb-footer-brand { flex: 1; }
.tb-footer-logo { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 16px; font-weight: 700; }
.tb-footer-desc { font-size: 13px; margin-top: 8px; }
.tb-footer-links { display: flex; gap: 20px; }
.tb-footer-links a { color: #a0a0b0; font-size: 14px; text-decoration: none; }
.tb-footer-links a:hover { color: #fff; }
.tb-footer-copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 24px; padding-top: 16px; text-align: center; font-size: 13px; }

/* Template B Responsive */
@media(max-width: 768px) {
  .tb-hero-content { flex-direction: column; }
  .tb-hero-right { flex: 0 0 auto; width: 100%; }
  .tb-nav-links { display: none; }
  .tb-nav-toggle { display: block; }
  .tb-cta-inner { flex-direction: column; text-align: center; }
  .tb-footer-inner { flex-direction: column; text-align: center; }
  .tb-hero h1 { font-size: 26px; }
}
