:root{--navy:#102a43;--orange:#f97316;--ink:#172b3b;--muted:#687b8b;--line:#e2e8f0;--bg:#f8fafc}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--ink);font-family:system-ui,-apple-system,"Noto Sans TC","Microsoft JhengHei",sans-serif;line-height:1.65}a{color:inherit;text-decoration:none}.site-header{background:var(--navy);color:#fff}.header-inner{max-width:1200px;margin:auto;min-height:76px;padding:0 24px;display:flex;align-items:center;justify-content:space-between}.brand{font-weight:900;letter-spacing:-1.2px;font-size:26px;display:flex;align-items:center}.brand span:not(.brand-mark){color:var(--orange)}.brand-mark{font-size:15px;color:#fff;background:var(--orange);width:31px;height:31px;display:grid;place-items:center;border-radius:7px;margin-right:10px;letter-spacing:0}.main-nav{display:flex;gap:36px;font-size:14px;font-weight:650}.main-nav a:hover,.main-nav a[aria-current]{color:#ffb17c}.menu-toggle{display:none;background:none;border:0;color:white;font-size:25px;cursor:pointer}.container{max-width:1200px;padding:0 24px;margin:auto}.intro{padding:65px 0 52px;display:flex;justify-content:space-between;align-items:end;border-bottom:1px solid var(--line)}.eyebrow{font-size:12px;font-weight:800;color:var(--orange);letter-spacing:2.5px}.intro h1{font-size:clamp(32px,4.3vw,56px);line-height:1.25;letter-spacing:-1.7px;margin:13px 0}.intro h1 em{font-style:normal;color:var(--orange)}.intro p:last-child{color:var(--muted);margin-bottom:0}.intro-tag{color:#a8b5c0;font-size:12px;letter-spacing:1.5px}.intro-tag span{color:var(--orange);font-size:23px}.section{padding:48px 0 24px;scroll-margin-top:24px}.section-heading{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:22px;border-bottom:1px solid var(--line);padding-bottom:15px}.section-heading h2{font-size:24px;line-height:1.2;margin:0;border-left:5px solid var(--orange);padding-left:13px}.section-heading h2 span{font-size:11px;letter-spacing:1.6px;color:#97a6b4;margin-left:9px}.section-heading p{margin:0;color:var(--muted);font-size:13px}.featured-grid{display:grid;grid-template-columns:1.65fr 1fr;grid-template-rows:repeat(2,minmax(0,1fr));gap:18px}.featured-card{position:relative;overflow:hidden;border-radius:10px;min-height:205px;background:#243d53;color:#fff;display:block}.featured-card:first-child{grid-row:span 2;min-height:430px}.featured-card img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;transition:transform .25s}.featured-card:hover img{transform:scale(1.035)}.featured-card:after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 20%,rgba(0,0,0,.82))}.featured-content{position:absolute;z-index:1;bottom:0;left:0;right:0;padding:24px}.featured-content h3{font-size:19px;line-height:1.45;margin:8px 0 4px}.featured-card:first-child h3{font-size:27px}.tag{display:inline-block;color:#fff;background:var(--orange);font-size:11px;font-weight:750;padding:3px 9px;border-radius:3px}.date{font-size:12px;color:#b8c4ce}.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 20px}.article-card{display:block}.article-card img{width:100%;aspect-ratio:16/9;object-fit:cover;background:#dbe4ed;border-radius:8px;display:block}.article-card:hover h3{color:#e7660f}.card-meta{display:flex;gap:12px;align-items:center;margin-top:11px;font-size:12px;color:var(--muted)}.card-meta .category{color:#df620e;font-weight:800}.article-card h3{font-size:17px;line-height:1.55;margin:7px 0 6px;transition:color .2s}.article-card p{color:var(--muted);font-size:13px;line-height:1.7;margin:0}.loading{color:var(--muted)}.site-footer{margin-top:70px;background:var(--navy);color:#fff;padding:48px 24px 22px}.footer-inner{max-width:1152px;margin:auto;display:flex;justify-content:space-between}.footer-inner p{color:#b5c5d1;font-size:13px}.footer-links{display:flex;gap:22px;font-size:13px}.copyright{max-width:1152px;margin:40px auto 0;border-top:1px solid #38536a;padding-top:16px;color:#91a9ba;font-size:12px}@media(max-width:720px){.header-inner{min-height:66px;padding:0 18px}.brand{font-size:22px}.menu-toggle{display:block}.main-nav{display:none;position:absolute;z-index:5;top:66px;left:0;right:0;background:var(--navy);padding:18px 24px;flex-direction:column;gap:15px}.main-nav.open{display:flex}.container{padding:0 17px}.intro{padding:42px 0 32px}.intro-tag{display:none}.intro h1{font-size:34px}.section{padding-top:36px}.section-heading h2{font-size:21px}.section-heading p{display:none}.featured-grid{display:grid;grid-template-columns:1fr;grid-template-rows:auto;gap:12px}.featured-card,.featured-card:first-child{grid-row:auto;min-height:205px}.featured-card:first-child{min-height:280px}.featured-card:first-child h3{font-size:21px}.featured-content{padding:18px}.card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px}.article-card h3{font-size:14px}.article-card p{display:none}.card-meta{font-size:11px;gap:7px;flex-wrap:wrap}.footer-inner{display:block}.footer-links{margin-top:22px}}@media(max-width:400px){.card-grid{grid-template-columns:1fr}.article-card h3{font-size:17px}.article-card p{display:block}}

/* Article system v2 */
.category-intro{padding:62px 0 28px;border-bottom:1px solid var(--line)}.category-intro h1{font-size:clamp(32px,5vw,50px);margin:12px 0}.category-intro p:last-child{color:var(--muted)}
.article-layout{max-width:920px;padding-top:44px}.article-breadcrumb{color:var(--muted);font-size:13px}.article-breadcrumb a:hover{color:var(--orange)}.article-layout article h1{font-size:clamp(30px,4vw,46px);line-height:1.35;letter-spacing:-.7px;margin:12px 0 18px}.article-byline{display:flex;flex-wrap:wrap;gap:20px;color:var(--muted);font-size:13px;margin-bottom:28px}.article-hero{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:12px}.article-lead{font-size:19px;color:#41576a;line-height:1.9;margin:32px 0}.article-body{font-size:17px;line-height:2}.article-body h2{font-size:26px;margin:40px 0 12px}.article-body h3{font-size:21px;margin:26px 0 10px}.article-body p{margin:12px 0 22px}.article-body img{display:block;max-width:100%;height:auto;border-radius:8px;margin:20px auto}.article-body a{color:#d95e0d;text-decoration:underline}.related-section{border-top:1px solid var(--line);margin-top:55px;padding-top:28px}.related-section h2{font-size:24px;border-left:5px solid var(--orange);padding-left:12px;margin-bottom:22px}@media(max-width:720px){.article-layout{padding-top:25px}.article-lead{font-size:17px}.article-body{font-size:16px}.article-body h2{font-size:23px}}

/* Article reading experience v3 */
.article-layout{max-width:980px}.article-layout>article{max-width:820px;margin-inline:auto}.article-byline{align-items:center;border-bottom:1px solid var(--line);padding-bottom:17px}.article-byline strong{color:var(--ink)}.article-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:28px 0 22px}.article-tools>span:first-child{font-size:13px;color:var(--muted);font-weight:700;margin-right:3px}.article-action{border:1px solid #cbd5e1;background:white;color:var(--navy);font:inherit;font-size:13px;font-weight:700;padding:8px 14px;border-radius:7px;cursor:pointer}.article-action:hover,.article-action:focus-visible{border-color:var(--orange);color:#b94d08}.article-action[hidden]{display:none}#share-feedback{font-size:12px;color:#28704b}.article-toc{background:#f5f8fb;border:1px solid var(--line);border-left:4px solid var(--orange);border-radius:9px;padding:18px 23px;margin:25px 0 35px}.article-toc[hidden]{display:none}.article-toc h2{font-size:18px;margin:0 0 10px}.article-toc ol{padding-left:24px;margin:0}.article-toc li{padding:4px 0;font-size:15px}.article-toc .toc-sub{margin-left:20px;list-style-type:circle}.article-toc a:hover{color:#c75a0d;text-decoration:underline}.article-body h2,.article-body h3{scroll-margin-top:24px}.article-body{max-width:760px;margin-inline:auto;overflow-wrap:anywhere}.article-body blockquote{border-left:4px solid var(--orange);margin:24px 0;padding:12px 20px;background:var(--bg);color:#41576a}.article-body ul,.article-body ol{padding-left:1.5em}.article-end{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);margin-top:42px;padding-top:18px;font-size:13px;color:var(--muted)}.article-end a{color:#c75a0d;font-weight:700}.related-section{max-width:900px;margin-inline:auto}@media(max-width:720px){.article-layout article h1{font-size:29px}.article-tools{gap:7px}.article-action{padding:8px 10px}.article-toc{padding:15px}.article-body{line-height:1.95}}

/* NEXTPLAY v4: homepage, category and mobile refinements */
.article-card{border:1px solid #edf1f5;border-radius:12px;overflow:hidden;padding-bottom:16px;box-shadow:0 2px 12px rgba(16,42,67,.035);transition:transform .2s,box-shadow .2s;background:#fff}.article-card:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(16,42,67,.10)}.article-card img{border-radius:0}.article-card .card-meta,.article-card h3,.article-card p{margin-left:15px;margin-right:15px}.article-card h3{font-size:17px}.article-card p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.section-actions{display:flex;justify-content:flex-end;align-items:center;gap:22px;flex-wrap:wrap;margin-top:24px}.text-link,.more-link{color:#b64d0c;font-size:14px;font-weight:750}.text-link:hover,.more-link:hover{text-decoration:underline}.category-intro{background:linear-gradient(110deg,#f3f7fb 0%,#fff 70%);padding:58px 26px 35px;border-radius:0 0 14px 14px}.category-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin:0 0 22px;font-size:14px;color:var(--muted)}.category-toolbar select{font:inherit;color:var(--navy);background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:9px 34px 9px 12px}.load-more{font:inherit;font-size:14px;font-weight:750;background:var(--navy);color:#fff;border:0;border-radius:8px;padding:12px 25px;cursor:pointer}.load-more:hover{background:#1b4261}.load-more[hidden]{display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}a:focus-visible,button:focus-visible,select:focus-visible{outline:3px solid var(--orange);outline-offset:3px}@media(max-width:720px){.article-card p{display:-webkit-box}.article-card h3{font-size:15px}.article-card .card-meta,.article-card h3,.article-card p{margin-left:11px;margin-right:11px}.category-intro{padding:38px 18px 24px}.category-toolbar{justify-content:space-between}.section-actions{justify-content:flex-start;gap:14px}.featured-card:first-child{min-height:260px}}@media(max-width:440px){.card-grid{grid-template-columns:1fr}.article-card h3{font-size:17px}.article-card p{display:-webkit-box}}@media(prefers-reduced-motion:reduce){.article-card,.featured-card img{transition:none}}

/* v4.1: desktop hero headline on one line; responsive wrap on mobile */
@media (min-width: 900px){.intro h1{white-space:nowrap;font-size:clamp(32px,3.6vw,48px);letter-spacing:-1.7px}}
@media (max-width:899px){.intro h1{white-space:normal}}

/* PlayScope logo only — original colors and layout preserved */
.site-header .brand {
  display: flex;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
}
.site-logo {
  display: block;
  width: auto;
  height: 65px;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
}
@media (max-width: 720px) {
  .site-logo {
    height: 48px;
    max-width: 170px;
  }
}

/* PlayScope 導覽列品牌調整 */
.header-inner {
  max-width: 1280px;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo {
  height: 60px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.site-header .brand-name {
  display: inline-flex;
  align-items: center;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
  color: #ffffff;
}

.site-header .brand-name span {
  color: #f97316;
}

@media (max-width: 720px) {
  .site-logo {
    height: 43px;
    max-width: 145px;
  }

  .site-header .brand {
    gap: 7px;
  }

  .site-header .brand-name {
    font-size: 19px;
  }
}

/* PlayScope Header 最終微調 */

/* Logo 與文字整體向左移動 */
.site-header .header-inner {
  max-width: 1280px;
  padding-left: 0;
  padding-right: 24px;
}

/* Logo 與文字並排 */
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Logo 圖片 */
.site-header .site-logo {
  height: 60px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

/* PlayScope 文字：Play 白色 */
.site-header .brand .brand-name {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
}

/* Scope 橘色 */
.site-header .brand .brand-name span {
  color: #f97316;
}

/* 手機版維持正常邊距 */
@media (max-width: 720px) {
  .site-header .header-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-header .brand {
    gap: 8px;
  }

  .site-header .site-logo {
    height: 43px;
  }

  .site-header .brand .brand-name {
    font-size: 19px;
  }
}

/* PlayScope 首頁上方留白調整 */
.intro {
  padding-top: 30px;
}

/* PlayScope 分類頁排版優化 */
/* 僅影響遊戲與體育分類頁 */

/* 分類頁標題區：減少留白 */
.category-intro {
  padding: 28px 26px 26px;
  background: linear-gradient(110deg, #f3f7fb 0%, #ffffff 85%);
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
}

.category-intro .eyebrow {
  margin: 0 0 8px;
}

.category-intro h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.3;
}

.category-intro p:last-child {
  margin: 0;
}

/* 分類頁文章區：縮短區塊間距 */
body[data-category] .section {
  padding-top: 28px;
}

body[data-category] .section-heading {
  margin-bottom: 14px;
  padding-bottom: 12px;
}

/* 排序選單更緊湊 */
body[data-category] .category-toolbar {
  margin-bottom: 16px;
}

/* 手機版 */
@media (max-width: 720px) {
  .category-intro {
    padding: 24px 18px;
  }

  body[data-category] .section {
    padding-top: 24px;
  }
}

/* ===================================
   PlayScope 分類頁新版設計
   只影響遊戲、體育分類頁
=================================== */

/* 深藍色專區橫幅 */
body[data-category] .category-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 245px;
  margin-top: 24px;
  padding: 36px 42px;
  border-radius: 14px;
  background: #102a43;
  color: #ffffff;
}

body[data-category] .category-hero-content {
  position: relative;
  z-index: 1;
}

body[data-category] .category-hero .eyebrow {
  margin: 0 0 14px;
  color: #fb923c;
  font-size: 12px;
  letter-spacing: 2px;
}

body[data-category] .category-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.2;
}

body[data-category] .hero-dot {
  color: #f97316;
}

body[data-category] .category-hero-desc {
  margin: 14px 0 22px;
  color: #cbd5e1;
  font-size: 16px;
}

body[data-category] .category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body[data-category] .category-tags span {
  padding: 7px 13px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #ffffff;
  font-size: 13px;
}

body[data-category] .category-hero-icon {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(249,115,22,.22);
  font-size: 150px;
  line-height: 1;
  pointer-events: none;
}

/* 文章列表標題與排序整合 */
body[data-category] .category-articles {
  padding-top: 34px;
}

body[data-category] .category-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e2e8f0;
}

body[data-category] .category-list-header h2 {
  margin: 0 0 6px;
  padding-left: 14px;
  border-left: 5px solid #f97316;
  color: #102a43;
  font-size: 24px;
}

body[data-category] .category-list-header p {
  margin: 0 0 0 19px;
  color: #8293a6;
  font-size: 13px;
}

body[data-category] .category-list-header .category-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

body[data-category] .category-list-header .category-toolbar label {
  white-space: nowrap;
}

/* 橫式文章卡片：只套用分類頁 */
body[data-category] #category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

body[data-category] #category-grid > a,
body[data-category] #category-grid > article {
  width: 100%;
  max-width: none;
}

/* 對應既有文章卡片的常見結構 */
@media (min-width: 721px) {
  body[data-category] #category-grid .article-card,
  body[data-category] #category-grid .card {
    display: grid;
    grid-template-columns: minmax(230px, 36%) minmax(0, 1fr);
    align-items: stretch;
    overflow: hidden;
  }

  body[data-category] #category-grid .article-card img,
  body[data-category] #category-grid .card img {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
  }
}

/* 手機版 */
@media (max-width: 720px) {
  body[data-category] .category-hero {
    min-height: auto;
    margin-top: 16px;
    padding: 30px 22px;
  }

  body[data-category] .category-hero-icon {
    right: 12px;
    font-size: 95px;
  }

  body[data-category] .category-hero-desc {
    font-size: 14px;
  }

  body[data-category] .category-list-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  body[data-category] .category-list-header .category-toolbar {
    width: 100%;
    justify-content: space-between;
  }
}

/* PlayScope 手機版分類頁優化 */
@media (max-width: 720px) {

  /* 縮小深藍色區塊 */
  body[data-category] .category-hero {
    min-height: 0;
    margin-top: 12px;
    padding: 24px 20px;
    border-radius: 12px;
  }

  /* 標題間距 */
  body[data-category] .category-hero .eyebrow {
    margin-bottom: 10px;
  }

  body[data-category] .category-hero h1 {
    font-size: 32px;
    line-height: 1.2;
  }

  /* 縮小介紹文字的上下間距 */
  body[data-category] .category-hero-desc {
    margin: 10px 0 16px;
    font-size: 14px;
    line-height: 1.6;
  }

  /* 縮小標籤 */
  body[data-category] .category-tags {
    gap: 7px;
  }

  body[data-category] .category-tags span {
    padding: 6px 10px;
    font-size: 12px;
  }

  /* 隱藏右側裝飾星星 */
  body[data-category] .category-hero-icon {
    display: none;
  }

}
body[data-category] .category-hero-icon {
  display: none;
}


/* PlayScope 首頁焦點文章：手機版比例修正 */
/* 只影響手機版，電腦版維持原樣 */

@media (max-width: 720px) {

  #featured-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    gap: 12px;
  }

  #featured-grid .featured-card:first-child {
    grid-row: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
  }

  #featured-grid .featured-card:first-child img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #featured-grid .featured-card:first-child .featured-content {
    padding: 14px;
  }

  #featured-grid .featured-card:first-child h3 {
    font-size: 17px;
    line-height: 1.35;
    margin: 6px 0 4px;
  }

}
