/* ============================================
   尾盘选股王 - 主样式表
   喜庆向上风格
   ============================================ */

/* --- 全局基础 --- */
* { margin:0; padding:0; box-sizing:border-box; }
body { 
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  color: #333;
  background: #fff8f5;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

/* --- 顶部导航 --- */
.site-header {
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-area { flex-shrink: 0; }
.logo-text {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(135deg, #c62828, #e65100);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.main-nav { display: flex; gap: 2px; flex-shrink: 0; }
.main-nav .nav-item {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  transition: all 0.2s;
  white-space: nowrap;
}
.main-nav .nav-item:hover,
.main-nav .nav-item.active {
  background: linear-gradient(135deg, #c62828, #e65100);
  color: #fff;
}
.header-actions { 
  display: flex; 
  gap: 10px; 
  flex-shrink: 0; 
  min-width: 200px;
  justify-content: flex-end;

/* 导航下拉菜单 - 点击触发 */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown .arrow { font-size: 10px; margin-left: 4px; color: #999; }
.nav-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  min-width: 320px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 999;
  padding: 12px 16px;
  overflow: hidden;
  display: none;
  gap: 24px;
}
.nav-dropdown .dropdown-menu.show {
  display: flex;
}
.nav-dropdown .dropdown-menu a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
  color: #555;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.15s;
  border-radius: 6px;
}
.nav-dropdown .dropdown-menu a:hover {
  background: #fff5f5;
  color: #c62828;
}
}

/* --- 按钮 --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  box-sizing: border-box;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, #c62828, #e65100);
  color: #fff;
  box-shadow: 0 2px 8px rgba(198,40,40,0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(198,40,40,0.4);
}
.btn-outline {
  border: 2px solid #e0e0e0;
  color: #666;
  background: transparent;
}
.btn-outline:hover {
  border-color: #c62828;
  color: #c62828;
}

/* --- Hero区域 --- */
.hero-section {
  background: linear-gradient(135deg, #b71c1c 0%, #d32f2f 40%, #e65100 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 24px;
  text-align: center;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 60%, rgba(255,215,0,0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(255,111,0,0.1) 0%, transparent 40%);
  animation: heroGlow 6s ease-in-out infinite;
}
@keyframes heroGlow {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(20px, -15px); }
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}
.hero-title {
  font-size: 42px;
  font-weight: 800;
  color: #ffd54f;
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-btn {
  display: inline-block;
  padding: 16px 48px;
  border-radius: 30px;
  font-size: 17px;
  font-weight: 700;
  color: #b71c1c;
  background: linear-gradient(135deg, #ffd54f, #ffb300);
  box-shadow: 0 4px 20px rgba(255,179,0,0.5);
  transition: all 0.3s;
}
.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(255,179,0,0.6);
}

/* --- 节标题 --- */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #b71c1c;
  margin-bottom: 48px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #c62828, #ff8f00);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* --- 核心服务 --- */
.services-section {
  padding: 80px 0;
  background: #fff;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border-radius: 12px;
  padding: 36px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(198,40,40,0.08);
  transition: all 0.3s;
  border: 1px solid #fef0e8;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(198,40,40,0.15);
}
.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon svg {
  width: 40px;
  height: 40px;
  color: #c62828;
  stroke-width: 1.5;
}
.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #b71c1c;
}
.service-card p {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
}

/* --- 股票池展示 --- */
.stockpool-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #fff8f5, #fff);
}
.stockpool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.stockpool-card {
  background: #fff;
  border: 1px solid #fef0e8;
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
  box-shadow: 0 2px 12px rgba(198,40,40,0.06);
}
.stockpool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(198,40,40,0.15);
  border-color: #ffcc80;
}
.stockpool-badge {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.badge-junior {
  background: linear-gradient(135deg, #e65100, #ff8f00);
  color: #fff;
}
.badge-intermediate {
  background: linear-gradient(135deg, #c62828, #e53935);
  color: #fff;
}
.badge-senior {
  background: linear-gradient(135deg, #ff6f00, #ffd54f);
  color: #4e1a00;
}
.stockpool-name {
  font-size: 24px;
  font-weight: 700;
  color: #b71c1c;
  margin-bottom: 28px;
}
.stockpool-features {
  list-style: none;
  text-align: center;
  margin-bottom: 32px;
}
.stockpool-features li {
  padding: 8px 0;
  font-size: 15px;
  color: #555;
  border-bottom: 1px solid #fef0e8;
}
.stockpool-features li:last-child { border-bottom: none; }
.check-icon {
  color: #e65100;
  font-weight: 700;
  margin-right: 8px;
}
.stockpool-footer { margin-top: auto; }
.btn-stockpool {
  display: inline-block;
  width: 100%;
  padding: 14px 0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  transition: all 0.3s;
}
.btn-junior {
  background: linear-gradient(135deg, #e65100, #ff8f00);
  box-shadow: 0 4px 12px rgba(230,81,0,0.3);
}
.btn-junior:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230,81,0,0.4);
}
.btn-intermediate {
  background: linear-gradient(135deg, #c62828, #e53935);
  box-shadow: 0 4px 12px rgba(198,40,40,0.3);
}
.btn-intermediate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(198,40,40,0.4);
}
.btn-senior {
  background: linear-gradient(135deg, #ff6f00, #ffd54f);
  color: #4e1a00;
  box-shadow: 0 4px 12px rgba(255,111,0,0.3);
}
.btn-senior:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,111,0,0.4);
}

/* --- 页脚 --- */
.site-footer {
  background: linear-gradient(135deg, #b71c1c, #c62828);
  padding: 40px 24px;
  text-align: center;
}
.footer-container { max-width: 1200px; margin: 0 auto; }
.copyright {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}

/* --- 往期战绩 --- */
.performance-section {
  padding: 80px 0;
  background: #fff;
  position: relative;
}
.performance-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #b71c1c, #e65100, #ffb300);
}
.performance-subtitle {
  text-align: center;
  color: #999;
  font-size: 14px;
  margin: -30px 0 36px;
}
.performance-table-wrapper {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(198,40,40,0.1);
  border: 1px solid #fef0e8;
}
.performance-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.performance-table thead {
  background: linear-gradient(135deg, #c62828, #d32f2f);
}
.performance-table thead th {
  padding: 16px 20px;
  color: #fff;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.5px;
}
.performance-table tbody tr {
  border-bottom: 1px solid #fef0e8;
  transition: background 0.2s;
}
.performance-table tbody tr:hover {
  background: #fffbf5;
}
.performance-table tbody tr:last-child {
  border-bottom: none;
}
.performance-table tbody td {
  padding: 16px 20px;
  text-align: center;
  color: #555;
  white-space: nowrap;
}
.stock-code {
  display: inline-block;
  background: #fff5f5;
  color: #c62828;
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  letter-spacing: 1px;
}
.stock-name {
  font-weight: 600;
  color: #333;
}
.return-rate.positive {
  color: #c62828;
  font-weight: 700;
  font-size: 16px;
}
.return-rate.negative {
  color: #2e7d32;
  font-weight: 700;
  font-size: 16px;
}
.no-data {
  padding: 40px !important;
  color: #ccc;
  font-size: 15px;
}
.performance-more {
  text-align: center;
  margin-top: 32px;
}
.btn-more {
  display: inline-block;
  padding: 12px 40px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  color: #c62828;
  border: 2px solid #c62828;
  background: transparent;
  transition: all 0.3s;
}
.btn-more:hover {
  background: linear-gradient(135deg, #c62828, #e65100);
  color: #fff;
  box-shadow: 0 4px 16px rgba(198,40,40,0.3);
  transform: translateY(-2px);
}

/* --- 登录/注册页面 --- */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #fff8f5; padding: 24px; padding-top: 88px; }
.auth-card { background: #fff; border-radius: 16px; padding: 48px 40px; max-width: 420px; width: 100%; box-shadow: 0 4px 24px rgba(198,40,40,0.08); border: 1px solid #fef0e8; }
.auth-title { text-align: center; font-size: 22px; font-weight: 700; color: #333; margin-bottom: 36px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; color: #555; margin-bottom: 6px; }
.form-input { width: 100%; height: 46px; padding: 0 16px; border: 2px solid #eef0f5; border-radius: 10px; font-size: 15px; color: #333; background: #fafafa; outline: none; transition: all 0.2s; box-sizing: border-box; }
.form-input:focus { border-color: #c62828; background: #fff; box-shadow: 0 0 0 3px rgba(198,40,40,0.08); }
.form-input::placeholder { color: #bbb; }
.auth-btn { width: 100%; height: 48px; border: none; border-radius: 10px; font-size: 16px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #c62828, #e65100); cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 16px rgba(198,40,40,0.3); }
.auth-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(198,40,40,0.4); }
.auth-links { text-align: center; margin-top: 24px; font-size: 14px; color: #888; }
.auth-links a { color: #c62828; font-weight: 600; }
.auth-links a:hover { text-decoration: underline; }

/* --- 升级提示页 --- */
.upgrade-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  background: #fff8f5;
}
.upgrade-card {
  background: #fff;
  border-radius: 16px;
  padding: 60px 48px;
  text-align: center;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 2px 16px rgba(198,40,40,0.08);
  border: 1px solid #fef0e8;
}
.upgrade-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 28px;
  background: #fff5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.upgrade-icon svg {
  width: 36px;
  height: 36px;
  color: #c62828;
  flex-shrink: 0;
}
.upgrade-title {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}
.upgrade-desc {
  font-size: 15px;
  color: #888;
  margin-bottom: 36px;
  line-height: 1.6;
}
.btn-upgrade {
  display: inline-block;
  padding: 14px 56px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #c62828, #e65100);
  box-shadow: 0 4px 16px rgba(198,40,40,0.3);
  transition: all 0.3s;
}
.btn-upgrade:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(198,40,40,0.4);
}

/* --- 响应式 --- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 15px; }
  .main-nav { display: none; }
  .stockpool-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 24px; }
  .stockpool-name { font-size: 20px; }
  .performance-table { font-size: 13px; }
  .performance-table thead th,
  .performance-table tbody td { padding: 10px 8px; }
  .performance-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .performance-table { min-width: 600px; }
}
