/* ============================================================
   Ascend Media — 官網樣式
   想換主色：改 --accent 與 --accent-dark 兩行即可
   ============================================================ */
:root {
  --bg: #fbfaf7;
  --bg-alt: #f2efe8;
  --ink: #15171c;
  --ink-soft: #4b5059;
  --muted: #8a8f99;
  --line: #e4e0d6;
  --accent: #e8722a;        /* 主色：暖橘 */
  --accent-dark: #c85d1b;
  --accent-soft: #fdebe0;
  --navy: #1b2a41;          /* 深色區塊 */
  --radius: 18px;
  --shadow: 0 10px 30px rgba(21, 23, 28, .08);
  --font-tc: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-en: "Inter", var(--font-tc);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-tc);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.2rem; }

.eyebrow {
  font-family: var(--font-en);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}
.section__lead { color: var(--ink-soft); max-width: 640px; margin-bottom: 2.4rem; }

/* ---------- 按鈕 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(232,114,42,.3); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--small { padding: .55rem 1.1rem; font-size: .92rem; }

/* ---------- 導覽列 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,247,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-en); font-weight: 800; font-size: 1.1rem; }
.nav__logo { width: 32px; height: 32px; }
.nav__links { display: flex; align-items: center; gap: 1.8rem; font-weight: 500; }
.nav__links a:not(.btn) { position: relative; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--accent); transition: width .2s ease;
}
.nav__links a:not(.btn):hover::after { width: 100%; }
.nav__toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.nav__toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 9vw, 7rem); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.hero__blob--1 { width: 520px; height: 520px; background: #ffd8bf; top: -180px; right: -120px; }
.hero__blob--2 { width: 420px; height: 420px; background: #dbe6ff; bottom: -200px; left: -140px; }
.hero__inner { position: relative; max-width: 760px; }
.hero h1 { margin-bottom: 1.2rem; }
.hero__tagline { font-family: var(--font-en); font-weight: 600; letter-spacing: .18em; color: var(--ink-soft); margin-bottom: 1.2rem; }
.hero__desc { color: var(--ink-soft); font-size: 1.08rem; max-width: 600px; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- 跑馬燈 ---------- */
.marquee { overflow: hidden; background: var(--navy); color: #fff; padding: .9rem 0; border-block: 1px solid rgba(255,255,255,.08); }
.marquee__track { display: flex; gap: 3rem; white-space: nowrap; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span { font-family: var(--font-en); font-weight: 600; letter-spacing: .08em; font-size: .95rem; opacity: .9; }
.marquee__track span::before { content: "✦"; color: var(--accent); margin-right: 3rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 區塊 ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--alt { background: var(--bg-alt); }

/* 關於 */
.about__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; margin-top: 1rem; }
.about__text p { color: var(--ink-soft); margin-bottom: 1rem; font-size: 1.05rem; }
.stats { display: grid; gap: 1rem; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.5rem; box-shadow: var(--shadow);
  display: flex; align-items: baseline; gap: 1rem;
}
.stat strong { font-family: var(--font-en); font-size: 2.2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat span { color: var(--ink-soft); }

/* 營運模式 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 2.4rem; counter-reset: step; }
.step {
  position: relative; background: #fff; border-radius: var(--radius); padding: 1.8rem 1.5rem 1.6rem;
  border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step__num { font-family: var(--font-en); font-size: 2.4rem; font-weight: 800; color: var(--accent-soft); line-height: 1; display: block; }
.step__label { position: absolute; top: 1.4rem; right: 1.4rem; font-family: var(--font-en); font-size: .7rem; letter-spacing: .2em; color: var(--muted); font-weight: 600; }
.step h3 { margin: .8rem 0 .5rem; }
.step p { color: var(--ink-soft); font-size: .95rem; }

/* 媒體卡片 */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.card {
  position: relative; display: block;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem 1.6rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.card__tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  background: var(--bg-alt); color: var(--ink-soft); padding: .25rem .7rem; border-radius: 999px; margin-bottom: .9rem;
}
.card__tag--new { background: var(--accent); color: #fff; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1rem; }
.card__meta { font-family: var(--font-en); font-size: .8rem; color: var(--muted); letter-spacing: .05em; }
.card__arrow { position: absolute; top: 1.5rem; right: 1.5rem; color: var(--accent); font-size: 1.2rem; opacity: 0; transition: opacity .2s; }
.card:hover .card__arrow { opacity: 1; }

/* 聯絡 */
.section--contact { background: var(--navy); color: #fff; }
.section--contact .eyebrow { color: #ffb37f; }
.section--contact .section__lead { color: rgba(255,255,255,.75); }
.contact__inner { text-align: center; }
.contact__inner .section__lead { margin-inline: auto; }
.contact__email { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; }
.contact__email a { font-family: var(--font-en); font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 700; border-bottom: 2px solid var(--accent); }
.section--contact .btn--ghost { border-color: #fff; color: #fff; }
.section--contact .btn--ghost:hover { background: #fff; color: var(--navy); }

/* 頁尾 */
.footer { background: #0f1724; color: rgba(255,255,255,.75); padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__logo { width: 36px; margin-bottom: .6rem; }
.footer__brand strong { color: #fff; font-family: var(--font-en); font-size: 1.1rem; display: block; margin-bottom: .5rem; }
.footer__col { display: flex; flex-direction: column; gap: .45rem; }
.footer__col h4 { color: #fff; font-size: .95rem; margin-bottom: .3rem; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-top: 1.4rem; font-size: .82rem; color: rgba(255,255,255,.45); }
.footer__legal { color: rgba(255,255,255,.3); }

/* 進場動畫 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 響應式 ---------- */
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none; padding: .6rem 20px 1rem;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: .8rem 0; }
  .nav__links .btn { margin-top: .5rem; justify-content: center; }
  .steps, .cards { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}
