/* ===== 基础 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font: 14px/1.6 "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; color: #333; background: #f4f5fb; }
a { color: #333; text-decoration: none; }
a:hover { color: #5b5bd6; }
img { max-width: 100%; border: 0; }
ul, ol { list-style: none; }
input, select, textarea, button { font: inherit; color: inherit; outline: none; }
.container { width: 1160px; max-width: 96%; margin: 0 auto; }
.center { text-align: center; }
.msg { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; font-size: 13px; }
.msg.ok { background: #e8f8f5; color: #0b8a76; border: 1px solid #b5ece3; }
.msg.error { background: #fef0ef; color: #d93025; border: 1px solid #f6c8c4; }
.msg.info { background: #eef3ff; color: #3456c9; border: 1px solid #cdd9ff; }
.empty { padding: 60px 20px; text-align: center; color: #999; }

/* ===== 按钮 ===== */
.btn-primary { display: inline-block; background: #5b5bd6; color: #fff; border: 0; border-radius: 8px; padding: 9px 22px; cursor: pointer; transition: background .2s; }
.btn-primary:hover { background: #4747c8; color: #fff; }
.btn-primary.big, .btn-ghost.big { padding: 13px 36px; font-size: 15px; }
.btn-ghost { display: inline-block; background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; padding: 12px 35px; cursor: pointer; }
.btn-ghost:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn-warm { display: inline-block; background: linear-gradient(135deg, #ff9a3c, #ff5f2e); color: #fff; border: 0; border-radius: 8px; padding: 9px 22px; cursor: pointer; }
.btn-warm:hover { color: #fff; opacity: .92; }
.btn-plain { display: inline-block; background: #eef1f6; color: #555; border: 0; border-radius: 8px; padding: 9px 22px; cursor: pointer; }
.btn-mini { display: inline-block; background: #5b5bd6; color: #fff; border: 0; border-radius: 6px; padding: 5px 14px; font-size: 13px; cursor: pointer; }
.btn-mini:hover { color: #fff; background: #4747c8; }
.btn-mini.on { background: #5b5bd6; color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; }
.block { display: block; width: 100%; text-align: center; }
.link-danger { background: none; border: 0; color: #d93025; cursor: pointer; font-size: 13px; }

/* ===== 顶栏 ===== */
.header { background: rgba(29,31,66,.96); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; height: 60px; }
.logo { margin-right: 34px; flex-shrink: 0; }
.logo a { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.logo a::before { content: "▣"; color: #7c7cf0; margin-right: 6px; font-size: 16px; }
.nav { display: flex; }
.nav li a { display: block; color: #c8caf0; padding: 20px 15px; font-size: 14px; border-bottom: 3px solid transparent; }
.nav li a:hover { color: #fff; border-bottom-color: #7c7cf0; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.hlink { color: #c8caf0; font-size: 13px; }
.hlink:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; }

/* ===== 首页 Hero ===== */
.hero { background: linear-gradient(135deg, #1d1f42 0%, #3b3f9e 55%, #6d5bd6 100%); padding: 70px 0 0; color: #fff; }
.hero-inner { text-align: center; padding-bottom: 64px; }
.hero h1 { font-size: 40px; font-weight: 800; letter-spacing: 2px; }
.hero p { max-width: 620px; margin: 18px auto 0; color: #d5d7f5; font-size: 15px; }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; justify-content: center; }
.hero-stats { display: flex; justify-content: center; gap: 70px; margin-top: 56px; }
.hero-stats div { text-align: center; }
.hero-stats strong { display: block; font-size: 28px; font-weight: 800; }
.hero-stats span { color: #b8bae4; font-size: 13px; }

/* ===== 特性 ===== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: -28px 0 22px; position: relative; }
.feature { background: #fff; border-radius: 14px; padding: 26px 22px; text-align: center; box-shadow: 0 6px 24px rgba(60,60,140,.08); }
.feature .fi { font-size: 34px; }
.feature h3 { margin: 12px 0 6px; font-size: 16px; color: #1d1f42; }
.feature p { color: #888; font-size: 13px; }

/* ===== 区块/文件卡片 ===== */
.section { background: #fff; border-radius: 14px; padding: 20px; margin-bottom: 22px; box-shadow: 0 1px 6px rgba(60,60,140,.05); }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-head h2 { font-size: 18px; color: #1d1f42; border-left: 4px solid #5b5bd6; padding-left: 10px; }
.section-head .more { color: #5b5bd6; font-size: 13px; }
.file-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.file-card { background: #fafafe; border: 1px solid #eceef8; border-radius: 12px; padding: 16px; text-align: center; transition: transform .18s, box-shadow .18s; }
.file-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(60,60,140,.1); }
.ficon { font-size: 34px; display: block; }
.fname { display: block; margin: 10px 0 6px; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fmeta { display: flex; justify-content: space-between; color: #999; font-size: 12px; }
.fmeta i { font-style: normal; }

/* ===== 分享页 ===== */
.page-main { padding: 24px 0 40px; }
.share-wrap { display: flex; gap: 20px; align-items: flex-start; }
.share-card { flex: 1; min-width: 0; background: #fff; border-radius: 14px; padding: 24px; box-shadow: 0 2px 12px rgba(60,60,140,.06); }
.share-file { display: flex; gap: 18px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid #f0f1f8; }
.big-icon { font-size: 54px; flex-shrink: 0; }
.share-file-info h1 { font-size: 20px; color: #1d1f42; word-break: break-all; }
.share-file-info .meta { display: flex; gap: 16px; flex-wrap: wrap; color: #999; font-size: 12px; margin-top: 8px; }
.pwd-box { text-align: center; padding: 30px 0; }
.pwd-box h3 { font-size: 18px; margin-bottom: 6px; }
.pwd-box p { color: #999; margin-bottom: 16px; }
.pwd-box form { display: flex; gap: 10px; justify-content: center; }
.pwd-box input { width: 220px; height: 40px; border: 1px solid #dfe3f0; border-radius: 8px; padding: 0 14px; }
.notice { display: flex; justify-content: space-between; align-items: center; background: #eef3ff; border: 1px solid #cdd9ff; border-radius: 10px; padding: 14px 18px; margin: 18px 0; }
.notice.vip { background: #fff4ec; border-color: #ffd3b8; }
.tier-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0; }
.tier { background: #fafafe; border: 1px solid #eceef8; border-radius: 12px; padding: 18px 14px; text-align: center; }
.tier h3 { font-size: 15px; margin-bottom: 4px; }
.tier p { color: #999; font-size: 12px; margin-bottom: 12px; min-height: 18px; }
.tier.hot { border-color: #ffd3b8; background: #fff8f2; }
.tier.mid { border-color: #cdd9ff; background: #f7f9ff; }
.tier-tag { display: inline-block; background: #eef1f6; color: #999; padding: 4px 16px; border-radius: 16px; font-size: 12px; }
.share-tools { display: flex; align-items: center; gap: 16px; border-top: 1px dashed #e8eaf5; padding-top: 16px; }
.tool-tip { color: #999; font-size: 13px; }
.tool-tip b { color: #5b5bd6; }
.upsell { width: 320px; flex-shrink: 0; background: linear-gradient(160deg, #1d1f42, #3b3f9e); border-radius: 14px; padding: 26px 20px; color: #fff; }
.upsell h2 { font-size: 18px; text-align: center; }
.upsell-sub { text-align: center; color: #b8bae4; font-size: 12px; margin: 6px 0 18px; }
.plan-list { display: grid; gap: 12px; }
.plan { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 16px; text-align: center; }
.plan h3 { font-size: 14px; }
.plan-discount { color: #ffb37c; font-size: 12px; margin: 4px 0; }
.plan-price { font-size: 24px; font-weight: 800; color: #ffcf8a; margin: 6px 0 12px; }
.plan-price small { font-size: 12px; color: #b8bae4; font-weight: 400; }
.plan-list.big { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan-list.big .plan { background: #fff; border-color: #eceef8; color: #333; }
.upsell-note { text-align: center; color: #b8bae4; font-size: 12px; margin-top: 18px; }

/* ===== 上传页 ===== */
.plain-page { background: #fff; border-radius: 14px; padding: 28px; box-shadow: 0 2px 12px rgba(60,60,140,.06); }
.plain-page h1 { font-size: 20px; margin-bottom: 18px; border-left: 4px solid #5b5bd6; padding-left: 10px; }
.drop-zone { border: 2px dashed #c6cbef; border-radius: 12px; padding: 44px 20px; text-align: center; cursor: pointer; background: #fafafe; margin-bottom: 16px; }
.drop-zone:hover { border-color: #5b5bd6; background: #f6f7ff; }
.dz-icon { font-size: 36px; }
.drop-zone p { color: #666; }
.dz-sub { color: #aaa; font-size: 12px; margin-top: 4px; }
.chosen { background: #eef3ff; border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; color: #3456c9; font-size: 13px; }
.upload-form label { display: block; color: #555; margin: 10px 0 6px; font-size: 13px; }
.upload-form input[type=text] { width: 100%; height: 40px; border: 1px solid #dfe3f0; border-radius: 8px; padding: 0 14px; }
.form-grid { display: flex; gap: 24px; margin: 4px 0 10px; }
.checkbox { display: flex !important; align-items: center; gap: 6px; color: #555 !important; margin: 0 !important; }
.checkbox input { width: auto !important; }

/* ===== 用户中心 ===== */
.user-head { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 14px; padding: 22px 26px; margin-bottom: 18px; }
.user-head h1 { font-size: 20px; color: #1d1f42; }
.user-head .meta { color: #999; font-size: 13px; margin-top: 4px; }
.simple-table { width: 100%; border-collapse: collapse; }
.simple-table th, .simple-table td { padding: 10px 12px; border-bottom: 1px solid #f0f1f8; text-align: left; font-size: 13px; }
.simple-table th { background: #fafafe; color: #666; }
.tag { display: inline-block; background: #eef1f6; color: #777; padding: 2px 10px; border-radius: 12px; font-size: 12px; margin-right: 4px; }
.tag.green { background: #e8f8f5; color: #0b8a76; }
.tag.red { background: #fef0ef; color: #d93025; }

/* ===== 会员页 ===== */
.vip-page { background: #fff; border-radius: 14px; padding: 34px; text-align: center; }
.vip-page h1 { font-size: 24px; color: #1d1f42; }
.vip-sub { color: #999; margin: 8px 0 24px; }
.vip-status { background: #e8f8f5; border: 1px solid #b5ece3; border-radius: 10px; padding: 16px; margin-bottom: 20px; }
.vip-status strong { color: #0b8a76; font-size: 16px; }
.vip-status span { display: block; color: #777; font-size: 13px; margin-top: 4px; }

/* ===== 登录/注册 ===== */
.auth-wrap { display: flex; justify-content: center; padding: 56px 0; }
.auth-box { width: 380px; background: #fff; border-radius: 14px; padding: 32px; box-shadow: 0 4px 18px rgba(60,60,140,.08); }
.auth-box h1 { font-size: 20px; text-align: center; margin-bottom: 20px; }
.auth-box label { display: block; color: #666; margin-bottom: 14px; }
.auth-box input { width: 100%; height: 40px; border: 1px solid #dfe3f0; border-radius: 8px; padding: 0 14px; margin-top: 6px; }
.auth-link { text-align: center; margin-top: 16px; color: #999; font-size: 13px; }
.auth-link a { color: #5b5bd6; }

/* ===== 页脚 ===== */
.footer { background: #1d1f42; color: #9a9cc4; margin-top: 20px; }
.footer-inner { padding: 30px 0; text-align: center; }
.footer-logo { color: #fff; font-size: 17px; font-weight: 700; }
.footer-note { font-size: 12px; margin: 8px 0; }
.footer-copy { font-size: 12px; opacity: .7; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    .file-grid { grid-template-columns: repeat(3, 1fr); }
    .share-wrap { flex-direction: column; }
    .upsell { width: 100%; }
    .features { grid-template-columns: 1fr; margin-top: -20px; }
    .tier-list { grid-template-columns: 1fr; }
    .plan-list.big { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .header-inner { height: 54px; position: relative; }
    .logo { margin-right: 12px; }
    .nav-toggle { display: block; }
    .nav { display: none; position: absolute; top: 54px; left: 0; right: 0; background: #1d1f42; flex-direction: column; }
    .nav.open { display: flex; }
    .nav li a { padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,.06); }
    .header-right { gap: 10px; }
    .hero { padding-top: 44px; }
    .hero h1 { font-size: 28px; }
    .hero-stats { gap: 30px; }
    .file-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid { flex-direction: column; gap: 10px; }
}

/* ===== 后台 ===== */
.admin-body { background: #eef0f8; }
.admin-layout { display: flex; min-height: 100vh; }
.admin-side { width: 210px; background: #1d1f42; flex-shrink: 0; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.side-logo { padding: 20px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.side-logo a { color: #fff; font-size: 15px; font-weight: 700; }
.side-logo small { display: block; color: #7f81b8; font-size: 12px; font-weight: 400; margin-top: 2px; }
.side-menu { flex: 1; padding: 12px 0; }
.side-menu li a { display: block; color: #a8aadb; padding: 12px 20px; font-size: 14px; border-left: 3px solid transparent; }
.side-menu li a:hover { color: #fff; background: rgba(255,255,255,.05); }
.side-menu li a.on { color: #fff; background: rgba(124,124,240,.14); border-left-color: #7c7cf0; }
.side-extra { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 8px; }
.side-extra a { color: #7f81b8; font-size: 13px; }
.admin-main { flex: 1; min-width: 0; }
.admin-top { background: #fff; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid #e8eaf5; }
.admin-top h2 { font-size: 16px; color: #1d1f42; }
.admin-name { color: #999; font-size: 13px; }
.admin-content { padding: 20px 22px 40px; }
.stat-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card { background: #fff; border-radius: 12px; padding: 18px; border-top: 3px solid #5b5bd6; }
.stat-card.warn { border-top-color: #ff5f2e; }
.stat-card em { display: block; color: #999; font-style: normal; font-size: 13px; }
.stat-card strong { display: block; font-size: 24px; color: #1d1f42; margin-top: 6px; }
.panel { background: #fff; border-radius: 12px; padding: 18px; margin-bottom: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.panel-head h3 { font-size: 15px; color: #1d1f42; border-left: 4px solid #5b5bd6; padding-left: 9px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 10px; flex-wrap: wrap; }
.toolbar-form { display: flex; gap: 8px; }
.toolbar-form input { height: 34px; border: 1px solid #dfe3f0; border-radius: 8px; padding: 0 10px; }
.table { width: 100%; border-collapse: collapse; }
.table th { background: #fafafe; color: #666; text-align: left; padding: 10px 12px; font-size: 13px; border-bottom: 1px solid #eceef8; white-space: nowrap; }
.table td { padding: 9px 12px; font-size: 13px; border-bottom: 1px solid #f3f4fa; vertical-align: middle; }
.table tr:hover td { background: #fafafe; }
.td-title { max-width: 280px; }
.td-ops { white-space: nowrap; }
.td-ops a { color: #5b5bd6; margin-right: 10px; }
.inline-form { display: inline; }
.form-panel { background: #fff; border-radius: 12px; padding: 24px; }
.form-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-h3 { margin: 26px 0 14px; font-size: 15px; color: #1d1f42; border-left: 4px solid #5b5bd6; padding-left: 9px; }
.form-group label { display: block; color: #555; font-size: 13px; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; border: 1px solid #dfe3f0; border-radius: 8px; padding: 9px 12px; }
.form-group textarea { resize: vertical; }
.form-group.full { grid-column: 1 / -1; }
.field-tip { color: #999; font-size: 12px; margin-top: 4px; }
.form-actions { margin-top: 22px; display: flex; gap: 10px; }

/* ===== 后台登录 ===== */
.admin-login-body { background: linear-gradient(135deg, #1d1f42, #3b3f9e); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.admin-login-box { width: 380px; background: #fff; border-radius: 14px; padding: 34px; box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.admin-login-box h1 { font-size: 19px; text-align: center; margin-bottom: 22px; color: #1d1f42; }
.admin-login-box label { display: block; color: #666; margin-bottom: 14px; }
.admin-login-box input { width: 100%; height: 42px; border: 1px solid #dfe3f0; border-radius: 8px; padding: 0 12px; margin-top: 6px; }
.admin-login-box p { text-align: center; margin-top: 16px; font-size: 13px; }
.admin-login-box p a { color: #5b5bd6; }

/* ===== 安装页 ===== */
.install-body { background: linear-gradient(135deg, #1d1f42, #3b3f9e); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px 10px; }
.install-box { width: 560px; max-width: 100%; background: #fff; border-radius: 14px; padding: 34px; box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.install-box h1 { font-size: 21px; text-align: center; color: #1d1f42; margin-bottom: 24px; }
.install-box h2 { font-size: 15px; color: #1d1f42; margin: 20px 0 12px; border-left: 4px solid #5b5bd6; padding-left: 9px; }
.install-form label { display: block; color: #666; margin-bottom: 12px; font-size: 13px; }
.install-form input, .install-form select { width: 100%; height: 40px; border: 1px solid #dfe3f0; border-radius: 8px; padding: 0 12px; margin-top: 5px; }
.install-warn { background: #fff7e6; color: #ad6800; border: 1px solid #ffe1a8; padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 12px; }
.install-error { background: #fef0ef; color: #d93025; border: 1px solid #f6c8c4; padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 12px; }
.install-ok { text-align: center; }
.install-ok h2 { color: #0b8a76; margin-bottom: 12px; }
.install-ok p { color: #555; margin: 8px 0; font-size: 14px; }
.install-ok .tip { color: #999; font-size: 12px; }
