/* oCam 中文下载站 - 公共样式 */
:root {
  --brand: #e8781a;
  --brand-hot: #ff6b1a;
  --brand-dark: #c45f0f;
  --ink: #161a22;
  --ink-soft: #3a4250;
  --muted: #6b7380;
  --line: #e4e8ef;
  --surface: #ffffff;
  --bg0: #f3f6fb;
  --bg1: #e8eef8;
  --ok: #1f8a4c;
  --warn: #b45309;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(22, 26, 34, 0.08);
  /* 不依赖 Google Fonts，国内打开更快 */
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --display: "Segoe UI Variable", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1120px;
  --float-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #ffe8d2 0%, transparent 55%),
    radial-gradient(900px 420px at 90% 0%, #d9e6ff 0%, transparent 50%),
    linear-gradient(180deg, var(--bg0), #eef2f7 40%, var(--bg1));
  background-attachment: fixed;
  line-height: 1.7;
  padding-bottom: calc(var(--float-h) + 24px);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand); }
ul { padding-left: 1.2em; }
h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.25;
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(228, 232, 239, 0.9);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  font-family: var(--display);
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.brand span { white-space: nowrap; }
.brand em {
  font-style: normal;
  color: var(--brand);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
  justify-content: flex-end;
}
.nav a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
}
.nav a:hover,
.nav a.active { color: var(--brand-dark); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-family: inherit;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--brand-hot), var(--brand-dark));
  box-shadow: 0 10px 24px rgba(232, 120, 26, 0.35);
}
.btn-primary:hover {
  color: #fff !important;
  box-shadow: 0 14px 28px rgba(232, 120, 26, 0.45);
  transform: translateY(-1px);
}
.btn-ghost {
  background: #fff;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark) !important; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.05rem; }

/* Hero */
.hero {
  padding: 48px 0 28px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-dark);
  background: rgba(232, 120, 26, 0.1);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero h1 { margin-bottom: 12px; }
.hero-lead {
  font-size: 1.08rem;
  max-width: 36em;
  margin-bottom: 22px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.92rem;
  color: var(--muted);
}
.meta-row strong { color: var(--ink); font-weight: 700; }
.dl-stats {
  font-variant-numeric: tabular-nums;
}
.dl-stats .num { color: var(--brand-dark); font-weight: 800; }

.hero-visual {
  position: relative;
  animation: rise 0.8s ease both;
}
.hero-visual img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.7);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 18% -8% -8% 18%;
  background: linear-gradient(135deg, rgba(232,120,26,.25), rgba(80,120,220,.18));
  filter: blur(28px);
  z-index: -1;
  border-radius: 40%;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeup {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.section {
  padding: 36px 0;
  animation: fadeup .6s ease both;
}
.section-head {
  margin-bottom: 20px;
}
.section-head p { max-width: 46em; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 4px 18px rgba(22, 26, 34, 0.03);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-list li {
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  transition: transform .2s ease, border-color .2s ease;
}
.feature-list li:hover {
  transform: translateY(-3px);
  border-color: rgba(232,120,26,0.4);
}
.feature-list h3 { margin-bottom: 8px; }
.feature-list p { margin: 0; font-size: 0.95rem; }

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.shot-grid figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.shot-grid img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.shot-grid figcaption {
  padding: 10px 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.steps li {
  position: relative;
  padding: 16px 16px 16px 64px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-hot), var(--brand-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.article {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.article h2 { margin-top: 1.4em; }
.article h2:first-child { margin-top: 0; }
.article li { margin-bottom: 0.45em; color: var(--ink-soft); }
.tip {
  background: #fff7ed;
  border-left: 4px solid var(--brand);
  padding: 14px 16px;
  border-radius: 0 10px 10px 0;
  margin: 18px 0;
  color: var(--ink-soft);
}

.related {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.related a {
  display: block;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-weight: 600;
  transition: border-color .18s ease, transform .18s ease;
}
.related a:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}
.related a span {
  display: block;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 4px;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 18px 0 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }

.cta-band {
  margin: 24px 0;
  padding: 28px;
  border-radius: 16px;
  background: linear-gradient(120deg, #1d2430, #2a3344);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: rgba(255,255,255,0.78); margin: 0; }

/* Footer */
.site-footer {
  margin-top: 40px;
  padding: 36px 0 28px;
  background: #151922;
  color: rgba(255,255,255,0.78);
}
.site-footer a { color: #ffd2a8; }
.site-footer a:hover { color: #fff; }
.footer-disclaimer {
  background: linear-gradient(90deg, rgba(232,120,26,0.22), rgba(232,120,26,0.08));
  border: 1px solid rgba(232,120,26,0.45);
  color: #ffe0c0;
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
  text-align: center;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 22px;
}
.footer-grid h3 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-grid li { margin-bottom: 6px; }
.footer-grid p { color: rgba(255,255,255,0.65); font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
}

/* Floating download bar */
.float-dl {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  transform: translateY(110%);
  transition: transform .28s ease;
  background: rgba(21, 25, 34, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
}
.float-dl.show { transform: translateY(0); }
.float-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--float-h);
}
.float-copy {
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
}
.float-copy strong {
  color: #fff;
  font-size: 1.05rem;
}
.float-copy .sub {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  margin-top: 2px;
}
.float-dl .btn-primary {
  white-space: nowrap;
  min-width: 160px;
}

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}
th { background: #f7f9fc; }

@media (max-width: 900px) {
  .hero-grid,
  .feature-list,
  .shot-grid,
  .footer-grid,
  .related { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 18px;
    flex-direction: column;
    align-items: stretch;
  }
  .nav.open { display: flex; }
  .header-inner { position: relative; }
  .float-copy .sub { display: none; }
  .hero { padding-top: 28px; }
}
