:root {
    /* Apple 风格：纯白底 + 大圆角 + 苹果蓝 + 大留白 */
    --bg: #ffffff;
    --bg-soft: #f5f5f7;
    --card: #ffffff;
    --text: #1d1d1f;
    --text-soft: #6e6e73;
    --border: #d2d2d7;
    --primary: #0071e3;
    --primary-dark: #0077ed;
    --primary-soft: rgba(0, 113, 227, .08);
    --success: #34c759;
    --danger: #ff3b30;
    --grad: linear-gradient(135deg, #0071e3 0%, #5e5ce6 100%);
    --grad-warm: linear-gradient(135deg, #ff9500, #ff5e3a);
    --grad-green: linear-gradient(135deg, #34c759, #30b350);
    --shadow: 0 1px 3px rgba(0, 0, 0, .05), 0 8px 24px rgba(0, 0, 0, .06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .07), 0 18px 44px rgba(0, 0, 0, .09);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, .1), 0 30px 70px rgba(0, 0, 0, .12);
    --ring: 0 0 0 4px rgba(0, 113, 227, .28);
    --radius: 18px;
    --radius-sm: 12px;
    --radius-lg: 22px;
    --pill: 980px;
}

html[data-theme="dark"] {
    --bg: #000000;
    --bg-soft: #1d1d1f;
    --card: #1d1d1f;
    --text: #f5f5f7;
    --text-soft: #a1a1a6;
    --border: #38383a;
    --primary: #0a84ff;
    --primary-dark: #3395ff;
    --primary-soft: rgba(10, 132, 255, .16);
    --success: #30d158;
    --danger: #ff453a;
    --grad: linear-gradient(135deg, #0a84ff 0%, #5e5ce6 100%);
    --shadow: 0 1px 3px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .45), 0 18px 44px rgba(0, 0, 0, .4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, .5), 0 30px 70px rgba(0, 0, 0, .45);
    --ring: 0 0 0 4px rgba(10, 132, 255, .35);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Text", "PingFang SC",
                 "Helvetica Neue", "Microsoft YaHei", 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: 40px 18px 80px; }

/* 全局滚动条 */
::-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 ---------- */
/* Apple 式半透明毛玻璃导航 */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .72);
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}
html[data-theme="dark"] .site-header {
    background: rgba(0, 0, 0, .68);
    border-bottom-color: rgba(255, 255, 255, .1);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 54px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.brand img { height: 30px; width: 30px; border-radius: 8px; object-fit: cover; }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 8px; font-size: 15px; color: #fff; font-weight: 700;
    background: var(--grad);
}
.brand-name { white-space: nowrap; }

/* Apple 式胶囊搜索框 */
.search-box {
    flex: 1; display: flex; align-items: center; max-width: 440px; height: 38px;
    background: var(--bg-soft); border: 1px solid transparent; border-radius: var(--pill);
    overflow: hidden; transition: background .15s, box-shadow .15s;
}
.search-box:focus-within { background: var(--card); box-shadow: var(--ring); }
.search-box input {
    flex: 1; height: 100%; padding: 0 16px; 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 16px; border: 0; cursor: pointer;
    background: transparent; color: var(--primary); font-size: 14px; font-weight: 600;
    transition: opacity .12s;
}
.search-box button:hover { opacity: .65; }

.header-nav { display: flex; align-items: center; gap: 2px; font-size: 14px; }
.header-nav > a {
    padding: 6px 14px; border-radius: var(--pill); font-weight: 500;
    transition: background .12s, color .12s;
}
.header-nav > a:hover { background: rgba(0, 0, 0, .05); color: var(--primary); }
html[data-theme="dark"] .header-nav > a:hover { background: rgba(255, 255, 255, .08); }

.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: var(--bg-soft);
    border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-soft);
    padding: 9px 0;
}

/* ---------- Hero ---------- */
/* Apple 式首屏：超大标题 + 大量留白 */
.hero {
    position: relative; overflow: hidden;
    background: var(--bg); padding: 84px 0 72px;
}
.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: 18px;
    padding: 6px 14px; border-radius: var(--pill); font-size: 13px; font-weight: 600;
    background: var(--primary-soft); color: var(--primary);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.hero h1 {
    margin: 0 0 14px; font-size: clamp(34px, 5.6vw, 62px); font-weight: 700;
    letter-spacing: -.022em; line-height: 1.08; color: var(--text);
}
.hero-slogan {
    margin: 0 auto 44px; max-width: 700px; font-size: clamp(16px, 1.6vw, 21px);
    color: var(--text-soft); line-height: 1.5; font-weight: 400;
}
.hero-stats {
    display: inline-flex; flex-wrap: wrap; justify-content: center;
    gap: 0; padding: 0; background: transparent; border: 0; box-shadow: none;
}
.hero-stat {
    min-width: 148px; padding: 0 34px;
    background: transparent; border-left: 1px solid var(--border);
}
.hero-stat:first-child { border-left: 0; }
.hero-stat b {
    display: block; font-size: clamp(28px, 3.4vw, 40px); font-weight: 600;
    line-height: 1.1; letter-spacing: -.02em; color: var(--text);
}
.hero-stat span { font-size: 13px; color: var(--text-soft); }

@media (max-width: 720px) {
    .hero { padding: 52px 0 44px; }
    .hero-slogan { margin-bottom: 32px; }
    .hero-stat { min-width: 0; padding: 0 18px; }
    .hero-stat b { font-size: 26px; }
}

/* ---------- Tabs（Apple 式胶囊） ---------- */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.cat-tab {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: var(--pill); font-size: 14px; font-weight: 500;
    background: var(--bg-soft); border: 1px solid transparent; color: var(--text);
    transition: background .15s, color .15s;
}
.cat-tab .ico { font-size: 14px; line-height: 1; }
.cat-tab:hover { background: var(--border); color: var(--text); }
.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（Apple 风：大图标 + 大圆角 + 大留白） ---------- */
.grid {
    display: grid; gap: 22px;
    grid-template-columns: repeat(auto-fill, minmax(226px, 1fr));
}
.card {
    position: relative; overflow: hidden;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; box-shadow: none;
    transition: transform .22s ease, box-shadow .22s ease;
    display: flex; flex-direction: column;
}
.card::before { display: none; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.app-icon {
    width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: var(--bg-soft);
    display: inline-flex; align-items: center; justify-content: center; font-size: 32px;
}
.app-icon.big {
    width: 128px; height: 128px; font-size: 64px; border-radius: 28px; flex: 0 0 auto;
}
.icon-fallback { background: var(--grad); color: #fff; font-size: 28px; font-weight: 700; }
/* 批量数据是 emoji 图标：统一浅灰底 + 居中，视觉和真图标一致 */
.app-icon.icon-emoji { background: var(--bg-soft); font-size: 30px; line-height: 1; }
.app-icon.icon-emoji.big { font-size: 60px; }
.card-title {
    margin: 15px 0 3px; font-size: 16px; 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 10px; font-size: 13px; color: var(--text-soft); }
.card-desc {
    margin: 0 0 12px; font-size: 13px; color: var(--text-soft); min-height: 40px; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag {
    font-size: 12px; padding: 3px 10px; border-radius: var(--pill);
    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: 10px; }
.dl-count { font-size: 12px; color: var(--text-soft); }
.badge-hot {
    font-size: 11px; padding: 3px 10px; border-radius: var(--pill); color: #fff; font-weight: 600;
    background: var(--grad-warm);
}

/* 按钮：Apple 圆角胶囊 */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 20px; border-radius: var(--pill); font-size: 14px; font-weight: 600;
    border: 1px solid transparent; background: var(--bg-soft); color: var(--text); cursor: pointer;
    transition: background .15s, color .15s;
}
.btn:hover { background: var(--border); color: var(--text); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-lg { padding: 13px 30px; font-size: 17px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-disabled { opacity: .45; 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: 13px 30px; border-radius: var(--pill); color: #fff; font-weight: 600;
    background: var(--success); border: 1px solid var(--success);
    transition: filter .15s;
}
.btn-download:hover { color: #fff; filter: brightness(1.08); }
.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 13px; border-radius: var(--pill); 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: baseline; margin-bottom: 20px; }
.section-head h2 {
    font-size: 26px; margin: 0; font-weight: 700; letter-spacing: -.02em;
    display: flex; align-items: baseline; gap: 10px;
}
.section-head h2::before { display: none; }
.more-link {
    font-size: 14px; color: var(--primary); padding: 6px 14px; border-radius: var(--pill);
    border: 0; background: var(--bg-soft); transition: background .15s;
}
.more-link:hover { 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; }
}

/* ============================================================
   Apple 风格：今日推荐大卡 / 分类圆圈 / 精选网格
   ============================================================ */

/* 分区：大标题 + 右侧「查看全部」 */
.store-row { margin-bottom: 52px; }
.store-row-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 16px; margin-bottom: 20px;
}
.store-row-head h2 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.store-row-head h2 .row-count {
    margin-left: 10px; font-size: 13px; font-weight: 400; color: var(--text-soft);
}
.store-row-head .more-link {
    font-size: 14px; color: var(--primary); padding: 6px 14px;
    border-radius: var(--pill); background: transparent; border: 0;
}
.store-row-head .more-link:hover { background: var(--primary-soft); }

/* 内容区：整齐的卡片网格（不做横向滚动） */
.store-scroller {
    display: grid; gap: 22px;
    grid-template-columns: repeat(auto-fill, minmax(226px, 1fr));
}

/* 卡片里的「获取」按钮 */
.btn-download.sm {
    padding: 6px 16px; border-radius: var(--pill); background: var(--primary); color: #fff;
    font-size: 13px; font-weight: 600; gap: 6px; border: 1px solid var(--primary); box-shadow: none;
}
.btn-download.sm .dl-ico { width: 18px; height: 18px; font-size: 12px; border-radius: 50%; }
.btn-download.sm .dl-title { font-size: 13px; }
.btn-download.sm:hover {
    background: var(--primary-dark); border-color: var(--primary-dark); transform: none; box-shadow: none;
}

/* 今日推荐（Apple Today 大卡） */
.feature-card {
    position: relative; overflow: hidden;
    display: flex; flex-direction: row-reverse; align-items: center; gap: 40px;
    min-height: 300px; padding: 44px 48px; margin-bottom: 56px;
    border-radius: var(--radius-lg); color: #fff;
    background: linear-gradient(135deg, #0071e3 0%, #5e5ce6 55%, #af52de 100%);
}
html[data-theme="dark"] .feature-card {
    background: linear-gradient(135deg, #0a84ff 0%, #5e5ce6 55%, #bf5af2 100%);
}
/* 大卡右上角的柔光圆，增加层次 */
.feature-card::after {
    content: ''; position: absolute; right: -70px; top: -80px;
    width: 340px; height: 340px; border-radius: 50%;
    background: rgba(255, 255, 255, .12); pointer-events: none;
}
.feature-card .fc-body { flex: 1; min-width: 0; position: relative; z-index: 1; }
.feature-card .fc-eyebrow {
    margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: .06em;
    color: rgba(255, 255, 255, .85);
}
.feature-card h2 {
    margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 42px); font-weight: 700;
    letter-spacing: -.022em; line-height: 1.1; color: #fff;
}
.feature-card p {
    margin: 0 0 30px; max-width: 520px;
    font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, .9);
}
.feature-card .btn {
    background: rgba(255, 255, 255, .95); color: #0071e3; border: 0; font-weight: 600;
}
.feature-card .btn:hover { background: #fff; color: #0071e3; }
.feature-card .app-icon {
    width: 180px; height: 180px; font-size: 88px; border-radius: 40px; flex: 0 0 auto;
    background: rgba(255, 255, 255, .2); color: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

@media (max-width: 900px) {
    .feature-card {
        flex-direction: column; align-items: flex-start; gap: 28px;
        padding: 32px 28px; min-height: 0;
    }
    .feature-card .app-icon { width: 120px; height: 120px; font-size: 58px; border-radius: 28px; }
    .store-row { margin-bottom: 40px; }
}

/* 分类圆圈（换行排列，不横向滚动） */
.cat-circles { display: flex; flex-wrap: wrap; gap: 14px; padding: 0; }
.cat-circle { flex: 0 0 auto; width: 92px; text-align: center; color: var(--text); }
.cat-circle .ci {
    width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%;
    background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
    font-size: 26px; transition: transform .18s ease, background .18s ease;
}
.cat-circle:hover { color: var(--primary); }
.cat-circle:hover .ci { background: var(--primary-soft); transform: scale(1.06); }
.cat-circle span {
    font-size: 12.5px; display: block; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
