/* ===== 全局 ===== */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
    background:#f5f6f8; color:#333; line-height:1.6; font-size:14px;
}
a { text-decoration:none; color:inherit; }
ul { list-style:none; }
button { cursor:pointer; border:none; background:none; font-family:inherit; }
img { max-width:100%; display:block; }
.container { max-width:1200px; margin:0 auto; padding:0 20px; }

/* ===== 顶部导航 ===== */
.header {
    background:#fff; box-shadow:0 1px 3px rgba(0,0,0,0.06);
    position:sticky; top:0; z-index:100;
}
.header-inner {
    display:flex; align-items:center; height:68px; gap:32px;
    max-width:1200px; margin:0 auto; padding:0 20px;
}
.logo { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.logo svg { width:36px; height:36px; }
.logo-text { font-size:20px; font-weight:700; color:#1f2937; display:flex; flex-direction:column; line-height:1.1; }
.logo-text small { font-size:11px; color:#6b7280; font-weight:400; letter-spacing:2px; }
.nav { display:flex; align-items:center; gap:4px; flex:1; }
.nav-item {
    padding:8px 14px; font-size:15px; color:#374151; border-radius:6px;
    transition:all .2s; display:flex; align-items:center; gap:4px; position:relative;
}
.nav-item:hover, .nav-item.active { color:#2563eb; background:#eff6ff; }
.nav-item .arrow { font-size:10px; color:#9ca3af; }
.has-dropdown { position:relative; }
.dropdown {
    position:absolute; top:100%; left:0; background:#fff; border-radius:8px;
    box-shadow:0 8px 24px rgba(0,0,0,0.12); min-width:160px; padding:8px 0;
    opacity:0; visibility:hidden; transform:translateY(8px); transition:all .2s; z-index:200;
}
.has-dropdown:hover .dropdown { opacity:1; visibility:visible; transform:translateY(0); }
.dropdown a { display:block; padding:8px 16px; font-size:14px; color:#4b5563; transition:all .15s; }
.dropdown a:hover { background:#eff6ff; color:#2563eb; }
.header-actions { display:flex; align-items:center; gap:8px; }
.user-info { display:flex; align-items:center; gap:8px; font-size:14px; color:#374151; }
.user-info .avatar { width:32px; height:32px; border-radius:50%; background:#2563eb; color:#fff; display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:600; }
.btn-login { padding:7px 20px; border:1px solid #d1d5db; border-radius:6px; font-size:14px; color:#374151; transition:all .2s; }
.btn-login:hover { border-color:#2563eb; color:#2563eb; }
.icon-btn { width:36px; height:36px; border-radius:6px; display:flex; align-items:center; justify-content:center; color:#6b7280; transition:all .2s; }
.icon-btn:hover { background:#f3f4f6; color:#2563eb; }

/* ===== 搜索弹窗 ===== */
.search-modal { position:fixed; top:0; left:0; right:0; background:rgba(0,0,0,0.5); padding:80px 20px 0; z-index:300; display:none; }
.search-modal.show { display:block; }
.search-box { max-width:600px; margin:0 auto; background:#fff; border-radius:12px; padding:16px; display:flex; align-items:center; gap:12px; box-shadow:0 20px 60px rgba(0,0,0,0.2); }
.search-box input { flex:1; border:none; outline:none; font-size:16px; padding:8px 0; }
.search-close { font-size:24px; color:#9ca3af; width:32px; height:32px; display:flex; align-items:center; justify-content:center; }

/* ===== 轮播 ===== */
.banner { position:relative; height:320px; overflow:hidden; background:#1a2332; }
.banner-slides { position:relative; height:100%; }
.banner-slide { position:absolute; top:0; left:0; width:100%; height:100%; display:flex; align-items:center; opacity:0; transition:opacity .6s; }
.banner-slide.active { opacity:1; }
.banner-content { color:#fff; max-width:1200px; margin:0 auto; padding:0 20px; width:100%; }
.banner-content h2 { font-size:32px; font-weight:700; margin-bottom:12px; }
.banner-content p { font-size:16px; opacity:.9; margin-bottom:24px; }
.banner-btn { display:inline-block; padding:10px 28px; background:rgba(255,255,255,0.2); backdrop-filter:blur(10px); border:1px solid rgba(255,255,255,0.3); border-radius:8px; color:#fff; font-size:15px; transition:all .2s; }
.banner-btn:hover { background:rgba(255,255,255,0.3); }
.banner-dots { position:absolute; bottom:20px; left:50%; transform:translateX(-50%); display:flex; gap:8px; }
.dot { width:24px; height:4px; border-radius:2px; background:rgba(255,255,255,0.4); cursor:pointer; transition:all .3s; }
.dot.active { background:#4ade80; width:32px; }

/* ===== 分类标签 ===== */
.cat-tabs {
    display:flex; gap:4px; background:#fff; border-radius:10px; padding:8px;
    margin:-30px auto 24px; position:relative; z-index:10;
    box-shadow:0 4px 16px rgba(0,0,0,0.08); max-width:1200px; overflow-x:auto;
}
.cat-tab { padding:10px 22px; font-size:14px; color:#4b5563; border-radius:6px; white-space:nowrap; transition:all .2s; }
.cat-tab:hover { color:#2563eb; }
.cat-tab.active { background:#2563eb; color:#fff; font-weight:500; }

/* ===== 软件卡片 ===== */
.app-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.app-card {
    background:#fff; border-radius:10px; overflow:hidden; transition:all .25s;
    cursor:pointer; position:relative; border:1px solid #eef0f3;
}
.app-card:hover { transform:translateY(-4px); box-shadow:0 12px 28px rgba(0,0,0,0.1); }
.app-card .new-tag { position:absolute; top:10px; left:10px; width:10px; height:10px; background:#ef4444; border-radius:50%; z-index:2; }
.app-icon-wrap { height:160px; display:flex; align-items:center; justify-content:center; background:#fafbfc; position:relative; }
.app-icon { width:80px; height:80px; border-radius:18px; object-fit:cover; box-shadow:0 4px 12px rgba(0,0,0,0.15); }
.platform-badge { position:absolute; top:12px; right:12px; font-size:18px; opacity:.5; }
.app-info { padding:14px 16px 16px; }
.app-meta { display:flex; align-items:center; gap:8px; margin-bottom:8px; flex-wrap:wrap; }
.meta-tag { font-size:12px; color:#6b7280; display:flex; align-items:center; gap:3px; }
.meta-tag::before { content:''; width:6px; height:6px; border-radius:50%; display:inline-block; }
.meta-tag.platform::before { background:#f97316; }
.meta-tag.category::before { background:#22c55e; }
.meta-tag.series::before { background:#3b82f6; }
.app-title { font-size:14px; font-weight:600; color:#1f2937; line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:40px; margin-bottom:10px; }
.app-card:hover .app-title { color:#2563eb; }
.app-footer { display:flex; align-items:center; justify-content:space-between; font-size:12px; color:#9ca3af; }
.app-footer-left { display:flex; align-items:center; gap:12px; }
.app-footer-item { display:flex; align-items:center; gap:4px; }
.price-tag { padding:2px 8px; border-radius:4px; font-size:11px; font-weight:600; background:#fbbf24; color:#92400e; }
.price-tag.free { background:#fbbf24; color:#92400e; }

/* ===== 加载更多 ===== */
.load-more-wrap { text-align:center; margin:32px 0; }
.load-more-btn { padding:12px 48px; background:#374151; color:#fff; border-radius:8px; font-size:14px; transition:all .2s; }
.load-more-btn:hover { background:#1f2937; }

/* ===== 专题分区 ===== */
.section { padding:16px 0; }
.section-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; padding-bottom:12px; border-bottom:1px solid #e5e7eb; }
.section-title { font-size:18px; font-weight:700; color:#1f2937; display:flex; align-items:center; gap:8px; }
.title-icon { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; background:#f3f4f6; border-radius:6px; font-size:14px; }
.section-more { font-size:14px; color:#6b7280; transition:color .2s; }
.section-more:hover { color:#2563eb; }

/* ===== 详情页 ===== */
.detail-wrap { max-width:1200px; margin:24px auto; padding:0 20px; display:grid; grid-template-columns:1fr 300px; gap:24px; }
.detail-main { background:#fff; border-radius:10px; padding:28px; }
.breadcrumb { font-size:13px; color:#6b7280; margin-bottom:12px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.breadcrumb a { color:#2563eb; }
.breadcrumb .sep { color:#d1d5db; }
.detail-title { font-size:22px; font-weight:700; color:#1f2937; margin-bottom:20px; padding-bottom:16px; border-bottom:1px dashed #e5e7eb; }
.detail-icon-large { text-align:center; margin:24px 0; }
.detail-icon-large img { width:120px; height:120px; border-radius:26px; object-fit:cover; box-shadow:0 8px 24px rgba(0,0,0,0.15); }
.detail-support { margin:20px 0; padding:16px 0; border-top:1px solid #f3f4f6; border-bottom:1px solid #f3f4f6; }
.detail-support p { font-size:14px; color:#4b5563; margin-bottom:6px; display:flex; align-items:center; gap:8px; }
.detail-support .check { color:#2563eb; font-weight:bold; }
.detail-section { margin-top:28px; }
.detail-section h3 { font-size:16px; font-weight:700; margin-bottom:14px; padding-left:10px; border-left:3px solid #2563eb; color:#1f2937; }
.detail-section p, .detail-section li { font-size:14px; color:#4b5563; line-height:1.8; margin-bottom:10px; }
.detail-section ul { padding-left:20px; list-style:disc; }
.detail-section img { max-width:100%; border-radius:8px; margin:12px 0; }
.detail-content { line-height:1.8; color:#4b5563; }
.detail-content h2 { font-size:18px; margin:20px 0 12px; color:#1f2937; }
.detail-content img { max-width:100%; border-radius:8px; margin:12px 0; }

/* 右侧边栏 */
.detail-sidebar { position:sticky; top:88px; align-self:start; }
.sidebar-card { background:#fff; border-radius:10px; padding:20px; margin-bottom:16px; }
.price-badge { text-align:center; padding:16px; border-radius:8px; margin-bottom:16px; font-size:24px; font-weight:700; }
.price-badge.free { background:linear-gradient(135deg,#fbbf24,#f59e0b); color:#fff; }
.price-badge.paid { background:linear-gradient(135deg,#fbbf24,#f59e0b); color:#fff; }
.download-btn-group { display:flex; flex-direction:column; gap:10px; }
.dl-btn { display:flex; align-items:center; justify-content:center; gap:8px; padding:12px; border-radius:8px; font-size:14px; font-weight:500; transition:all .2s; color:#fff; }
.dl-btn.baidu { background:#2563eb; }
.dl-btn.baidu:hover { background:#1d4ed8; }
.dl-btn.web { background:#2563eb; }
.dl-btn.web:hover { background:#1d4ed8; }
.dl-btn.unlock { background:linear-gradient(135deg,#06b6d4,#0891b2); }
.dl-btn.unlock:hover { opacity:.9; }
.dl-btn.disabled { background:#9ca3af; cursor:not-allowed; }
.info-table { width:100%; font-size:13px; }
.info-table td { padding:8px 0; border-bottom:1px solid #f3f4f6; }
.info-table td:first-child { color:#6b7280; width:45%; }
.info-table td:last-child { color:#1f2937; text-align:right; font-weight:500; }
.sidebar-search { display:flex; gap:8px; }
.sidebar-search input { flex:1; padding:8px 12px; border:1px solid #d1d5db; border-radius:6px; font-size:13px; }
.sidebar-search button { padding:8px 14px; background:#2563eb; color:#fff; border-radius:6px; }
.qrcode-box { text-align:center; }
.qrcode-box img { width:140px; height:140px; margin:0 auto 8px; }
.qrcode-box p { font-size:12px; color:#6b7280; }

/* ===== 登录/注册页 ===== */
.auth-page { min-height:calc(100vh - 68px); display:flex; align-items:center; justify-content:center; padding:40px 20px; background:linear-gradient(135deg,#667eea 0%,#764ba2 100%); }
.auth-box { background:#fff; border-radius:16px; padding:40px; width:100%; max-width:400px; box-shadow:0 20px 60px rgba(0,0,0,0.2); }
.auth-box h2 { text-align:center; font-size:24px; margin-bottom:8px; }
.auth-box .subtitle { text-align:center; color:#6b7280; font-size:14px; margin-bottom:28px; }
.form-group { margin-bottom:18px; }
.form-group label { display:block; font-size:13px; font-weight:600; color:#374151; margin-bottom:6px; }
.form-group input { width:100%; padding:12px 14px; border:1px solid #d1d5db; border-radius:8px; font-size:14px; transition:border-color .2s; }
.form-group input:focus { outline:none; border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,0.1); }
.auth-btn { width:100%; padding:12px; background:#2563eb; color:#fff; border-radius:8px; font-size:15px; font-weight:500; transition:all .2s; }
.auth-btn:hover { background:#1d4ed8; }
.auth-footer { text-align:center; margin-top:20px; font-size:13px; color:#6b7280; }
.auth-footer a { color:#2563eb; }
.auth-error { background:#fef2f2; color:#dc2626; padding:10px 14px; border-radius:6px; font-size:13px; margin-bottom:16px; text-align:center; }
.auth-success { background:#f0fdf4; color:#16a34a; padding:10px 14px; border-radius:6px; font-size:13px; margin-bottom:16px; text-align:center; }

/* ===== 用户中心 ===== */
.user-center { max-width:1200px; margin:24px auto; padding:0 20px; }
.user-header { background:#fff; border-radius:10px; padding:24px; display:flex; align-items:center; gap:20px; margin-bottom:20px; }
.user-avatar { width:72px; height:72px; border-radius:50%; background:linear-gradient(135deg,#667eea,#764ba2); color:#fff; display:flex; align-items:center; justify-content:center; font-size:28px; font-weight:700; }
.user-meta h2 { font-size:20px; margin-bottom:4px; }
.user-meta p { font-size:13px; color:#6b7280; }
.vip-badge { display:inline-block; padding:2px 10px; background:linear-gradient(135deg,#fbbf24,#f59e0b); color:#fff; border-radius:4px; font-size:11px; font-weight:600; margin-left:8px; }
.user-tabs { display:flex; gap:4px; background:#fff; border-radius:10px; padding:8px; margin-bottom:20px; }
.user-tab { padding:10px 20px; border-radius:6px; font-size:14px; color:#4b5563; cursor:pointer; transition:all .2s; }
.user-tab.active { background:#2563eb; color:#fff; }
.user-content { background:#fff; border-radius:10px; padding:24px; min-height:300px; }
.order-item { display:flex; align-items:center; justify-content:space-between; padding:14px 0; border-bottom:1px solid #f3f4f6; }
.order-item:last-child { border-bottom:none; }
.order-info h4 { font-size:14px; margin-bottom:4px; }
.order-info p { font-size:12px; color:#9ca3af; }
.order-amount { font-size:16px; font-weight:600; color:#2563eb; }
.order-status { font-size:12px; padding:2px 8px; border-radius:4px; }
.order-status.paid { background:#d1fae5; color:#065f46; }
.order-status.pending { background:#fef3c7; color:#92400e; }

/* ===== 页脚 ===== */
.footer { background:#1f2937; color:#9ca3af; margin-top:48px; }
.footer-inner { display:grid; grid-template-columns:2fr 1fr 1fr 1.5fr; gap:40px; max-width:1200px; margin:0 auto; padding:48px 20px 32px; }
.footer-col h4 { color:#fff; font-size:15px; margin-bottom:16px; }
.footer-col p { font-size:13px; line-height:1.8; }
.footer-col ul li { margin-bottom:10px; }
.footer-col ul li a { font-size:13px; transition:color .2s; }
.footer-col ul li a:hover { color:#fff; }
.footer-bottom { border-top:1px solid #374151; padding:20px 0; text-align:center; font-size:12px; }
.footer-bottom p { margin-bottom:4px; }

/* ===== 悬浮工具 ===== */
.float-tools { position:fixed; right:20px; bottom:80px; display:flex; flex-direction:column; gap:4px; z-index:50; }
.float-btn { width:40px; height:40px; background:#fff; border-radius:6px; display:flex; align-items:center; justify-content:center; color:#6b7280; box-shadow:0 2px 8px rgba(0,0,0,0.1); transition:all .2s; }
.float-btn:hover { color:#2563eb; transform:translateX(-2px); }
.float-btn.back-top { opacity:0; visibility:hidden; transition:all .3s; }
.float-btn.back-top.show { opacity:1; visibility:visible; }

/* ===== 分页 ===== */
.pagination { display:flex; justify-content:center; gap:6px; margin:32px 0; }
.pagination a, .pagination span { padding:8px 14px; border:1px solid #e5e7eb; border-radius:6px; font-size:14px; color:#4b5563; transition:all .2s; }
.pagination a:hover { border-color:#2563eb; color:#2563eb; }
.pagination .current { background:#2563eb; color:#fff; border-color:#2563eb; }

/* ===== 响应式 ===== */
@media (max-width:1024px) {
    .app-grid { grid-template-columns:repeat(3,1fr); }
    .footer-inner { grid-template-columns:1fr 1fr; gap:32px; }
    .detail-wrap { grid-template-columns:1fr; }
    .detail-sidebar { position:static; }
}
@media (max-width:768px) {
    .header-inner { gap:12px; }
    .nav { display:none; }
    .app-grid { grid-template-columns:repeat(2,1fr); gap:12px; }
    .banner { height:220px; }
    .banner-content h2 { font-size:22px; }
    .footer-inner { grid-template-columns:1fr; }
    .cat-tabs { margin:-20px 12px 16px; }
    .float-tools { right:10px; }
    .detail-main { padding:16px; }
}
@media (max-width:480px) {
    .app-grid { grid-template-columns:1fr; }
    .app-icon-wrap { height:140px; }
}
