:root {
  color-scheme: dark;
  --night: #030711;
  --night-2: #07101f;
  --panel: rgba(9, 20, 38, .82);
  --panel-solid: #0b1728;
  --ice: #83ddff;
  --ice-bright: #d9f6ff;
  --violet: #9e8cff;
  --silver: #c7d8e7;
  --text: #edf7ff;
  --muted: #93a8bc;
  --border: rgba(120, 210, 255, .2);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--text); font-family: "Noto Sans TC", sans-serif; }
a { color: inherit; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ice); color: #02101a; }
.skip-link:focus { top: 12px; }

body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(circle at 85% 12%, rgba(94, 84, 229, .15), transparent 32rem), radial-gradient(circle at 15% 65%, rgba(24, 152, 205, .12), transparent 28rem); }
.site-header { position: sticky; top: 0; z-index: 30; min-height: 74px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; padding: 9px max(24px, calc((100vw - var(--max)) / 2)); background: rgba(3, 8, 18, .9); border-bottom: 1px solid var(--border); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 235px; }
.brand img { width: 58px; height: 50px; object-fit: contain; }
.brand span { display: grid; }
.brand strong { font: 800 21px/1.2 "Noto Serif TC", serif; letter-spacing: .12em; }
.brand small { color: var(--muted); font-size: 8px; letter-spacing: .17em; }
.main-nav { display: flex; justify-content: center; gap: clamp(12px, 2vw, 28px); }
.main-nav a { color: #c2d1df; text-decoration: none; font-size: 14px; white-space: nowrap; }
.main-nav a:hover { color: var(--ice); }
.line-button { padding: 10px 15px; border: 1px solid rgba(131, 221, 255, .55); border-radius: 4px; color: var(--ice-bright); text-decoration: none; font-size: 13px; letter-spacing: .08em; background: rgba(78, 174, 220, .1); }
.line-button.is-pending { color: var(--muted); border-color: var(--border); cursor: default; }
.menu-toggle { display: none; }

.hero { position: relative; min-height: min(790px, calc(100vh - 74px)); display: grid; align-items: center; background: url("../media/linye-hero.png") center/cover no-repeat; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(transparent, var(--night)); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2, 6, 14, .94) 0%, rgba(2, 6, 14, .7) 37%, rgba(2, 6, 14, .05) 72%), linear-gradient(0deg, rgba(2, 6, 14, .48), transparent 58%); }
.hero-content { position: relative; z-index: 2; width: min(var(--max), calc(100% - 48px)); margin: auto; padding: 96px 0 130px; }
.eyebrow, .section-heading p, .manifesto > div > p { margin: 0 0 14px; color: var(--ice); font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 700px; font: 900 clamp(54px, 7.5vw, 106px)/1.02 "Noto Serif TC", serif; letter-spacing: .07em; text-shadow: 0 4px 28px rgba(0, 0, 0, .55); }
.hero h1 span { color: transparent; background: linear-gradient(180deg, #fff, #9fdcf4 55%, #6e84a5); background-clip: text; -webkit-background-clip: text; }
.hero-lead { max-width: 620px; margin: 28px 0 0; color: #c4d2df; font-size: 17px; line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 4px; text-decoration: none; font-weight: 700; letter-spacing: .05em; }
.button-primary { color: #03101b; background: linear-gradient(135deg, #d6f7ff, #69c9ec); box-shadow: 0 12px 36px rgba(63, 184, 231, .22); }
.button-ghost { color: var(--ice-bright); border: 1px solid rgba(158, 215, 242, .38); background: rgba(4, 12, 24, .4); backdrop-filter: blur(10px); }
.button.is-pending { color: #9dafbd; background: rgba(117, 156, 177, .1); border: 1px solid rgba(141, 189, 214, .22); box-shadow: none; cursor: default; }
.hero-facts { display: flex; gap: 1px; width: fit-content; list-style: none; margin: 48px 0 0; padding: 0; background: var(--border); border: 1px solid var(--border); }
.hero-facts li { display: grid; min-width: 130px; padding: 15px 18px; background: rgba(3, 9, 19, .72); backdrop-filter: blur(12px); }
.hero-facts strong { font: 800 20px "Noto Serif TC", serif; color: var(--ice-bright); }
.hero-facts span { color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.hero-status { position: absolute; z-index: 3; right: max(24px, calc((100vw - var(--max)) / 2)); bottom: 90px; display: flex; align-items: center; gap: 9px; color: #b4c5d3; font-size: 12px; letter-spacing: .12em; }
.hero-status i { width: 8px; height: 8px; border-radius: 50%; background: #6f87a0; box-shadow: 0 0 12px #6f87a0; }

.portal { position: relative; z-index: 4; width: min(var(--max), calc(100% - 48px)); margin: -56px auto 0; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--border); background: rgba(5, 13, 26, .9); backdrop-filter: blur(18px); }
.portal a { position: relative; display: grid; gap: 5px; min-height: 138px; align-content: center; padding: 22px; border-right: 1px solid var(--border); text-decoration: none; overflow: hidden; }
.portal a:last-child { border-right: 0; }
.portal a::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: linear-gradient(90deg, transparent, var(--ice), transparent); transform: scaleX(0); transition: .25s; }
.portal a:hover::after { transform: scaleX(1); }
.portal span { position: absolute; right: 13px; top: 9px; color: rgba(157, 219, 247, .19); font: 700 28px "Noto Serif TC"; }
.portal strong { font: 700 18px "Noto Serif TC", serif; }
.portal small { color: var(--muted); font-size: 12px; }

.section { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 118px 0 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 32px; }
.section-heading p { margin-bottom: 8px; }
.section-heading h2 { margin: 0; font: 800 clamp(29px, 4vw, 47px)/1.25 "Noto Serif TC", serif; letter-spacing: .04em; }
.section-heading > span, .section-heading > a { max-width: 470px; color: var(--muted); font-size: 13px; line-height: 1.8; text-decoration: none; }
.section-heading > a:hover { color: var(--ice); }

.recruit-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.recruit-lead { min-height: 520px; display: flex; flex-direction: column; justify-content: end; padding: clamp(28px, 5vw, 60px); border: 1px solid rgba(131, 221, 255, .34); background: linear-gradient(0deg, rgba(4, 12, 25, .98) 0%, rgba(4, 12, 25, .6) 55%, rgba(4, 12, 25, .25)), url("../media/linye-poster.png") center 22%/cover; box-shadow: inset 0 0 80px rgba(28, 102, 154, .18); }
.ice-tag { align-self: flex-start; padding: 6px 10px; color: var(--ice); border: 1px solid rgba(131, 221, 255, .4); font-size: 11px; letter-spacing: .15em; }
.recruit-lead h3 { max-width: 630px; margin: 18px 0 12px; font: 800 clamp(29px, 4vw, 46px)/1.35 "Noto Serif TC", serif; }
.recruit-lead p { max-width: 720px; margin: 0; color: #b9c9d7; line-height: 1.9; }
.recruit-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.recruit-points span { padding: 7px 11px; border-radius: 999px; background: rgba(121, 202, 238, .11); color: #c8eaff; font-size: 12px; }
.recruit-lead .button { align-self: flex-start; }
.recruit-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.recruit-cards { display: grid; gap: 12px; }
.recruit-cards article { position: relative; min-height: 164px; padding: 26px; border: 1px solid var(--border); background: linear-gradient(135deg, rgba(16, 37, 65, .9), rgba(5, 13, 25, .95)); overflow: hidden; }
.recruit-cards b { position: absolute; right: 12px; top: 4px; color: rgba(126, 209, 244, .1); font: 800 38px "Noto Serif TC"; }
.recruit-cards h3 { margin: 0 0 9px; color: var(--ice-bright); font: 700 20px "Noto Serif TC"; }
.recruit-cards p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.spec-grid article { min-height: 156px; display: grid; align-content: center; gap: 6px; padding: 22px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(8, 19, 35, .6); }
.spec-grid span, .spec-grid small { color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.spec-grid strong { color: var(--ice-bright); font: 800 23px "Noto Serif TC", serif; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feature-grid a { position: relative; min-height: 245px; display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--border); background: linear-gradient(145deg, rgba(17, 38, 66, .72), rgba(5, 13, 25, .88)); text-decoration: none; transition: transform .2s, border-color .2s; overflow: hidden; }
.feature-grid a:hover { transform: translateY(-4px); border-color: rgba(131, 221, 255, .48); }
.feature-grid i { position: absolute; right: 17px; top: 9px; color: rgba(131, 221, 255, .12); font: normal 800 52px "Noto Serif TC"; }
.feature-grid h3 { margin: 50px 0 12px; font: 700 23px "Noto Serif TC"; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.feature-grid span { margin-top: auto; padding-top: 22px; color: var(--ice); font-size: 12px; }

.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--border); background: var(--border); }
.archive-grid a { min-height: 138px; display: flex; align-items: center; gap: 20px; padding: 28px; background: var(--night-2); text-decoration: none; }
.archive-grid > a > span { width: 42px; color: var(--ice); font: 700 31px "Noto Serif TC"; text-align: center; }
.archive-grid h3 { margin: 0 0 5px; font: 700 18px "Noto Serif TC"; }
.archive-grid p { margin: 0; color: var(--muted); font-size: 12px; }
.archive-grid a:hover { background: #0e2036; }

.manifesto { width: min(var(--max), calc(100% - 48px)); margin: 118px auto 0; display: grid; grid-template-columns: .45fr 1fr; align-items: center; min-height: 380px; padding: 38px 7%; border: 1px solid var(--border); background: radial-gradient(circle at 16% 50%, rgba(71, 152, 208, .2), transparent 27%), linear-gradient(110deg, #071323, #050b16); }
.manifesto img { width: min(100%, 390px); max-height: 280px; object-fit: contain; filter: drop-shadow(0 0 30px rgba(88, 190, 235, .22)); }
.manifesto h2 { margin: 0 0 18px; font: 800 38px "Noto Serif TC"; }
.manifesto blockquote { margin: 0; color: #b9c9d7; font: 600 17px/2 "Noto Serif TC"; }

.site-footer { width: min(var(--max), calc(100% - 48px)); margin: 90px auto 0; border-top: 1px solid var(--border); }
.footer-main { min-height: 146px; display: flex; align-items: center; gap: 16px; }
.footer-main > img { width: 90px; height: 76px; object-fit: contain; }
.footer-main strong { font: 800 22px "Noto Serif TC"; }
.footer-main p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.footer-main nav { display: flex; gap: 22px; margin-left: auto; }
.footer-main nav a { color: var(--muted); text-decoration: none; font-size: 13px; }
.footer-bottom { min-height: 95px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border-top: 1px solid rgba(131, 221, 255, .1); color: #627a8e; font-size: 11px; }
.footer-bottom img { display: block; max-width: 100%; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: auto auto 1fr; }
  .menu-toggle { display: block; justify-self: end; grid-column: 2; padding: 9px 13px; color: var(--ice-bright); border: 1px solid var(--border); background: transparent; }
  .main-nav { display: none; position: absolute; left: 20px; right: 20px; top: 70px; padding: 18px; flex-direction: column; align-items: stretch; background: #071221; border: 1px solid var(--border); }
  .main-nav.is-open { display: flex; }
  .line-button { justify-self: end; }
  .portal { grid-template-columns: repeat(3, 1fr); }
  .portal a:nth-child(3) { border-right: 0; }
  .portal a:nth-child(n+4) { border-top: 1px solid var(--border); }
  .recruit-grid { grid-template-columns: 1fr; }
  .recruit-cards { grid-template-columns: repeat(3, 1fr); }
  .spec-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .site-header { min-height: 64px; padding: 7px 14px; gap: 10px; }
  .brand { min-width: 0; }
  .brand img { width: 48px; height: 42px; }
  .brand strong { font-size: 17px; }
  .brand small, .line-button { display: none; }
  .menu-toggle { grid-column: 3; }
  .hero { min-height: 710px; background-position: 63% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(2, 6, 14, .92), rgba(2, 6, 14, .55)), linear-gradient(0deg, rgba(2, 6, 14, .78), transparent 60%); }
  .hero-content { width: calc(100% - 32px); padding-top: 125px; }
  .hero h1 { font-size: clamp(48px, 16vw, 72px); }
  .hero-lead { font-size: 15px; line-height: 1.8; }
  .hero-actions .button { width: 100%; }
  .hero-facts { width: 100%; }
  .hero-facts li { min-width: 0; flex: 1; padding: 13px 10px; }
  .hero-facts strong { font-size: 16px; }
  .hero-status { display: none; }
  .portal, .section, .manifesto, .site-footer { width: calc(100% - 28px); }
  .portal { grid-template-columns: 1fr 1fr; margin-top: -42px; }
  .portal a, .portal a:nth-child(3) { min-height: 116px; border-right: 1px solid var(--border); border-top: 1px solid var(--border); }
  .portal a:nth-child(even) { border-right: 0; }
  .section { padding-top: 86px; }
  .section-heading { display: block; }
  .section-heading > span, .section-heading > a { display: block; margin-top: 12px; }
  .recruit-lead { min-height: 650px; padding: 24px; background-position: center top; }
  .recruit-cards { grid-template-columns: 1fr; }
  .spec-grid, .feature-grid, .archive-grid { grid-template-columns: 1fr 1fr; }
  .spec-grid article { min-height: 125px; }
  .feature-grid a { min-height: 220px; padding: 22px; }
  .archive-grid a { min-height: 130px; padding: 20px; }
  .manifesto { grid-template-columns: 1fr; padding: 35px 24px; }
  .manifesto img { margin: auto; }
  .footer-main nav { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; justify-content: center; padding: 22px 0; }
}

@media (max-width: 460px) {
  .spec-grid, .feature-grid, .archive-grid { grid-template-columns: 1fr; }
  .hero-facts li { padding: 11px 7px; }
  .hero-facts span { letter-spacing: 0; }
}
