/* ========== 首页专用样式 ========== */

/* ---- 轮播Banner ---- */
.banner-section { position: relative; }
.banner-slider { height: 380px; position: relative; overflow: hidden; }
.banner-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  transition: opacity .6s;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a6b3c 0%, #0d3d22 100%);
}
.banner-slide.active { opacity: 1; }
.banner-slide .container { display: flex; align-items: center; justify-content: space-between; }
.banner-content { flex: 1; color: #fff; padding-right: 40px; }
.banner-content h2 { font-size: 36px; font-weight: 700; margin-bottom: 14px; line-height: 1.3; }
.banner-content p { font-size: 16px; color: #c8ecd4; margin-bottom: 24px; line-height: 1.7; }
.banner-btns { display: flex; gap: 14px; }
.banner-img {
  width: 420px;
  height: 280px;
  background: rgba(255,255,255,0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: rgba(255,255,255,0.2);
  border: 2px dashed rgba(255,255,255,0.15);
}
.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.banner-dots span {
  width: 10px; height: 10px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all .2s;
}
.banner-dots span.active { background: var(--accent); width: 28px; border-radius: 5px; }

/* ---- 快捷入口 ---- */
.quick-entry { padding: 28px 0; background: #fff; border-bottom: 1px solid var(--border); }
.quick-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.quick-item {
  text-align: center;
  padding: 18px 10px;
  border-radius: 10px;
  transition: all .2s;
  cursor: pointer;
}
.quick-item:hover { background: var(--bg2); transform: translateY(-3px); }
.quick-icon {
  width: 56px; height: 56px;
  background: var(--bg2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 26px;
  color: var(--primary);
  transition: all .2s;
}
.quick-item:hover .quick-icon { background: var(--primary); color: #fff; }
.quick-item h4 { font-size: 14px; color: var(--text); font-weight: 600; }
.quick-item span { font-size: 11px; color: var(--text2); }

/* ---- 行情区域 ---- */
.market-section { padding: 32px 0; }
.market-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.market-card { padding: 20px; }
.market-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.market-header h3 { font-size: 16px; color: var(--primary-dark); font-weight: 700; }
.market-time { font-size: 11px; color: #888; }
.market-main {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}
.market-price { font-size: 42px; font-weight: 700; color: var(--red); }
.market-change { font-size: 14px; }
.market-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-item { text-align: center; padding: 10px; background: var(--bg); border-radius: 6px; }
.stat-item label { display: block; font-size: 11px; color: #888; margin-bottom: 3px; }
.stat-item span { font-size: 15px; font-weight: 600; color: var(--text); }

/* 期货行情 */
.futures-list { margin-top: 10px; }
.futures-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.futures-item:last-child { border-bottom: none; }
.futures-name { font-weight: 600; color: var(--text); }
.futures-code { font-size: 11px; color: #888; margin-left: 6px; }
.futures-price { font-size: 16px; font-weight: 700; }
.futures-change { font-size: 12px; padding: 2px 8px; border-radius: 3px; }
.futures-change.up { background: #ffebee; }
.futures-change.down { background: #e8f5e9; }

/* ---- 交易信息区域 ---- */
.trade-section { padding: 32px 0; background: #fff; }
.trade-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 2px solid var(--border); }
.trade-tabs button {
  padding: 10px 24px;
  background: transparent;
  border: none;
  font-size: 14px;
  color: var(--text2);
  cursor: pointer;
  position: relative;
}
.trade-tabs button.active { color: var(--primary); font-weight: 600; }
.trade-tabs button.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
}
.trade-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.trade-card { padding: 0; }
.trade-card-header {
  padding: 14px 18px;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.trade-card-header h4 { font-size: 15px; color: var(--primary-dark); }
.trade-list { padding: 8px 16px; }
.trade-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}
.trade-item:last-child { border-bottom: none; }
.trade-info { flex: 1; }
.trade-title { font-size: 14px; color: var(--text); font-weight: 600; margin-bottom: 4px; }
.trade-meta { font-size: 11px; color: #888; }
.trade-price { text-align: right; }
.trade-price .price { font-size: 16px; font-weight: 700; color: var(--red); }
.trade-price .unit { font-size: 11px; color: #888; }
.trade-item.highlight { background: #fff9e6; margin: 0 -16px; padding: 12px 16px; border-radius: 4px; }

/* 紧急标签 */
.tag-urgent {
  background: #ff5722;
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  margin-right: 4px;
}

/* ---- 服务区域 ---- */
.services-section { padding: 40px 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all .2s;
  border: 1px solid transparent;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}
.service-icon {
  width: 64px; height: 64px;
  background: var(--bg2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
  color: var(--primary);
}
.service-card h4 { font-size: 16px; color: var(--text); margin-bottom: 8px; }
.service-card p { font-size: 12px; color: var(--text2); line-height: 1.6; margin-bottom: 14px; }
.service-card .btn { font-size: 12px; padding: 6px 16px; }

/* ---- 资讯区域 ---- */
.news-section { padding: 32px 0; background: #fff; }
.news-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.news-main { padding: 20px; }
.news-list { margin-top: 10px; }
.news-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}
.news-item:last-child { border-bottom: none; }
.news-img {
  width: 120px; height: 80px;
  background: var(--bg2);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #ccc;
}
.news-content { flex: 1; }
.news-content h4 { font-size: 14px; color: var(--text); margin-bottom: 6px; line-height: 1.4; }
.news-content h4:hover { color: var(--primary); }
.news-content p { font-size: 12px; color: #888; line-height: 1.5; margin-bottom: 6px; }
.news-meta { font-size: 11px; color: #aaa; }
.news-side { padding: 20px; }
.news-side h4 { font-size: 14px; color: var(--primary-dark); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.hot-list li { padding: 10px 0; border-bottom: 1px solid #f5f5f5; }
.hot-list li:last-child { border-bottom: none; }
.hot-list a { font-size: 13px; color: var(--text); display: block; }
.hot-list a:hover { color: var(--primary); }
.hot-list .num {
  display: inline-block;
  width: 18px; height: 18px;
  background: #e0e0e0;
  border-radius: 3px;
  text-align: center;
  font-size: 11px;
  line-height: 18px;
  margin-right: 8px;
  color: #666;
}
.hot-list li:nth-child(1) .num { background: #ffebee; color: #c62828; }
.hot-list li:nth-child(2) .num { background: #fff3e0; color: #e65100; }
.hot-list li:nth-child(3) .num { background: #e3f2fd; color: #1565c0; }

/* ---- 合作伙伴 ---- */
.partners-section { padding: 32px 0; }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.partner-item {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  box-shadow: var(--shadow);
  font-size: 13px;
  color: var(--text2);
  transition: all .2s;
}
.partner-item:hover { border-color: var(--primary); color: var(--primary); }

/* ---- 响应式 ---- */
@media(max-width: 900px) {
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .market-grid, .trade-grid, .news-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .banner-content h2 { font-size: 24px; }
  .banner-img { display: none; }
}
@media(max-width: 600px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 用户中心按钮 */
.btn-user {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
}
.btn-user:hover {
  background: linear-gradient(135deg, #152c54 0%, #1e3c72 100%);
  transform: translateY(-1px);
}
