/* ============ 前台样式（零数据库下载站） ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fb;
    color: #333;
    line-height: 1.6;
}
a { color: #2563eb; text-decoration: none; }
img { max-width: 100%; }
.container { width: 1200px; max-width: 96%; margin: 0 auto; }

/* ---------- 顶部 ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e8ecf3;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 64px;
}
.logo {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    letter-spacing: 1px;
}
.logo b { color: #2563eb; }
.search-box {
    display: flex;
    flex: 1;
    max-width: 380px;
    height: 36px;
    border: 1px solid #d6deeb;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}
.search-box input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 0 16px;
    font-size: 14px;
    background: transparent;
}
.search-box button {
    border: 0;
    background: #2563eb;
    color: #fff;
    padding: 0 18px;
    cursor: pointer;
    font-size: 14px;
}
.search-box button:hover { background: #1d4ed8; }
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    overflow-x: auto;
}
.main-nav a {
    color: #475569;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 15px;
    white-space: nowrap;
}
.main-nav a:hover { color: #2563eb; background: #eef2ff; }
.main-nav a.active { color: #2563eb; font-weight: 600; background: #eef2ff; }

/* ---------- 主容器 ---------- */
.main { padding: 20px 0 40px; min-height: 60vh; }

/* ---------- 轮播 ---------- */
.banner-section { margin-top: 20px; position: relative; }
.banner-wrap {
    border-radius: 14px;
    overflow: hidden;
    height: 340px;
    position: relative;
}
.banner-item {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity .6s;
    display: flex;
    align-items: flex-end;
}
.banner-item.active { opacity: 1; }
.banner-title {
    background: rgba(0,0,0,.45);
    color: #fff;
    padding: 10px 20px;
    border-radius: 0 10px 0 0;
    font-size: 16px;
}
.banner-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.banner-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.6);
    cursor: pointer;
    transition: width .3s;
}
.banner-dots i.active { width: 22px; border-radius: 5px; background: #fff; }

/* ---------- 公告 ---------- */
.notice-bar {
    margin-top: 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.notice-bar-label {
    color: #c2410c;
    font-weight: 600;
    background: #ffedd5;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 13px;
    flex: none;
}
.notice-bar ul { list-style: none; overflow: hidden; white-space: nowrap; }
.notice-bar li { display: inline; font-size: 14px; color: #7c2d12; margin-right: 30px; }

/* ---------- 分类入口 ---------- */
.home-cats {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.home-cat {
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: box-shadow .2s, transform .2s;
}
.home-cat:hover { box-shadow: 0 6px 18px rgba(37,99,235,.12); transform: translateY(-2px); }
.home-cat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #eef2ff;
    color: #2563eb;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
.home-cat-name { font-size: 15px; color: #334155; font-weight: 500; }

/* ---------- 区块 ---------- */
.section { margin-top: 32px; }
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    border-left: 4px solid #2563eb;
    padding-left: 12px;
}
.section-head h2 { font-size: 20px; color: #1e293b; }
.section-more { font-size: 14px; color: #64748b; }
.section-more:hover { color: #2563eb; }

/* ---------- 软件卡片 ---------- */
.soft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.soft-card {
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 12px;
    display: flex;
    gap: 14px;
    padding: 14px;
    transition: box-shadow .2s, transform .2s;
}
.soft-card:hover { box-shadow: 0 8px 24px rgba(15,23,42,.08); transform: translateY(-2px); }
.soft-card-logo {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    background: #f8fafc;
    overflow: hidden;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.soft-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.soft-card-body { min-width: 0; flex: 1; }
.soft-card-title {
    font-size: 16px;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.soft-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}
.soft-card-version { font-size: 13px; color: #94a3b8; }
.soft-card-price { font-size: 15px; color: #dc2626; font-weight: 700; }
.soft-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}
.soft-card-tags { display: flex; gap: 4px; overflow: hidden; }
.soft-card-tags i {
    font-style: normal;
    background: #eef2ff;
    color: #2563eb;
    font-size: 12px;
    padding: 1px 6px;
    border-radius: 4px;
    white-space: nowrap;
}
.soft-card-stats { font-size: 12px; color: #94a3b8; }

.empty-tip { color: #94a3b8; text-align: center; padding: 40px 0; }

/* ---------- 列表工具栏 ---------- */
.list-toolbar {
    background: #fff;
    border-bottom: 1px solid #e8ecf3;
    padding: 16px 0;
}
.toolbar-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.list-title { font-size: 20px; color: #1e293b; }
.list-title small { font-size: 13px; color: #94a3b8; margin-left: 8px; font-weight: 400; }
.sort-tabs { display: flex; gap: 8px; }
.sort-tabs a {
    padding: 5px 14px;
    border-radius: 16px;
    background: #f1f5f9;
    color: #475569;
    font-size: 14px;
}
.sort-tabs a.active { background: #2563eb; color: #fff; }

/* ---------- 面包屑 ---------- */
.breadcrumb { margin: 16px 0; font-size: 14px; color: #94a3b8; }
.breadcrumb a { color: #64748b; }
.breadcrumb a:hover { color: #2563eb; }

/* ---------- 详情页 ---------- */
.detail-main {
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 14px;
    padding: 28px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.detail-left { display: flex; gap: 20px; flex: 1; min-width: 300px; }
.detail-logo {
    width: 140px;
    height: 140px;
    border-radius: 14px;
    background: #f8fafc;
    overflow: hidden;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.detail-logo img { width: 100%; height: 100%; object-fit: cover; }
.detail-title { font-size: 24px; color: #1e293b; }
.detail-meta {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: #64748b;
}
.detail-tags { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.detail-tags i {
    font-style: normal;
    background: #eef2ff;
    color: #2563eb;
    font-size: 13px;
    padding: 2px 10px;
    border-radius: 6px;
}
.detail-right { width: 280px; flex: none; }
.price-box {
    border: 2px solid #2563eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    background: #fbfdff;
}
.price-num { font-size: 30px; color: #dc2626; font-weight: 700; }
.price-tip { font-size: 13px; color: #64748b; margin: 8px 0 14px; }
.side-note { margin-top: 14px; font-size: 13px; color: #94a3b8; }
.side-note p { margin-bottom: 6px; }
.detail-sections { margin-top: 24px; }
.detail-section {
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 16px;
}
.detail-section h2 {
    font-size: 18px;
    color: #1e293b;
    margin-bottom: 14px;
    border-left: 4px solid #2563eb;
    padding-left: 10px;
}
.detail-content { font-size: 15px; color: #475569; white-space: pre-wrap; }
.shot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.shot-list img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #e8ecf3;
    aspect-ratio: 16/10;
    object-fit: cover;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 15px;
    cursor: pointer;
    text-align: center;
    line-height: 1.4;
}
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-plain { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.btn-plain:hover { background: #e2e8f0; }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 12px 30px; font-size: 16px; }

/* ---------- 订单页 ---------- */
.order-query-box, .panel {
    background: #fff;
    border: 1px solid #e8ecf3;
    border-radius: 14px;
    padding: 32px;
    max-width: 720px;
    margin: 40px auto;
    text-align: center;
}
.order-query-box h2, .panel h2 { color: #1e293b; margin-bottom: 12px; }
.order-query-box p { color: #64748b; font-size: 14px; margin-bottom: 18px; }
.order-query-form { display: flex; gap: 10px; justify-content: center; }
.order-query-form input {
    width: 320px;
    max-width: 100%;
    height: 42px;
    border: 1px solid #d6deeb;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 15px;
    outline: none;
}
.order-query-form input:focus { border-color: #2563eb; }
.order-no-text { font-size: 15px; color: #475569; margin: 8px 0; }
.order-goods { font-size: 14px; color: #64748b; margin-bottom: 6px; }
.order-time { font-size: 13px; color: #94a3b8; }
.amount-red { color: #dc2626; }
.status-wait { color: #d97706; font-weight: 600; }
.success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    font-size: 30px;
    line-height: 56px;
    text-align: center;
}
.download-list { margin: 20px 0; text-align: left; }
.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #e8ecf3;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: #fbfdff;
}
.download-name { font-size: 15px; color: #1e293b; font-weight: 500; }
.download-code { font-size: 13px; color: #64748b; margin-left: 12px; }
.warn-tip {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-top: 14px;
    text-align: left;
}
.pay-tip { font-size: 13px; color: #94a3b8; margin: 12px 0; }
.pay-panel .btn-lg { margin: 8px 0; }

/* ---------- 页脚 ---------- */
.site-footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 28px 0;
    text-align: center;
    font-size: 13px;
    margin-top: 40px;
}
.footer-copy { margin-top: 8px; color: #64748b; }

/* ---------- 移动端 ---------- */
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; }
    .main-nav { width: 100%; order: 3; }
    .search-box { order: 2; max-width: none; }
    .banner-wrap { height: 180px; }
    .soft-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
    .soft-card { flex-direction: column; }
    .soft-card-logo { width: 100%; height: 120px; }
    .detail-main { padding: 16px; }
    .detail-left { flex-direction: column; }
    .detail-logo { width: 100%; height: 200px; }
    .detail-right { width: 100%; }
    .order-query-form { flex-direction: column; }
}
