/* 圆方智谷 · 活动页
   沿用企业端官网的规范：暖橙只做图形和大字，橙底上的字一律墨黑，暖白大面积衬底。 */
:root {
  --orange: #ff5a1f;
  --orange-bright: #ff7a3d;
  --orange-deep: #e8430d;
  --ink: #0c0e0c;
  --muted: #4a4d4a;
  --muted-2: #8a8d89;
  --line: #e7e4de;
  --white: #fff;
  --cream: #fffaf6;
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --hd-h: 86px;
  --font: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background: #fdd5bd;
  min-height: 100vh;
}

/* 全站那块毛玻璃：底下几团橙色光 + 上面斜向高光和细磨砂 */
body::before {
  content: ""; position: fixed; z-index: -2; inset: -8%; pointer-events: none;
  background:
    radial-gradient(40% 44% at 10% 6%, rgba(255,255,255,.96), transparent 72%),
    radial-gradient(44% 50% at 92% 20%, rgba(255,116,56,.5), transparent 72%),
    radial-gradient(52% 54% at 84% 92%, rgba(255,132,104,.62), transparent 72%),
    radial-gradient(46% 50% at 6% 96%, rgba(255,150,86,.52), transparent 72%),
    radial-gradient(42% 42% at 46% 50%, rgba(255,222,198,.85), transparent 76%),
    linear-gradient(135deg, #fff3e9 0%, #fddcc6 44%, #fbb797 100%);
  animation: drift 28s ease-in-out infinite alternate;
}
body::after {
  content: ""; position: fixed; z-index: -1; inset: 0; pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,0) 26%, rgba(255,255,255,0) 74%, rgba(255,255,255,.2) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light; opacity: .7;
}
@keyframes drift { from { transform: scale(1) rotate(0deg); } to { transform: scale(1.08) rotate(2.5deg); } }

a { color: inherit; text-decoration: none; }
img { display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 顶栏 ---------- */
.hd { position: sticky; top: 0; z-index: 50; height: var(--hd-h); padding: 12px var(--gutter) 0; pointer-events: none; }
.hd__in {
  pointer-events: auto; position: relative;
  max-width: calc(var(--max) - 2 * var(--gutter));
  height: 74px; padding: 0 16px 0 24px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  border-radius: 22px;
  background: linear-gradient(120deg, rgba(255,255,255,.76), rgba(255,240,230,.58));
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  backdrop-filter: blur(22px) saturate(1.8);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 32px -18px rgba(150,48,4,.45);
  transition: background .25s, box-shadow .25s;
}
.hd.is-scrolled .hd__in {
  background: linear-gradient(120deg, rgba(255,255,255,.9), rgba(255,245,238,.82));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 14px 34px -18px rgba(60,30,10,.35);
}
.brand { display: flex; align-items: center; justify-self: start; }
.brand svg { height: 40px; width: auto; }
.nav { display: flex; gap: 2px; justify-self: center; }
.nav a { padding: 9px 14px; font-size: 15px; font-weight: 500; color: #3a3d3a; border-radius: 999px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--ink); background: rgba(255,255,255,.75); }
.nav a[aria-current] { color: var(--ink); font-weight: 600; }
.hd__right { justify-self: end; display: flex; align-items: center; gap: 12px; }
.switch { display: inline-flex; padding: 3px; border: 1px solid rgba(12,14,12,.1); border-radius: 999px; background: rgba(255,255,255,.6); font-size: 13px; font-weight: 600; line-height: 1; }
.switch a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; color: var(--muted); white-space: nowrap; }
.switch a:hover { color: var(--ink); }
.switch a[aria-current] { background: var(--ink); color: var(--white); }
.switch i { width: 7px; height: 7px; flex: none; border: 1.6px solid currentColor; }
.switch .s-biz i { transform: rotate(45deg); border-radius: 1px; }
.switch .s-dev i { border-radius: 50%; }

/* ---------- 页头 ---------- */
.page { padding: clamp(28px, 5vh, 56px) 0 clamp(60px, 9vh, 110px); margin-top: calc(-1 * var(--hd-h)); padding-top: calc(var(--hd-h) + clamp(28px, 5vh, 56px)); }
.page__hd { max-width: 720px; margin-bottom: clamp(28px, 4vh, 44px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: #6b4030; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,90,31,.16); }
.page__hd h1 { margin: 0; font-size: clamp(38px, 6vw, 64px); line-height: 1.06; letter-spacing: -.02em; font-weight: 600; }
.page__hd h1 .dot { color: var(--orange); }
.page__sub { margin: 16px 0 0; font-size: clamp(15px, 1.5vw, 17px); color: #4a3a32; max-width: 34em; }

/* ---------- 数据条 ---------- */
.stats { display: flex; flex-wrap: wrap; gap: clamp(18px, 4vw, 48px); margin: 0 0 clamp(26px, 4vh, 40px); padding: 18px 24px; border-radius: 18px;
  background: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.8);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 #fff, 0 10px 26px -20px rgba(140,42,0,.5); }
.stat { display: flex; align-items: baseline; gap: 8px; }
.stat b { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: clamp(16px, 2.2vw, 26px); }
/* 只有一张卡片时不要缩在左边，居中并给足宽度 */
.grid:has(> .card:only-child) { grid-template-columns: minmax(0, 640px); justify-content: center; }

.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.92), rgba(255,248,242,.82));
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: inset 0 1px 0 #fff, 0 18px 40px -28px rgba(120,40,0,.55);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s;
}
.card:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 #fff, 0 26px 50px -28px rgba(120,40,0,.6); }
.card:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #f3e3d8; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card:hover .card__media img { transform: scale(1.035); }

.card__badge {
  position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px 5px 9px; border-radius: 999px;
  background: rgba(255,255,255,.86); backdrop-filter: blur(8px);
  font-size: 12px; font-weight: 600; color: var(--ink);
  box-shadow: 0 4px 12px -6px rgba(80,30,0,.5);
}
.card__badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.card__badge.is-past i { background: var(--muted-2); }

.card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 3px 9px; border-radius: 999px; background: rgba(12,14,12,.055); font-size: 12px; color: #43463f; white-space: nowrap; }
.tag--hot { background: rgba(255,90,31,.12); color: var(--orange-deep); }

.card h2 { margin: 0; font-size: clamp(19px, 2vw, 22px); line-height: 1.35; letter-spacing: -.01em; font-weight: 600; }
.card__excerpt { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 14px; border-top: 1px solid rgba(12,14,12,.07); font-size: 13px; color: var(--muted-2); }
.card__meta b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.card__go { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink); }
.card__go .arr { transition: transform .18s; }
.card:hover .card__go .arr { transform: translateX(3px); }

/* 骨架 */
.skel { height: 380px; border-radius: 22px; background: linear-gradient(100deg, rgba(255,255,255,.35) 30%, rgba(255,255,255,.7) 50%, rgba(255,255,255,.35) 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.empty { padding: 60px 0; text-align: center; color: var(--muted); }

.hint { margin: clamp(28px, 4vh, 44px) 0 0; text-align: center; font-size: 14px; color: #6b5a50; }
.hint a { color: var(--ink); font-weight: 600; border-bottom: 1px solid rgba(12,14,12,.25); padding-bottom: 1px; transition: border-color .15s, color .15s; }
.hint a:hover { color: var(--orange-deep); border-bottom-color: var(--orange-deep); }

/* ---------- 页脚 ---------- */
.ft { padding: 26px 0 40px; }
.ft__in { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; font-size: 13px; color: #6b5a50; }
.ft nav { display: flex; gap: 18px; }
.ft nav a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .nav { display: none; }
  .hd__in { grid-template-columns: 1fr auto; }
  .brand svg { height: 34px; }
  .stats { gap: 18px; padding: 14px 18px; }
  .stat b { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .card, .card__media img, .card__go .arr { transition: none; }
}
