/* 維度影學課程講義平台：共用樣式（配色、字型比照官網 cine-dimension.com） */
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@500;700&family=Noto+Sans+TC:wght@400;500;700&display=swap");

:root {
  --bg: #f6f4ee;          /* 官網米白紙張底 */
  --panel: #ffffff;
  --sage: #e1e8e1;        /* 官網灰綠色重點卡片 */
  --soft: #e7e5e4;
  --line: #d6d3d1;
  --ink: #1c1917;         /* 標題、黑色按鈕 */
  --text: #292524;
  --body: #44403b;
  --muted: #79716b;
  --bronze: #a3845b;      /* 官網銅金點綴 */
  --bronze-soft: #e5c792;
  --warn: #b45309;
  --blue: #345b95;
  --radius: 16px;
  --sans: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --serif: "Noto Serif TC", ui-serif, Georgia, "Songti TC", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--bronze); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); }

.nw { white-space: nowrap; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* 英文小標：官網的寬字距大寫 */
.eyebrow { font-size: 13px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--muted); }

/* 頂部導航 */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 244, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name b { font-family: var(--serif); font-size: 18px; letter-spacing: 0.15em; }
.brand-name small { font-size: 11px; letter-spacing: 0.3em; color: var(--muted); }
.nav { display: flex; gap: 10px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 6px; font-size: 15px;
  border: 1px solid var(--ink); color: var(--ink); background: transparent;
  cursor: pointer; font-family: inherit; white-space: nowrap; letter-spacing: 0.05em;
}
.btn:hover { background: var(--ink); color: var(--bg); text-decoration: none; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--text); }

.site-footer { border-top: 1px solid var(--line); margin-top: 96px; padding: 36px 0; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--muted); margin-left: 18px; }
.site-footer a:hover { color: var(--ink); }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .brand-name small, .nav .hide-sm { display: none; }
  .site-footer a { margin: 0 18px 0 0; }
}
