/* ===== 大A自用记分 · 官网设计系统 ===== */
/* 参考 AnvilWiki 的 CSS 变量主题系统 */

:root {
  /* 品牌色 */
  --primary: #6B9FFF;
  --primary-dark: #4a7fd4;
  --primary-light: #8fb8ff;
  
  /* 中性色 */
  --bg: #ffffff;
  --bg-muted: #f8fafc;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  
  /* 功能色 */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  /* 间距 */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  
  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  
  /* 字体 */
  --font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ===== 全局重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* 修复页面间跳转时滚动条出现/消失导致的横向抖动 */
  scrollbar-gutter: stable;
  overflow-x: hidden;
}

/* 锚点跳转时预留导航栏高度，避免标题被 sticky 顶栏遮挡 */
[id] {
  scroll-margin-top: 84px;
}

body {
  font-family: var(--font-family);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ===== 导航栏 ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

.nav-links {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-badge-pill {
  font-size: 10px;
  background: #fee2e2;
  color: #dc2626;
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 700;
  margin-left: 4px;
}

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* 移动端顶栏快捷栏 & 汉堡按钮 */
.nav-mobile-bar {
  display: none;
  align-items: center;
  gap: 8px;
}

.nav-cta-mobile {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(107, 159, 255, 0.35);
  transition: all 0.2s ease;
}

.nav-hamburger-btn {
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4.5px;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.nav-hamburger-btn:active {
  background: #e2e8f0;
}

.nav-hamburger-btn .hamburger-line {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* 移动端抽屉菜单 */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-inner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  padding: 16px 20px 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(-100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 85vh;
  overflow-y: auto;
}

.mobile-drawer.active .mobile-drawer-inner {
  transform: translateY(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.drawer-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.drawer-close-btn {
  background: #f1f5f9;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-links {
  display: flex;
  flex-direction: column;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid #f8fafc;
  transition: background 0.15s ease;
}

.drawer-link:active {
  background: #f1f5f9;
}

.drawer-link.highlight {
  color: var(--primary-dark);
  font-weight: 700;
}

.drawer-link .drawer-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.drawer-footer {
  margin-top: 16px;
  padding-top: 12px;
}

/* ===== Hero 区（双栏：左文案 + 右手机模型） ===== */
.hero {
  background: linear-gradient(135deg, #6B9FFF 0%, #4a7fd4 100%);
  color: #fff;
  padding: 96px 0 108px 0;
  position: relative;
  overflow: visible;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.12) 0%, transparent 50%),
              radial-gradient(circle at 10% 90%, rgba(255,255,255,0.08) 0%, transparent 40%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.18);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.5px;
}

.hero-copy {
  text-align: left;
}

.hero h1 {
  font-size: 46px;
  font-weight: 800;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.hero .subtitle {
  font-size: 18px;
  opacity: 0.92;
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-md);
}

.hero-chip {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-cta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-hint {
  margin-top: var(--space-sm);
  font-size: 14px;
  opacity: 0.8;
}

/* 手机模型（记分板界面示意） */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.phone-mockup {
  width: 320px;
  max-width: 90vw;
  background: #fff;
  border-radius: 36px;
  padding: 14px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  position: relative;
  z-index: 2;
}

/* ===== 微信小程序弹窗 ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.25s ease;
  position: relative;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.modal-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-tag {
  display: inline-block;
  background: var(--bg-muted);
  border: 1px dashed var(--primary);
  color: var(--primary-dark);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  margin: 8px 0;
}

.phone-screen {
  background: #f8fafc;
  border-radius: 24px;
  padding: 20px 16px;
}

.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.mock-room {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

.mock-live {
  font-size: 11px;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.mock-player {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 14px;
}

.mock-player.rank-1 {
  background: linear-gradient(135deg, rgba(107,159,255,0.12), rgba(107,159,255,0.04));
  border: 1px solid rgba(107, 159, 255, 0.25);
}

.mock-name { color: #334155; font-weight: 500; }
.mock-score { font-weight: 700; font-variant-numeric: tabular-nums; }
.mock-score.up { color: #16a34a; }
.mock-score.down { color: #dc2626; }

.mock-photo-strip {
  background: #eff6ff;
  border: 1px dashed #93c5fd;
  border-radius: 8px;
  padding: 7px 10px;
  margin-top: 10px;
  font-size: 11px;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-ticker-box {
  background: #fff;
  border-radius: 8px;
  padding: 7px 10px;
  margin-top: 8px;
  border: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.mock-ticker-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: #1e293b;
}

.mock-footer {
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 10px;
}

/* 漂浮装饰卡片 */
.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.98);
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
  animation: float 3.5s ease-in-out infinite;
  z-index: 10;
  white-space: nowrap;
}

.float-room {
  top: 4px;
  left: -24px;
}

.float-share {
  bottom: 4px;
  right: -24px;
  animation-delay: 1.6s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #fff;
  color: var(--primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ===== 功能卡片区 ===== */
.features {
  padding: var(--space-xl) 0;
  background: var(--bg-muted);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--text);
}

.section-header p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto;
}

/* ===== 分类筛选 Tabs ===== */
.matrix-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.matrix-tab {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.matrix-tab:hover {
  color: var(--primary);
  border-color: var(--primary-light);
  transform: translateY(-1px);
}

.matrix-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(107, 159, 255, 0.35);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-md);
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  border-color: rgba(107, 159, 255, 0.5);
}

.feature-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.feature-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
  background: rgba(107, 159, 255, 0.08);
  border: 1px solid rgba(107, 159, 255, 0.22);
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.feature-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.feature-badge.hot { background: #fee2e2; color: #dc2626; }
.feature-badge.new { background: #dbeafe; color: #1d4ed8; }
.feature-badge.pro { background: #ede9fe; color: #6d28d9; }
.feature-badge.fun { background: #fef3c7; color: #b45309; }

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.feature-tag-item {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-muted);
  color: #475569;
  font-weight: 500;
}

/* ===== 使用步骤 ===== */
.steps-section {
  padding: var(--space-xl) 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.step-card {
  text-align: center;
  padding: var(--space-md);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
}

.step-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.step-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== FAQ ===== */
.faq-section {
  padding: var(--space-xl) 0;
  background: var(--bg-muted);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
  border: 1px solid var(--border);
}

.faq-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--text);
}

.faq-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--text);
  color: #fff;
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  margin: 0 8px;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ===== 星选展厅与在线入驻专区 ===== */
.gallery-section {
  padding: var(--space-xl) 0;
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 50%, #f8fafc 100%);
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.gallery-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: #2563eb;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  border: 1px solid #bfdbfe;
}

.gallery-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.gallery-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gallery-tab {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-tab:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.gallery-tab.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(107, 159, 255, 0.35);
}

.btn-toggle-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-toggle-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-toggle-submit .plus-icon {
  font-size: 16px;
  font-weight: bold;
}

/* 填入作品表单卡片 */
.gallery-submit-panel {
  margin-bottom: var(--space-lg);
  display: none; /* JS 控制展开 */
  animation: slideDownFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-submit-panel.active {
  display: block;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.submit-card {
  background: #ffffff;
  border: 1px solid #dbeafe;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.submit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
}

.submit-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.submit-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.submit-icon {
  font-size: 28px;
}

.submit-card-title h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.submit-card-title p {
  font-size: 13px;
  color: var(--text-muted);
}

.submit-panel-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s;
}

.submit-panel-close:hover {
  color: var(--danger);
}

.submit-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.form-group label .req {
  color: var(--danger);
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: #fdfdfd;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background: #ffffff;
}

.form-hint {
  font-size: 12px;
  color: var(--text-light);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: 8px;
  padding-top: var(--space-sm);
  border-top: 1px dashed var(--border);
}

.form-note {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 65%;
  line-height: 1.5;
}

.submit-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 12px 30px !important;
  border-radius: 999px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
  min-height: 44px !important;
}
.submit-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45) !important;
  transform: translateY(-1px);
}
.submit-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
}
.submit-btn:disabled {
  opacity: 0.65 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

.submit-feedback {
  margin-top: 10px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  display: none;
  padding: 10px 14px;
}

.submit-feedback.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.submit-feedback.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* 模态框顶部 Tab 切换 */
.modal-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 999px;
}

.modal-tab-btn {
  border: none;
  background: transparent;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-tab-btn.active {
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* 微信短链获取指引框 */
.shortlink-guide-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--primary-dark);
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  margin-top: 3px;
}

.shortlink-guide-trigger:hover {
  text-decoration: underline;
}

.shortlink-guide-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-top: 8px;
  display: none;
  animation: fadeIn 0.2s ease;
}

.shortlink-guide-box.show {
  display: block;
}

.guide-step {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 4px;
}

.guide-step:last-child {
  margin-bottom: 0;
}

.guide-step code {
  background: #eff6ff;
  color: #2563eb;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11.5px;
}

/* 成功面板与修改凭证码在底部统一管理 */

/* 凭码查询行 */
.lookup-group {
  display: flex;
  gap: 8px;
}

.lookup-group input {
  flex: 1;
  font-family: monospace, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.lookup-btn {
  padding: 0 18px;
  white-space: nowrap;
}

/* 展品卡片网格 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  min-height: 200px;
}

.gallery-loading,
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-xl) 0;
  color: var(--text-muted);
  font-size: 15px;
}

.gallery-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #bfdbfe;
}

.gallery-card.pinned {
  border: 1.5px solid #93c5fd;
  background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
}

.gallery-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.gallery-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  background: #eff6ff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #2563eb;
  font-size: 18px;
  flex-shrink: 0;
}

.gallery-card-meta {
  flex: 1;
  min-width: 0;
}

.gallery-card-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.gallery-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-badge-top {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #fee2e2;
  color: #dc2626;
  font-weight: 600;
  flex-shrink: 0;
}

.gallery-card-author {
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.gallery-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
}

.gallery-tag-pill {
  background: #f1f5f9;
  color: #475569;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

.gallery-btn-action {
  padding: 6px 14px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.gallery-btn-action:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.gallery-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-md);
  padding: 14px 20px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.gallery-more-link {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.gallery-more-link:hover {
  text-decoration: underline;
}

/* 全局 Toast 轻提示浮窗 */
.toast-bubble {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
  backdrop-filter: blur(8px);
}

.toast-bubble.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== 响应式适配 ===== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-chips {
    justify-content: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .phone-mockup {
    transform: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* 容器与基础边距适配 */
  .container {
    padding: 0 16px;
  }

  /* 导航栏切换到移动端汉堡模式 */
  .nav-links {
    display: none !important;
  }

  .nav-mobile-bar {
    display: flex;
  }

  /* Hero 区域移动端体验精简与优化 */
  .hero {
    padding: 38px 0 44px;
  }

  .hero h1 {
    font-size: 26px;
    line-height: 1.35;
    margin-bottom: 10px;
    letter-spacing: normal;
  }

  .hero h1 br {
    display: none;
  }

  .hero .subtitle {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
    padding: 0 4px;
    opacity: 0.95;
  }

  .hero-eyebrow {
    font-size: 12px;
    padding: 4px 12px;
    margin-bottom: 10px;
  }

  .hero-chips {
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
  }

  .hero-chip {
    font-size: 11.5px;
    padding: 4px 9px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    padding: 11px 20px;
    font-size: 14.5px;
  }

  .hero-hint {
    font-size: 12px;
    margin-top: 12px;
    opacity: 0.85;
  }

  .hero-visual {
    padding: 8px 0 0;
  }

  .phone-mockup {
    width: 276px;
    max-width: 86vw;
    padding: 10px;
    border-radius: 26px;
    margin: 0 auto;
  }

  .float-card {
    display: none;
  }

  /* 分类选项卡横向滑动 (类似 App 体验) */
  .matrix-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding: 4px 16px 12px;
    margin: 0 -16px 20px;
    scrollbar-width: none;
    justify-content: flex-start;
  }

  .matrix-tabs::-webkit-scrollbar {
    display: none;
  }

  .matrix-tab {
    flex-shrink: 0;
    font-size: 13px;
    padding: 7px 14px;
  }

  /* 功能卡片单列布局，彻底解决窄屏横向溢出 */
  .feature-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .feature-card {
    padding: 20px 16px;
  }

  .feature-card h3 {
    font-size: 16.5px;
  }

  .feature-card p {
    font-size: 13.5px;
    line-height: 1.6;
  }

  /* 标题大小适配 */
  .section-header h2 {
    font-size: 22px;
  }

  .section-header p {
    font-size: 13.5px;
  }

  /* 展厅区域 */
  .gallery-section {
    padding: 36px 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .gallery-card {
    padding: 16px;
  }

  .gallery-card-header {
    gap: 10px;
    margin-bottom: 10px;
  }

  .gallery-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 16px;
  }

  .gallery-card-title {
    font-size: 15px;
  }

  .gallery-card-desc {
    font-size: 12.5px;
    margin-bottom: 12px;
    -webkit-line-clamp: 2;
    min-height: auto;
  }

  /* 步骤卡片 */
  .steps-section {
    padding: 36px 0;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 20px;
  }

  .step-card {
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border);
  }

  /* FAQ */
  .faq-section {
    padding: 36px 0;
  }

  .faq-item {
    padding: 16px 14px;
  }

  .faq-item h3 {
    font-size: 15px;
  }

  .faq-item p {
    font-size: 13px;
  }

  /* 页脚 */
  .site-footer {
    padding: 36px 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: center;
  }

  .footer-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
  }

  .footer-links li {
    margin-bottom: 0;
  }

  /* 展厅独立页 Hero 与动作栏 */
  .gallery-page-hero {
    padding: 30px 0 20px;
  }

  .gallery-page-hero h1 {
    font-size: 23px;
    margin-bottom: 8px;
  }

  .gallery-page-hero p {
    font-size: 13.5px;
    margin-bottom: 16px;
    padding: 0 4px;
  }

  .gallery-actions-bar {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .gallery-search-wrap {
    width: 100%;
  }

  .gallery-actions-bar .btn {
    width: 100%;
    justify-content: center;
  }

  .gallery-main-section {
    padding: 20px 0 40px;
  }

  .gallery-stats-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* 模态弹窗移动端适配 */
  .modal-dialog {
    width: 95%;
    max-height: 88vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 18px;
  }

  .modal-dialog-header {
    padding: 16px 18px 10px;
  }

  .modal-dialog-body {
    padding: 0 18px 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .form-note {
    max-width: 100%;
    font-size: 12px;
  }

  .submit-btn {
    width: 100%;
  }
}

/* ===== 展厅提交弹窗双模式、微信短链指引与修改码卡片 ===== */
.modal-tabs {
  display: flex;
  gap: 8px;
  padding: 0 28px 16px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 20px;
}
.modal-tab-btn {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}
.modal-tab-btn:hover {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}
.modal-tab-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.shortlink-guide-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #2563eb;
  cursor: pointer;
  margin-top: 6px;
  user-select: none;
  background: none;
  border: none;
  padding: 0;
}
.shortlink-guide-trigger:hover {
  text-decoration: underline;
}

.shortlink-guide-box {
  display: none;
  background: #f0fdf4;
  border: 1px dashed #86efac;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 8px;
  font-size: 12px;
  color: #166534;
  line-height: 1.6;
  animation: fadeIn 0.2s ease-out;
}
.shortlink-guide-box.active {
  display: block;
}
.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 5px;
}
.guide-step:last-child {
  margin-bottom: 0;
}
.guide-step-num {
  background: #16a34a;
  color: #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* 展厅维护入口次按钮：纯白底浅蓝边深蓝字，绝无隐形，触感精致 */
.btn-gallery-manage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  background: #ffffff !important;
  color: #1d4ed8 !important;
  border: 1.5px solid #bfdbfe !important;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-gallery-manage:hover {
  background: #eff6ff !important;
  color: #1e40af !important;
  border-color: #60a5fa !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}
.btn-gallery-manage:active {
  transform: translateY(0);
}

.success-code-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 2px solid #86efac;
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.12);
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.code-highlight-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #ffffff;
  border: 2px dashed #16a34a;
  padding: 12px 24px;
  border-radius: 12px;
  margin: 14px 0 8px;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: all;
}
.code-highlight-box:hover {
  background: #f0fdf4;
  border-color: #15803d;
  border-style: solid;
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.18);
}
.code-highlight-box:active {
  transform: scale(0.98);
}
.code-highlight-box #createdEditCode {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #15803d;
  font-family: 'Consolas', 'Courier New', monospace;
}
.copy-code-btn {
  background: #16a34a;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: normal;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.copy-code-btn:hover {
  background: #15803d;
}
.copy-code-btn.copied {
  background: #047857;
}
.code-click-hint {
  font-size: 12.5px;
  color: #059669;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.lookup-group {
  display: flex;
  gap: 8px;
}
.lookup-group input {
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  font-family: Consolas, monospace, sans-serif;
}

@media (max-width: 768px) {
  .modal-tabs {
    padding: 0 18px 12px;
  }
  .modal-tab-btn {
    font-size: 12.5px;
    padding: 8px 6px;
  }
  .code-highlight-box {
    font-size: 18px;
    padding: 6px 12px;
  }
}

/* ===== 小程序图标上传与微信安全检测 ===== */
.upload-icon-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.upload-icon-wrapper:hover {
  border-color: #3b82f6;
  background: #f0f7ff;
}
.upload-icon-preview {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #94a3b8;
  flex-shrink: 0;
  border: 1px solid #cbd5e1;
  overflow: hidden;
}
.upload-icon-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.upload-icon-info {
  flex: 1;
}
.upload-icon-title {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 2px;
}
.upload-icon-desc {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.4;
}
.upload-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  margin-top: 4px;
  font-weight: 600;
}
.upload-status-tag.checking {
  color: #d97706;
}
.upload-status-tag.success {
  color: #16a34a;
}
.upload-status-tag.error {
  color: #dc2626;
}
.btn-remove-icon {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 11.5px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin-left: 8px;
}

/* 展厅卡片真实图标 */
.gallery-card-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}



