/* ============================================================
   破天工作室服务器多功能运维管理系统 - 详情页样式
   维护说明：
   - 改颜色：改下面 :root 里的变量即可全局生效
   - 改间距/圆角：改变量或对应类的数值
   风格与官网一致：深色科技商务风 + 卡片式布局 + 圆角
   ============================================================ */
:root {
    --bg: #010d15;            /* 页面背景（深蓝黑） */
    --bg-2: #071820;          /* 次级背景 */
    --card: #10232a;          /* 卡片背景 */
    --card-hover: #16303a;    /* 卡片悬停背景 */
    --border: #1d3a45;        /* 边框 */
    --text: #f0f0f0;          /* 主文字 */
    --text-dim: #9fb6c0;      /* 次要文字 */
    --accent: #1e90ff;        /* 主强调色（蓝） */
    --accent-2: #00d4a8;      /* 次强调色（青绿） */
    --warn: #ffb347;          /* 版本徽章橙 */
    --radius: 14px;           /* 卡片圆角 */
    --radius-sm: 8px;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 10px 34px rgba(30, 144, 255, 0.18);
    --max-w: 1080px;          /* 内容最大宽度 */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
    line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }

/* ---------- 顶部导航（与官网一致） ---------- */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(2, 11, 12, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
}
.navbar-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 56px;
}
.navbar a {
    color: var(--text);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    transition: background .2s, color .2s;
    font-size: 15px;
}
.navbar a:hover { background: var(--accent); color: #fff; }
.navbar .brand { font-weight: 700; font-size: 16px; color: var(--accent); }

/* ---------- Hero 区：软件图片 + 最新版本 + 下载 + 视频 ---------- */
.hero {
    padding: 130px 20px 60px;
    background:
        radial-gradient(1200px 500px at 80% -10%, rgba(30, 144, 255, 0.18), transparent 60%),
        radial-gradient(900px 400px at 10% 110%, rgba(0, 212, 168, 0.10), transparent 60%),
        var(--bg);
}
.hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: center;
}
.hero-info h1 {
    font-size: 34px;
    line-height: 1.35;
    margin-bottom: 14px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent);
}
.hero-badges { margin-bottom: 16px; }
.badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 6px;
}
.badge-beta {
    background: linear-gradient(90deg, #ff6a00, #ffb347);
    color: #1a0e00;
}
.badge-ver { background: rgba(30, 144, 255, 0.15); color: var(--accent); border: 1px solid rgba(30,144,255,.4); }
.hero-desc { color: var(--text-dim); font-size: 15px; margin-bottom: 24px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, background .2s, opacity .2s;
    border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-download {
    background: linear-gradient(90deg, var(--accent), #3aa8ff);
    color: #fff;
    box-shadow: 0 4px 18px rgba(30, 144, 255, 0.35);
}
.btn-download:hover { box-shadow: var(--shadow-hover); }
.btn-video {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-video:hover { background: rgba(255, 255, 255, 0.12); }

/* Hero 右侧：软件主图（自适应缩放） */
.hero-shot {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    background: var(--card);
}
.hero-shot img { width: 100%; height: auto; display: block; }

/* 图片占位（图片缺失时显示） */
.shot-placeholder {
    display: none;
    min-height: 240px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    color: var(--text-dim);
    font-size: 14px;
    padding: 30px;
    text-align: center;
}
.shot-placeholder b { color: var(--accent); font-size: 15px; }

/* ---------- 更新历史 ---------- */
.versions {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 40px 20px 80px;
}
.section-title {
    font-size: 30px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}
.section-sub { color: var(--text-dim); font-size: 14px; margin-bottom: 30px; }

.version-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    margin-bottom: 22px;
    transition: box-shadow .25s, transform .25s, background .25s;
}
.version-card:hover {
    background: var(--card-hover);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

/* 版本头部：版本号 + 标签 + 日期 */
.version-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.version-head h3 { font-size: 24px; color: var(--accent); }
.tag {
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}
.tag-current {
    background: linear-gradient(90deg, #ff6a00, #ffb347);
    color: #1a0e00;
}
.tag-stable { background: rgba(0, 212, 168, 0.15); color: var(--accent-2); }
.tag-old { background: rgba(255, 255, 255, 0.07); color: var(--text-dim); }
.version-date { margin-left: auto; color: var(--text-dim); font-size: 14px; }

.version-body {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
    align-items: start;
}
/* 每版截图：自适应缩放 */
.version-shot { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); background: var(--bg-2); }
.version-shot img { width: 100%; height: auto; display: block; }

.changelog { padding-top: 2px; }
.changelog li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 15px;
}
.changelog li::before {
    content: "▸";
    position: absolute;
    left: 2px;
    color: var(--accent);
}
.changelog li span.kind {
    display: inline-block;
    font-size: 12px;
    padding: 0 8px;
    border-radius: 4px;
    margin-right: 6px;
    vertical-align: 1px;
}
.kind-new { background: rgba(30, 144, 255, .18); color: #7cc4ff; }
.kind-fix { background: rgba(255, 179, 71, .18); color: #ffc57a; }

/* 版本底部：下载该历史版本 */
.version-foot {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
}
.btn-sm { padding: 9px 22px; font-size: 14px; }

/* ---------- 页脚（与官网一致） ---------- */
footer {
    border-top: 1px solid var(--border);
    background: var(--bg-2);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-dim);
}
footer a { color: #7FFFD4; }
footer a:hover { color: #FFD700; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-bottom: 14px; }
.footer-copy { font-size: 13px; }

/* ---------- 响应式：手机/窄屏 ---------- */
@media (max-width: 860px) {
    .hero-inner { grid-template-columns: 1fr; gap: 28px; }
    .hero { padding-top: 110px; }
    .hero-info h1 { font-size: 26px; }
    .version-body { grid-template-columns: 1fr; }
    .section-title { font-size: 24px; }
}
