/* DeepView NEXT · changelog 独立样式
   与营销页 styles.css 解耦，但复用同一套 CSS 变量值
   @source styles.css:4-35 */

:root {
    --bg-primary: hsl(30, 25%, 98%);
    --bg-secondary: hsl(0, 0%, 100%);
    --bg-card: rgba(255, 255, 255, 0.75);
    --color-mint: hsl(165, 25%, 42%);
    --color-violet: hsl(38, 35%, 52%);
    --color-amber: hsl(30, 65%, 48%);
    --color-gray: hsl(215, 12%, 55%);
    --text-primary: hsl(215, 25%, 18%);
    --text-secondary: hsl(215, 15%, 38%);
    --text-muted: hsl(215, 12%, 58%);
    --border-soft: rgba(188, 156, 112, 0.15);
    --border-bright: rgba(188, 156, 112, 0.35);
    --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; }
body {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ---- 顶部导航（复用营销页结构，全宽背景 + 内层限宽） ---- */
.cl-navbar {
    position: fixed; top: 0; left: 0; width: 100%; height: 72px; z-index: 1000;
    background: rgba(251, 252, 255, 0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(188, 156, 112, 0.1);
}
.cl-nav-container {
    max-width: 1200px; height: 100%; margin: 0 auto; padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between;
}
.cl-navbar a { text-decoration: none; }
.cl-logo {
    display: flex; align-items: center; gap: 0.6rem; color: var(--text-primary);
    font-family: var(--font-title); font-weight: 700; font-size: 1.25rem;
}
.cl-logo img { width: 28px; height: 28px; object-fit: contain; }
.cl-logo .hl { color: var(--color-mint); }
.cl-nav-back {
    color: var(--text-secondary); font-size: 0.95rem; font-weight: 500;
    transition: color 0.2s;
}
.cl-nav-back:hover { color: var(--color-violet); }

/* ---- 顶部下载区 ---- */
.cl-hero {
    padding-top: 11rem; padding-bottom: 4rem; text-align: center;
}
.cl-hero h1 {
    font-family: var(--font-title); font-weight: 700; font-size: 2rem;
    color: var(--text-primary); margin-bottom: 0.5rem; letter-spacing: -0.02em;
}
.cl-hero .cl-version-line {
    font-size: 1.05rem; color: var(--text-muted); margin-bottom: 2rem;
}
.cl-hero .cl-version-line strong {
    color: var(--color-mint); font-family: var(--font-title); font-weight: 700;
}
.cl-download-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--color-mint); color: #fff; border: none;
    padding: 0.85rem 2.2rem; border-radius: 8px; font-size: 1.05rem;
    font-family: var(--font-sans); font-weight: 600; text-decoration: none;
    transition: background 0.2s;
}
.cl-download-btn:hover { background: hsl(165, 30%, 36%); }
.cl-download-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.cl-download-wrap {
    display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}
.cl-qr { text-align: center; }
.cl-qr img {
    width: 140px; height: 140px; border-radius: 10px; padding: 6px;
    background: var(--bg-secondary); border: 1px solid var(--border-soft);
}
.cl-qr-hint { margin-top: 0.5rem; font-size: 0.8rem; color: var(--text-muted); }
.cl-hero .cl-hint { margin-top: 0.75rem; font-size: 0.85rem; color: var(--text-muted); }

/* ---- 版本时间线列表 ---- */
.cl-timeline {
    max-width: 760px; margin: 0 auto; padding: 2rem 1.5rem 6rem;
    position: relative;
}
.cl-timeline::before {
    content: ''; position: absolute; left: 2rem; top: 0; bottom: 0;
    width: 2px; background: var(--border-soft);
}
.cl-version {
    position: relative; padding-left: 3.5rem; margin-bottom: 3rem;
}
.cl-version::before {
    content: ''; position: absolute; left: 1.65rem; top: 0.5rem;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--color-mint); border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 2px var(--border-bright);
}
.cl-version:last-child { margin-bottom: 0; }
.cl-version-header {
    display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.cl-version-header .ver {
    font-family: var(--font-title); font-weight: 700; font-size: 1.25rem;
    color: var(--text-primary);
}
.cl-version-header time {
    font-size: 0.85rem; color: var(--text-muted);
}

/* ---- 单条更新 ---- */
.cl-item {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 0 0 1.25rem; line-height: 1.5;
}
.cl-item:last-child { padding-bottom: 0; }
.cl-item .cl-tag {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.15rem 0.6rem; border-radius: 6px; font-size: 0.75rem;
    font-weight: 600; white-space: nowrap; flex-shrink: 0;
}
.cl-item .cl-tag svg { width: 14px; height: 14px; flex-shrink: 0; }
.cl-item .cl-text {
    color: var(--text-secondary); font-size: 0.98rem;
}

/* 三类标签配色 */
.cl-tag.new    { background: rgba(80, 134, 119, 0.12);  color: var(--color-mint); }
.cl-tag.fix    { background: rgba(188, 156, 112, 0.12); color: var(--color-violet); }
.cl-tag.polish { background: rgba(215, 158, 60, 0.12); color: var(--color-amber); }

/* ---- 降级兜底块 ---- */
.cl-fallback {
    max-width: 480px; margin: 8rem auto; text-align: center;
}
.cl-fallback p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1rem; }

/* ---- 响应式 ---- */
@media (max-width: 768px) {
    .cl-timeline { padding: 2rem 1rem 4rem; }
    .cl-timeline::before { left: 1.5rem; }
    .cl-version { padding-left: 2.5rem; }
    .cl-version::before { left: 1.15rem; }
    .cl-item { flex-direction: column; gap: 0.4rem; }
    .cl-download-btn { width: 100%; justify-content: center; }
}
