:root {
  --rose: #e0447c;
  --rose-dark: #c12f66;
  --rose-soft: #fdeef4;
  --ink: #241a1f;
  --muted: #8a7d83;
  --line: #eee4e8;
  --bg: #fdeef4;
  --card: #fff;
  --gold: #f5b942;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(36, 26, 31, .08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; background: linear-gradient(180deg, #fdeef4 0%, #f6e7fa 55%, #efe9fc 100%) center/cover no-repeat fixed; color: var(--ink); line-height: 1.55; }
/* 全站深色背景图 + 遮罩（内容区仍是白卡片，保证可读性） */
body { background-image: url('/static/img/bg.jpg'); background-size: cover; background-position: center; background-attachment: fixed; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,15,26,.80) 0%, rgba(26,18,32,.68) 55%, rgba(18,14,24,.82) 100%); }
img { max-width: 100%; display: block; }
a { color: var(--rose-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; }
.muted { color: rgba(255,255,255,.62); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.page { min-height: 62vh; padding-top: 26px; padding-bottom: 60px; }
.page-title { font-size: 28px; font-weight: 800; margin-bottom: 22px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.45); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: linear-gradient(180deg, rgba(18,13,24,.55) 0%, rgba(18,13,24,.25) 100%); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header .brand { color: #fff; }
.site-header .nav > a { color: rgba(255,255,255,.92); }
.site-header .link-btn { color: rgba(255,255,255,.9); }
.site-header .link-btn:hover { color: #ffd6e6; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 10px; }
.brand { font-weight: 800; font-size: 19px; color: var(--ink); }
.brand-heart { margin-right: 4px; }
.nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nav > a { color: var(--ink); font-weight: 500; font-size: 14.5px; }
.inline-form { display: inline; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.lang-switch a { color: rgba(255,255,255,.65); padding: 2px 4px; border-radius: 6px; }
.lang-switch a:hover { color: #fff; text-decoration: none; }
.lang-switch a.active { color: #fff; background: rgba(255,255,255,.16); }
.lang-div { color: rgba(255,255,255,.3); }
.link-btn { background: none; border: none; color: var(--ink); font: inherit; font-weight: 500; font-size: 14.5px; cursor: pointer; }
.link-btn:hover { color: var(--rose-dark); }

/* buttons */
.btn { display: inline-block; border: none; cursor: pointer; font: inherit; font-weight: 600; border-radius: 999px; padding: 10px 20px; text-align: center; transition: .15s; line-height: 1.3; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--rose), #b23bd8); color: #fff; box-shadow: 0 6px 18px rgba(224,68,124,.35); }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(224,68,124,.45); }
.btn-outline { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.22); }
.btn-light { background: rgba(255,255,255,.16); color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
.btn-ghost { background: rgba(255,255,255,.16); color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
.btn-danger { background: #e5484d; color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13.5px; }
.btn-lg { padding: 13px 26px; font-size: 16px; }
.btn-block { display: block; width: 100%; }

/* flash */
.flash { padding: 12px 18px; border-radius: 10px; margin: 16px auto; font-size: 14.5px; display: flex; gap: 8px; align-items: center; }
.flash-ok { background: rgba(46,160,90,.22); color: #8ff0b6; border: 1px solid rgba(46,160,90,.45); }
.flash-err { background: rgba(220,60,70,.22); color: #ffb3b3; border: 1px solid rgba(220,60,70,.45); }

/* hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #f7659a 0%, #a94fe0 60%, #6f6cf0 100%); color: #fff; border-radius: 22px; padding: 64px 40px; text-align: center; margin-top: 8px; }
.hero::after { content: ''; position: absolute; inset: 0; background: url('/static/img/hero-bg.jpg') center/cover no-repeat; opacity: .5; z-index: 0; }
.hero-inner { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 800; letter-spacing: -.5px; }
.hero .grad { background: linear-gradient(90deg, #ffe29a, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 560px; margin: 16px auto 26px; font-size: 17px; opacity: .95; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 22px; }
.hero-stats span { font-size: 13px; opacity: .85; }

/* sections */
.section-title { font-size: 26px; font-weight: 800; margin-bottom: 20px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.how { padding: 56px 0 8px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 26px; box-shadow: 0 8px 30px rgba(0,0,0,.22); backdrop-filter: blur(8px); }
.step-num { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--rose), #b23bd8); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.step h3 { margin-bottom: 8px; font-size: 17px; color: #fff; }
.step p { color: rgba(255,255,255,.72); font-size: 14.5px; }
/* 第一个步骤卡片（创建账户）：图片背景半透明结合主题 */
.steps .step:first-child { position: relative; overflow: hidden; }
.steps .step:first-child::before { content: ''; position: absolute; inset: 0; background: url('/static/img/step-create-bg.jpg') center/cover no-repeat; opacity: .45; z-index: 0; }
.steps .step:first-child > * { position: relative; z-index: 1; }
/* 第二个步骤卡片（充值 USDT） */
.steps .step:nth-child(2) { position: relative; overflow: hidden; }
.steps .step:nth-child(2)::before { content: ''; position: absolute; inset: 0; background: url('/static/img/step-deposit-bg.jpg') center/cover no-repeat; opacity: .45; z-index: 0; }
.steps .step:nth-child(2) > * { position: relative; z-index: 1; }
/* 第三个步骤卡片（解锁联系） */
.steps .step:nth-child(3) { position: relative; overflow: hidden; }
.steps .step:nth-child(3)::before { content: ''; position: absolute; inset: 0; background: url('/static/img/step-unlock-bg.jpg') center/cover no-repeat; opacity: .45; z-index: 0; }
.steps .step:nth-child(3) > * { position: relative; z-index: 1; }
.featured { padding: 40px 0 8px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cta-band { background: rgba(255,255,255,.09); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.16); color: #fff; border-radius: 22px; padding: 48px 40px; text-align: center; margin-top: 48px; }
.cta-band h2 { font-size: 28px; margin-bottom: 10px; }
.cta-band p { opacity: .85; margin-bottom: 22px; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.card { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.25); backdrop-filter: blur(8px); display: block; color: #fff; transition: .18s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.35); text-decoration: none; }
.card-img { position: relative; aspect-ratio: 4/5; background: #f1e9ec; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img-ph { width: 100%; height: 100%; background: linear-gradient(135deg, #f9e4ec, #e9dcf7); }
.badge { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
.card-body { padding: 14px 16px 16px; }
.card-name { font-weight: 700; font-size: 16px; color: #fff; }
.card-name .muted { color: rgba(255,255,255,.62); }
.card-sub { font-size: 13px; color: rgba(255,255,255,.72); margin: 2px 0 8px; }
.card-brief { font-size: 13.5px; color: rgba(255,255,255,.78); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 700; color: #fff; background: rgba(255,255,255,.18); padding: 5px 12px; border-radius: 999px; }

/* filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); padding: 14px; border-radius: var(--radius); backdrop-filter: blur(8px); box-shadow: 0 8px 30px rgba(0,0,0,.22); }
.filters select, .filters input { border: 1.5px solid rgba(255,255,255,.25); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 14px; background: rgba(255,255,255,.12); color: #fff; }
.filters select option { background: #2b2133; color: #fff; }
.filters input[type=search] { flex: 1; min-width: 180px; }
.empty { padding: 60px 0; text-align: center; color: rgba(255,255,255,.78); }
.empty a { color: #ffd6e6; }

/* profile page */
.profile { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 30px; align-items: start; }
.profile-gallery { position: sticky; top: 84px; }
.gallery-main { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: #f1e9ec; }
.gallery-main.ph { background: linear-gradient(135deg, #f9e4ec, #e9dcf7); }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; cursor: pointer; border: 2px solid transparent; opacity: .75; }
.thumb.active { border-color: var(--rose); opacity: 1; }
.profile-info h1 { font-size: 30px; margin-bottom: 8px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tag { background: rgba(255,255,255,.18); color: #fff; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.profile-info h3 { margin: 20px 0 8px; font-size: 17px; }
.brief-text { white-space: pre-line; color: rgba(255,255,255,.85); }
.lock-box { background: rgba(255,255,255,.09); backdrop-filter: blur(8px); border: 1.5px dashed rgba(255,255,255,.4); border-radius: var(--radius); padding: 26px; text-align: center; margin-top: 20px; }
.lock-icon { font-size: 38px; }
.lock-box h3 { margin: 10px 0 8px; color: #fff; }
.lock-box p { color: rgba(255,255,255,.72); margin-bottom: 16px; font-size: 14.5px; }
.unlocked { background: rgba(255,255,255,.09); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 22px; margin-top: 18px; }
.contact-list { margin-top: 8px; }
.contact-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(255,255,255,.10); border-radius: 10px; margin-bottom: 8px; }
.paid-note { margin-top: 14px; font-size: 13.5px; color: #7ef0a8; }

/* auth */
.auth-wrap { display: flex; justify-content: center; padding: 40px 0; }
.auth-card { width: 100%; max-width: 400px; background: rgba(255,255,255,.09); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.22); border-radius: 18px; padding: 34px; box-shadow: 0 18px 50px rgba(0,0,0,.4); color: #fff; }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; color: #fff; }
.auth-card > .muted { margin-bottom: 20px; color: rgba(255,255,255,.78); }
.auth-card .form label { color: rgba(255,255,255,.92); }
.auth-card .form input, .auth-card .form select, .auth-card .form textarea { background: rgba(255,255,255,.16); border: 1.5px solid rgba(255,255,255,.35); color: #fff; }
.auth-card .form input::placeholder, .auth-card .form textarea::placeholder { color: rgba(255,255,255,.55); }
.auth-card .form input:focus, .auth-card .form select:focus, .auth-card .form textarea:focus { border-color: #ffe29a; outline: none; }
.auth-card .muted { color: rgba(255,255,255,.72); }
.auth-card .muted a { color: #ffe29a; }

/* forms */
.form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 14px; color: rgba(255,255,255,.92); }
.form input, .form select, .form textarea { width: 100%; margin-top: 6px; border: 1.5px solid rgba(255,255,255,.25); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14.5px; background: rgba(255,255,255,.12); color: #fff; }
.form input::placeholder, .form textarea::placeholder { color: rgba(255,255,255,.5); }
.form select option { background: #2b2133; color: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: #ffe29a; }
.form textarea { resize: vertical; min-height: 80px; }

/* account */
.account-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.account-head h1 { font-size: 26px; }
.balance-card { background: rgba(255,255,255,.09); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.16); color: #fff; border-radius: 18px; padding: 26px 30px; margin-bottom: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.balance-label { font-size: 13px; opacity: .8; }
.balance-value { font-size: 38px; font-weight: 800; letter-spacing: -1px; }
.balance-value span { font-size: 16px; font-weight: 600; opacity: .85; }
.balance-value.small { font-size: 26px; }
.balance-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 22px; }
.panel { background: rgba(255,255,255,.09); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 22px; box-shadow: 0 8px 30px rgba(0,0,0,.22); margin-bottom: 22px; }
.panel h2 { font-size: 17px; margin-bottom: 14px; color: #fff; }
.row-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); flex-wrap: wrap; }
.row-item:last-child { border-bottom: none; }
.row-title { font-size: 14.5px; color: rgba(255,255,255,.85); }
.amt { font-weight: 700; }
.amt.pos { color: #7ef0a8; }
.amt.neg { color: #ff9a9a; }
.status { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; padding: 3px 9px; border-radius: 999px; }
.status.pending { background: rgba(245,185,66,.22); color: #ffd88a; }
.status.approved { background: rgba(46,160,90,.22); color: #8ff0b6; }
.status.confirmed { background: rgba(46,160,90,.22); color: #8ff0b6; }
.status.rejected { background: rgba(220,60,70,.22); color: #ffb3b3; }
.small-link { font-size: 13px; font-weight: 600; }

/* deposit */
.deposit { max-width: 760px; margin: 0 auto; }
.wallet-box { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.09); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 14px; flex-wrap: wrap; }
.wallet-addr { flex: 1; font-size: 15px; font-weight: 600; color: #fff; }
.qr-box { margin: 18px auto 6px; text-align: center; }
.qr-box img { width: 190px; height: 190px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); margin: 0 auto; }
.warn { background: rgba(245,185,66,.15); border: 1px solid rgba(245,185,66,.4); color: #ffd88a; border-radius: 10px; padding: 12px 14px; font-size: 13.5px; margin-top: 14px; }
.amount-options { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { border: 1.5px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; color: #fff; }
.chip.active { border-color: #ffe29a; background: rgba(255,255,255,.25); color: #ffe29a; }
.deposit-form { margin-top: 14px; }
.status.big { font-size: 20px; font-weight: 800; margin-bottom: 14px; }

/* upload */
.upload-layout { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }
.fee-note { background: rgba(245,185,66,.15); border: 1px solid rgba(245,185,66,.4); color: #ffd88a; border-radius: 10px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.file-label { border: 1.5px dashed rgba(255,255,255,.45); border-radius: 12px; padding: 16px; text-align: center; cursor: pointer; color: #fff; background: rgba(255,255,255,.12); margin-bottom: 14px; font-weight: 600; }
.file-label:hover { background: rgba(255,255,255,.2); }
.previews { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.previews img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.upload-side ul { margin-left: 18px; margin-bottom: 16px; font-size: 14px; color: rgba(255,255,255,.78); }
.upload-side li { margin-bottom: 6px; }

/* admin */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: rgba(255,255,255,.09); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: 0 8px 30px rgba(0,0,0,.22); }
.stat b { display: block; font-size: 22px; color: #fff; }
.stat span { font-size: 13px; color: rgba(255,255,255,.72); }
.admin-row { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); flex-wrap: wrap; }
.admin-thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; flex: none; background: #f1e9ec; }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-info { flex: 1; min-width: 220px; font-size: 14px; }
.admin-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* footer */
.site-footer { border-top: 1px solid rgba(255,255,255,.12); padding: 28px 0; margin-top: 30px; background: rgba(22,17,28,.85); backdrop-filter: blur(6px); }
.footer-inner { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: rgba(255,255,255,.62); font-size: 13.5px; }
.footer-links a { color: rgba(255,255,255,.6); }

/* error */
.error-page { text-align: center; padding: 80px 0; }
.error-page h1 { font-size: 64px; color: var(--rose); }

/* responsive */
@media (max-width: 760px) {
  .profile { grid-template-columns: 1fr; }
  .profile-gallery { position: static; }
  .cols, .upload-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .header-inner { height: auto; padding: 12px 0; flex-wrap: wrap; }
  .hero { padding: 44px 22px; }
}
