/*
Theme Name: Starry Night Studio
Theme URI: https://starnightshoping.com
Author: Antigravity Studio
Author URI: https://starnightshoping.com
Description: 星夜商城專用深色主題，支援 FiveM 腳本 / 機器人客製化 WooCommerce 數位商品商城。
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: starry-night
*/

:root {
  --ink:        #0a0a0c;
  --ink-2:      #0f0f13;
  --panel:      #131318;
  --panel-2:    #17171d;
  --line:       #24242c;
  --line-2:     #32323d;
  --text:       #ececef;
  --text-2:     #a6a6b0;
  --text-3:     #6e6e7a;
  --brand:      #5566cf;
  --brand-soft: #9aa6f2;
  --brand-deep: #2b3a86;
  --gold:       var(--brand);
  --gold-soft:  var(--brand-soft);
  --steel:      #7e9cc4;
  --ok:         #4ea87a;
  --warn:       #c9a227;
  --danger:     #c4635f;
  --r:          6px;
  --maxw:       1200px;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; }
p { margin: 0; }
::selection { background: rgba(85, 102, 207, .35); }

.wrap { width: min(var(--maxw), calc(100% - 48px)); margin-inline: auto; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

.label {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-3); font-weight: 700;
}
.head { margin-bottom: 32px; }
.head h2 { font-size: 26px; margin: 10px 0 6px; }
.head p { color: var(--text-2); font-size: 14px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.muted { color: var(--text-2); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); }

/* 頂欄 */
.topbar {
  background: var(--ink-2); border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--text-2);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 36px; }
.topbar a { color: var(--gold-soft); }
.status { display: inline-flex; align-items: center; gap: 7px; }
.status i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ok); display: inline-block;
}

header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 10, 12, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; gap: 28px; height: 62px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand .mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand .mark img { width: 100%; height: 100%; object-fit: contain; }
.brand b { font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.brand span { display: block; font-size: 10px; letter-spacing: .22em; color: var(--text-3); font-weight: 600; }

nav.main { display: flex; gap: 2px; margin-left: auto; }
nav.main a {
  padding: 7px 13px; font-size: 14px; color: var(--text-2); border-radius: var(--r);
}
nav.main a:hover { color: var(--text); background: var(--panel); }
nav.main a.on { color: var(--text); background: var(--panel); box-shadow: inset 0 -2px 0 var(--gold); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 80% 20%, rgba(85,102,207,.12), transparent 50%), var(--ink-2);
  padding: 80px 0 90px;
}
.hero-video {
  position: absolute; inset: 0; pointer-events: none; opacity: .28;
  overflow: hidden;
}
.hero-video iframe {
  width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.77vh;
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.hero .wrap {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center;
}
@media(max-width:840px){ .hero .wrap { grid-template-columns: 1fr; } }

.hero h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.2; margin: 12px 0 18px; }
.hero h1 em { font-style: normal; color: var(--gold-soft); }
.hero .lead { font-size: 16px; color: var(--text-2); max-width: 540px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; font-size: 14px; font-weight: 500; border-radius: var(--r);
  border: 1px solid transparent; cursor: pointer; transition: .15s ease;
}
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-soft); color: var(--ink); border-color: var(--brand-soft); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-outline:hover { background: var(--panel); border-color: var(--text-3); }

/* Grid */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* Product Card */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.card-media { position: relative; aspect-ratio: 16/9; background: var(--panel-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px; }
.card-title { font-size: 17px; margin-bottom: 8px; }
.card-price { font-size: 18px; font-weight: 700; color: var(--gold-soft); font-family: var(--mono); }
.card-price del { font-size: 13px; color: var(--text-3); margin-left: 6px; font-weight: 400; }

/* Footer */
footer.site { background: var(--ink-2); border-top: 1px solid var(--line); padding: 48px 0 32px; color: var(--text-2); font-size: 14px; }
