:root {
    --bg: #f5f6f8;
    --card: #ffffff;
    --text: #24292f;
    --muted: #6b7280;
    --line: #e5e7eb;
    --brand: #2563eb;
    --brand-hover: #1d4ed8;
    --bt: #7c3aed;
    --net: #059669;
    --link: #ea580c;
    --radius: 12px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* 顶部 */
header {
    background: var(--card);
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
}
header .wrap { display: flex; align-items: center; gap: 14px; }
.logo {
    width: 42px; height: 42px; border-radius: 10px;
    background: var(--brand); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 700;
}
.site-text h1 { font-size: 20px; font-weight: 700; letter-spacing: .3px; }
.site-text p { font-size: 13px; color: var(--muted); }

/* 主体 */
main { padding: 32px 0 48px; }
.page-title {
    font-size: 18px; font-weight: 600; margin-bottom: 18px;
    display: flex; align-items: center; gap: 8px;
}
.page-title .back {
    font-size: 13px; color: var(--brand); font-weight: 500;
}

/* 首页板块卡片 */
.boards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.board-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    display: flex; align-items: center; gap: 16px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.board-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
    border-color: var(--brand);
}
.board-badge {
    width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 700; color: #fff;
}
.board-info h3 { font-size: 16px; font-weight: 600; }
.board-info p { font-size: 13px; color: var(--muted); }
.board-info .count { color: var(--brand); font-weight: 600; }

/* 列表页 */
.list {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.list-item {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}
.list-item:last-child { border-bottom: none; }
.list-item .ver { font-size: 15px; font-weight: 600; flex: 1 1 220px; }
.list-item .ver .idx { color: var(--muted); font-weight: 500; margin-right: 8px; font-size: 13px; }
.btns { display: flex; gap: 10px; flex-shrink: 0; }
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 16px; border-radius: 8px;
    font-size: 13px; font-weight: 600; color: #fff;
    background: #2563eb;              /* 兜底色：任何情况下都不会透明 */
    transition: opacity .15s ease, background-color .15s ease;
}
.btn:hover { opacity: .85; }
.btn.bt     { background: #7c3aed; }  /* 紫：BT */
.btn.net    { background: #059669; }  /* 绿：网盘 */
.btn.link   { background: #ea580c; }  /* 橙：链接，不依赖 CSS 变量 */
.btn.disabled { background: #cbd5e1; color: #64748b; cursor: not-allowed; }
.btn.disabled:hover { opacity: 1; }

.empty {
    padding: 40px; text-align: center; color: var(--muted); font-size: 14px;
}

/* 页脚 */
footer {
    border-top: 1px solid var(--line);
    padding: 24px 0; text-align: center;
    color: var(--muted); font-size: 12px;
}
footer p { margin: 4px 0; }

@media (max-width: 600px) {
    .boards { grid-template-columns: 1fr; }
    .list-item { flex-direction: column; align-items: flex-start; }
    .btns { width: 100%; }
    .btn { flex: 1; justify-content: center; }
}
