/* =========================================================================
   pages2.css — NoahAIP integration components
   Builds on colors_and_type.css + pages.css. Chinese-only.
   ========================================================================= */

/* ---- header: 5-link nav responsiveness + mobile menu + LINE cta ---- */
.cta-btn .ic { width: 17px; height: 17px; }
.cta-label { display: inline; }
.menu-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer; color: var(--fg-1); border-radius: var(--radius-sm);
}
.menu-toggle svg { width: 24px; height: 24px; }
.site-header[data-over="ink"]:not(.solid) .menu-toggle { color: var(--fg-on-dark); }
.mobile-nav { display: none; }

@media (max-width: 960px) {
  .site-nav { gap: var(--space-6); }
}
@media (max-width: 820px) {
  .site-header .site-nav { display: none; }
  .site-header .menu-toggle { display: flex; }
  .site-header .nav-right .cta-btn .cta-label { display: none; }
  .site-header .nav-right .cta-btn { padding: 11px 13px; }
  .mobile-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    display: flex; flex-direction: column; gap: 4px; width: 100%;
    max-height: calc(100vh - 64px); overflow-y: auto;
    padding: 12px var(--gutter) 20px; background: var(--surface);
    border-top: 1px solid var(--border); box-shadow: var(--shadow-md);
  }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav .nav-link { color: var(--fg-1); font-size: var(--fs-18); padding: 12px 0; border-bottom: 1px solid var(--border); }
  .mobile-nav .nav-link::after { display: none; }
  .mobile-nav .cta-btn .cta-label { display: inline; }
  .mobile-nav .cta-btn { justify-content: center; padding: 14px; }
  .site-header.menu-open { background: var(--surface); height: 64px; }
  .site-header.menu-open .logo-light { display: none; }
  .site-header.menu-open .logo-dark { display: block; }
}

/* ---- footer additions ---- */
.foot-desc { margin: 14px 0 0; color: var(--fg-2); font-size: var(--fs-14); line-height: 1.65; max-width: 34ch; }
.foot-note { margin: 12px 0 0; color: var(--fg-3); font-size: var(--fs-12); line-height: 1.55; max-width: 30ch; }
.foot-line { background: var(--sj-yellow); }
.foot-rule { margin-top: 48px; }

/* =========================================================================
   NoahAIP PUSH — ink panel introducing the product (homepage)
   ========================================================================= */
.noah-push { background: var(--sj-ink); color: var(--fg-on-dark); position: relative; overflow: hidden; }
.noah-push::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.05; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.noah-push .inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.noah-push .eyebrow { color: var(--fg-on-dark); }
.noah-push .eyebrow::before { background: var(--sj-yellow); }
.noah-push h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.06; font-size: clamp(var(--fs-30), 4.5vw, var(--fs-60)); margin: 20px 0 0; text-wrap: balance; }
.noah-push h2 .accent { color: var(--sj-yellow); }
.noah-push .lead { margin: 26px 0 0; color: var(--fg-on-dark); opacity: 0.85; font-size: var(--fs-18); line-height: 1.7; max-width: 42ch; text-wrap: pretty; }
.noah-push .actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.noah-push .product-shot { position: relative; }
.noah-push .product-shot image-slot { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); display: block; box-shadow: var(--shadow-lg); }
.noah-push .product-shot-img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--surface); }
@media (max-width: 860px){ .noah-push .inner { grid-template-columns: 1fr; } .noah-push .product-shot { order: -1; } }

/* buttons used on ink */
.btn-yellow { display: inline-flex; align-items: center; gap: 9px; padding: 14px 24px; border-radius: var(--radius-sm); background: var(--sj-yellow); color: var(--sj-ink); font-weight: 700; font-size: var(--fs-16); text-decoration: none; border: 0; cursor: pointer; box-shadow: var(--shadow-inset); transition: background var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.btn-yellow:hover { background: var(--sj-yellow-deep); }
.btn-yellow:active { transform: scale(0.98); }
.btn-yellow .ic { width: 18px; height: 18px; stroke-width: 1.75; transition: transform var(--dur-base) var(--ease-out); }
.btn-yellow:hover .ic { transform: translateX(3px); }
.btn-ghost-light { display: inline-flex; align-items: center; gap: 9px; padding: 14px 24px; border-radius: var(--radius-sm); background: transparent; color: var(--fg-on-dark); font-weight: 600; font-size: var(--fs-16); text-decoration: none; border: 1.5px solid rgba(247,244,234,0.32); transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out); }
.btn-ghost-light:hover { border-color: var(--sj-yellow); }
.btn-ghost-light .ic { width: 18px; height: 18px; stroke-width: 1.75; }

/* =========================================================================
   PROBLEM list (為什麼需要)
   ========================================================================= */
.problem-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 36px); }
@media (max-width: 700px){ .problem-grid { grid-template-columns: 1fr; } }
.problem-item { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 26px 0; border-top: 1px solid var(--border); }
.problem-item .pic { display: grid; place-items: center; color: var(--sj-ink); flex-shrink: 0; padding-top: 2px; }
.problem-item .pic .ic { width: 26px; height: 26px; stroke-width: 1.5; }
.problem-item h3 { margin: 4px 0 6px; font-size: var(--fs-18); font-weight: 700; }
.problem-item p { margin: 0; color: var(--fg-2); font-size: var(--fs-16); line-height: 1.6; }

/* =========================================================================
   3-LAYER (NoahAIP 做什麼) — flat hairline-separated rows
   ========================================================================= */
.layers { display: flex; flex-direction: column; border-bottom: 1px solid var(--border); }
.layer {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 4vw, 56px); align-items: start;
  padding: clamp(30px, 4vw, 44px) 0; border-top: 1px solid var(--border);
}
.layer .l-num { font-family: var(--font-mono); font-size: var(--fs-24); color: var(--fg-3); line-height: 1; }
.layer.l3 .l-num { color: var(--sj-ink); }
.layer .l-body h3 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 600; font-size: clamp(var(--fs-20), 2.6vw, var(--fs-30)); letter-spacing: -0.01em; width: fit-content; }
.layer.l3 .l-body h3 { background: linear-gradient(transparent 64%, var(--sj-yellow) 64%); padding: 0 .08em; }
.layer .l-body p { margin: 0; color: var(--fg-2); font-size: var(--fs-16); line-height: 1.65; max-width: 52ch; }
.layer .l-ic { width: 30px; height: 30px; color: var(--fg-3); stroke-width: 1.5; }
.layer.l3 .l-ic { color: var(--sj-ink); }
@media (max-width: 700px){
  .layer { grid-template-columns: auto 1fr; padding: 26px 0; }
  .layer .l-ic { display: none; }
}

/* =========================================================================
   SCENARIO cards (可落地場景 / 核心能力)
   ========================================================================= */
.scn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 64px); }
@media (max-width: 860px){ .scn-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .scn-grid { grid-template-columns: 1fr; } }
.scn-card { padding-top: 26px; border-top: 1px solid var(--border); }
.scn-card .scn-ic { color: var(--sj-ink); margin-bottom: 16px; }
.scn-card .scn-ic .ic { width: 28px; height: 28px; stroke-width: 1.5; }
.scn-card h3 { margin: 0 0 8px; font-size: var(--fs-20); font-weight: 700; letter-spacing: -0.01em; position: relative; display: inline-block; }
.scn-card h3::after { content: ''; position: absolute; left: 0; bottom: 1px; right: 100%; height: 2px; background: var(--sj-yellow); transition: right var(--dur-base) var(--ease-out); }
.scn-card:hover h3::after { right: 0; }
.scn-card p { margin: 0; color: var(--fg-2); font-size: var(--fs-15); line-height: 1.6; }

/* =========================================================================
   FLOW (運作流程) — numbered horizontal/wrap steps with connector
   ========================================================================= */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); counter-reset: flow; }
@media (max-width: 900px){ .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px){ .flow { grid-template-columns: 1fr; } }
.flow-step { position: relative; padding-top: 28px; }
.flow-step .fn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--sj-ink); color: var(--fg-on-dark); font-family: var(--font-mono); font-size: var(--fs-14); font-weight: 600; margin-bottom: 16px; }
.flow-step:last-child .fn { background: var(--sj-yellow); color: var(--sj-ink); }
.flow-step h3 { margin: 0 0 6px; font-size: var(--fs-18); font-weight: 700; }
.flow-step p { margin: 0; color: var(--fg-2); font-size: var(--fs-15); line-height: 1.55; }

/* =========================================================================
   GOVERNANCE — flat full-width ink band (not a floating card)
   ========================================================================= */
.band-ink { background: var(--sj-ink); color: var(--fg-on-dark); position: relative; overflow: hidden; }
.band-ink::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.05; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.band-ink .wrap-wide { position: relative; z-index: 2; }
.govern { color: var(--fg-on-dark); }
.govern .eyebrow { color: var(--fg-on-dark); } .govern .eyebrow::before { background: var(--sj-yellow); }
.govern h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; font-size: clamp(var(--fs-30), 4vw, var(--fs-48)); margin: 18px 0 0; max-width: 22ch; text-wrap: balance; }
.govern p { margin: 22px 0 0; color: var(--fg-on-dark); opacity: 0.85; font-size: var(--fs-18); line-height: 1.7; max-width: 52ch; }
.govern .gov-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.govern .gov-chips span { font-size: var(--fs-14); color: var(--fg-on-dark); border: 1px solid rgba(247,244,234,0.24); padding: 8px 15px; border-radius: var(--radius-pill); }

/* =========================================================================
   OBJECT chips (canonical objects) + audience chips
   ========================================================================= */
.obj-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.obj-chip { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: var(--fs-14); color: var(--sj-ink); background: transparent; border: 1px solid var(--border); padding: 9px 15px; border-radius: var(--radius-sm); }
.obj-chip .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--sj-yellow); }
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px,4vw,56px) clamp(28px,4vw,64px); }
@media (max-width: 760px){ .aud-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px){ .aud-grid { grid-template-columns: 1fr; } }
.aud-card { border-top: 1px solid var(--border); padding-top: 24px; }
.aud-card .ic { width: 26px; height: 26px; color: var(--sj-ink); stroke-width: 1.5; margin-bottom: 14px; }
.aud-card h3 { margin: 0 0 6px; font-size: var(--fs-18); font-weight: 700; }
.aud-card p { margin: 0; color: var(--fg-2); font-size: var(--fs-14); line-height: 1.55; }

/* =========================================================================
   FAQ — answer-engine friendly question and answer blocks
   ========================================================================= */
.faq-layout { display: grid; gap: clamp(40px, 6vw, 72px); }
.faq-group { display: grid; grid-template-columns: minmax(160px, 0.28fr) 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; padding-top: clamp(24px, 4vw, 42px); border-top: 1px solid var(--border); }
.faq-list { display: grid; gap: 0; border-bottom: 1px solid var(--border); }
.faq-item { padding: 24px 0; border-top: 1px solid var(--border); }
.faq-item h2 { margin: 0; font-size: clamp(var(--fs-20), 2.4vw, var(--fs-30)); font-family: var(--font-display); font-weight: 600; line-height: 1.18; letter-spacing: -0.01em; }
.faq-item p { margin: 14px 0 0; color: var(--fg-2); font-size: var(--fs-17); line-height: 1.75; max-width: 58rem; text-wrap: pretty; }
@media (max-width: 760px){ .faq-group { grid-template-columns: 1fr; gap: 18px; } }

/* =========================================================================
   LINE contact block + QR code
   ========================================================================= */
.line-cta-block { background: var(--sj-yellow); color: var(--sj-ink); }
.line-cta-block .inner { display: grid; grid-template-columns: 1.2fr auto; gap: clamp(40px, 6vw, 88px); align-items: center; padding-block: clamp(56px, 8vw, 110px); }
.line-cta-block h2 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; font-size: clamp(var(--fs-36), 6vw, var(--fs-80)); }
.line-cta-block .zh-serif { font-family: var(--font-zh-serif); }
.line-cta-block p { margin: 20px 0 0; font-size: var(--fs-18); line-height: 1.6; max-width: 36ch; }
.line-cta-block .actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.qr-card { text-align: center; }
.qr-img { display: block; width: 200px; height: 200px; border-radius: var(--radius-md); background: var(--surface); object-fit: contain; padding: 10px; box-shadow: var(--shadow-sm); margin: 0 auto; }
.line-direct .qr-img { margin: 0; }
.qr-card .qr-label { margin: 16px 0 0; font-size: var(--fs-14); color: var(--fg-2); }
.line-ink { display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; border-radius: var(--radius-sm); background: var(--sj-ink); color: var(--fg-on-dark); font-weight: 700; font-size: var(--fs-18); text-decoration: none; transition: background var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.line-ink:hover { background: var(--sj-ink-90); }
.line-ink:active { transform: scale(0.98); }
.line-ink .ic { width: 20px; height: 20px; stroke-width: 1.75; }
@media (max-width: 760px){ .line-cta-block .inner { grid-template-columns: 1fr; } .qr-card { justify-self: start; } }

/* placeholder-note pill used across pages */
.ph-note { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-12); color: var(--fg-3); background: var(--surface-tint); border: 1px dashed var(--border); padding: 6px 12px; border-radius: var(--radius-pill); margin-top: 16px; }
.ph-note .ic { width: 14px; height: 14px; }

/* NoahAIP 主控台影片框 + 動態替身佔位 */
.dash-video { position: relative; width: 100%; display: block; overflow: hidden; background: var(--sj-ink); }
.dash-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease-out); }
.dash-video.ready .dash-vid { opacity: 1; }
.dash-ph {
  position: absolute; inset: 0; display: grid; place-items: center; gap: 12px; align-content: center;
  background:
    radial-gradient(120% 90% at 80% 18%, rgba(255,216,40,0.10) 0%, transparent 55%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px),
    var(--sj-ink);
  color: var(--fg-on-dark);
}
.dash-ph i { width: 56px; height: 56px; opacity: 0.85; }
.dash-ph .dash-ph-label { font-family: var(--font-mono); font-size: var(--fs-12); letter-spacing: .04em; color: rgba(255,255,255,0.55); }
.dash-ph .scan { position: absolute; left: 0; right: 0; height: 2px; top: 0; background: linear-gradient(90deg, transparent, rgba(255,216,40,0.6), transparent); animation: dashScan 4.2s var(--ease-in-out) infinite; }
@keyframes dashScan { 0% { top: 6%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 94%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dash-ph .scan { animation: none; opacity: 0; } }

/* generic two-up about layout */
.about-lead { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; font-size: clamp(var(--fs-24), 3.6vw, var(--fs-48)); text-wrap: balance; max-width: 24ch; }
.about-body { color: var(--fg-2); font-size: var(--fs-18); line-height: 1.75; text-wrap: pretty; }
.about-body p { margin: 0 0 18px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,6vw,90px); align-items: start; }
@media (max-width: 800px){ .about-grid { grid-template-columns: 1fr; gap: 28px; } }
