:root {
    /* 微软 Fluent 风格：浅灰底 + 白卡 + 8px 圆角 + 极轻阴影 */
    --bg: #f5f5f5;
    --bg-soft: #ebebeb;
    --card: #ffffff;
    --text: #1b1b1b;
    --text-soft: #616161;
    --border: #e2e2e2;
    --primary: #0f6cbd;
    --primary-dark: #115ea3;
    --primary-soft: rgba(15, 108, 189, .08);
    --success: #0e7a3d;
    --danger: #c50f1f;
    --grad: linear-gradient(135deg, #0f6cbd 0%, #4f6bed 100%);
    --grad-warm: linear-gradient(135deg, #ff8c00, #f7630c);
    --grad-green: linear-gradient(135deg, #0e7a3d, #10893e);
    --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 2px 8px rgba(0, 0, 0, .05);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, .08), 0 8px 20px rgba(0, 0, 0, .07);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, .1), 0 16px 40px rgba(0, 0, 0, .1);
    --ring: 0 0 0 2px rgba(15, 108, 189, .35);
    --radius: 8px;
    --radius-sm: 6px;
    --radius-lg: 12px;
}

html[data-theme="dark"] {
    --bg: #202020;
    --bg-soft: #2b2b2b;
    --card: #2b2b2b;
    --text: #f3f3f3;
    --text-soft: #adadad;
    --border: #3d3d3d;
    --primary: #479ef5;
    --primary-dark: #62abf5;
    --primary-soft: rgba(71, 158, 245, .14);
    --success: #6ccb8f;
    --danger: #ff6b6b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 2px 8px rgba(0, 0, 0, .25);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, .35), 0 8px 20px rgba(0, 0, 0, .3);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, .4), 0 16px 40px rgba(0, 0, 0, .35);
    --ring: 0 0 0 2px rgba(71, 158, 245, .4);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", "Segoe UI Web (Chinese Simplified)", -apple-system, BlinkMacSystemFont,
                 "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--text-soft); }
.main { padding: 26px 18px 60px; }

/* 全局滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--text-soft); }

::selection { background: var(--primary); color: #fff; }

/* 入场动画 */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { animation: fadeUp .5s cubic-bezier(.22,.68,.36,1) both; }
@media (prefers-reduced-motion: reduce) {
    .reveal { animation: none; }
    * { transition-duration: .01ms !important; }
}

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 1px 0 rgba(20, 30, 60, .03);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: 0; }
.brand img { height: 32px; width: 32px; border-radius: 6px; object-fit: cover; }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 6px; font-size: 14px; color: #fff; font-weight: 700;
    background: var(--grad);
}
.brand-name { white-space: nowrap; }

/* 微软式搜索框：单体圆角矩形，聚焦时蓝色描边 */
.search-box {
    flex: 1; display: flex; align-items: center; max-width: 520px; height: 40px;
    background: var(--card); border: 1px solid var(--border); border-radius: 4px;
    overflow: hidden; transition: border-color .12s, box-shadow .12s;
}
.search-box:focus-within { border-color: var(--primary); box-shadow: var(--ring); }
.search-box input {
    flex: 1; height: 100%; padding: 0 12px; font-size: 14px;
    border: 0; background: transparent; color: var(--text); outline: none;
}
.search-box input::placeholder { color: var(--text-soft); }
.search-box button {
    height: 100%; padding: 0 14px; border: 0; cursor: pointer;
    background: transparent; color: var(--text-soft); font-size: 14px; font-weight: 600;
    transition: background .12s, color .12s;
}
.search-box button:hover { background: var(--bg-soft); color: var(--primary); }

.header-nav { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.header-nav > a {
    padding: 6px 12px; border-radius: 4px; font-weight: 500;
    transition: background .12s, color .12s;
}
.header-nav > a:hover { background: var(--bg-soft); color: var(--text); }

.lang-switch { position: relative; }
.lang-btn {
    border: 1px solid var(--border); background: var(--bg-soft); color: var(--text);
    border-radius: 9px; height: 32px; padding: 0 10px; cursor: pointer; font-size: 13px;
}
.lang-menu {
    display: none; position: absolute; right: 0; top: 38px; z-index: 60; min-width: 148px;
    background: var(--card); border: 1px solid var(--border); border-radius: 12px;
    box-shadow: var(--shadow); padding: 6px;
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu a {
    display: block; padding: 7px 10px; border-radius: 8px; font-size: 13px; white-space: nowrap;
}
.lang-menu a:hover { background: var(--bg-soft); }
.lang-menu a.active { color: var(--primary); font-weight: 600; background: var(--primary-soft); }
.header-nav a:hover { color: var(--primary); }


.notice-bar {
    background: linear-gradient(90deg, rgba(79,124,255,.12), rgba(168,85,247,.12));
    border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text);
    padding: 9px 0;
}

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
    color: var(--text); padding: 52px 0 44px;
    border-bottom: 1px solid var(--border);
}
.hero::before { display: none; }
.hero-glow { display: none; }
.hero-wave { display: none; }
.hero-inner { text-align: center; position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 7px; margin-bottom: 16px;
    padding: 4px 12px; border-radius: 4px; font-size: 12.5px; font-weight: 600;
    background: var(--primary-soft); color: var(--primary); border: 1px solid transparent;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.hero h1 {
    margin: 0 0 10px; font-size: clamp(24px, 4vw, 36px); font-weight: 600;
    letter-spacing: -.2px; line-height: 1.25; color: var(--text);
}
.hero-slogan { margin: 0 auto 28px; max-width: 640px; font-size: 15px; color: var(--text-soft); line-height: 1.7; }
.hero-stats {
    display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center;
    padding: 10px; border-radius: var(--radius);
    background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.hero-stat {
    min-width: 112px; padding: 10px 20px; border-radius: var(--radius-sm);
    background: var(--bg-soft);
}
.hero-stat b { display: block; font-size: 22px; font-weight: 600; line-height: 1.25; color: var(--text); }
.hero-stat span { font-size: 12px; color: var(--text-soft); }

@media (max-width: 720px) {
    .hero { padding: 36px 0 32px; }
    .hero-stat { min-width: 92px; padding: 8px 14px; }
    .hero-stat b { font-size: 19px; }
}

/* ---------- Tabs ---------- */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.cat-tab {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 4px; font-size: 13.5px; font-weight: 500;
    background: var(--card); border: 1px solid var(--border); color: var(--text-soft);
    transition: background .12s, color .12s, border-color .12s;
}
.cat-tab .ico { font-size: 14px; line-height: 1; }
.cat-tab:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.cat-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.result-bar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 18px; font-size: 14px; color: var(--text-soft);
}

/* ---------- Cards ---------- */
.grid {
    display: grid; gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
}
.card {
    position: relative; overflow: hidden;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 14px; box-shadow: none;
    transition: transform .14s ease, box-shadow .14s ease;
    display: flex; flex-direction: column;
}
.card::before { display: none; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.app-icon {
    width: 48px; height: 48px; border-radius: 6px; object-fit: cover; background: var(--bg-soft);
    display: inline-flex; align-items: center; justify-content: center; font-size: 26px;
}
.app-icon.big {
    width: 88px; height: 88px; font-size: 46px; border-radius: 12px; flex: 0 0 auto;
}
.icon-fallback { background: var(--grad); color: #fff; font-size: 22px; font-weight: 700; }
/* 批量数据是 emoji 图标：统一浅灰底 + 居中，视觉和真图标一致 */
.app-icon.icon-emoji { background: var(--bg-soft); font-size: 24px; line-height: 1; }
.app-icon.icon-emoji.big { font-size: 44px; }
.card-title {
    margin: 12px 0 4px; font-size: 14px; font-weight: 600; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.card-pub { margin: 0 0 8px; font-size: 12px; color: var(--text-soft); }
.card-desc {
    margin: 0 0 10px; font-size: 12px; color: var(--text-soft); min-height: 34px; line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.tag {
    font-size: 11px; padding: 2px 7px; border-radius: 4px;
    background: var(--bg-soft); color: var(--text-soft);
}
.tag.platform { background: var(--primary-soft); color: var(--primary); font-weight: 500; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 8px; }
.dl-count { font-size: 11.5px; color: var(--text-soft); }
.badge-hot {
    font-size: 11px; padding: 2px 7px; border-radius: 4px; color: #fff; font-weight: 600;
    background: var(--grad-warm);
}

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 16px; border-radius: 4px; font-size: 14px; font-weight: 600;
    border: 1px solid var(--border); background: var(--bg-soft); color: var(--text); cursor: pointer;
    transition: background .12s, color .12s, border-color .12s;
}
.btn:hover { border-color: var(--primary); color: var(--primary); background: var(--card); }
.btn-primary { background: var(--primary); border: 1px solid var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-lg { padding: 10px 24px; font-size: 15px; }
.btn-sm { padding: 5px 12px; font-size: 12.5px; }
.btn-disabled { opacity: .55; pointer-events: none; }

/* ---------- Detail ---------- */
.breadcrumb { font-size: 13px; color: var(--text-soft); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text); }

.detail-head {
    position: relative; overflow: hidden;
    display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.detail-head::after { display: none; }
.detail-info { min-width: 0; flex: 1; }
.detail-info h1 { margin: 0 0 8px; font-size: 26px; font-weight: 600; letter-spacing: -.2px; line-height: 1.3; }
.detail-cta { flex: 0 0 auto; margin-left: auto; text-align: center; }
.detail-cta .btn { min-width: 140px; }
.detail-cta-meta { margin-top: 8px; font-size: 12px; }
.detail-desc { margin: 0 0 14px; color: var(--text-soft); line-height: 1.7; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.sub-url { margin-top: 12px; font-size: 13px; color: var(--text-soft); }
.sub-url a { color: var(--primary); word-break: break-all; }
.sub-url a:hover { text-decoration: underline; }

/* ---------- 醒目下载按钮 ---------- */
.download-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; }
.btn-download {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 11px 24px; border-radius: 4px; color: #fff; font-weight: 600;
    background: #107c10; border: 1px solid #107c10;
    transition: background .12s, border-color .12s;
}
.btn-download:hover { color: #fff; background: #0e6a0e; border-color: #0e6a0e; }
.btn-download:active { transform: translateY(0); }
.btn-download .dl-ico {
    width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .22); font-size: 17px; font-weight: 700;
}
.btn-download .dl-body { display: flex; flex-direction: column; line-height: 1.3; text-align: left; }
.btn-download .dl-title { font-size: 17px; font-weight: 700; }
.btn-download .dl-meta { font-size: 12px; font-weight: 500; opacity: .88; margin-top: 2px; }

.btn-download.ghost {
    background: var(--card); color: var(--text);
    border: 1px solid var(--border); box-shadow: var(--shadow); font-weight: 600;
}
.btn-download.ghost:hover {
    color: var(--primary); border-color: var(--primary);
    box-shadow: 0 10px 24px rgba(59, 109, 251, .16);
}
.btn-download.ghost .dl-ico { background: var(--primary-soft); color: var(--primary); }

.btn-download.sm { padding: 8px 16px; border-radius: 10px; box-shadow: 0 4px 12px rgba(22, 163, 74, .22); }
.btn-download.sm .dl-ico { width: 24px; height: 24px; font-size: 14px; }
.btn-download.sm .dl-title { font-size: 14px; }

@media (max-width: 560px) {
    .download-cta .btn-download { width: 100%; justify-content: flex-start; }
}

.panel {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px; box-shadow: var(--shadow); margin-bottom: 14px;
}
.panel-title {
    margin: 0 0 16px; font-size: 17px; font-weight: 700;
    display: flex; align-items: center; gap: 9px;
}
.panel-title::before {
    content: ''; width: 4px; height: 17px; border-radius: 3px; background: var(--grad);
}

.link-list { display: flex; flex-direction: column; gap: 12px; }
.link-item {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    border: 1px solid var(--border); border-radius: 14px; padding: 15px 18px;
    background: var(--bg-soft); transition: border-color .18s, box-shadow .18s, transform .18s;
}
.link-item::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad);
}
.link-item:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.link-title { font-weight: 700; margin-bottom: 4px; }
.link-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; }
.link-note { font-size: 12px; color: var(--text-soft); margin-top: 6px; }

.rich-text { color: var(--text); font-size: 14.5px; }
.delay-box { text-align: center; padding: 40px 20px; }
.delay-box h2 { margin: 14px 0 6px; }
.dl-name { font-weight: 600; }



.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.page-link {
    min-width: 34px; text-align: center; padding: 6px 11px; border-radius: 4px; font-size: 14px;
    border: 1px solid var(--border); background: var(--card); color: var(--text-soft);
    transition: background .12s, color .12s, border-color .12s;
}
.page-link:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }
.page-link.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }
.page-dots { padding: 6px 4px; color: var(--text-soft); }

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--border); background: var(--card);
    padding: 38px 0 26px; margin-top: 20px;
}
.footer-inner {
    display: grid; gap: 30px;
    grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(140px, 1fr));
}
.footer-brand .brand { margin-bottom: 10px; }
.footer-slogan { margin: 0 0 10px; font-size: 13px; color: var(--text-soft); line-height: 1.7; max-width: 320px; }
.footer-col h4 { margin: 0 0 12px; font-size: 14px; font-weight: 700; }
.footer-col a, .footer-col p { display: block; font-size: 13.5px; color: var(--text-soft); margin: 0 0 8px; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
    margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    font-size: 13px; color: var(--text-soft);
}
.copy, .icp { margin: 0; font-size: 13px; color: var(--text-soft); }

@media (max-width: 720px) {
    .footer-inner { grid-template-columns: 1fr; gap: 22px; }
}

/* ---------- Footer 友情链接 ---------- */
.footer-friends { margin: 14px auto 4px; max-width: 900px; }
.ff-title { font-size: 13px; color: var(--text-soft); margin-bottom: 8px; }
.ff-list { display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: flex-start; font-size: 13px; }
.ff-list a {
    padding: 3px 10px; border: 1px solid var(--border); border-radius: 14px;
    color: var(--text-soft); background: var(--bg); transition: all .15s;
}
.ff-list a:hover { color: var(--primary); border-color: var(--primary); background: var(--card); }

/* ---------- 友链页 ---------- */
.friend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.friend-card {
    display: flex; align-items: center; gap: 12px; padding: 14px;
    background: var(--card); border: 1px solid var(--border); border-radius: 12px;
    transition: all .15s;
}
.friend-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.friend-logo {
    width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; object-fit: cover;
    background: var(--primary); color: #fff; display: flex; align-items: center;
    justify-content: center; font-weight: 700; font-size: 17px;
}
.friend-name { font-weight: 600; font-size: 14px; }
.friend-desc { font-size: 12px; color: var(--text-soft); margin-top: 2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Admin ---------- */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-side {
    width: 216px; flex: 0 0 216px; background: var(--card); border-right: 1px solid var(--border);
    padding: 18px 12px;
}
.admin-side .brand { margin-bottom: 22px; padding: 0 8px; }
.admin-menu { display: flex; flex-direction: column; gap: 4px; }
.admin-menu a {
    display: flex; align-items: center; gap: 9px;
    padding: 10px 13px; border-radius: 11px; font-size: 14px; color: var(--text-soft);
    transition: background .16s, color .16s, transform .16s;
}
.admin-menu a .ico { font-size: 15px; line-height: 1; width: 18px; text-align: center; }
.admin-menu a:hover { background: var(--bg-soft); color: var(--text); transform: translateX(2px); }
.admin-menu a.active {
    background: var(--grad); color: #fff; font-weight: 600;
    box-shadow: 0 4px 14px rgba(79, 124, 255, .28);
}
.admin-main { flex: 1; min-width: 0; background: var(--bg); }
.admin-top {
    height: 58px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 22px; background: var(--card); border-bottom: 1px solid var(--border);
}
.admin-top .who { font-size: 13px; color: var(--text-soft); }
.admin-content { padding: 22px; }

.stat-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 18px; }
.stat-card {
    position: relative; overflow: hidden;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px 20px; box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card::after {
    content: ''; position: absolute; right: -28px; top: -28px; width: 92px; height: 92px;
    border-radius: 50%; background: var(--primary-soft);
}
.stat-card .label { font-size: 13px; color: var(--text-soft); position: relative; z-index: 1; }
.stat-card .value {
    font-size: 28px; font-weight: 800; margin-top: 4px; letter-spacing: -.6px; position: relative; z-index: 1;
}

.admin-panel {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.admin-panel h3 { margin: 0 0 14px; font-size: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.panel-head h3 { margin: 0; }

table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.table th, table.table td { padding: 10px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
table.table th { color: var(--text-soft); font-weight: 600; font-size: 13px; background: var(--bg-soft); }
table.table tbody tr:hover { background: var(--bg-soft); }
.table .app-icon { width: 34px; height: 34px; font-size: 20px; border-radius: 9px; }
td.nowrap { white-space: nowrap; }

.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--text-soft); }
.input, textarea.input, select.input {
    width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px;
    background: var(--bg-soft); color: var(--text); font-size: 14px; font-family: inherit; outline: none;
}
.input:focus { border-color: var(--primary); }
textarea.input { min-height: 90px; resize: vertical; }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.form-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.help { font-size: 12px; color: var(--text-soft); margin-top: 4px; }

.alert { padding: 10px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }
.alert-success { background: rgba(22,163,74,.12); color: var(--success); }
.alert-error { background: rgba(229,72,77,.12); color: var(--danger); }

.badge { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--bg-soft); color: var(--text-soft); }
.badge-on { background: rgba(22,163,74,.14); color: var(--success); }
.badge-off { background: rgba(229,72,77,.14); color: var(--danger); }

.login-wrap { max-width: 380px; margin: 90px auto; padding: 28px; }
.login-wrap h1 { text-align: center; margin: 0 0 20px; font-size: 22px; }

.link-rows { display: flex; flex-direction: column; gap: 12px; }
.link-row { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--bg-soft); }
.link-row-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; color: var(--text-soft); }
.link-row .form-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.remove-row { border: 0; background: transparent; color: var(--danger); cursor: pointer; font-size: 13px; }

.cat-head, .cat-row {
    display: flex; gap: 10px; align-items: center;
}
.cat-head { font-size: 13px; color: var(--text-soft); padding: 0 4px 6px; }
.cat-row { padding: 8px 4px; border-bottom: 1px solid var(--border); }
.cat-row > div { flex: 1; min-width: 0; }
.cat-head > div { flex: 1; }

.chart { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 10px; }
.chart .bar { flex: 1; background: linear-gradient(180deg, #6a5cff, #3b6dfb); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.chart .bar span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--text-soft); }
.chart-x { display: flex; gap: 4px; font-size: 10px; color: var(--text-soft); margin-top: 6px; }
.chart-x div { flex: 1; text-align: center; overflow: hidden; }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .input { width: auto; min-width: 160px; }

/* ---------- 文章 / 教程 ---------- */
.page-head { margin: 26px 0 18px; }
.page-head h1 { font-size: 28px; margin: 0 0 8px; }
.page-head p { margin: 0; font-size: 14px; }
.post-toolbar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.post-search { max-width: 430px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.post-grid.small { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.post-card {
    display: flex; flex-direction: column; background: var(--card);
    border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-cover {
    width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--bg-soft);
    transition: transform .4s ease;
}
.post-card:hover .post-cover { transform: scale(1.05); }
.post-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.post-cat {
    display: inline-block; align-self: flex-start; font-size: 12px; padding: 2px 9px;
    border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 600;
}
.post-title {
    font-size: 16.5px; margin: 0; line-height: 1.5; font-weight: 700; letter-spacing: -.2px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-summary {
    margin: 0; font-size: 13.5px; color: var(--text-soft); line-height: 1.65;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-meta { font-size: 12px; color: var(--text-soft); margin-top: auto; }
.home-posts { margin-top: 48px; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.section-head h2 {
    font-size: 21px; margin: 0; font-weight: 800; letter-spacing: -.3px;
    display: flex; align-items: center; gap: 10px;
}
.section-head h2::before {
    content: ''; width: 4px; height: 19px; border-radius: 3px; background: var(--grad);
}
.more-link {
    font-size: 13px; color: var(--text-soft); padding: 5px 12px; border-radius: 999px;
    border: 1px solid var(--border); transition: all .16s;
}
.more-link:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }

/* 列表入场动画（轻微错开，不影响性能） */
.grid > .card { animation: fadeUp .42s cubic-bezier(.22,.68,.36,1) both; }
.grid > .card:nth-child(2n) { animation-delay: .04s; }
.grid > .card:nth-child(3n) { animation-delay: .08s; }
.grid > .card:nth-child(4n) { animation-delay: .12s; }

.page-head { margin: 30px 0 20px; }
.page-head h1 { margin: 0 0 6px; font-size: 28px; font-weight: 800; letter-spacing: -.4px; }

.empty-box {
    text-align: center; padding: 84px 20px; color: var(--text-soft);
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.empty-box::before { content: '🔍'; display: block; font-size: 40px; margin-bottom: 14px; opacity: .55; }
.empty-box h2 { color: var(--text); }
.empty-box .btn { margin-top: 16px; }

.article-wrap { max-width: 820px; margin: 20px auto 40px; }
.article-head { margin-bottom: 6px; }
.article-head h1 { font-size: 32px; font-weight: 800; line-height: 1.4; margin: 10px 0; letter-spacing: -.5px; }
.article-cover { margin: 18px 0 26px; }
.article-hero { width: 100%; border-radius: var(--radius-lg); display: block; box-shadow: var(--shadow-md); }
.article-content { font-size: 16px; line-height: 1.95; }
.article-content h2 {
    font-size: 21px; font-weight: 700; margin: 34px 0 14px; padding-left: 12px;
    border-left: 4px solid var(--primary); line-height: 1.5; letter-spacing: -.2px;
}
.article-content blockquote {
    margin: 0 0 16px; padding: 12px 18px; border-left: 3px solid var(--primary);
    background: var(--bg-soft); border-radius: 0 12px 12px 0; color: var(--text-soft);
}
.article-content img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 8px 0; }
.article-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.article-content h3 { font-size: 17px; margin: 22px 0 10px; }
.article-content p { margin: 0 0 14px; }
.article-content ul, .article-content ol { padding-left: 22px; margin: 0 0 16px; }
.article-content li { margin-bottom: 6px; }
.article-content code {
    background: var(--bg-soft); padding: 2px 6px; border-radius: 5px; font-size: 14px;
}
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.article-product {
    display: flex; justify-content: space-between; align-items: center; gap: 14px;
    padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-soft), var(--bg-soft));
    margin: 26px 0; box-shadow: var(--shadow);
}
.theme-toggle {
    border: 1px solid var(--border); background: var(--bg-soft); color: var(--text);
    border-radius: 50%; height: 34px; width: 34px; cursor: pointer; font-size: 14px;
    transition: transform .35s ease, background .16s, border-color .16s;
}
.theme-toggle:hover { transform: rotate(-25deg); border-color: var(--primary); }
.ap-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.article-back { margin-top: 16px; }

@media (max-width: 720px) {
    .post-grid { grid-template-columns: 1fr; }
    .article-head h1 { font-size: 24px; }
    .article-content { font-size: 15.5px; }
}

@media (max-width: 900px) {
    .admin-wrap { flex-direction: column; }
    .admin-side { width: 100%; flex: none; border-right: 0; border-bottom: 1px solid var(--border); }
    .admin-menu { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 720px) {
    .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; }
    .search-box { order: 3; max-width: none; width: 100%; }
    .hero h1 { font-size: 26px; }
    .detail-head { flex-direction: column; align-items: flex-start; }
    .link-item { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   微软商店风格：横向滚动行 / 精选大卡 / 分类圆圈
   ============================================================ */

/* 行：标题 + 右侧「显示全部」 */
.store-row { margin-bottom: 26px; }
.store-row-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; margin-bottom: 10px;
}
.store-row-head h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.1px; }
.store-row-head h2 .row-count {
    margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--text-soft);
}
.store-row-head .more-link {
    font-size: 13px; color: var(--primary); padding: 4px 10px;
    border-radius: 4px; background: transparent; border: 0;
}
.store-row-head .more-link:hover { background: var(--bg-soft); }

/* 横向滚动容器 */
.store-scroller {
    display: flex; gap: 12px; overflow-x: auto;
    padding: 4px 4px 10px; margin: 0 -4px;
    scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
}
.store-scroller > * { flex: 0 0 200px; }
.store-scroller::-webkit-scrollbar { height: 8px; }
.store-scroller::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; border: 2px solid var(--bg); }
.store-scroller::-webkit-scrollbar-thumb:hover { background: var(--text-soft); }

/* 卡片内下载按钮：微软式小蓝按钮（覆盖绿色大按钮样式） */
.btn-download.sm {
    padding: 5px 12px; border-radius: 4px; background: var(--primary); color: #fff;
    font-size: 12.5px; font-weight: 600; box-shadow: none; gap: 6px;
}
.btn-download.sm .dl-ico { width: 18px; height: 18px; font-size: 12px; border-radius: 50%; }
.btn-download.sm .dl-title { font-size: 12.5px; }
.btn-download.sm:hover { background: var(--primary-dark); transform: none; box-shadow: none; }

/* 精选大卡（首页顶部横幅） */
.feature-card {
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
    padding: 24px 28px; margin-bottom: 28px;
    border-radius: var(--radius-lg); background: var(--grad); color: #fff;
}
.feature-card .app-icon {
    width: 96px; height: 96px; font-size: 48px; border-radius: 12px;
    background: rgba(255, 255, 255, .18); color: #fff; flex: 0 0 auto;
}
.feature-card .fc-body { flex: 1; min-width: 240px; }
.feature-card h2 { margin: 0 0 6px; font-size: 24px; font-weight: 600; color: #fff; }
.feature-card p { margin: 0 0 16px; font-size: 14px; color: rgba(255, 255, 255, .88); line-height: 1.6; }
.feature-card .btn { background: #fff; color: var(--primary-dark); border: 0; font-weight: 600; }
.feature-card .btn:hover { background: #f0f0f0; color: var(--primary-dark); transform: none; }

@media (max-width: 720px) {
    .feature-card { padding: 18px; gap: 16px; }
    .feature-card .app-icon { width: 72px; height: 72px; font-size: 36px; }
    .feature-card h2 { font-size: 20px; }
}

/* 分类圆圈行 */
.cat-circles { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; }
.cat-circle { flex: 0 0 auto; width: 84px; text-align: center; color: var(--text-soft); }
.cat-circle .ci {
    width: 56px; height: 56px; margin: 0 auto 6px; border-radius: 50%;
    background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
    font-size: 24px; transition: background .12s;
}
.cat-circle:hover { color: var(--primary); }
.cat-circle:hover .ci { background: var(--primary-soft); }
.cat-circle span {
    font-size: 12px; display: block; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
