/* 未来山海音乐平台 - 样式表 */
:root {
  --bg: #080b14;
  --bg-2: #0d1220;
  --panel: #121829;
  --panel-2: #171e33;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.16);
  --text: #eef1f8;
  --muted: #9aa4bd;
  --dim: #69738d;
  --brand: #ff6a3d;
  --brand-2: #ff9a5a;
  --accent: #49d6c4;
  --danger: #ff5c72;
  --radius: 16px;
  --shadow: 0 18px 48px rgba(0,0,0,.35);
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(255,106,61,.14), transparent 60%),
    radial-gradient(800px 500px at 88% 8%, rgba(73,214,196,.10), transparent 60%),
    radial-gradient(700px 600px at 50% 110%, rgba(120,90,255,.10), transparent 60%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.wrap { width: min(var(--maxw), calc(100% - 48px)); margin-inline: auto; }
.main { flex: 1; padding-bottom: 120px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8,11,20,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 74px;
  display: flex;
  align-items: center;
  gap: 34px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), #ffb26b);
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(255,106,61,.35);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: .5px; white-space: nowrap; }
.brand-name span { color: var(--brand); }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav a {
  padding: 9px 13px; border-radius: 9px; font-size: 14px; color: var(--muted);
  white-space: nowrap; transition: .2s ease;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav a.active { color: var(--brand-2); background: rgba(255,106,61,.12); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; transition: .2s ease; line-height: 1.3;
}
.btn-primary { background: linear-gradient(135deg, var(--brand), #ff8f52); color: #fff; box-shadow: 0 8px 22px rgba(255,106,61,.25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(255,106,61,.38); }
.btn-ghost { background: rgba(255,255,255,.05); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.user-chip {
  display: flex; align-items: center; gap: 9px; padding: 5px 12px 5px 6px;
  border: 1px solid var(--line-strong); border-radius: 30px; background: rgba(255,255,255,.04); font-size: 13px;
}
.avatar {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #6d5cff, #49d6c4); font-weight: 700; font-size: 13px; color: #08111a;
}
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .3px;
}
.badge-member { background: linear-gradient(135deg, rgba(255,180,80,.2), rgba(255,106,61,.2)); color: #ffc08a; border: 1px solid rgba(255,160,90,.4); }
.badge-free { background: rgba(255,255,255,.07); color: var(--muted); border: 1px solid var(--line); }
.badge-accent { background: rgba(73,214,196,.12); color: var(--accent); border: 1px solid rgba(73,214,196,.3); }
.menu-toggle { display: none; background: none; border: 0; color: var(--text); padding: 8px; }

/* ---------- 通用区块 ---------- */
.section { padding: 80px 0; }
.section-sm { padding: 52px 0; }
.section-head { margin-bottom: 34px; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2.5px;
  color: var(--brand-2); text-transform: uppercase; margin-bottom: 10px;
}
.section-title { font-size: clamp(26px, 3.4vw, 40px); margin: 0 0 10px; letter-spacing: -.5px; line-height: 1.3; }
.section-sub { color: var(--muted); margin: 0; max-width: 720px; }
.text-center { text-align: center; }

.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- 首页 Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; }
.hero::after {
  content: ""; position: absolute; right: -80px; top: 20px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,106,61,.18), transparent 65%); pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.16; margin: 14px 0 20px; letter-spacing: -1.5px; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--brand), #ffc27a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 38px; margin-top: 46px; }
.hero-stat b { display: block; font-size: 26px; color: var(--text); }
.hero-stat span { font-size: 13px; color: var(--dim); }
.hero-art {
  position: relative; aspect-ratio: 1; border-radius: 28px; overflow: hidden;
  background: linear-gradient(145deg, #1a1938, #0d1526 55%, #221328);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  display: grid; place-items: center;
}
.hero-art .disc {
  width: 66%; aspect-ratio: 1; border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, #141a2c 0 5px, #1b2238 5px 8px);
  border: 2px solid rgba(255,255,255,.12);
  box-shadow: inset 0 0 50px rgba(0,0,0,.8), 0 0 60px rgba(255,106,61,.18);
  position: relative; animation: spin 18s linear infinite;
}
.hero-art .disc::after {
  content: ""; position: absolute; inset: 38%; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #ffc27a);
  border: 6px solid #12172a;
}
@keyframes spin { to { transform: rotate(360deg); } }
.eq { position: absolute; bottom: 26px; left: 26px; display: flex; align-items: flex-end; gap: 4px; height: 38px; }
.eq i { width: 4px; border-radius: 3px; background: linear-gradient(var(--brand), var(--accent)); animation: eq 1s ease-in-out infinite alternate; }
.eq i:nth-child(1) { height: 40%; animation-delay: .1s; }
.eq i:nth-child(2) { height: 80%; animation-delay: .3s; }
.eq i:nth-child(3) { height: 55%; animation-delay: .5s; }
.eq i:nth-child(4) { height: 95%; animation-delay: .2s; }
.eq i:nth-child(5) { height: 65%; animation-delay: .6s; }
.eq i:nth-child(6) { height: 35%; animation-delay: .4s; }
@keyframes eq { to { height: 20%; opacity: .55; } }

.feature-card { padding: 26px; transition: .25s ease; }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(255,106,61,.35); }
.feature-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(255,106,61,.12); color: var(--brand-2); font-size: 22px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- 音乐作品 ---------- */
.track-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 22px; }
#featuredTracks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.track-card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: .25s ease;
}
.track-card:hover { transform: translateY(-5px); border-color: rgba(255,106,61,.35); box-shadow: var(--shadow); }
.track-cover { position: relative; aspect-ratio: 1; overflow: hidden; }
.track-cover img { width: 100%; height: 100%; object-fit: cover; }
.track-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8,11,20,.82));
}
.play-fab {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: linear-gradient(135deg, var(--brand), #ff9a5a); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.4);
  transition: .2s ease;
}
.play-fab:hover { transform: scale(1.08); }
.play-fab svg { width: 19px; height: 19px; margin-left: 2px; }
.track-body { padding: 16px 18px 20px; }
.track-title { font-size: 17px; font-weight: 700; margin: 0 0 3px; }
.track-meta { color: var(--muted); font-size: 13px; }
.track-tags { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.tag { font-size: 11px; padding: 3px 9px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--muted); }

/* ---------- 公告 ---------- */
.notice-list { display: flex; flex-direction: column; gap: 12px; }
.notice-item {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
  padding: 22px 26px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel); transition: .2s ease;
}
.notice-item:hover { border-color: rgba(255,106,61,.4); transform: translateX(4px); }
.notice-date { color: var(--dim); font-size: 13px; font-variant-numeric: tabular-nums; }
.notice-item h3 { margin: 0 0 5px; font-size: 17px; }
.notice-item p { margin: 0; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 720px; }
.notice-arrow { color: var(--brand-2); font-size: 20px; }
.article { max-width: 900px; margin-inline: auto; }
.article h1 { font-size: 34px; margin: 0 0 16px; }
.article-meta { display: flex; gap: 14px; align-items: center; color: var(--dim); font-size: 13px; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.article-content { white-space: pre-wrap; font-size: 15px; color: #d7dced; line-height: 2.05; }
.article-content p { margin: 0 0 4px; }

/* ---------- 表单 ---------- */
.form-card { max-width: 640px; margin-inline: auto; }
.form-card.wide { max-width: 800px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: #cdd4e6; margin-bottom: 8px; }
.field label .req { color: var(--brand); margin-left: 3px; }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; color: var(--text);
  background: rgba(255,255,255,.045); border: 1px solid var(--line-strong); outline: none; transition: .2s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); background: rgba(255,255,255,.07); box-shadow: 0 0 0 3px rgba(255,106,61,.12); }
.input::placeholder, .textarea::placeholder { color: #5d6780; }
.textarea { resize: vertical; min-height: 92px; }
.hint { font-size: 12px; color: var(--dim); margin-top: 6px; }
.alert { padding: 12px 15px; border-radius: 10px; font-size: 13px; margin-bottom: 18px; display: none; }
.alert.error { display: block; background: rgba(255,92,114,.12); border: 1px solid rgba(255,92,114,.35); color: #ff9caa; }
.alert.success { display: block; background: rgba(73,214,196,.1); border: 1px solid rgba(73,214,196,.3); color: #80e8d9; }
.checkline { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--muted); cursor: pointer; }
.checkline input { accent-color: var(--brand); margin-top: 4px; }
.checkline a { color: var(--brand-2); text-decoration: underline; }
.agree-row { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--muted); }
.agree-row input { accent-color: var(--brand); margin-top: 4px; }
.policy-link { color: var(--brand-2); text-decoration: underline; }
.policy-link:hover { color: #ffc08a; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; flex-wrap: wrap; }
.form-foot a { color: var(--brand-2); font-size: 13px; }

.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.amount-option {
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 16px 10px;
  background: rgba(255,255,255,.04); text-align: center; transition: .2s; color: var(--text);
}
.amount-option:hover { border-color: rgba(255,106,61,.6); }
.amount-option.selected { border-color: var(--brand); background: rgba(255,106,61,.13); box-shadow: 0 0 0 2px rgba(255,106,61,.15); }
.amount-option b { display: block; font-size: 22px; }
.amount-option span { font-size: 11px; color: var(--muted); }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.method-option {
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 15px 10px; text-align: center;
  background: rgba(255,255,255,.04); transition: .2s; color: var(--text); font-size: 14px;
}
.method-option:hover { border-color: rgba(255,106,61,.6); }
.method-option.selected { border-color: var(--brand); background: rgba(255,106,61,.13); }
.method-option .micon { font-size: 20px; display: block; margin-bottom: 5px; }
.upload-zone {
  border: 1px dashed var(--line-strong); border-radius: 12px; padding: 22px; text-align: center;
  color: var(--muted); font-size: 13px; cursor: pointer; transition: .2s; background: rgba(255,255,255,.02);
}
.upload-zone:hover { border-color: var(--brand); color: var(--text); }
.upload-zone img { max-height: 120px; margin: 10px auto 0; border-radius: 8px; }

/* 收款二维码 */
.qr-frame {
  width: 220px; height: 220px; margin: 0 auto; padding: 10px;
  background: #fff; border-radius: 14px; cursor: zoom-in;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.qr-frame img { width: 100%; height: 100%; object-fit: contain; }
.qr-amount {
  margin: 14px auto 0; width: fit-content; padding: 6px 16px; border-radius: 20px;
  background: rgba(255,106,61,.14); border: 1px solid rgba(255,106,61,.35);
  color: var(--brand-2); font-size: 14px; font-weight: 700;
}
.pay-steps { margin: 16px 0 0; padding-left: 22px; color: var(--muted); font-size: 12px; line-height: 2; }
.pay-steps li::marker { color: var(--brand); font-weight: 700; }

.notice-box {
  border: 1px solid rgba(73,214,196,.25); background: rgba(73,214,196,.07);
  border-radius: 12px; padding: 14px 16px; color: #a9e9df; font-size: 13px; margin-bottom: 22px;
}

/* ---------- 会员中心 / 订单 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.stat-box { padding: 22px; }
.stat-box span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.stat-box b { font-size: 26px; }
.stat-box b.hl { color: var(--brand-2); }
.order-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.order-table th, .order-table td { padding: 13px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.order-table th { color: var(--dim); font-weight: 500; font-size: 12px; }
.status-paid { color: var(--accent); }
.status-pending { color: #ffc27a; }

/* ---------- 底部播放器 ---------- */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(13,18,32,.96); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line-strong); transform: translateY(110%); transition: transform .3s ease;
}
.player.show { transform: translateY(0); }
.player-inner { height: 82px; display: flex; align-items: center; gap: 20px; }
.player-cover { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; }
.player-info { width: 170px; flex-shrink: 0; }
.player-info b { display: block; font-size: 14px; }
.player-info span { font-size: 12px; color: var(--dim); }
.player-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; flex-shrink: 0;
  background: var(--brand); color: #fff; display: grid; place-items: center;
}
.player-btn svg { width: 17px; height: 17px; }
.player-bar { flex: 1; display: flex; align-items: center; gap: 12px; }
.player-bar input[type=range] { flex: 1; accent-color: var(--brand); cursor: pointer; }
.player-time { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.player-mode { flex-shrink: 0; }
.player-close { background: none; border: 0; color: var(--dim); padding: 6px; font-size: 18px; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line); background: #05070d; padding: 52px 0 26px; margin-top: auto;
}
.footer-top { display: grid; grid-template-columns: 1.1fr 1.6fr; gap: 50px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--dim); font-size: 13px; max-width: 360px; margin: 0; }
.footer-contact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 30px; }
.footer-contact div { font-size: 13px; color: var(--muted); }
.footer-contact b { color: var(--dim); font-weight: 500; margin-right: 6px; }
.footer-links { margin-top: 22px; display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a, .footer-bottom a { color: var(--muted); font-size: 12px; }
.footer-links a:hover, .footer-bottom a:hover { color: var(--brand-2); }
.footer-bottom { padding-top: 22px; text-align: center; color: var(--dim); font-size: 12px; }
.footer-bottom .line1 { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin-bottom: 10px; }

/* ---------- 其他 ---------- */
.empty { text-align: center; color: var(--dim); padding: 44px 20px; border: 1px dashed var(--line); border-radius: 14px; }
.toast {
  position: fixed; top: 92px; left: 50%; transform: translate(-50%, -12px); z-index: 100;
  background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 12px 20px; font-size: 13px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.breadcrumb { color: var(--dim); font-size: 13px; margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--brand-2); }

@media (max-width: 900px) {
  .wrap { width: min(100% - 32px, var(--maxw)); }
  .header-inner { height: auto; min-height: 68px; flex-wrap: wrap; gap: 10px; padding: 12px 0; }
  .nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .nav a { padding: 7px 10px; }
  .header-actions { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { max-width: 420px; }
  .grid-3, .grid-2, .stat-grid { grid-template-columns: 1fr; }
  #featuredTracks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notice-item { grid-template-columns: 1fr auto; gap: 8px; }
  .notice-date { grid-column: 1 / -1; }
  .notice-item p { max-width: 100%; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: 1fr; }
  .player-info { width: 110px; }
  .player-mode { display: none; }
  .section { padding: 60px 0; }
}
@media (max-width: 520px) {
  #featuredTracks { grid-template-columns: 1fr; }
  .brand-name { font-size: 16px; }
  .header-actions .btn { padding: 8px 11px; font-size: 12px; }
  .hero { padding: 62px 0 56px; }
  .hero-stats { gap: 22px; }
  .footer-contact { grid-template-columns: 1fr; }
  .player-cover { display: none; }
  .player-inner { gap: 10px; }
}
