:root {
  --bg: #052a63;
  --bg-2: #0a3878;
  --panel: #214783;
  --panel-soft: rgba(255,255,255,0.08);
  --surface: rgba(255,255,255,0.08);
  --surface-strong: rgba(255,255,255,0.12);
  --text: #f4f8ff;
  --muted: rgba(231,240,255,0.78);
  --line: rgba(255,255,255,0.12);
  --accent: #1d7dff;
  --accent-2: #6a4df6;
  --white: #fff;
  --shadow: 0 20px 48px rgba(0,0,0,0.18);
  --shadow-soft: 0 10px 26px rgba(0,0,0,0.14);
  --radius: 28px;
  --header-height: 92px;
  --footer-height: 92px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow: hidden;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, #07255a 48%, #041b44 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
main {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: var(--footer-height);
  overflow-y: auto;
  overflow-x: hidden;
}
.section { padding: 56px 0; }
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(255,255,255,0)); }
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(4, 26, 66, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-wrap, .top-actions, .admin-header, .inner-head, .news-head, .news-admin-head, .news-admin-actions, .admin-actions, .footer-wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-wrap {
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand img, .login-logo { width: 72px; height: 72px; border-radius: 22px; box-shadow: var(--shadow-soft); flex: 0 0 auto; }
.brand strong { display: block; font-size: clamp(22px, 2vw, 28px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { justify-content: flex-end; }
.lang-switcher {
  display: inline-flex;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
.lang-btn {
  min-width: 132px;
  border: 0;
  background: transparent;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  font-size: 18px;
}
.lang-btn.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: var(--shadow-soft); }
.hero { padding: 34px 0 46px; }
.hero-grid, .two-col, .lady-grid { display: grid; grid-template-columns: 1.15fr 0.95fr; gap: 28px; align-items: center; }
.hero-copy h1 { margin: 14px 0; max-width: 780px; font-size: clamp(30px, 4.2vw, 58px); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.eyebrow, .section-kicker, .news-badge, .login-badge {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 800;
  background: rgba(255,255,255,0.1); color: var(--text);
}
.hero-desc, .news-subtitle, .site-footer p, .hero-desc, .news-subtitle, .site-footer p, .modal-summary { color: var(--muted); font-size: 18px; line-height: 1.8; }
.cta-group, .trust-list, .footer-links, .video-links { display: flex; flex-wrap: wrap; gap: 14px; }
.primary-btn, .secondary-btn, .ghost-btn {
  min-height: 54px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}
.primary-btn { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: var(--shadow-soft); }
.secondary-btn { color: var(--text); background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); }
.ghost-btn { color: var(--text); background: rgba(255,255,255,0.04); border-color: var(--line); }
.primary-btn:hover, .secondary-btn:hover, .ghost-btn:hover, .quick-link-card:hover, .news-card:hover, .feature-box:hover, .step-card:hover, .faq-list details:hover, .video-pill:hover, .icon-pill:hover { transform: translateY(-2px); }
.trust-list { list-style: none; padding: 0; margin: 24px 0 0; }
.trust-list li, .video-label { padding: 12px 16px; border-radius: 999px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1); font-weight: 700; }
.video-strip { margin-top: 28px; display: grid; gap: 14px; padding: 18px 20px; border-radius: 24px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); width: fit-content; max-width: 100%; }
.video-label { display: inline-flex; align-items: center; width: fit-content; color: var(--text); }
.video-links { align-items: center; }
.video-pill, .icon-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.08);
  color: var(--text); font-weight: 700; transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}
.video-icon, .pill-icon {
  width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 13px; font-weight: 900; color: #fff;
}
.youtube .video-icon { background: #ff0033; }
.instagram .video-icon { background: linear-gradient(135deg,#ffcb52,#ff4b7c,#8d46ff); }
.tiktok .video-icon { background: #101820; }
.xsocial .video-icon { background: #101820; }
.glass-card, .feature-box, .step-card, .news-card, .faq-list details, .admin-panel, .inner-panel, .news-admin-card {
  background: var(--surface); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-card {
  position: relative; overflow: hidden; padding: 28px; min-height: 100%;
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04)); color: #fff;
}
.hero-card::after { content: ''; position: absolute; inset: auto -70px -80px auto; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,0.08); filter: blur(12px); }
.card-inner { position: relative; z-index: 1; }
.hero-logo { width: 92px; height: 92px; border-radius: 26px; margin-bottom: 18px; box-shadow: var(--shadow-soft); }
.quick-links { display: grid; gap: 14px; margin: 22px 0 16px; }
.quick-link-card {
  display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 16px; padding: 18px 20px;
  border-radius: 22px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.12); color: #fff;
}
.quick-copy strong { display: block; font-size: 18px; }
.quick-copy small { color: rgba(255,255,255,0.78); font-size: 15px; }
.tg-avatar { width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center; font-size: 28px; color: #fff; font-weight: 800; }
.bot-avatar { background: linear-gradient(135deg, #20a4ff, #4f7cff); }
.channel-avatar { background: linear-gradient(135deg, #14c5df, #1e8fff); }
.support-avatar { background: linear-gradient(135deg, #7c4dff, #9d5fff); }
.go-arrow { font-size: 24px; color: #fff; }
.feature-boxes, .steps, .news-grid { display: grid; gap: 18px; }
.feature-box { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 22px; }
.feature-icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 28px; background: linear-gradient(135deg, rgba(29,125,255,0.24), rgba(106,77,246,0.26)); }
.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step-card { padding: 34px 28px; min-height: 230px; }
.step-card span { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 900; font-size: 18px; }
.step-card h3 { margin: 22px 0 14px; font-size: 26px; }
.step-card p, .feature-box p { margin: 0; color: var(--muted); line-height: 1.8; font-size: 18px; }
.feature-box strong { display: block; margin-bottom: 8px; font-size: 22px; }
.lady-card { position: relative; min-height: 520px; padding: 20px; overflow: hidden; border-radius: 38px; background: linear-gradient(135deg, #0b3f91, #1155b0 55%, #2a76ea); box-shadow: var(--shadow); }
.lady-figure { position: absolute; inset: 26px; border-radius: 32px; overflow: hidden; background: radial-gradient(circle at 70% 20%, rgba(255,255,255,0.22), transparent 18%), linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); }
.lady-figure img { width: 100%; height: 100%; object-fit: cover; }
.floating-chip { position: absolute; padding: 12px 18px; border-radius: 999px; color: #fff; font-weight: 800; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.13); backdrop-filter: blur(12px); }
.chip-1 { top: 26px; right: 26px; }
.chip-2 { bottom: 26px; left: 26px; }
.news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.news-card { padding: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,0.12); display: flex; flex-direction: column; min-height: 100%; cursor: pointer; }
.news-card > *:last-child { margin-bottom: 0; }
.news-card h3, .news-admin-card h3 { margin: 14px 0 10px; font-size: 24px; line-height: 1.3; color: #fff; }
.news-cover { margin: -20px -20px 16px; height: 190px; overflow: hidden; background: linear-gradient(135deg, #0b4ea2, #2a76ea); }
.news-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-summary, .news-preview { color: var(--muted); }
.news-summary { margin-bottom: 10px; }
.news-preview {
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; min-height: 116px; line-height: 1.8;
}
.news-preview * { color: inherit !important; }
.news-preview img { display: none; }
.news-read-btn { margin-top: auto; align-self: flex-start; border: 0; background: transparent; color: #43a0ff; font-weight: 800; padding: 18px 0 0; }
.faq-list { display: grid; gap: 18px; }
.faq-list details { padding: 24px 26px; }
.faq-list summary { cursor: pointer; font-weight: 800; font-size: 24px; color: #fff; }
.faq-list p { margin: 18px 0 0; font-size: 18px; color: var(--text); line-height: 1.8; }
.site-footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  background: rgba(4, 26, 66, 0.96); backdrop-filter: blur(16px); border-top: 1px solid rgba(255,255,255,0.08); color: #fff;
}
.footer-wrap { min-height: 92px; }
.footer-brand-mini strong { display: block; font-size: 18px; }
.footer-brand-mini p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.modal { position: fixed; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(4, 18, 44, 0.72); backdrop-filter: blur(8px); z-index: 60; }
.modal[hidden], .modal-cover-wrap[hidden] { display: none !important; }
.modal-card { width: min(960px, 100%); max-height: min(88vh, 920px); overflow: auto; position: relative; padding: 28px; border-radius: 30px; background: #f7fbff; color: #11284f; box-shadow: 0 30px 90px rgba(0,0,0,0.25); }
.modal-brand-bar { display: flex; align-items: center; gap: 14px; padding: 0 56px 18px 0; margin-bottom: 18px; border-bottom: 1px solid rgba(17,40,79,0.1); }
.modal-brand-logo { width: 58px; height: 58px; border-radius: 18px; box-shadow: 0 10px 24px rgba(0,0,0,0.12); }
.modal-brand-copy strong { display: block; font-size: 20px; color: #11284f; }
.modal-brand-copy span { display: block; margin-top: 4px; color: #58739f; font-size: 14px; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(15,113,233,0.08); color: #0f71e9; font-size: 28px; }
.modal-date { color: #0f71e9; font-weight: 800; margin-bottom: 8px; }
.modal-title { margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); line-height: 1.16; color: #11284f; }
.modal-summary { margin: 0 0 20px; color: #5c7198; }
.modal-body { color: #11284f; line-height: 1.8; }
.modal-body > *:first-child { margin-top: 0; }
.modal-body img { max-width: 100%; border-radius: 18px; margin: 16px 0; }
.modal-cover-wrap { margin-bottom: 16px; }
.modal-cover { width: 100%; max-height: 360px; object-fit: cover; border-radius: 22px; }
.modal-links { display: flex; flex-wrap: wrap; gap: 12px; }
.modal-links-top { margin: 0 0 24px; padding: 18px; border-radius: 22px; background: linear-gradient(180deg, rgba(15,113,233,0.08), rgba(15,113,233,0.04)); border: 1px solid rgba(17,40,79,0.12); }
.modal-links a { color: #11284f; border-color: rgba(17,40,79,0.12); background: #eef5ff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.65); }
.admin-body { min-height: 100vh; background: linear-gradient(180deg, #061a3a 0%, #0b2f67 100%); overflow: auto; }
.admin-wrap { padding: 40px 0 80px; }
.admin-header, .admin-subtitle { color: #fff; }
.admin-title { margin: 0 0 6px; font-size: 32px; }
.admin-panel { padding: 28px; margin-bottom: 24px; }
.login-panel { max-width: 560px; margin: 40px auto 0; text-align: center; }
.admin-hidden { display: none; }
.admin-form, label, .editor-wrap { display: grid; gap: 10px; }
.compact-form { text-align: left; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
label span, .editor-label { font-weight: 800; }
input, textarea, select, .rich-editor {
  width: 100%; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,0.98); color: #11284f;
}
input:focus, textarea:focus, select:focus, .rich-editor:focus { outline: 2px solid rgba(15,113,233,0.16); border-color: rgba(15,113,233,0.26); }
textarea { resize: vertical; }
.inner-panel { padding: 22px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); }

.cover-tools { display: grid; gap: 14px; margin-bottom: 6px; }
.cover-upload-box { display: grid; gap: 12px; padding: 18px; border-radius: 20px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03); }
.cover-upload-title { font-weight: 800; color: #fff; font-size: 16px; }
.cover-upload-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cover-help { margin: 0; color: #dbeafe; font-size: 14px; line-height: 1.7; }
.cover-preview { width: min(320px, 100%); border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.08); }
.cover-preview img { display: block; width: 100%; height: 180px; object-fit: cover; }

.message-box { min-height: 24px; margin-top: 12px; font-weight: 800; color: #dbeafe; }
#messageBox { color: #dbeafe; }
.admin-news-list { display: grid; gap: 14px; margin-top: 24px; }
.news-admin-card { padding: 20px 22px; }
.small-btn { min-height: 42px; padding: 0 14px; }
.danger-btn { color: #ff9c9c; border-color: rgba(255,156,156,0.25); }
.upload-btn { position: relative; overflow: hidden; }
.upload-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.inline-check { display: inline-flex; align-items: center; gap: 10px; }
.inline-check input { width: auto; }
.editor-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; border-radius: 18px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
}
.editor-toolbar button { min-width: 42px; min-height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(15,45,95,0.08); background: #fff; color: #11284f; }
.editor-toolbar select { width: auto; min-width: 120px; }
.toolbar-color { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; }
.toolbar-color input { width: 44px; padding: 0; height: 40px; }
.rich-editor { min-height: 240px; overflow: auto; line-height: 1.7; }
.rich-editor img { max-width: 100%; border-radius: 16px; }
.empty-card { display: grid; place-items: center; min-height: 180px; }
@media (max-width: 1024px) {
  .hero-grid, .two-col, .lady-grid, .steps, .news-grid, .form-grid { grid-template-columns: 1fr; }
  .cover-upload-row { flex-direction: column; align-items: stretch; }
  .cover-preview { width: 100%; }
  .hero-copy h1 { font-size: 42px; }
}
@media (max-width: 768px) {
  :root { --header-height: 84px; --footer-height: 94px; }
  .container { width: min(100% - 24px, 1180px); }
  .section { padding: 32px 0; }
  .nav-wrap { grid-template-columns: minmax(0,1fr) auto; min-height: 84px; gap: 10px; }
  .brand { gap: 10px; }
  .brand img { width: 46px; height: 46px; border-radius: 16px; }
  .brand strong { font-size: 15px; }
  .brand span { font-size: 10px; }
  .top-actions { min-width: 0; }
  .lang-switcher { padding: 4px; max-width: 154px; width: 154px; }
  .lang-btn { min-width: 0; width: 73px; padding: 9px 6px; font-size: 13px; }
  .hero { padding: 24px 0 34px; }
  .hero-copy h1 { font-size: 28px; }
  .hero-desc, .news-subtitle, .faq-list p, .step-card p, .feature-box p { font-size: 16px; }
  .quick-link-card { grid-template-columns: 54px 1fr auto; padding: 16px; }
  .tg-avatar { width: 54px; height: 54px; border-radius: 18px; }
  .faq-list summary { font-size: 20px; }
  .modal-card, .admin-panel { padding: 22px; }
  .lady-card { min-height: 360px; }
  .site-footer { padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0)); }
  .footer-wrap { min-height: auto; display: block; }
  .footer-brand-mini { display: none; }
  .footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 8px; }
  .icon-pill {
    justify-content: center; align-items: center; padding: 10px 6px; min-height: 66px; min-width: 0;
    flex-direction: column; gap: 6px; font-size: 13px; border-radius: 22px; text-align: center;
  }
  .pill-icon { width: 22px; height: 22px; font-size: 12px; }
  .video-links { gap: 10px; }
  .video-pill { padding: 10px 12px; font-size: 14px; }
  .news-card h3 { font-size: 22px; }
  .feature-box { grid-template-columns: 56px 1fr; }
  .feature-icon { width: 56px; height: 56px; }
}

@media (max-width: 480px) {
  :root { --header-height: 78px; --footer-height: 88px; }
  .container { width: calc(100% - 20px); }
  .nav-wrap { min-height: 78px; gap: 8px; }
  .brand img { width: 42px; height: 42px; border-radius: 14px; }
  .brand strong { font-size: 13px; }
  .brand span { font-size: 9px; }
  .lang-switcher { width: 140px; max-width: 140px; }
  .lang-btn { width: 66px; padding: 8px 4px; font-size: 12px; }
  .footer-links { gap: 6px; }
  .icon-pill { min-height: 60px; border-radius: 20px; font-size: 12px; padding: 8px 4px; }
  .pill-icon { width: 20px; height: 20px; font-size: 11px; }
}

@media (max-width: 768px) {
  .video-strip { width: 100%; padding: 14px; }
  .video-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-pill { justify-content: center; }
  .modal-brand-bar { padding-right: 44px; }
  .modal-links-top { padding: 14px; }
}

@media (max-width: 480px) {
  .video-links { grid-template-columns: 1fr 1fr; }
  .modal-card { padding: 18px; }
  .modal-brand-bar { gap: 10px; margin-bottom: 14px; }
  .modal-brand-logo { width: 48px; height: 48px; border-radius: 14px; }
  .modal-brand-copy strong { font-size: 17px; }
  .modal-links-top { gap: 8px; }
  .modal-links a { width: 100%; justify-content: center; }
}
