@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

:root {
  --font-body: 'Noto Sans TC', -apple-system, 'PingFang HK', sans-serif;

  --clr-navy: #241a4d;
  --clr-purple: #4c2f8c;
  --clr-blue: #1e3a8a;
  --clr-accent: #f59e0b;
  --clr-accent-dark: #d97706;

  --clr-bg: #ffffff;
  --clr-bg-alt: #f4f4f4;
  --clr-text: #111111;
  --clr-text-muted: #4b5563;
  --clr-text-inv: #ffffff;

  --container: 1160px;
  --container-narrow: 820px;
  --transition: .2s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--clr-bg); color: var(--clr-text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { line-height: 1.15; font-weight: 400; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }

/* ── HEADER（深色沉浸疊在hero上）───────────────────────── */
.site-header { position: sticky; top: 0; z-index: 200; background: rgba(20,14,42,.92); backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.header-logo img { height: 24px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 32px; }
.nav-link { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.85); transition: color var(--transition); }
.nav-link:hover { color: #fff; }

/* ── HERO：全寬背景照 + 遮罩 + 置中白字大標 ─────────────── */
.hero { position: relative; height: 380px; display: flex; align-items: center; justify-content: center; background: #111 url('https://images.pexels.com/photos/9072317/pexels-photo-9072317.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover no-repeat; margin-top: -76px; }
.hero::before { content:''; position: absolute; inset:0; background: rgba(0,0,0,.45); }
.hero::after { content:''; position: absolute; left:0; right:0; bottom:0; height: 45%; background: linear-gradient(180deg, transparent, rgba(0,0,0,.55)); }
.hero-inner { position: relative; text-align: center; padding: 0 24px; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 400; color: #fff; }

/* ── BREADCRUMB ─────────────────────────────────────────── */
.breadcrumb-wrap { padding: 32px 0 40px; text-align: center; }
.breadcrumb { display: inline-flex; align-items: center; gap: 8px; background: var(--clr-bg-alt); border-radius: 999px; padding: 10px 20px; font-size: 13px; color: #666; }
.breadcrumb a:hover { color: var(--clr-navy); }
.breadcrumb .sep { color: #bbb; }
.breadcrumb .current { font-weight: 700; color: var(--clr-text); }

/* ── FEATURED-TEXT：白底置中大段落 ──────────────────────── */
.featured-text { padding: 0 0 80px; text-align: center; }
.featured-text .lead { max-width: 920px; margin: 0 auto; font-size: clamp(22px, 3vw, 30px); font-weight: 400; color: var(--clr-text); line-height: 1.5; }
.featured-text .lead-sm { max-width: 760px; margin: 0 auto; font-size: 18px; color: var(--clr-text-muted); }

/* ── FEATURED-ARTICLES 4欄（正方形圖+標題+描述）──────────── */
.icon-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 40px 32px; padding: 0 0 80px; }
@media (min-width: 900px) { .icon-row { grid-template-columns: repeat(4,1fr); } }
.icon-col .photo-box { width: 100%; aspect-ratio: 1/1; border-radius: 8px; overflow: hidden; margin-bottom: 20px; }
.icon-col .photo-box img { width: 100%; height: 100%; object-fit: cover; }
.icon-col .title { font-size: clamp(18px,2vw,22px); font-weight: 700; margin-bottom: 10px; }
.icon-col p { font-size: 15px; color: var(--clr-text-muted); line-height: 1.6; }

/* ── TEXT-IMAGE 交錯區塊 ────────────────────────────────── */
.text-image { padding: 0 0 80px; }
.text-image .row { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 900px) { .text-image .row { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }
.text-image.reverse .photo-col { order: 2; }
.text-image.reverse .content-col { order: 1; }
.text-image .content-col h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 400; margin-bottom: 20px; }
.text-image .content-col p { font-size: 17px; color: var(--clr-text-muted); line-height: 1.7; margin-bottom: 28px; }
.text-image .photo-col .photo-box { background: linear-gradient(135deg, var(--clr-purple), var(--clr-blue)); border-radius: 16px; padding: 36px; min-height: 320px; display: flex; align-items: center; justify-content: center; overflow: hidden; }

.button { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-size: 14px; font-weight: 700; transition: transform var(--transition), opacity var(--transition); }
.button.navy { background: var(--clr-navy); color: #fff; }
.button.gold { background: var(--clr-accent); color: #111; }
.button:hover { transform: scale(1.03); opacity: .92; }

/* ── 傾斜數據卡片視覺（取代產品截圖）─────────────────────── */
.data-tilt { position: relative; width: 100%; max-width: 380px; }
.data-tilt-card { background: #fff; border-radius: 10px; padding: 18px 20px; box-shadow: 0 20px 50px rgba(0,0,0,.35); transform: rotate(-4deg); }
.data-tilt-card + .data-tilt-card { margin-top: -40px; margin-left: 40px; transform: rotate(3deg); }
.data-tilt-title { font-size: 11px; font-weight: 800; color: #888; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.data-tilt-score { font-size: 32px; font-weight: 900; color: var(--clr-navy); }
.data-tilt-row { display: flex; justify-content: space-between; font-size: 12px; color: #555; padding: 4px 0; border-top: 1px solid #eee; margin-top: 8px; }

/* ── CASE-STUDIES（引言）────────────────────────────────── */
.case-studies { padding: 0 0 80px; text-align: center; }
.case-studies blockquote { max-width: 780px; margin: 0 auto 24px; font-size: clamp(18px,2.2vw,22px); font-weight: 400; color: var(--clr-text); line-height: 1.55; }
.case-attr { display: inline-block; background: var(--clr-bg-alt); border-radius: 999px; padding: 8px 20px; font-size: 13px; color: #555; margin-bottom: 32px; }

/* ── ARTICLES GRID（研究文章卡片）───────────────────────── */
.featured-articles { padding: 0 0 80px; }
.fa-header { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.fa-header h2 { font-size: clamp(28px,3.6vw,42px); font-weight: 400; margin-bottom: 16px; }
.fa-header p { font-size: 16px; color: var(--clr-text-muted); }
.card-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 960px) { .card-grid { grid-template-columns: repeat(3,1fr); } }
.card { display: block; border: 1px solid #e5e5e5; border-radius: 10px; overflow: hidden; transition: box-shadow var(--transition), transform var(--transition); }
.card:hover { box-shadow: 0 16px 36px rgba(0,0,0,.1); transform: translateY(-3px); }
.card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--clr-bg-alt); }
.card-body { padding: 22px; }
.card-tag { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--clr-navy); background: var(--clr-bg-alt); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.card-title { font-size: 17px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-excerpt { font-size: 14px; color: var(--clr-text-muted); line-height: 1.6; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-footer { display: flex; justify-content: space-between; font-size: 12px; color: #999; border-top: 1px solid #eee; padding-top: 12px; }
.text-center { text-align: center; }

/* ── CTA-BANNER（深紫漸層卡片）───────────────────────────── */
.cta-banner-wrap { padding: 0 0 90px; }
.cta-banner { background: linear-gradient(120deg, var(--clr-navy), var(--clr-purple)); border-radius: 20px; padding: 64px 40px; text-align: center; }
.cta-banner h2 { font-size: clamp(26px,4vw,40px); font-weight: 400; color: #fff; margin-bottom: 18px; }
.cta-banner p { font-size: 16px; color: rgba(255,255,255,.75); max-width: 480px; margin: 0 auto 32px; }

/* ── ARTICLE / BLOG PAGE ─────────────────────────────────── */
.article-page-header { background: var(--clr-navy); padding: 56px 0 44px; }
.article-page-header .breadcrumb-inv { font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 20px; }
.article-page-header .breadcrumb-inv a:hover { color: #fff; }
.article-page-header h1 { font-size: clamp(26px,4vw,42px); font-weight: 400; color: #fff; max-width: 820px; }
.article-body { font-size: 16px; line-height: 1.85; color: var(--clr-text); max-width: var(--container-narrow); margin: 0 auto; padding: 56px 0; }
.article-body h2 { font-size: clamp(22px,2.8vw,28px); font-weight: 700; margin: 44px 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--clr-accent); }
.article-body h3 { font-size: clamp(18px,2.2vw,22px); font-weight: 700; margin: 32px 0 12px; }
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 16px 0 20px 24px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 8px; }
.article-body strong { font-weight: 800; }
.article-body a { color: var(--clr-navy); text-decoration: underline; }
.article-body img { width: 100%; border-radius: 10px; margin: 24px 0; }
.article-body blockquote { border-left: 4px solid var(--clr-accent); padding: 16px 24px; background: var(--clr-bg-alt); border-radius: 0 8px 8px 0; margin: 24px 0; font-style: italic; color: var(--clr-text-muted); }
.qa-box { background: var(--clr-bg-alt); border-left: 4px solid var(--clr-navy); border-radius: 8px; padding: 20px 24px; margin: 24px 0; }
.faq-section { margin: 48px auto; max-width: var(--container-narrow); }
.faq-item { border: 1px solid #e5e5e5; border-radius: 10px; padding: 20px; margin-bottom: 12px; }
.faq-q { font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.faq-a { font-size: 14px; line-height: 1.7; color: var(--clr-text-muted); }
.sidebar-widget { background: var(--clr-bg-alt); border-radius: 10px; padding: 20px; margin-bottom: 20px; }
.sidebar-widget-title { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--clr-navy); margin-bottom: 16px; }

/* ── BLOG LIST PAGE ─────────────────────────────────────── */
.blog-hero { background: var(--clr-navy); padding: 64px 0 52px; text-align: center; }
.blog-hero h1 { font-size: clamp(30px,4.5vw,52px); font-weight: 400; color: #fff; margin-bottom: 14px; }
.blog-hero p { font-size: 16px; color: rgba(255,255,255,.7); }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer { background: var(--clr-navy); color: rgba(255,255,255,.7); padding: 56px 0 32px; font-size: 14px; }
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 24px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand { max-width: 300px; }
.footer-logo img { height: 22px; margin-bottom: 14px; }
.footer-tagline { font-size: 13px; line-height: 1.7; }
.footer-col-title { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--clr-accent); margin-bottom: 16px; }
.footer-link { display: block; padding: 4px 0; color: rgba(255,255,255,.7); transition: color var(--transition); }
.footer-link:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; }
