/* =========================================================
   欧卡俱乐部 — 设计系统
   方向：工业 / 公路 / 汽车杂志编辑风
   配色：暖黑、纸白、燃油蓝、路面琥珀（禁用紫色）
   ========================================================= */

:root {
  --ink: #14110F;          /* 暖黑 */
  --ink-2: #1F1B17;
  --paper: #F4F1EC;        /* 纸白 */
  --surface: #FFFFFF;
  --surface-2: #ECE7DF;
  --line: #D8D2C7;         /* 边框灰 */
  --line-strong: #B9B1A3;
  --muted: #8A8178;        /* 暖灰 */
  --muted-2: #6A6258;
  --amber: #E0631E;        /* 路面琥珀（主强调色，克制使用） */
  --amber-deep: #B94E12;
  --petrol: #1F3A4D;       /* 燃油蓝（次强调色） */
  --petrol-light: #2E556E;
  --ok: #2F7D53;
  --amber-soft: rgba(224, 99, 30, 0.14);
  --radius: 14px;
  --radius-sm: 6px;
  --radius-lg: 22px;
  --shadow: 0 18px 40px -24px rgba(20, 17, 15, 0.45);
  --shadow-sm: 0 8px 22px -18px rgba(20, 17, 15, 0.5);
  --maxw: 1240px;
  --font-display: "Archivo", "Oswald", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--petrol); text-decoration: none; }
a:hover { color: var(--amber-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 .5em;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 17, 15, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .04em;
}
.brand .mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 2px solid var(--amber);
  border-radius: 9px;
  color: var(--amber);
  font-size: 18px;
  font-weight: 900;
  transform: rotate(-4deg);
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: .28em;
  color: var(--muted);
  font-weight: 600;
}
.nav-links {
  display: flex;
  gap: 6px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  color: #D9D3C9;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .02em;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--paper);
  background: rgba(224, 99, 30, 0.16);
}
.nav-user {
  display: flex; align-items: center; gap: 12px;
  margin-left: 8px;
  padding-left: 18px;
  border-left: 1px solid rgba(255,255,255,.12);
}
.nav-user .who { color: #D9D3C9; font-size: 14px; }
.nav-user .who b { color: var(--amber); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .03em;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: #fff; }
.btn-primary:hover { background: var(--amber-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- HERO / 轮播 ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.hero-carousel { position: relative; height: 72vh; min-height: 520px; }
.slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
  background-size: cover;
  background-position: center;
}
.slide.active { opacity: 1; }
.slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,17,15,.86) 0%, rgba(20,17,15,.35) 52%, rgba(20,17,15,.05) 100%);
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-inner { max-width: 620px; }
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .34em;
  color: var(--amber);
  border: 1px solid rgba(224,99,30,.5);
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 74px);
  text-transform: uppercase;
  color: #fff;
}
.hero p.lead {
  font-size: 18px;
  color: #CFC8BD;
  max-width: 520px;
  margin: 18px 0 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.carousel-nav {
  position: absolute;
  z-index: 4;
  bottom: 28px; right: 28px;
  display: flex; gap: 10px;
}
.carousel-nav button {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(20,17,15,.35);
  color: #fff; font-size: 18px; cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .15s ease;
}
.carousel-nav button:hover { background: var(--amber); border-color: var(--amber); }
.carousel-dots {
  position: absolute; z-index: 4;
  bottom: 36px; left: 28px;
  display: flex; gap: 8px;
}
.carousel-dots span {
  width: 30px; height: 4px; border-radius: 4px;
  background: rgba(255,255,255,.35); cursor: pointer;
}
.carousel-dots span.active { background: var(--amber); }

/* ---------- 通用区块标题（不对称） ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 48px;
}
.section-head .kicker {
  font-family: var(--font-display);
  letter-spacing: .3em;
  font-size: 12px;
  color: var(--amber-deep);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 46px); }
.section-head p { color: var(--muted-2); margin: 0; }
.rule {
  height: 3px; width: 64px; background: var(--amber);
  border-radius: 3px; margin: 18px 0 0;
}

/* ---------- 网格 / 不对称 ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-asym { grid-template-columns: 1.6fr 1fr; gap: 40px; }
.grid-asym-rev { grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: center; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.post-card { display: flex; flex-direction: column; }
.post-card .body { padding: 22px 22px 18px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 21px; margin-bottom: 8px; }
.post-card h3 a { color: var(--ink); }
.post-card p { color: var(--muted-2); font-size: 15px; margin: 0 0 16px; }
.post-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px; margin-top: auto;
}
.post-meta .who { display: flex; align-items: center; gap: 8px; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--petrol); color: #fff;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
}
.tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  background: var(--surface-2); color: var(--muted-2);
  padding: 4px 10px; border-radius: 100px;
  border: 1px solid var(--line);
}

/* ---------- 资讯卡 ---------- */
.news-card .media { aspect-ratio: 16/10; background: var(--surface-2) center/cover; }
.news-card .body { padding: 22px; }
.news-card h3 { font-size: 20px; }
.news-card .summary { color: var(--muted-2); font-size: 14.5px; margin: 0 0 14px; }

/* ---------- 图集 ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2) center/cover;
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px;
  background: linear-gradient(0deg, rgba(20,17,15,.82), transparent);
  color: #fff;
  transform: translateY(8px);
  opacity: 0;
  transition: .25s ease;
}
.gallery-item:hover .cap { transform: none; opacity: 1; }
.gallery-item .cap b { font-family: var(--font-display); display: block; font-size: 16px; }
.gallery-item .cap span { font-size: 13px; color: #D9D3C9; }

/* ---------- 关于我们 ---------- */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.about-media { background: var(--petrol); color: #fff; padding: 56px 44px; position: relative; }
.about-media h2 { color: #fff; font-size: 40px; }
.about-media .big-num { font-family: var(--font-display); font-size: 80px; color: var(--amber); line-height: 1; }
.about-body { padding: 56px 44px; }
.about-body p { color: var(--muted-2); }
.stat-row { display: flex; gap: 28px; margin-top: 24px; flex-wrap: wrap; }
.stat b { font-family: var(--font-display); font-size: 30px; color: var(--ink); display: block; }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- 表单 ---------- */
.form { max-width: 460px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.input, .textarea, .select {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(224,99,30,.15);
}
.textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- 认证页 ---------- */
.auth-wrap {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
}
.auth-aside {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 56px;
  position: relative;
  overflow: hidden;
}
.auth-aside::before {
  content: ""; position: absolute; right: -80px; bottom: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,99,30,.35), transparent 70%);
}
.auth-aside h2 { color: #fff; font-size: 44px; text-transform: uppercase; }
.auth-aside .list { margin-top: 28px; padding: 0; list-style: none; }
.auth-aside .list li { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); color: #CFC8BD; display: flex; gap: 12px; align-items: center; }
.auth-aside .list li::before { content: ""; width: 8px; height: 8px; background: var(--amber); border-radius: 2px; }
.auth-main { display: grid; place-items: center; padding: 56px; background: var(--paper); }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h1 { font-size: 30px; }
.auth-switch { margin-top: 18px; font-size: 14px; color: var(--muted-2); }
.auth-switch a { color: var(--amber-deep); font-weight: 700; }

/* ---------- 帖子详情 ---------- */
.post-detail { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.post-article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.post-article h1 { font-size: 34px; }
.post-article .content { color: var(--muted-2); font-size: 16px; white-space: pre-wrap; }
.reply-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 22px; }
.reply {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  background: #fff;
}
.reply .head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.reply .head .name { font-weight: 700; font-family: var(--font-display); }
.reply .head .time { font-size: 12.5px; color: var(--muted); margin-left: auto; }
.reply .text { color: var(--muted-2); white-space: pre-wrap; }

.sidebar {
  position: sticky; top: 96px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.sidebar h4 { font-size: 16px; }
.sidebar .mini-post { padding: 12px 0; border-top: 1px solid var(--line); }
.sidebar .mini-post a { color: var(--ink); font-weight: 600; }

/* ---------- 提示 ---------- */
.alert {
  padding: 13px 16px; border-radius: var(--radius-sm);
  font-size: 14px; margin-bottom: 18px; border: 1px solid transparent;
}
.alert-ok { background: rgba(47,125,83,.1); border-color: rgba(47,125,83,.4); color: #1f5e3c; }
.alert-err { background: rgba(180,40,20,.08); border-color: rgba(180,40,20,.4); color: #9c2c14; }
.alert-info { background: rgba(31,58,77,.08); border-color: rgba(31,58,77,.35); color: var(--petrol); }

/* ---------- 后台 ---------- */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side {
  background: var(--ink); color: var(--paper);
  padding: 26px 20px;
  display: flex; flex-direction: column;
}
.admin-side .brand { margin-bottom: 28px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav a {
  color: #CFC8BD; padding: 11px 14px; border-radius: var(--radius-sm);
  font-size: 14.5px; font-weight: 600;
}
.admin-nav a:hover, .admin-nav a.active { background: rgba(224,99,30,.16); color: #fff; }
.admin-nav .spacer { margin-top: auto; }
.admin-main { padding: 36px 40px; background: var(--paper); }
.admin-main .page-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.admin-main .page-title h1 { font-size: 28px; margin: 0; }
.admin-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.admin-card h3 { font-size: 18px; margin-top: 0; }
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.dash-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.dash-stat .n { font-family: var(--font-display); font-size: 40px; color: var(--amber-deep); line-height: 1; }
.dash-stat .l { color: var(--muted-2); font-size: 14px; margin-top: 8px; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th, .table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.table th { font-family: var(--font-display); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.table tr:hover td { background: var(--surface-2); }
.thumb { width: 88px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.link-del { color: #9c2c14; font-weight: 600; }
.link-del:hover { text-decoration: underline; }
.file-hint { font-size: 12.5px; color: var(--muted); }
.preview-img { max-height: 160px; border-radius: var(--radius-sm); border: 1px solid var(--line); margin-top: 10px; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--ink);
  color: #CFC8BD;
  padding: 64px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: .04em; }
.site-footer a { color: #CFC8BD; display: block; padding: 5px 0; font-size: 14px; }
.site-footer a:hover { color: var(--amber); }
.footer-bottom {
  margin-top: 48px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--muted);
}

/* ---------- 工具 ---------- */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 40px; text-align: center; color: var(--muted);
  background: var(--surface);
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .section-head, .grid-asym, .grid-asym-rev, .about-wrap,
  .post-detail, .auth-wrap, .footer-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 2; }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .auth-aside { display: none; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
}
