/**
 * 长沙市峰言科技有限公司 - 设计系统基础样式
 * 基于CSS变量的统一设计规范
 */

/* ============ 设计系统 CSS 变量 ============ */
:root {
  /* 品牌色系 */
  --brand-primary: #1a5276;
  --brand-primary-light: #2980b9;
  --brand-primary-dark: #123d5a;
  --brand-primary-bg: #eaf2f8;
  --brand-accent: #e67e22;
  --brand-accent-light: #f39c12;
  --brand-accent-dark: #d35400;
  --brand-accent-bg: #fef5e7;

  /* 中性色 */
  --color-white: #ffffff;
  --color-bg: #f7f8fa;
  --color-bg-alt: #f0f2f5;
  --color-border: #e4e7ed;
  --color-border-light: #ebeef5;
  --color-text-primary: #2c3e50;
  --color-text-secondary: #606770;
  --color-text-muted: #909399;
  --color-text-light: #b0b8c1;

  /* 功能色 */
  --color-success: #27ae60;
  --color-success-bg: #e8f8f0;
  --color-warning: #f39c12;
  --color-warning-bg: #fef9e7;
  --color-error: #e74c3c;
  --color-error-bg: #fdedec;
  --color-info: #3498db;
  --color-info-bg: #ebf5fb;

  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);

  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  /* 间距 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;

  /* 字体 */
  --font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "SF Mono", "Consolas", "Liberation Mono", monospace;

  /* 字号 */
  --text-xs: clamp(11px, 1.5vw, 12px);
  --text-sm: clamp(12px, 1.8vw, 13px);
  --text-base: clamp(13px, 2vw, 14px);
  --text-md: clamp(14px, 2.2vw, 16px);
  --text-lg: clamp(16px, 2.5vw, 18px);
  --text-xl: clamp(18px, 3vw, 22px);
  --text-2xl: clamp(22px, 3.5vw, 28px);
  --text-3xl: clamp(26px, 4vw, 34px);

  /* 行高 */
  --leading-tight: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.8;

  /* 容器 */
  --container-width: min(100%, 1200px);
  --container-narrow: min(100%, 960px);
  --container-wide: min(100%, 1400px);

  /* 过渡 */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;

  /* 头部高度 */
  --header-top-height: 40px;
  --header-nav-height: 50px;
  --header-total-height: 90px;
}

/* ============ 全局重置 ============ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 14px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-primary-light);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  outline: none;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ============ 排版 ============ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-md); }
h6 { font-size: var(--text-base); }

p {
  margin-bottom: var(--space-md);
  line-height: var(--leading-relaxed);
}

/* ============ 布局容器 ============ */
.site-container {
  width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.site-container--narrow {
  width: var(--container-narrow);
}

.site-container--wide {
  width: var(--container-wide);
}

.page-main {
  flex: 1;
  padding-top: var(--header-total-height);
}

/* ============ 站点头部 ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.header-top-bar {
  height: var(--header-top-height);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
}

.header-top-inner {
  width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--brand-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.site-logo-icon {
  width: 28px;
  height: 28px;
  background: var(--brand-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
}

.header-search-box {
  flex: 1;
  max-width: 360px;
  position: relative;
}

.header-search-box input {
  width: 100%;
  height: 32px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  background: var(--color-bg);
  transition: border-color var(--transition-fast);
}

.header-search-box input:focus {
  border-color: var(--brand-primary);
  background: var(--color-white);
}

.header-search-box input::placeholder {
  color: var(--color-text-muted);
}

.header-search-btn {
  position: absolute;
  right: 1px;
  top: 1px;
  bottom: 1px;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: color var(--transition-fast);
}

.header-search-btn:hover {
  color: var(--brand-primary);
}

.header-user-area {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.header-user-link {
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.header-user-link:hover {
  color: var(--brand-primary);
}

.header-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.header-cart-btn:hover {
  color: var(--brand-primary);
}

.header-cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--brand-accent);
  color: var(--color-white);
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
}

/* 导航栏 */
.header-nav-bar {
  height: var(--header-nav-height);
  background: var(--brand-primary);
}

.header-nav-inner {
  width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-category-list {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
}

.nav-category-item {
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-category-item a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 var(--space-lg);
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-base);
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.nav-category-item a:hover,
.nav-category-item.active a {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  cursor: pointer;
  margin-left: auto;
}

.mobile-menu-toggle svg {
  width: 22px;
  height: 22px;
}

/* ============ 站点底部 ============ */
.site-footer {
  background: #1e2a35;
  color: rgba(255, 255, 255, 0.7);
  margin-top: auto;
}

.footer-main {
  width: var(--container-width);
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-md) var(--space-xl);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.footer-col-title {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--brand-accent);
  display: inline-block;
}

.footer-link-list li {
  margin-bottom: var(--space-sm);
}

.footer-link-list a {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-link-list a:hover {
  color: var(--brand-accent-light);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: var(--text-sm);
}

.footer-contact-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.6;
}

.footer-partner-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-partner-tag {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
  width: var(--container-width);
  margin: 0 auto;
  padding: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-md);
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--text-xs);
}

.footer-bottom-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ============ 按钮系统 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 8px 20px;
  font-size: var(--text-base);
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  border: 1px solid transparent;
  line-height: 1.4;
}

.btn-primary {
  background: var(--brand-primary);
  color: var(--color-white);
  border-color: var(--brand-primary);
}

.btn-primary:hover {
  background: var(--brand-primary-light);
  border-color: var(--brand-primary-light);
  color: var(--color-white);
}

.btn-accent {
  background: var(--brand-accent);
  color: var(--color-white);
  border-color: var(--brand-accent);
}

.btn-accent:hover {
  background: var(--brand-accent-dark);
  border-color: var(--brand-accent-dark);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.btn-outline:hover {
  background: var(--brand-primary);
  color: var(--color-white);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn-sm {
  padding: 5px 12px;
  font-size: var(--text-sm);
}

.btn-lg {
  padding: 12px 28px;
  font-size: var(--text-md);
}

.btn-block {
  width: 100%;
}

/* ============ 卡片系统 ============ */
.content-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.content-card-header {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
  font-size: var(--text-md);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.content-card-header::before {
  content: "";
  width: 3px;
  height: 16px;
  background: var(--brand-primary);
  border-radius: 2px;
}

.content-card-body {
  padding: var(--space-lg);
}

/* ============ 徽章 ============ */
.product-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: var(--text-xs);
  font-weight: 500;
  border-radius: 2px;
  line-height: 1.5;
}

.product-tag--hot {
  background: var(--color-error-bg);
  color: var(--color-error);
}

.product-tag--new {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.product-tag--sale {
  background: var(--brand-accent-bg);
  color: var(--brand-accent);
}

/* ============ 价格 ============ */
.price-current {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--brand-accent);
}

.price-current .price-symbol {
  font-size: var(--text-sm);
  font-weight: 500;
}

.price-original {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: line-through;
  margin-left: var(--space-sm);
}

/* ============ 面包屑 ============ */
.breadcrumb-nav {
  padding: var(--space-md) 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.breadcrumb-list li::after {
  content: "/";
  margin-left: var(--space-xs);
  color: var(--color-text-light);
}

.breadcrumb-list li:last-child::after {
  display: none;
}

.breadcrumb-list a {
  color: var(--color-text-muted);
}

.breadcrumb-list a:hover {
  color: var(--brand-primary);
}

.breadcrumb-list .breadcrumb-current {
  color: var(--color-text-primary);
}

/* ============ 表单组件 ============ */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-primary);
}

.form-label .required-mark {
  color: var(--color-error);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px var(--brand-primary-bg);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-select {
  appearance: auto;
  cursor: pointer;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: var(--space-xs);
  display: none;
}

/* ============ 滑块验证 ============ */
.slider-verify-wrap {
  margin: var(--space-md) 0;
}

.slider-verify-track {
  position: relative;
  width: 100%;
  height: 40px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  user-select: none;
}

.sv-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: var(--color-success-bg);
  border-right: 1px solid var(--color-success);
  transition: none;
}

.sv-text {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  pointer-events: none;
}

.sv-handle {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
  z-index: 2;
  transition: none;
}

.sv-handle:active {
  cursor: grabbing;
}

.sv-handle svg {
  width: 16px;
  height: 16px;
  color: var(--color-text-muted);
}

.slider-verify-track.sv-verified {
  border-color: var(--color-success);
}

.slider-verify-track.sv-verified .sv-progress {
  background: var(--color-success-bg);
  border-color: var(--color-success);
}

.slider-verify-track.sv-verified .sv-handle {
  border-color: var(--color-success);
  background: var(--color-success);
}

.slider-verify-track.sv-verified .sv-handle svg {
  color: var(--color-white);
}

.slider-verify-track.sv-verified .sv-text {
  color: var(--color-success);
}

/* ============ 分页器 ============ */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-lg) 0;
}

.page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  background: var(--color-white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.page-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.page-btn.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--color-white);
}

.page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============ Cookie 条幅 ============ */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(30, 42, 53, 0.95);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  font-size: var(--text-sm);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.cookie-notice.hidden {
  display: none;
}

.cookie-notice-text {
  flex: 1;
  max-width: 800px;
}

.cookie-accept-btn {
  padding: 6px 20px;
  background: var(--brand-accent);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  cursor: pointer;
  white-space: nowrap;
  border: none;
  transition: background var(--transition-fast);
}

.cookie-accept-btn:hover {
  background: var(--brand-accent-dark);
}

/* ============ 成交通知 ============ */
.order-notification {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 999;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  box-shadow: var(--shadow-lg);
  font-size: var(--text-sm);
  max-width: 340px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.order-notification.visible {
  opacity: 1;
  transform: translateY(0);
}

.order-notification-content {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.order-notification-dot {
  width: 6px;
  height: 6px;
  background: var(--color-success);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============ 返回顶部 + AI客服 ============ */
.float-btn {
  position: fixed;
  z-index: 998;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  border: none;
}

.back-to-top-btn {
  right: 20px;
  bottom: 80px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  opacity: 0;
  pointer-events: none;
}

.back-to-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.back-to-top-btn svg {
  width: 20px;
  height: 20px;
}

.scroll-progress-ring {
  position: absolute;
  top: -3px;
  left: -3px;
}

.ai-chat-widget {
  right: 20px;
  bottom: 136px;
  background: var(--brand-primary);
  color: var(--color-white);
}

.ai-chat-widget:hover {
  background: var(--brand-primary-light);
}

.ai-chat-widget svg {
  width: 22px;
  height: 22px;
}

.ai-chat-status {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: var(--color-success);
  border: 2px solid var(--color-white);
  border-radius: 50%;
}

/* ============ 页面加载 ============ */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  transition: opacity 0.4s;
}

.page-loader.loaded {
  opacity: 0;
  pointer-events: none;
}

.loader-logo {
  width: 48px;
  height: 48px;
  background: var(--brand-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 22px;
  font-weight: 700;
}

.loader-progress {
  width: 180px;
  height: 3px;
  background: var(--color-bg-alt);
  border-radius: 2px;
  overflow: hidden;
}

.loader-progress-fill {
  height: 100%;
  width: 0;
  background: var(--brand-primary);
  border-radius: 2px;
  animation: loaderFill 1.2s ease-in-out forwards;
}

@keyframes loaderFill {
  0% { width: 0; }
  60% { width: 80%; }
  100% { width: 100%; }
}

/* ============ 登录弹窗 ============ */
.login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.login-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.login-modal-box {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  width: min(100%, 380px);
  margin: var(--space-md);
  box-shadow: var(--shadow-lg);
}

.login-modal-header {
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border-light);
}

.login-modal-header h3 {
  font-size: var(--text-lg);
}

.login-modal-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.login-modal-close:hover {
  background: var(--color-bg-alt);
  color: var(--color-text-primary);
}

.login-modal-body {
  padding: var(--space-lg);
}

.login-tab-bar {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: var(--space-sm);
}

.login-tab {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  cursor: pointer;
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid transparent;
  margin-bottom: -9px;
  transition: all var(--transition-fast);
}

.login-tab.active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
}

/* ============ 区段标题 ============ */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border-light);
}

.section-heading h2 {
  font-size: var(--text-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex: 1;
  min-width: 0;
}

.section-heading h2::before {
  content: "";
  width: 3px;
  height: 18px;
  background: var(--brand-accent);
  border-radius: 2px;
}

.section-heading .section-more {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.section-heading .section-more:hover {
  color: var(--brand-primary);
}

/* ============ 标签页 ============ */
.tab-bar {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
}

.tab-item {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-item:hover {
  color: var(--brand-primary);
}

.tab-item.active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
  font-weight: 500;
}

/* ============ 评分星星 ============ */
.rating-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--brand-accent-light);
}

.rating-stars svg {
  width: 14px;
  height: 14px;
}

/* ============ 空状态 ============ */
.empty-state {
  text-align: center;
  padding: var(--space-xxl);
  color: var(--color-text-muted);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-md);
  opacity: 0.3;
}

/* ============ 表格 ============ */
.data-table {
  width: 100%;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 10px 14px;
  text-align: left;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-border-light);
}

.data-table th {
  background: var(--color-bg);
  font-weight: 600;
  color: var(--color-text-secondary);
  width: 140px;
}

.data-table td {
  color: var(--color-text-primary);
}

.data-table tr:last-child th,
.data-table tr:last-child td {
  border-bottom: none;
}

/* ============ 支付方式卡片 ============ */
.payment-options-group {
  display: grid;
  gap: var(--space-sm);
}

.payment-option-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.payment-option-card:hover {
  border-color: var(--brand-primary-light);
}

.payment-option-card.selected {
  border-color: var(--brand-primary);
  background: var(--brand-primary-bg);
}

.payment-option-card input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-primary);
  flex-shrink: 0;
}

.payment-icon-wrap {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.payment-icon-wrap svg {
  width: 28px;
  height: 28px;
}

.payment-option-name {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-primary);
}

/* ============ 成功面板 ============ */
.submit-success-panel {
  text-align: center;
  padding: var(--space-xxl) var(--space-lg);
  display: none;
}

.submit-success-panel.visible {
  display: block;
}

.success-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-success-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}

.success-icon-circle svg {
  width: 32px;
  height: 32px;
  color: var(--color-success);
}

/* ============ 侧边栏 ============ */
.sidebar-widget {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.sidebar-widget-title {
  padding: 12px 16px;
  font-size: var(--text-base);
  font-weight: 600;
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.sidebar-widget-title::before {
  content: "";
  width: 3px;
  height: 14px;
  background: var(--brand-primary);
  border-radius: 2px;
}

.sidebar-widget-body {
  padding: 12px 16px;
}

.sidebar-nav-list li {
  border-bottom: 1px solid var(--color-border-light);
}

.sidebar-nav-list li:last-child {
  border-bottom: none;
}

.sidebar-nav-list a {
  display: block;
  padding: 10px 0;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.sidebar-nav-list a:hover {
  color: var(--brand-primary);
}

/* ============ 两栏布局 ============ */
.two-col-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.two-col-layout--reverse {
  grid-template-columns: 1fr 280px;
}
