/* EWheel 个人博客：极简暗色系 */

:root {
  /* 参考配色：橙 → 黄 → 粉（你发的色块图） */
  --bg_top: #ff7a1a;
  --bg_mid: #ffd66e;
  --bg_bottom: #ff7aa9;

  --bg: #fff6ea;
  --card: rgba(255, 255, 255, 0.72);
  --border: rgba(0, 0, 0, 0.10);
  --text: rgba(18, 18, 18, 0.92);
  --muted: rgba(18, 18, 18, 0.62);

  --brand: #ff6a00;
  --brand2: #ff4fa3;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --max: 980px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, "Noto Sans CJK SC", sans-serif;
  background:
    radial-gradient(900px 520px at 12% 10%, rgba(255, 255, 255, 0.55), transparent 62%),
    radial-gradient(820px 520px at 88% 18%, rgba(255, 255, 255, 0.35), transparent 60%),
    linear-gradient(180deg, var(--bg_top) 0%, var(--bg_mid) 44%, var(--bg_bottom) 100%);
  color: var(--text);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.header {
  padding: 28px 0 12px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.brand { display: flex; gap: 12px; align-items: center; }
.logo {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.98), rgba(255, 79, 163, 0.92));
  color: rgba(255, 255, 255, 0.96);
}

.brand-mark {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.55);
}

h1 { margin: 0; font-size: 20px; letter-spacing: 0.2px; }
.subtitle { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.nav a {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}
.nav a:hover { border-color: rgba(255, 106, 0, 0.55); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px;
}

.hero { padding: 22px 20px; }
.hero h2 { margin: 0 0 8px; font-size: 22px; }

.hero-cover {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 28px;
  background:
    radial-gradient(700px 340px at 14% 12%, rgba(255, 106, 0, 0.22), transparent 58%),
    radial-gradient(640px 320px at 88% 18%, rgba(255, 79, 163, 0.18), transparent 52%),
    linear-gradient(180deg, rgba(255,255,255,0.62), rgba(255,255,255,0.40));
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: center;
}

.hero-cover::before,
.hero-cover::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.hero-cover::before {
  width: 360px;
  height: 360px;
  right: -120px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 79, 163, 0.18), transparent 70%);
}

.hero-cover::after {
  width: 300px;
  height: 300px;
  left: -120px;
  bottom: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.18), transparent 72%);
}

.hero-text,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.60);
  border: 1px solid rgba(0, 0, 0, 0.10);
  color: rgba(18, 18, 18, 0.72);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-cover h2 {
  margin: 14px 0 12px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 11ch;
}

.hero-copy {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.hero-meta {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.meta-card {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}

.meta-label {
  display: block;
  margin-bottom: 4px;
  color: rgba(18, 18, 18, 0.56);
  font-size: 12px;
}

.meta-card strong {
  font-size: 14px;
  font-weight: 700;
}

.hero-visual {
  display: grid;
  gap: 12px;
}

.glass-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.70), rgba(255,255,255,0.46));
  backdrop-filter: blur(14px);
}

.badge-card {
  width: fit-content;
  padding: 10px 14px;
  justify-self: end;
}

.badge-card .brand-mark {
  width: 84px;
  height: 84px;
  border-radius: 22px;
}

.badge-card span,
.stat-strip span {
  display: block;
  color: rgba(18, 18, 18, 0.56);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-card strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.visual-stage {
  min-height: 330px;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.visual-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.2));
}

.car-illustration {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 900ms ease, transform 1600ms ease;
  filter: saturate(1.05) contrast(1.05);
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.visual-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(255, 122, 26, 0.06), rgba(18, 18, 18, 0.34)),
    radial-gradient(420px 220px at 28% 18%, rgba(255, 214, 110, 0.24), transparent 60%),
    radial-gradient(420px 240px at 88% 72%, rgba(255, 122, 169, 0.18), transparent 55%);
  pointer-events: none;
}

.visual-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 16px;
}

.stat-strip strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
}

.muted { color: var(--muted); }

.grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; }
}

.list {
  margin: 10px 0 0;
  padding-left: 18px;
}
.list li { margin: 4px 0; }

.cta-row {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.98), rgba(255, 79, 163, 0.92));
  color: rgba(255, 255, 255, 0.96);
  font-weight: 700;
}
.btn:hover { filter: brightness(1.04); }
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 106, 0, 0.55);
  color: var(--text);
  font-weight: 600;
}

.link {
  display: inline-block;
  margin-top: 12px;
  color: var(--brand);
}
.link:hover { text-decoration: underline; }

.columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
@media (max-width: 820px) {
  .columns { grid-template-columns: 1fr; }
}

.tools-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stack-card {
  margin-top: 14px;
}

.editor-form,
.upload-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.field-label {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.input,
.textarea,
.file-input {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  outline: none;
}

.textarea {
  min-height: 110px;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.input:focus,
.textarea:focus,
.file-input:focus {
  border-color: rgba(255, 106, 0, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.12);
}

.form-actions,
.inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-secondary,
.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.60);
  color: var(--text);
  cursor: pointer;
}

.mini-btn {
  padding: 8px 10px;
  font-size: 12px;
}

.btn-secondary:hover,
.mini-btn:hover {
  border-color: rgba(255, 106, 0, 0.55);
}

.entry-list,
.shareholder-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.entry-card {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.entry-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
}

.entry-card p {
  margin: 0 0 12px;
}

.upload-gallery {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.upload-card {
  margin: 0;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.upload-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

.upload-card figcaption {
  margin: 10px 0 12px;
  color: rgba(18, 18, 18, 0.78);
  font-size: 13px;
}

.tag-wall {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.tip {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(18, 18, 18, 0.54);
}

.footer { padding: 22px 0 40px; }

@media (max-width: 920px) {
  .hero-cover {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .hero-cover h2 {
    max-width: 100%;
  }

  .hero-meta,
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .badge-card {
    justify-self: start;
  }
}

@media (max-width: 820px) {
  .tools-grid,
  .upload-gallery {
    grid-template-columns: 1fr;
  }
}
