/* QieYun Theme - Xboard User Theme */
:root {
  --primary: #1890ff;
  --primary-dark: #096dd9;
  --primary-light: #e6f7ff;
  --success: #52c41a;
  --success-light: #28c76f;
  --warning: #faad14;
  --danger: #ff4d4f;
  --purple: #7c4dff;
  --orange: #ff9f43;
  --text: #262626;
  --text-secondary: #8c8c8c;
  --border: #f0f0f0;
  --input-border: #d9d9d9;
  --bg: #f5f7fa;
  --card: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,.06);
  --shadow-hover: 0 8px 24px rgba(0,0,0,.1);
  --gradient-btn: linear-gradient(90deg, #7c4dff, #1890ff);
  --nav-height: 60px;
  --transition: .2s ease;
}

[data-theme="dark"] {
  --primary: #4096ff;
  --primary-dark: #1677ff;
  --primary-light: #111d2c;
  --text: #e6edf3;
  --text-secondary: #8b949e;
  --border: #30363d;
  --input-border: #484f58;
  --bg: #0d1117;
  --card: #161b22;
  --shadow: 0 2px 12px rgba(0,0,0,.3);
  --shadow-hover: 0 8px 24px rgba(0,0,0,.4);
}

[data-theme="dark"] .qy-auth-card,
[data-theme="dark"] .qy-table th { background: var(--card); }
[data-theme="dark"] .message.staff { background: #21262d; }
[data-theme="dark"] .message.me { background: #111d2c; }
[data-theme="dark"] .filter-group { background: #21262d; }
[data-theme="dark"] .filter-group button.active { background: var(--card); }
[data-theme="dark"] .qy-purchase-summary,
[data-theme="dark"] .action-card.green { background: #1a2332; }
[data-theme="dark"] .action-card.blue { background: #111d2c; }
[data-theme="dark"] .notice-banner { background: #1a1225; }
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select { background: #0d1117; color: var(--text); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body, #app { height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); cursor: pointer; text-decoration: none; }
a:hover { opacity: .85; }
input, textarea, select, button { font: inherit; }
input, textarea, select {
  width: 100%; padding: 10px 14px; border: 1px solid var(--input-border);
  border-radius: var(--radius-sm); outline: none; transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--card); color: var(--text);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(24,144,255,.12);
}
.empty { text-align: center; color: var(--text-secondary); padding: 40px; }
.fade-enter-active, .fade-leave-active { transition: opacity .2s; }
.fade-enter-from, .fade-leave-to { opacity: 0; }

/* Buttons */
.qy-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 20px; border: none; border-radius: var(--radius-sm); cursor: pointer;
  font-weight: 500; transition: all var(--transition); white-space: nowrap;
}
.qy-btn.primary { background: var(--primary); color: #fff; }
.qy-btn.primary:hover:not(:disabled) { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(24,144,255,.3); }
.qy-btn.ghost { background: transparent; border: 1px solid var(--input-border); color: var(--text); }
.qy-btn.ghost:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.qy-btn.ghost.light { border-color: rgba(255,255,255,.6); color: #fff; }
.qy-btn.gradient { background: var(--gradient-btn); color: #fff; border: none; }
.qy-btn.outline-light { background: transparent; border: 1px solid rgba(255,255,255,.8); color: #fff; }
.qy-btn.dark { background: #262626; color: #fff; }
.qy-btn.danger { background: var(--danger); color: #fff; }
.qy-btn.block { width: 100%; }
.qy-btn.sm { padding: 6px 14px; font-size: 13px; }
.qy-btn.icon { padding: 6px 10px; }
.qy-btn.lg { padding: 12px 28px; font-size: 15px; }

/* Toast */
.qy-toast-box {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 10000; display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.qy-toast {
  padding: 10px 24px; border-radius: var(--radius-sm); background: #333; color: #fff;
  opacity: 0; transform: translateY(-8px); transition: all .3s; font-size: 14px;
  box-shadow: var(--shadow-hover); pointer-events: auto;
}
.qy-toast.show { opacity: 1; transform: translateY(0); }
.qy-toast-success { background: var(--success); }
.qy-toast-error { background: var(--danger); }
.qy-toast-warning { background: var(--warning); color: #333; }

/* Loading */
.qy-loading-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.25); backdrop-filter: blur(2px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 9000; gap: 12px;
}
.qy-spinner, .inline-spinner, .btn-spinner {
  width: 32px; height: 32px; border: 3px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin .7s linear infinite;
}
.inline-spinner, .btn-spinner { width: 16px; height: 16px; border-width: 2px; display: inline-block; vertical-align: middle; }
.qy-loading-overlay p { color: #fff; font-size: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Utilities */
.hover-lift { transition: transform var(--transition), box-shadow var(--transition); }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.mono { font-family: ui-monospace, 'Cascadia Code', monospace; font-size: 12px; word-break: break-all; }
.page-header.flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.form-stack { display: flex; flex-direction: column; gap: 12px; }
.center { text-align: center; }
.desktop-only { display: block; }
.mobile-only { display: none; }
.search-input-wrap {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 200px;
  background: var(--card); border: 1px solid var(--input-border); border-radius: var(--radius-sm); padding: 0 12px;
}
.search-input-wrap input { border: none; padding: 10px 0; box-shadow: none; }
.search-input-wrap:focus-within { border-color: var(--primary); }
.slide-up-enter-active, .slide-up-leave-active { transition: all .25s; }
.slide-up-enter-from, .slide-up-leave-to { opacity: 0; transform: translateY(10px); }

/* ===== Landing Page ===== */
.qy-landing { min-height: 100vh; background: var(--bg); color: var(--text); }
.landing-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.landing-header.glass {
  background: rgba(15, 23, 42, .72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.landing-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 64px;
  display: flex; align-items: center; gap: 24px;
}
.landing-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; flex-shrink: 0; color: #fff; font-size: 16px; }
.landing-logo { height: 32px; width: auto; border-radius: 6px; }
.landing-nav { display: flex; gap: 28px; flex: 1; justify-content: center; }
.landing-nav a { color: rgba(255,255,255,.75); font-size: 14px; transition: color var(--transition); cursor: pointer; }
.landing-nav a:hover { color: #fff; }
.landing-actions { display: flex; gap: 10px; flex-shrink: 0; }
.landing-actions .qy-btn.ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.landing-actions .qy-btn.ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.landing-hero {
  position: relative; padding: 72px 24px 88px; overflow: hidden;
  background: linear-gradient(145deg, #0a0e1a 0%, #0f2744 45%, #0a1628 100%);
  color: #fff;
}
.hero-grid-bg {
  position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-glow {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(24,144,255,.25) 0%, transparent 70%);
  top: -100px; right: -100px; pointer-events: none;
}
.hero-layout {
  position: relative; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.hero-content { text-align: left; }
.hero-badge {
  display: inline-block; padding: 6px 14px; border-radius: 20px; font-size: 12px;
  background: rgba(24,144,255,.2); border: 1px solid rgba(24,144,255,.4);
  color: #69c0ff; margin-bottom: 20px;
}
.hero-logo { height: 52px; width: auto; margin-bottom: 16px; border-radius: 10px; }
.hero-content h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 16px; font-weight: 800; line-height: 1.2; }
.hero-desc { font-size: 16px; opacity: .82; line-height: 1.8; margin-bottom: 32px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; height: 380px; display: flex; align-items: center; justify-content: center; }
.earth-globe { position: relative; width: 260px; height: 260px; }
.earth-sphere {
  width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4fc3f7, #1565c0 50%, #0d2137 100%);
  box-shadow: inset -20px -20px 40px rgba(0,0,0,.4), 0 0 60px rgba(24,144,255,.35);
  animation: earthSpin 20s linear infinite;
}
.earth-ring {
  position: absolute; inset: -20px; border: 2px solid rgba(24,144,255,.3);
  border-radius: 50%; transform: rotateX(70deg);
  animation: ringPulse 3s ease-in-out infinite;
}
@keyframes earthSpin { from { background-position: 0 0; } to { filter: hue-rotate(10deg); } }
@keyframes ringPulse { 0%, 100% { opacity: .5; transform: rotateX(70deg) scale(1); } 50% { opacity: 1; transform: rotateX(70deg) scale(1.05); } }

.stream-orbit { position: absolute; inset: 0; }
.stream-chip {
  position: absolute; width: 40px; height: 40px; border-radius: 10px;
  background: var(--c); color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  top: calc(50% + sin(calc(var(--i) * 30deg)) * 140px - 20px);
  left: calc(50% + cos(calc(var(--i) * 30deg)) * 140px - 20px);
  animation: chipFloat 4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.2s);
}
.stream-chip:nth-child(1) { top: 10%; left: 20%; }
.stream-chip:nth-child(2) { top: 5%; left: 55%; }
.stream-chip:nth-child(3) { top: 25%; left: 85%; }
.stream-chip:nth-child(4) { top: 55%; left: 90%; }
.stream-chip:nth-child(5) { top: 80%; left: 70%; }
.stream-chip:nth-child(6) { top: 85%; left: 35%; }
.stream-chip:nth-child(7) { top: 70%; left: 5%; }
.stream-chip:nth-child(8) { top: 40%; left: 0%; }
.stream-chip:nth-child(9) { top: 15%; left: 75%; }
.stream-chip:nth-child(10) { top: 60%; left: 15%; }
.stream-chip:nth-child(11) { top: 35%; left: 92%; }
.stream-chip:nth-child(12) { top: 78%; left: 50%; }
@keyframes chipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.section-heading.left, .section-sub.left { text-align: left; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; max-width: 1200px; margin: 0 auto 24px; padding: 0 24px; flex-wrap: wrap; }
.plan-periods { list-style: none; margin-bottom: 16px; font-size: 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.plan-periods li { display: flex; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.plan-periods li:last-child { border: none; }
.plan-periods strong { color: var(--primary); }
.refresh-btn { flex-shrink: 0; }
.landing-section { padding: 72px 24px; max-width: 1200px; margin: 0 auto; }
.landing-section.alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); max-width: none; }
.plans-section { max-width: none; background: var(--bg); }
.section-heading { text-align: center; font-size: 30px; margin-bottom: 8px; font-weight: 700; }
.section-sub { text-align: center; color: var(--text-secondary); margin-bottom: 40px; font-size: 14px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.feature-card {
  padding: 28px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--border);
}
.feature-icon { font-size: 32px; display: block; margin-bottom: 14px; }
.feature-card h3 { font-size: 17px; margin-bottom: 10px; font-weight: 600; }
.feature-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.landing-plan-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.landing-plan-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; position: relative;
}
.landing-plan-card.featured { border-color: var(--primary); box-shadow: 0 8px 32px rgba(24,144,255,.15); }
.plan-badge {
  position: absolute; top: -10px; right: 20px; background: var(--gradient-btn);
  color: #fff; font-size: 11px; padding: 4px 12px; border-radius: 12px; font-weight: 600;
}
.landing-plan-card header { margin-bottom: 16px; }
.landing-plan-card h3 { font-size: 20px; margin-bottom: 8px; color: var(--primary); font-weight: 700; }
.landing-plan-card .plan-meta { font-size: 12px; color: var(--text-secondary); margin-bottom: 12px; }
.plan-price-row { display: flex; align-items: baseline; gap: 4px; }
.plan-price-row .price { font-size: 36px; font-weight: 800; color: var(--primary); }
.plan-price-row .period { font-size: 14px; color: var(--text-secondary); }
.landing-plan-card .plan-features { list-style: none; flex: 1; margin-bottom: 20px; font-size: 13px; }
.landing-plan-card .plan-features li { padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.landing-plan-card .plan-features li:last-child { border: none; }
.landing-loading { text-align: center; padding: 48px; color: var(--text-secondary); }
.empty-plans { text-align: center; padding: 48px 24px; color: var(--text-secondary); }
.empty-plans p { font-size: 16px; margin-bottom: 8px; }
.empty-plans small { font-size: 13px; opacity: .8; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.review-card {
  padding: 28px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); margin: 0;
}
.review-stars { color: #faad14; font-size: 14px; margin-bottom: 12px; letter-spacing: 2px; }
.review-card p { font-size: 14px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 16px; }
.review-card footer { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-secondary); }
.landing-footer { padding: 40px 24px; text-align: center; color: var(--text-secondary); font-size: 13px; border-top: 1px solid var(--border); background: var(--card); }

/* ===== Auth Pages ===== */
.qy-auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #1890ff 100%);
  background-size: cover; background-position: center; position: relative; padding: 24px;
}
.qy-auth-page.has-bg { background-size: cover; }
.qy-auth-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.qy-auth-card {
  background: rgba(255,255,255,.95); border-radius: 20px; padding: 40px 36px;
  width: 100%; max-width: 440px; box-shadow: 0 20px 60px rgba(0,0,0,.2);
  position: relative; z-index: 1; backdrop-filter: blur(8px);
}
[data-theme="dark"] .qy-auth-card { background: rgba(22,27,34,.95); }
.qy-theme-toggle {
  position: absolute; top: 16px; right: 16px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px; width: 36px; height: 36px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.theme-sun, .theme-moon { width: 18px; height: 18px; display: block; border-radius: 50%; }
.theme-sun { background: linear-gradient(135deg, #ffd54f, #ff9800); box-shadow: 0 0 8px rgba(255,152,0,.5); }
.theme-moon { background: linear-gradient(135deg, #90caf9, #5c6bc0); box-shadow: inset -4px -4px 0 rgba(0,0,0,.15); }
.auth-logo-wrap { text-align: center; margin-bottom: 12px; }
.auth-logo { height: 48px; width: auto; border-radius: 8px; }
.qy-auth-card h1 { font-size: 22px; font-weight: 700; margin-bottom: 4px; text-align: center; }
.qy-auth-card h2 { font-size: 16px; margin-bottom: 8px; color: var(--text-secondary); font-weight: 500; text-align: center; }
.qy-auth-card .subtitle { color: var(--text-secondary); font-size: 13px; margin-bottom: 24px; text-align: center; line-height: 1.6; }
.qy-auth-card form { display: flex; flex-direction: column; gap: 10px; }
.field-label { font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-top: 4px; }
.auth-links { text-align: right; margin: 4px 0 8px; }
.auth-links a { font-size: 13px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-secondary); }
.lang-select { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-secondary); }
.code-row { display: flex; gap: 8px; }
.code-row button { flex-shrink: 0; padding: 10px 16px; background: var(--primary); color: #fff; border: none; border-radius: 8px; cursor: pointer; }

/* ===== Navbar ===== */
.qy-navbar {
  background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100;
}
.qy-navbar-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 24px; height: var(--nav-height);
  display: flex; align-items: center; gap: 16px; position: relative;
}
.qy-brand {
  font-weight: 700; font-size: 15px; cursor: pointer; display: flex; align-items: center; gap: 10px;
  flex-shrink: 0; padding: 4px 12px 4px 4px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(24,144,255,.06), rgba(124,77,255,.06));
  border: 1px solid rgba(24,144,255,.1); transition: all .2s;
}
.qy-brand:hover { border-color: rgba(24,144,255,.25); box-shadow: 0 2px 12px rgba(24,144,255,.1); }
.qy-brand-mark {
  width: 36px; height: 36px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, #1890ff, #7c4dff);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(24,144,255,.25);
}
.qy-brand-logo { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 2px; }
.qy-brand-fallback { color: #fff; font-size: 16px; font-weight: 800; }
.qy-brand-name { letter-spacing: .02em; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qy-nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; justify-content: center; }
.qy-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 12px;
  color: var(--text-secondary); transition: all .2s; white-space: nowrap;
}
.qy-nav-item:hover { color: var(--text); }
.qy-nav-item.active {
  background: linear-gradient(135deg, #52c41a, #73d13d); color: #fff;
  box-shadow: 0 2px 8px rgba(82,196,26,.25);
}
.qy-nav-item.active .qy-nav-icon { filter: brightness(1.1); }
.qy-nav-icon { font-size: 16px; }
.qy-navbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.qy-icon-btn { background: none; border: none; font-size: 18px; cursor: pointer; position: relative; padding: 4px; }
.qy-icon-btn .dot { position: absolute; top: 2px; right: 2px; width: 6px; height: 6px; background: var(--danger); border-radius: 50%; }
.qy-avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; cursor: pointer; background: #eee; display: flex; align-items: center; justify-content: center; }
.qy-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Dashboard Layout ===== */
.qy-dashboard-layout { min-height: 100vh; background: var(--bg); }
.qy-main { max-width: 1400px; margin: 0 auto; padding: 24px; }

/* Cards */
.qy-card {
  background: var(--card); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); margin-bottom: 20px; border: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.qy-card:hover { box-shadow: var(--shadow-hover); }
.qy-card h3 { font-size: 16px; margin-bottom: 8px; }
.qy-card .sub { color: var(--text-secondary); font-size: 13px; margin-bottom: 16px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

/* Dashboard Grid */
.qy-dashboard-grid { display: grid; grid-template-columns: 1fr 380px; gap: 20px; }
.qy-user-card {
  background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
  border-radius: var(--radius); padding: 28px; color: #fff;
  display: flex; justify-content: space-between; overflow: hidden; position: relative;
  min-height: 200px; margin-bottom: 20px;
}
.qy-user-card .greeting { opacity: .85; font-size: 14px; margin-bottom: 8px; }
.qy-user-card h2 { font-size: 24px; margin-bottom: 20px; }
.stats-row { display: flex; gap: 32px; margin-bottom: 20px; }
.stats-row label { display: block; font-size: 12px; opacity: .75; margin-bottom: 4px; }
.stats-row strong { font-size: 16px; }
.btn-row { display: flex; gap: 12px; }
.user-illustration {
  width: 160px; height: 160px; flex-shrink: 0; align-self: flex-end;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='80' r='30' fill='rgba(255,255,255,.3)'/%3E%3Cellipse cx='100' cy='160' rx='50' ry='30' fill='rgba(255,255,255,.2)'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Client Download */
.os-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.os-tabs button {
  padding: 8px 16px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 13px;
}
.os-tabs button.active { background: #e6ffed; border-color: var(--success-light); color: var(--success-light); }
.client-download-area { display: grid; grid-template-columns: 1fr 200px; gap: 20px; }
.client-item {
  display: flex; align-items: center; gap: 12px; padding: 16px;
  border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px;
}
.client-icon { font-size: 28px; }
.client-actions { margin-left: auto; display: flex; gap: 8px; }
.client-recommend {
  background: #f6ffed; border-radius: 10px; padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.client-recommend h4 { font-size: 14px; margin-bottom: 4px; }

/* Notice & Subscribe */
.notice-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.notice-item:last-child { border: none; }
.notice-content { flex: 1; }
.notice-content a { font-size: 12px; float: right; }
.refresh-btn { background: none; border: none; cursor: pointer; font-size: 16px; }
.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.client-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 8px; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; cursor: pointer; transition: all .2s; font-size: 12px;
}
.client-btn:hover { border-color: var(--primary); background: #f0f7ff; }
.client-btn span { font-size: 20px; }

/* Invite Promo Card */
.invite-promo {
  background: linear-gradient(135deg, #ff9f43, #ffcc80) !important;
  display: flex; overflow: hidden; cursor: pointer; position: relative;
}
.invite-promo .badge {
  display: inline-block; background: #fff; color: var(--orange);
  padding: 2px 10px; border-radius: 20px; font-size: 12px; margin-bottom: 8px;
}
.invite-promo h3 { color: #fff; margin-bottom: 8px; }
.invite-promo p { color: rgba(255,255,255,.85); font-size: 13px; margin-bottom: 16px; }
.promo-illustration {
  width: 100px; height: 100px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' fill='rgba(255,255,255,.2)'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ===== Plan Page ===== */
.qy-plan-page { padding-bottom: 40px; }
.page-header.center { text-align: center; margin-bottom: 32px; }
.page-header h1 { font-size: 28px; color: #1a3a5c; margin-bottom: 8px; }
.page-header p { color: var(--text-secondary); }
.filter-groups { display: flex; justify-content: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.filter-group { display: flex; background: #eee; border-radius: 8px; padding: 3px; }
.filter-group button {
  padding: 6px 16px; border: none; background: transparent; border-radius: 6px;
  cursor: pointer; font-size: 13px; color: var(--text-secondary);
}
.filter-group button.active { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.plan-card {
  background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.plan-header h3 { font-size: 16px; color: #1a3a5c; margin-bottom: 8px; }
.plan-spec { font-size: 12px; color: var(--text-secondary); margin-bottom: 12px; }
.plan-price { margin-bottom: 20px; }
.plan-price .currency { font-size: 16px; color: var(--primary); }
.plan-price .amount { font-size: 36px; font-weight: 700; color: var(--primary); }
.plan-price .period { font-size: 14px; color: var(--text-secondary); }
.plan-features { list-style: none; flex: 1; margin-bottom: 20px; }
.plan-features li {
  display: flex; gap: 8px; align-items: flex-start; padding: 6px 0;
  font-size: 13px; line-height: 1.5;
}
.feat-icon { flex-shrink: 0; }

/* ===== Purchase Modal ===== */
.qy-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 10000; padding: 20px;
}
.qy-modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 720px;
  max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.qy-modal-header {
  display: flex; justify-content: space-between; padding: 24px 24px 0;
}
.qy-modal-header h2 { font-size: 20px; }
.qy-modal-header p { color: var(--text-secondary); font-size: 13px; margin-top: 4px; }
.qy-modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-secondary); }
.qy-modal-body { padding: 24px; }
.qy-modal-footer { padding: 16px 24px 24px; display: flex; justify-content: flex-end; gap: 12px; }
.qy-purchase-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.qy-period-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; cursor: pointer;
}
.qy-period-item.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.qy-period-item .radio {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor;
}
.qy-period-item.active .radio { background: #fff; border-color: #fff; box-shadow: inset 0 0 0 3px var(--primary); }
.qy-period-item strong { margin-left: auto; font-size: 18px; }
.qy-purchase-summary { background: #f9f9f9; border-radius: 12px; padding: 20px; }
.qy-feature-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.mini-card {
  text-align: center; padding: 12px; border-radius: 10px; background: #fff;
  display: flex; flex-direction: column; gap: 4px; font-size: 13px;
}
.mini-card.blue { border: 1px solid #91d5ff; }
.mini-card.green { border: 1px solid #b7eb8f; }
.mini-card.purple { border: 1px solid #d3adf7; }
.qy-coupon-row { display: flex; gap: 8px; margin: 16px 0; }
.qy-coupon-row button { flex-shrink: 0; padding: 10px 16px; background: var(--primary); color: #fff; border: none; border-radius: 8px; cursor: pointer; }
.qy-price-summary div { display: flex; justify-content: space-between; padding: 8px 0; }
.qy-price-summary .total strong { font-size: 24px; color: var(--primary); }

/* ===== Order Page ===== */
.filter-bar { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-bar input, .filter-bar select { max-width: 280px; }
.qy-table-wrap { background: var(--card); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow); border: 1px solid var(--border); -webkit-overflow-scrolling: touch; }
.qy-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
.qy-table th { background: var(--bg); padding: 12px 16px; text-align: left; color: var(--text-secondary); font-weight: 500; white-space: nowrap; }
.qy-table td { padding: 14px 16px; border-top: 1px solid var(--border); }
.qy-table tbody tr { transition: background var(--transition); }
.qy-table tbody tr:hover { background: var(--primary-light); }
[data-theme="dark"] .qy-table tbody tr:hover { background: #1c2128; }
.qy-table .amount { color: var(--danger); font-weight: 500; }
.status-badge {
  display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px;
}
.status-badge.success { background: #f6ffed; color: var(--success-light); }
.status-badge.warning { background: #fffbe6; color: var(--warning); }
.status-badge.danger { background: #fff2f0; color: var(--danger); }
.status-badge.info { background: #e6f7ff; color: var(--primary); }
.type-tag { color: var(--success-light); font-size: 12px; }
.type-tag.purple { color: var(--purple); }
.sub-link { color: var(--primary); font-size: 12px; }
.date-cell { color: var(--text-secondary); font-size: 12px; }

/* ===== Invite Page ===== */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card {
  background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.stat-card strong { display: block; font-size: 28px; margin-bottom: 4px; }
.stat-card label { color: var(--text-secondary); font-size: 13px; }
.stat-card small { display: block; color: var(--text-secondary); font-size: 12px; margin-top: 4px; }
.stat-card.green strong { color: var(--success-light); }
.stat-card.blue strong { color: var(--primary); }
.invite-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; margin-bottom: 20px; }
.invite-code-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.code-info { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.code-actions { display: flex; gap: 8px; margin-top: 8px; }
.commission-actions .action-card {
  padding: 20px; border-radius: 10px; margin-bottom: 12px;
}
.action-card.green { background: #f6ffed; }
.action-card.blue { background: #e6f7ff; }
.action-card label { display: block; font-size: 13px; color: var(--text-secondary); }
.action-card strong { display: block; font-size: 24px; margin: 8px 0; }
.green-text { color: var(--success-light); }
.red-text { color: var(--danger); }
.user-dot { display: inline-block; width: 8px; height: 8px; background: var(--primary); border-radius: 50%; margin-right: 6px; }

/* ===== Knowledge Page ===== */
.knowledge-hero { display: flex; justify-content: space-between; align-items: center; padding: 40px; }
.knowledge-hero h1 { font-size: 28px; margin-bottom: 20px; }
.search-box {
  display: flex; align-items: center; gap: 8px; background: #fff;
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 16px; max-width: 400px;
}
.search-box input { border: none; padding: 0; }
.hero-illustration {
  width: 200px; height: 160px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 160'%3E%3Crect x='60' y='40' width='40' height='80' rx='8' fill='%231890ff' opacity='.3'/%3E%3Ccircle cx='130' cy='80' r='40' fill='%2352c41a' opacity='.2'/%3E%3C/svg%3E") center/contain no-repeat;
}
.category-nav {
  display: flex; gap: 8px; padding: 12px; background: #fff; border-radius: var(--radius);
  margin-bottom: 24px; overflow-x: auto; flex-wrap: wrap;
}
.category-nav button {
  padding: 8px 16px; border: none; background: transparent; border-radius: 8px;
  cursor: pointer; font-size: 13px; color: var(--text-secondary); white-space: nowrap;
}
.category-nav button.active { color: var(--primary); font-weight: 600; }
.section-title { font-size: 20px; margin-bottom: 20px; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); cursor: pointer; transition: all var(--transition); }
.article-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.article-body { padding: 0 16px 16px; font-size: 13px; line-height: 1.7; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.article-thumb {
  height: 160px; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 48px;
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card h3 { padding: 16px 16px 8px; font-size: 15px; }
.article-meta { padding: 0 16px 16px; display: flex; gap: 12px; font-size: 12px; color: var(--text-secondary); }
.cat-tag { color: var(--primary); }

/* ===== Traffic Page ===== */
.bar-chart {
  display: flex; align-items: flex-end; gap: 8px; height: 200px; padding: 20px 0;
}
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.bar-col .bar { width: 100%; max-width: 32px; background: var(--primary); border-radius: 4px 4px 0 0; min-height: 2px; margin-top: auto; }
.bar-col span { font-size: 11px; color: var(--text-secondary); }
.progress-bar { height: 4px; background: #eee; border-radius: 2px; margin-top: 8px; }
.progress-bar .fill { height: 100%; background: var(--success-light); border-radius: 2px; }

/* ===== Server Page ===== */
.map-card { margin-bottom: 20px; }
.world-map { height: 300px; background: #f9f9f9; border-radius: 10px; position: relative; margin-top: 16px; }
.map-placeholder { height: 100%; display: flex; align-items: center; justify-content: center; }
.zoom-controls { position: absolute; bottom: 12px; right: 12px; display: flex; flex-direction: column; gap: 4px; }
.zoom-controls button {
  width: 28px; height: 28px; border: 1px solid var(--border); background: #fff;
  border-radius: 4px; cursor: pointer; color: var(--purple);
}
.notice-banner {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px;
  background: #f9f0ff; border: 1px dashed var(--purple); border-radius: 10px; margin-bottom: 20px;
}
.notice-banner p { flex: 1; font-size: 13px; color: var(--purple); }
.online-dot { display: inline-block; width: 8px; height: 8px; background: var(--success-light); border-radius: 50%; margin-right: 6px; }

/* ===== Profile Page ===== */
.qy-profile-page { max-width: 600px; }
.profile-header { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.avatar-lg { width: 64px; height: 64px; border-radius: 50%; }
.form-group { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.qy-profile-page input { margin-bottom: 12px; }

/* ===== Ticket Page ===== */
.ticket-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.ticket-header { display: flex; justify-content: space-between; align-items: center; }
.ticket-meta { color: var(--text-secondary); font-size: 12px; margin: 8px 0; }
.ticket-messages { margin: 12px 0; }
.message { padding: 10px 14px; border-radius: 8px; margin-bottom: 8px; font-size: 13px; }
.message.me { background: #e6f7ff; margin-left: 20%; }
.message.staff { background: #f5f5f5; margin-right: 20%; }
.ticket-actions { display: flex; gap: 8px; align-items: center; }

/* ===== Chat FAB ===== */
.qy-chat-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 500; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.qy-chat-notice {
  background: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow);
  font-size: 12px; max-width: 280px; line-height: 1.5;
}
.qy-chat-dot { display: inline-block; width: 8px; height: 8px; background: var(--success); border-radius: 50%; margin-right: 6px; }
.qy-chat-fab {
  width: 52px; height: 52px; border-radius: 50%; background: var(--success-light);
  border: none; color: #fff; font-size: 22px; cursor: pointer; box-shadow: 0 4px 16px rgba(40,199,111,.4);
  position: relative;
}
.qy-chat-fab .badge {
  position: absolute; top: -2px; right: -2px; background: var(--danger); color: #fff;
  font-size: 10px; width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ===== Responsive & Mobile Nav ===== */
.qy-menu-toggle {
  display: none; width: 40px; height: 40px; background: none; border: none;
  cursor: pointer; padding: 8px; margin-left: auto;
}
.qy-menu-toggle span {
  display: block; width: 100%; height: 2px; background: var(--text);
  position: relative; transition: var(--transition);
}
.qy-menu-toggle span::before, .qy-menu-toggle span::after {
  content: ''; position: absolute; left: 0; width: 100%; height: 2px; background: var(--text); transition: var(--transition);
}
.qy-menu-toggle span::before { top: -8px; }
.qy-menu-toggle span::after { top: 8px; }
.qy-nav-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 98;
}
.badge-count {
  position: absolute; top: 0; right: 0; background: var(--danger); color: #fff;
  font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.qy-icon-btn { position: relative; }
.qy-modal-sm { max-width: 420px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 20px 0; }
.detail-grid label { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.pay-method {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition);
}
.pay-method.active, .pay-method:hover { border-color: var(--primary); background: var(--primary-light); }
.action-menu { position: relative; }
.dropdown {
  position: absolute; right: 0; top: 100%; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-hover); z-index: 10; min-width: 120px; overflow: hidden;
}
.dropdown button {
  display: block; width: 100%; padding: 10px 14px; border: none; background: none;
  text-align: left; cursor: pointer; color: var(--text); font-size: 13px;
}
.dropdown button:hover { background: var(--primary-light); }
.mobile-cards { display: flex; flex-direction: column; gap: 12px; }
.mobile-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
}
.mobile-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mobile-card-actions { display: flex; gap: 8px; margin-top: 12px; }
.map-globe {
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--primary), #1a365d);
  box-shadow: 0 0 40px rgba(24,144,255,.25);
}
.map-placeholder { flex-direction: column; gap: 16px; color: var(--text-secondary); }

/* ===== Landing v2 (mockup) ===== */
.qy-landing-v2 { background: #050810; color: #fff; }
.ld-header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: rgba(5,8,16,.85); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.06); }
.ld-header-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 20px; }
.ld-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; cursor: pointer; flex-shrink: 0; letter-spacing: .02em; }
.ld-logo { height: 32px; border-radius: 6px; }
.ld-nav { display: flex; gap: 28px; flex: 1; justify-content: center; }
.ld-nav a { color: rgba(255,255,255,.72); font-size: 14px; cursor: pointer; transition: color .2s; }
.ld-nav a:hover { color: #fff; }
.ld-actions { display: flex; gap: 10px; flex-shrink: 0; }
.ld-btn-outline { border-color: rgba(255,255,255,.45) !important; color: #fff !important; background: transparent !important; }
.ld-hero-full { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 64px; overflow: hidden; background: radial-gradient(ellipse at center, #0a1628 0%, #050810 70%); }
.ld-stars { position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.4), transparent), radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,.3), transparent), radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,.25), transparent); background-size: 200px 200px; opacity: .6; }
.ld-earth-wrap { position: relative; width: min(680px, 90vw); height: min(680px, 70vh); margin-top: 40px; }
.ld-earth-media {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  animation: earthFloat 8s ease-in-out infinite, heroGlow 4s ease-in-out infinite alternate;
  position: relative; z-index: 1;
  box-shadow: 0 0 80px rgba(255,69,0,.35), 0 0 120px rgba(0,191,255,.2);
}
@keyframes heroGlow { 0% { filter: brightness(1) saturate(1.1); } 100% { filter: brightness(1.08) saturate(1.25); } }
.ld-earth { width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #5dade2, #2471a3 35%, #1a5276 55%, #0b1d30 75%, #050810 100%); box-shadow: 0 0 80px rgba(24,144,255,.35), inset -30px -30px 60px rgba(0,0,0,.5); animation: earthFloat 8s ease-in-out infinite; position: relative; overflow: hidden; }
.ld-earth::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(ellipse 30% 20% at 25% 40%, rgba(76,175,80,.35), transparent), radial-gradient(ellipse 25% 18% at 60% 55%, rgba(76,175,80,.25), transparent), radial-gradient(ellipse 20% 15% at 70% 30%, rgba(255,255,255,.08), transparent); }
.ld-earth-glow { position: absolute; inset: -40px; border-radius: 50%; background: radial-gradient(circle, rgba(24,144,255,.2) 0%, transparent 70%); pointer-events: none; }
@keyframes earthFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.ld-brand-row { position: absolute; bottom: 18%; left: 50%; transform: translateX(-50%); display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 720px; padding: 0 16px; z-index: 2; }
.ld-brand-chip { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.4); animation: chipBob 3s ease-in-out infinite; animation-delay: calc(var(--d) * 0.15s); }
@keyframes chipBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.ld-scroll-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.35); border-radius: 12px; }
.ld-scroll-hint span { display: block; width: 4px; height: 8px; background: rgba(255,255,255,.5); border-radius: 2px; margin: 8px auto; animation: scrollDot 1.5s infinite; }
@keyframes scrollDot { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(12px); } }

.ld-section { padding: 88px 24px; max-width: 1200px; margin: 0 auto; }
.ld-title { text-align: center; font-size: clamp(28px, 4vw, 36px); font-weight: 800; margin-bottom: 12px; letter-spacing: .02em; }
.ld-sub { text-align: center; color: rgba(255,255,255,.55); font-size: 15px; line-height: 1.8; margin-bottom: 48px; max-width: 640px; margin-left: auto; margin-right: auto; }
.ld-features { background: #050810; }
.ld-feature-panel { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 40px 32px; }
.ld-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 40px; }
.ld-feature-item { text-align: center; padding: 16px; }
.ld-feat-icon { width: 56px; height: 56px; margin: 0 auto 16px; background: rgba(40,199,111,.15); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: 0 0 20px rgba(40,199,111,.2); }
.ld-feature-item h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.ld-feature-item p { font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.7; }
.ld-cta { display: block; margin: 0 auto; min-width: 200px; }

.ld-network { background: #050810; max-width: none; }
.ld-notice-bar { text-align: center; background: rgba(250,173,20,.12); border: 1px solid rgba(250,173,20,.3); color: #ffc53d; padding: 10px 20px; border-radius: 8px; max-width: 560px; margin: 0 auto 40px; font-size: 13px; }
.ld-network-diagram { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 40px 24px; max-width: 1100px; margin: 0 auto; }
.net-col { display: flex; flex-direction: column; gap: 12px; }
.net-col.servers { gap: 8px; }
.net-node { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 12px 16px; text-align: center; min-width: 100px; }
.net-node span { font-size: 22px; display: block; margin-bottom: 4px; }
.net-node small { font-size: 11px; color: rgba(255,255,255,.55); }
.net-node.user { border-color: rgba(24,144,255,.4); }
.net-node.relay { border-color: rgba(24,144,255,.3); }
.net-node.tunnel { border-color: rgba(124,77,255,.3); }
.net-node.server { border-color: rgba(255,77,145,.3); min-width: 90px; padding: 8px 12px; }
.net-lines { width: 40px; height: 2px; background: linear-gradient(90deg, rgba(24,144,255,.5), rgba(124,77,255,.5)); flex-shrink: 0; }

.ld-plans { background: #080c14; max-width: none; }
.ld-plan-toggle { display: flex; justify-content: center; gap: 0; margin-bottom: 40px; background: rgba(255,255,255,.05); border-radius: 30px; padding: 4px; max-width: 400px; margin-left: auto; margin-right: auto; }
.ld-plan-toggle button { flex: 1; padding: 10px 20px; border: none; background: transparent; color: rgba(255,255,255,.6); border-radius: 26px; cursor: pointer; font-size: 14px; transition: all .2s; }
.ld-plan-toggle button.active { background: linear-gradient(90deg, #7c4dff, #1890ff); color: #fff; font-weight: 600; }
.ld-plan-toggle em { font-style: normal; opacity: .7; margin-left: 4px; }
.ld-plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ld-plan-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; }
.ld-plan-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: #fff; }
.ld-plan-price strong { font-size: 32px; font-weight: 800; color: #fff; }
.ld-plan-price span { color: rgba(255,255,255,.5); font-size: 14px; }
.ld-plan-spec { font-size: 12px; color: rgba(255,255,255,.45); margin: 12px 0 16px; }
.ld-plan-feats { list-style: none; flex: 1; margin-bottom: 20px; }
.ld-plan-feats li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: rgba(255,255,255,.65); padding: 6px 0; }
.feat-dot { width: 6px; height: 6px; border-radius: 50%; background: #7c4dff; flex-shrink: 0; margin-top: 6px; }
.ld-empty, .ld-loading { text-align: center; padding: 48px; color: rgba(255,255,255,.45); }

.ld-support { background: #050810; }
.ld-support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.ld-support-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 32px 24px; text-align: center; }
.sup-icon { width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.sup-icon.teal { background: rgba(45,212,191,.15); color: #2dd4bf; }
.ld-support-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.ld-support-card p { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.7; margin-bottom: 20px; }
.ld-contact-bar { text-align: center; padding: 32px; background: rgba(255,255,255,.03); border-radius: 16px; border: 1px solid rgba(255,255,255,.06); }
.ld-contact-bar h4 { font-size: 18px; margin-bottom: 8px; }
.ld-contact-bar > p { color: rgba(255,255,255,.5); font-size: 14px; margin-bottom: 16px; }
.ld-contact-items { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; font-size: 14px; color: rgba(255,255,255,.65); }
.ld-footer { text-align: center; padding: 32px; color: rgba(255,255,255,.35); font-size: 13px; border-top: 1px solid rgba(255,255,255,.06); }

.qy-btn.success { background: #28c76f; color: #fff; }
.qy-btn.success:hover { background: #20a85a; }
.qy-btn.teal { background: #2dd4bf; color: #0f172a; font-weight: 600; }
.qy-btn.teal:hover { background: #14b8a6; }

.recharge-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin: 12px 0 8px; }
.warn-tip { color: #fa8c16; font-size: 13px; line-height: 1.6; padding: 12px; background: #fff7e6; border-radius: 8px; }
.qy-recharge-modal { max-width: 480px; }
.preset-btn, .plan-pick { padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); cursor: pointer; font-size: 14px; text-align: center; transition: all .2s; }
.preset-btn.active, .plan-pick.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); font-weight: 600; }
.recharge-plans { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.gift-preview { margin-top: 12px; padding: 12px; background: var(--primary-light); border-radius: 8px; font-size: 13px; }

/* ===== Subscribe Modal & Client Pills ===== */
.recharge-balance-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; background: linear-gradient(135deg, #e6f7ff, #f0f5ff);
  border-radius: 12px; margin-bottom: 16px; border: 1px solid rgba(24,144,255,.15);
}
.recharge-balance-bar span { font-size: 13px; color: var(--text-secondary); }
.recharge-balance-bar strong { font-size: 22px; color: var(--primary); font-weight: 800; }
.recharge-summary { font-size: 13px; color: var(--text-secondary); margin-top: 12px; padding: 10px; background: #f6ffed; border-radius: 8px; }
.recharge-summary strong { color: #52c41a; }

.user-greeting-row { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.user-avatar-lg {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.6); background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.user-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }

.subscribe-card-v2 { padding: 24px !important; }
.subscribe-card-v2 h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.subscribe-card-v2 .sub { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }
.client-pill-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.client-pill {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 999px; background: #fff;
  cursor: pointer; font-size: 12px; font-weight: 500; color: var(--text);
  transition: all .2s; box-shadow: 0 1px 3px rgba(0,0,0,.04); min-width: 0;
}
.client-pill:hover { border-color: var(--primary); background: var(--primary-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(24,144,255,.12); }
.pill-icon { width: 24px; height: 24px; flex-shrink: 0; position: relative; display: flex; align-items: center; justify-content: center; }
.pill-icon img { width: 24px; height: 24px; border-radius: 6px; display: block; background: #fff; }
.pill-fallback { font-size: 14px; line-height: 1; }
.pill-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }

.qy-subscribe-modal { max-width: 520px; border-radius: 20px; overflow: hidden; }
.sub-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 24px 24px 0; }
.sub-modal-title { display: flex; align-items: center; gap: 12px; }
.sub-modal-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 20px; overflow: hidden; }
.sub-modal-icon img { width: 28px; height: 28px; border-radius: 6px; }
.import-client-btn .import-icon { width: 22px; height: 22px; border-radius: 4px; }
.sub-modal-title h2 { font-size: 20px; font-weight: 700; margin: 0; }
.sub-modal-body { padding: 20px 24px 28px; }
.sub-field { margin-bottom: 20px; }
.sub-field > label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.sub-link-row { display: flex; gap: 8px; }
.sub-link-row input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 12px; background: #f8fafc; color: var(--text); min-width: 0;
}
.copy-btn { background: #28c76f !important; color: #fff !important; border: none !important; white-space: nowrap; padding: 10px 16px !important; border-radius: 10px !important; font-size: 13px !important; }
.copy-btn:hover { background: #20a85a !important; }
.import-client-btn {
  width: 100%; padding: 14px !important; border-radius: 12px !important; font-size: 15px !important;
  background: linear-gradient(135deg, #1890ff, #7c4dff) !important; color: #fff !important; border: none !important;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.import-client-btn:hover { opacity: .92; }
.qr-field { text-align: center; }
.qr-wrap { display: inline-block; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,.06); margin: 8px 0; }
.qr-wrap img { display: block; border-radius: 8px; }
.qr-tip { font-size: 12px; color: var(--text-secondary); margin-top: 8px; }

.qy-chat-wrap { position: fixed; right: 20px; bottom: 24px; z-index: 9999; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.qy-chat-bubbles { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.qy-bubble { background: #fff; color: #333; padding: 10px 14px; border-radius: 12px; font-size: 12px; max-width: 260px; box-shadow: 0 4px 16px rgba(0,0,0,.15); line-height: 1.5; }
.qy-bubble.green { background: #f6ffed; border: 1px solid #b7eb8f; }
.qy-chat-fab { width: 52px; height: 52px; border-radius: 50%; background: #25d366; border: none; font-size: 22px; cursor: pointer; box-shadow: 0 4px 16px rgba(37,211,102,.4); position: relative; }
.qy-chat-fab .badge { position: absolute; top: -4px; right: -4px; background: #ff4d4f; color: #fff; font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }

.qy-dash-v2 .qy-user-card { background: linear-gradient(135deg, #1890ff 0%, #36cfc9 100%); }
.qy-dash-v2 .invite-promo { background: linear-gradient(135deg, #ff9f43 0%, #ff6b6b 100%); cursor: pointer; }
.qy-dash-v2 .invite-promo .badge { background: rgba(0,0,0,.2); color: #fff; padding: 4px 10px; border-radius: 12px; font-size: 12px; display: inline-block; margin-bottom: 8px; }

@media (max-width: 1024px) {
  .qy-dashboard-grid, .invite-grid, .qy-purchase-body { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .client-download-area { grid-template-columns: 1fr; }
  .knowledge-hero { flex-direction: column; padding: 24px; }
  .hero-illustration { display: none; }
  .qy-menu-toggle { display: block; order: 3; }
  .qy-navbar-actions { order: 2; margin-left: auto; }
  .qy-brand { order: 0; }
  .qy-nav { order: 4; }
  .qy-nav {
    display: none; position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: var(--card); flex-direction: column; padding: 12px; z-index: 99;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-hover);
    max-height: calc(100vh - var(--nav-height)); overflow-y: auto;
  }
  .qy-nav.open { display: flex; }
  .qy-nav.open + .qy-nav-backdrop, .qy-nav-backdrop { display: block; }
  .qy-nav-item { flex-direction: row; justify-content: flex-start; padding: 12px 16px; font-size: 14px; }
  .stats-row { flex-wrap: wrap; gap: 16px; }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block; }
  .filter-bar { flex-direction: column; }
  .filter-bar input, .filter-bar select, .search-input-wrap { max-width: 100%; width: 100%; }
  .detail-grid { grid-template-columns: 1fr; }
  .notice-banner { flex-direction: column; text-align: center; }
  .qy-purchase-body { grid-template-columns: 1fr; }
  .qy-chat-notice { max-width: calc(100vw - 80px); }
}

@media (max-width: 640px) {
  .ld-nav { display: none; }
  .ld-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .ld-plan-grid { grid-template-columns: 1fr; }
  .ld-support-grid { grid-template-columns: 1fr; }
  .ld-network-diagram { flex-direction: column; }
  .net-lines { width: 2px; height: 24px; }
  .stat-cards, .plan-cards, .article-grid { grid-template-columns: 1fr; }
  .landing-nav { display: none; }
  .landing-header-inner { justify-content: space-between; }
  .hero-layout { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .hero-content { text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { height: 280px; }
  .earth-globe { width: 200px; height: 200px; }
  .stream-chip { width: 32px; height: 32px; font-size: 12px; }
  .feature-grid, .landing-plan-grid, .review-grid { grid-template-columns: 1fr; }
  .qy-main { padding: 12px; }
  .qy-auth-card { margin: 16px; padding: 28px 20px; }
  .client-pill-grid { grid-template-columns: repeat(2, 1fr); }
  .client-pill { padding: 8px 10px; font-size: 11px; }
  .stats-row { gap: 12px; }
  .stats-row > div { min-width: 80px; }
  .message.me { margin-left: 0; }
  .message.staff { margin-right: 0; }
  .qy-navbar-inner { padding: 0 12px; }
  .qy-brand span { font-size: 14px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
