/* ============================================
   黄金外汇手工单社区 · 全局样式
   ============================================ */

/* ========== 更多账号引导卡片 ========== */
.more-card {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(30, 30, 40, 0.95));
  border: 2px dashed rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  cursor: default;
}
.more-card-inner {
  text-align: center;
  padding: 30px 20px;
}
.more-card-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.more-card-title {
  font-size: 22px;
  font-weight: 700;
  color: #d4af37;
  margin-bottom: 14px;
}
.more-card-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  margin-bottom: 24px;
}
.more-card-btn {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(135deg, #d4af37, #b8941f);
  color: #1a1a2e;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}
.more-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}


/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 主色调 */
  --bg-primary: #0a0a1a;
  --bg-secondary: #0f0f23;
  --bg-card: #141428;
  --bg-card-hover: #1a1a36;
  
  /* 金色系 */
  --gold: #ffd700;
  --gold-dim: #b8960c;
  --gold-glow: rgba(255, 215, 0, 0.15);
  
  /* 文本 */
  --text-primary: #e8e8f0;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  /* 状态色 */
  --green: #00d4aa;
  --green-dim: rgba(0, 212, 170, 0.12);
  --red: #ff4757;
  --red-dim: rgba(255, 71, 87, 0.12);
  --blue: #3b82f6;
  
  /* 边框 */
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 215, 0, 0.2);
  
  /* 圆角 */
  --radius: 12px;
  --radius-sm: 8px;
  
  /* 阴影 */
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 0 30px rgba(255, 215, 0, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  background: linear-gradient(180deg, rgba(10, 10, 26, 0.98) 0%, rgba(10, 10, 26, 0.9) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: -2px;
}

.header-stats {
  display: flex;
  gap: 32px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   Hero Banner
   ============================================ */
.hero {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(10, 10, 26, 1) 50%, rgba(0, 212, 170, 0.03) 100%);
  padding: 60px 24px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
}

.hero-title .gold {
  background: linear-gradient(135deg, #ffd700, #ffed4a, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  position: relative;
}

.hero-tags {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.hero-tag {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

.hero-tag.highlight {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}

/* ============================================
   Filter Bar
   ============================================ */
.filter-bar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.filter-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.filter-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}

.filter-sort {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.filter-sort select {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

/* ============================================
   Traders Grid
   ============================================ */
.traders-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 24px;
}

/* ============================================
   Trader Card
   ============================================ */
.trader-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.trader-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

/* Card Header */
.card-header {
  padding: 20px 20px 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.trader-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.15);
}

.trader-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trader-info {
  flex: 1;
  min-width: 0;
}

.trader-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.trader-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(0, 212, 170, 0.2);
}

.verified-badge.unverified {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border-color: var(--border);
}

.trader-specialty {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.trader-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.tag.hot {
  background: var(--red-dim);
  color: var(--red);
}

.tag.gold {
  background: var(--gold-glow);
  color: var(--gold);
}

/* Stats Row */
.card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin: 0 20px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.stat-cell {
  background: var(--bg-primary);
  padding: 12px;
  text-align: center;
}

.stat-cell .value {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}

.stat-cell .value.profit {
  color: var(--green);
}

.stat-cell .value.rate {
  color: var(--gold);
}

.stat-cell .label {
  font-size: 11px;
  color: var(--text-muted);
}

/* Account Info */
.account-info {
  margin: 16px 20px;
  padding: 14px;
  background: rgba(255, 215, 0, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: var(--radius-sm);
}

.account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.account-row:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.account-label {
  font-size: 12px;
  color: var(--text-muted);
}

.account-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.5px;
}

.copy-btn {
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  background: transparent;
  color: var(--gold);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.copy-btn:hover {
  background: var(--gold-glow);
}

.toggle-pwd-btn {
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: var(--text-secondary);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.toggle-pwd-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.toggle-pwd-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}

.password-mask {
  letter-spacing: 2px;
  color: var(--text-muted) !important;
  user-select: none;
}

.password-mask.revealed {
  letter-spacing: 0.5px;
  color: var(--gold) !important;
  user-select: auto;
}

/* Screenshots */
.card-screenshots {
  padding: 0 20px 16px;
}

.screenshots-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.screenshots-label::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.screenshot-item {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.2s;
  cursor: pointer;
  aspect-ratio: 16/10;
}

.screenshot-item:hover {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.1);
  transform: scale(1.03);
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card Intro */
.card-intro {
  padding: 0 20px 20px;
}

.intro-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
}

/* ============================================
   Image Modal
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(255, 215, 0, 0.1);
}

.modal-content img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.6;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================
   Lightbox Nav
   ============================================ */
.lightbox-nav {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  gap: 10px;
  z-index: 1001;
}

.lightbox-nav.active {
  display: flex;
}

.lightbox-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav button:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================
   Responsive - Tablet
   ============================================ */
@media (max-width: 960px) {
  .traders-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Responsive - Mobile
   ============================================ */
@media (max-width: 768px) {
  /* Header */
  .header-inner {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
    justify-content: center;
  }

  .logo {
    width: 100%;
    justify-content: center;
  }

  .header-stats {
    gap: 24px;
  }

  .stat-value {
    font-size: 18px;
  }

  .stat-label {
    font-size: 10px;
  }

  /* Hero */
  .hero {
    padding: 32px 16px 24px;
  }

  .hero-title {
    font-size: 24px;
    line-height: 1.3;
  }

  .hero-desc {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .hero-tags {
    gap: 8px;
  }

  .hero-tag {
    padding: 5px 12px;
    font-size: 12px;
  }

  /* Filter Bar */
  .filter-bar {
    padding: 12px 16px;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    padding: 6px 14px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .filter-sort {
    margin-left: 0;
    width: 100%;
    flex-shrink: 0;
    margin-top: 4px;
  }

  /* Grid */
  .traders-grid {
    grid-template-columns: 1fr;
    padding: 0 12px 40px;
    gap: 16px;
  }

  /* Card */
  .trader-card {
    border-radius: 10px;
  }

  .card-header {
    padding: 16px;
    gap: 12px;
  }

  .trader-avatar {
    width: 50px;
    height: 50px;
  }

  .trader-name {
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
  }

  .trader-name-row {
    flex-wrap: wrap;
    gap: 6px;
  }

  .trader-specialty {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .trader-tags {
    gap: 4px;
  }

  .tag {
    font-size: 10px;
    padding: 2px 6px;
  }

  /* Stats */
  .card-stats {
    margin: 0 16px;
    border-radius: 6px;
  }

  .stat-cell {
    padding: 10px 6px;
  }

  .stat-cell .value {
    font-size: 16px;
    word-break: keep-all;
    white-space: nowrap;
  }

  .stat-cell .label {
    font-size: 10px;
  }

  /* Account Info */
  .account-info {
    margin: 12px 16px;
    padding: 12px;
  }

  .account-row {
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
  }

  .account-row > div {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
  }

  .account-label {
    font-size: 12px;
    flex-shrink: 0;
  }

  .account-value {
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100px;
  }

  .copy-btn,
  .toggle-pwd-btn {
    padding: 4px 8px;
    font-size: 10px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* Screenshots */
  .card-screenshots {
    padding: 0 16px 12px;
  }

  .screenshots-grid {
    gap: 6px;
  }

  .screenshot-item {
    border-radius: 4px;
  }

  /* Intro */
  .card-intro {
    padding: 0 16px 16px;
  }

  .intro-text {
    font-size: 12px;
    padding: 10px;
    line-height: 1.6;
  }

  /* Lightbox */
  .modal-overlay {
    padding: 16px;
  }

  .lightbox-nav {
    bottom: 20px;
  }

  .lightbox-nav button {
    width: 40px;
    height: 40px;
  }

  /* Footer */
  .site-footer {
    padding: 24px 16px;
  }

  .footer-text {
    font-size: 12px;
  }

  .footer-disclaimer {
    font-size: 10px;
  }
}

/* ============================================
   Responsive - Small Mobile (< 380px)
   ============================================ */
@media (max-width: 380px) {
  .header-stats {
    gap: 16px;
  }

  .stat-value {
    font-size: 16px;
  }

  .hero-title {
    font-size: 20px;
  }

  .hero-desc {
    font-size: 13px;
  }

  .card-header {
    padding: 12px;
    gap: 10px;
  }

  .trader-avatar {
    width: 44px;
    height: 44px;
  }

  .trader-name {
    font-size: 15px;
    max-width: 120px;
  }

  .card-stats {
    margin: 0 12px;
  }

  .stat-cell {
    padding: 8px 4px;
  }

  .stat-cell .value {
    font-size: 14px;
  }

  .account-info {
    margin: 10px 12px;
    padding: 10px;
  }

  .account-value {
    max-width: 80px;
    font-size: 11px;
  }

  .card-screenshots {
    padding: 0 12px 12px;
  }

  .card-intro {
    padding: 0 12px 14px;
  }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.trader-card {
  animation: fadeInUp 0.5s ease forwards;
}

.trader-card:nth-child(2) { animation-delay: 0.1s; }
.trader-card:nth-child(3) { animation-delay: 0.15s; }
.trader-card:nth-child(4) { animation-delay: 0.2s; }
.trader-card:nth-child(5) { animation-delay: 0.25s; }
.trader-card:nth-child(6) { animation-delay: 0.3s; }

/* Copy Success Toast */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 24px;
  border-radius: 8px;
  background: var(--green);
  color: #000;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s;
  z-index: 2000;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


