:root {
  --af-bg: #0a0a0a;
  --af-bg-alt: #131313;
  --af-bg-card: #1a1a1a;
  --af-border: #2a2a2a;
  --af-green: #44d62c;
  --af-green-dark: #35a822;
  --af-text: #f2f2f2;
  --af-text-muted: #9a9a9a;
  --af-radius: 4px;
  --af-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--af-bg);
  color: var(--af-text);
  font-family: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.af-container { max-width: var(--af-container); margin: 0 auto; padding: 0 24px; }

/* Header */
.af-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--af-border);
}
.af-header-inner {
  max-width: var(--af-container); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.af-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.af-logo-mark {
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--af-green); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px;
}
.af-nav { display: flex; gap: 32px; }
.af-nav a { font-size: 14px; color: var(--af-text-muted); font-weight: 600; transition: color .2s; }
.af-nav a:hover { color: var(--af-green); }
.af-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: var(--af-radius);
  font-weight: 700; font-size: 14px; border: 1px solid transparent;
  transition: all .2s; cursor: pointer;
}
.af-btn-primary { background: var(--af-green); color: #000; }
.af-btn-primary:hover { background: var(--af-green-dark); }
.af-btn-ghost { border-color: var(--af-border); color: var(--af-text); }
.af-btn-ghost:hover { border-color: var(--af-green); color: var(--af-green); }
.af-btn-sm { padding: 8px 16px; font-size: 13px; }

/* Hero */
.af-hero {
  position: relative;
  min-height: 620px;
  display: flex; align-items: center;
  overflow: hidden;
}
.af-hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.pexels.com/photos/13071304/pexels-photo-13071304.jpeg?auto=compress&cs=tinysrgb&w=1600');
  background-size: cover; background-position: center;
}
.af-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,.96) 0%, rgba(10,10,10,.72) 45%, rgba(10,10,10,.35) 100%);
}
.af-hero-inner { position: relative; z-index: 2; max-width: var(--af-container); margin: 0 auto; padding: 80px 24px; width: 100%; }
.af-hero-badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(68,214,44,.12); border: 1px solid rgba(68,214,44,.4);
  color: var(--af-green); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 20px;
}
.af-hero-title {
  font-size: clamp(32px, 5vw, 56px); font-weight: 900; line-height: 1.12;
  letter-spacing: -.02em; max-width: 640px; margin: 0 0 20px;
}
.af-hero-title mark { background: none; color: var(--af-green); }
.af-hero-desc { font-size: 16px; color: var(--af-text-muted); max-width: 480px; margin: 0 0 32px; }
.af-hero-actions { display: flex; gap: 14px; }

/* Section generic */
.af-section { padding: 80px 0; }
.af-section-alt { background: var(--af-bg-alt); }
.af-eyebrow { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--af-green); margin-bottom: 12px; }
.af-section-head { max-width: 640px; margin-bottom: 44px; }
.af-section-title { font-size: clamp(24px, 3.4vw, 36px); font-weight: 900; letter-spacing: -.01em; margin: 0 0 12px; }
.af-section-title mark { background: none; color: var(--af-green); }
.af-section-desc { color: var(--af-text-muted); font-size: 15px; margin: 0; }

/* Product grid 2x2 */
.af-product-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 720px) { .af-product-grid { grid-template-columns: repeat(2, 1fr); } }
.af-product-card {
  position: relative; border-radius: 8px; overflow: hidden;
  aspect-ratio: 4/3; border: 1px solid var(--af-border);
}
.af-product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.af-product-card:hover img { transform: scale(1.05); }
.af-product-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.15) 60%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
}
.af-product-card-title { font-size: 18px; font-weight: 800; margin: 0 0 6px; }
.af-product-card-desc { font-size: 13px; color: rgba(255,255,255,.75); margin: 0 0 14px; }
.af-product-card-link { font-size: 13px; font-weight: 700; color: var(--af-green); }

/* Tech feature row */
.af-tech-wrap { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 900px) { .af-tech-wrap { grid-template-columns: 1fr 1fr; } }
.af-tech-img { border-radius: 8px; overflow: hidden; border: 1px solid var(--af-border); }
.af-tech-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 18px; }
.af-tech-list li { display: flex; gap: 14px; align-items: flex-start; }
.af-tech-dot {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  background: rgba(68,214,44,.12); border: 1px solid var(--af-green);
  display: flex; align-items: center; justify-content: center; color: var(--af-green); font-size: 12px; font-weight: 900;
}
.af-tech-list strong { display: block; font-size: 15px; margin-bottom: 2px; }
.af-tech-list span { font-size: 13px; color: var(--af-text-muted); }

/* Certification grid */
.af-cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 720px) { .af-cert-grid { grid-template-columns: repeat(4, 1fr); } }
.af-cert-card {
  background: var(--af-bg-card); border: 1px solid var(--af-border); border-radius: 8px;
  padding: 24px; text-align: center;
}
.af-cert-badge {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 14px;
  background: rgba(68,214,44,.1); border: 1px solid var(--af-green);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 12px; color: var(--af-green);
}
.af-cert-card h4 { font-size: 14px; margin: 0 0 6px; }
.af-cert-card p { font-size: 12px; color: var(--af-text-muted); margin: 0; }

/* Partners */
.af-partners-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 720px) { .af-partners-grid { grid-template-columns: repeat(5, 1fr); } }
.af-partner-logo {
  border: 1px solid var(--af-border); border-radius: 6px; padding: 18px 12px;
  text-align: center; font-weight: 800; font-size: 13px; color: var(--af-text-muted);
  letter-spacing: .04em;
}

/* Contact */
.af-contact { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) { .af-contact { grid-template-columns: 1fr 1fr; } }
.af-contact-title { font-size: 30px; font-weight: 900; margin: 0 0 12px; }
.af-contact-desc { color: var(--af-text-muted); font-size: 15px; margin: 0 0 28px; }
.af-contact-info div { margin-bottom: 16px; font-size: 14px; }
.af-contact-info strong { display: block; color: var(--af-green); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.af-contact-info a { color: var(--af-text-muted); }
.af-form { display: flex; flex-direction: column; gap: 12px; }
.af-form input, .af-form textarea {
  background: var(--af-bg-card); border: 1px solid var(--af-border); border-radius: var(--af-radius);
  padding: 12px 14px; color: var(--af-text); font-family: inherit; font-size: 14px;
}
.af-form input:focus, .af-form textarea:focus { outline: none; border-color: var(--af-green); }
.af-form button { margin-top: 6px; }

/* Footer */
.af-footer { border-top: 1px solid var(--af-border); padding: 56px 0 28px; }
.af-footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
@media (min-width: 720px) { .af-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.af-footer-brand p { color: var(--af-text-muted); font-size: 13px; margin-top: 12px; max-width: 280px; }
.af-footer-col h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--af-text-muted); margin: 0 0 14px; }
.af-footer-col a { display: block; font-size: 13px; color: var(--af-text-muted); margin-bottom: 10px; }
.af-footer-col a:hover { color: var(--af-green); }
.af-footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding-top: 24px; border-top: 1px solid var(--af-border);
  font-size: 12px; color: var(--af-text-muted);
}

/* Simple pages (about/privacy/terms) */
.af-page { padding: 64px 0 96px; max-width: 760px; margin: 0 auto; }
.af-page h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 900; margin: 0 0 24px; }
.af-page h2 { font-size: 20px; font-weight: 800; margin: 36px 0 12px; color: var(--af-green); }
.af-page p { color: var(--af-text-muted); font-size: 15px; margin: 0 0 16px; }
.af-page ul { color: var(--af-text-muted); font-size: 15px; padding-left: 20px; }

/* Blog list */
.af-blog-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--af-border); }
.af-blog-hero h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 900; margin: 0 0 10px; }
.af-blog-hero p { color: var(--af-text-muted); margin: 0; }
.af-blog-grid { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 48px 0; }
@media (min-width: 640px) { .af-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .af-blog-grid { grid-template-columns: repeat(3, 1fr); } }
.af-blog-card { border: 1px solid var(--af-border); border-radius: 8px; overflow: hidden; background: var(--af-bg-card); transition: border-color .2s; }
.af-blog-card:hover { border-color: var(--af-green); }
.af-blog-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.af-blog-card-body { padding: 18px; }
.af-blog-card-tag { display: inline-block; font-size: 11px; font-weight: 800; color: var(--af-green); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.af-blog-card-title { font-size: 15px; font-weight: 700; margin: 0 0 8px; line-height: 1.4; }
.af-blog-card-excerpt { font-size: 13px; color: var(--af-text-muted); margin: 0; }

/* Article page */
.article-page { padding: 56px 0 96px; }
.article-layout-grid { display: grid; grid-template-columns: 1fr; gap: 40px; max-width: 760px; margin: 0 auto; }
.article-header { margin-bottom: 32px; }
.article-hero-img { width: 100%; aspect-ratio: 16/7; object-fit: cover; border-radius: 8px; margin-bottom: 32px; background: var(--af-bg-card); }
.article-h1 { font-size: clamp(24px, 4vw, 38px); font-weight: 900; line-height: 1.2; margin: 16px 0 20px; }
.article-lead { font-size: 16px; color: var(--af-text-muted); margin-bottom: 8px; }
.article-body { font-size: 15px; line-height: 1.85; color: #d8d8d8; }
.article-body h2 { font-size: 21px; font-weight: 800; color: var(--af-text); margin: 36px 0 14px; }
.article-body p { margin: 0 0 18px; }
.article-body a { color: var(--af-green); text-decoration: underline; }
