/*
Theme Name: iUX Child - 资料包展示站
Theme URI: https://www.zhutibaba.com/themes/iux
Template: iux
Author: 闲鱼卖家
Description: 双赛道资料包展示站 - 线A股市技术分析 / 线B玄学灵修
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iux-child
*/

/* ============================================
   资料包展示站 - 自定义样式
   ============================================ */

/* --- 全局变量 --- */
:root {
  --red-up: #dc2626;
  --green-down: #16a34a;
  --gold: #d4a853;
  --dark-bg: #0f0f0f;
  --card-bg: #1a1a1a;
  --card-border: #2a2a2a;
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #666;
  --accent-a: #dc2626;
  --accent-b: #8b5cf6;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* --- 全局重置 --- */
body {
  background: var(--dark-bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

a { color: var(--gold); transition: color 0.2s; }
a:hover { color: #e6c060; }

.site-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- 隐藏不需要的元素 --- */
.top-bar,
.site-header .header-search-icon,
.site-header .header-search,
.sidebar,
.footer-content,
.bottom-content,
.bottom-right,
.single-breadcrumbs,
.posts-nav-menu,
.recent-heading,
.home-zhuanti-section,
.breadcrumbs,
.entry-footer .entry-like,
.entry-footer .entry-sponsor,
.comments-area,
.author-box,
.related-content,
#secondary {
  display: none !important;
}

/* --- Header 重写 --- */
.site-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-bottom: 1px solid var(--card-border);
  padding: 0;
  position: relative;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 15px;
}

.site-title {
  margin: 0;
}

.site-title a {
  color: #fff !important;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
}

.site-title a:hover {
  color: var(--gold) !important;
}

.site-desc {
  display: none !important;
}

/* --- 主导航 --- */
#primary-nav {
  display: flex !important;
}

#primary-menu {
  display: flex !important;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 5px;
}

#primary-menu li {
  position: relative;
}

#primary-menu li a {
  color: #ccc !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
  text-decoration: none;
}

#primary-menu li a:hover,
#primary-menu li.current-menu-item a {
  color: #fff !important;
  background: rgba(255,255,255,0.1);
}

/* --- 首页 Hero 区域 --- */
.hero-section {
  text-align: center;
  padding: 60px 20px 40px;
  background: linear-gradient(180deg, #1a1a2e 0%, var(--dark-bg) 100%);
}

.hero-section h1 {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 12px;
  background: linear-gradient(135deg, var(--gold), #f0d080);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-section p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

/* --- 赛道标签切换 --- */
.track-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.track-tab {
  padding: 10px 28px;
  border-radius: 25px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}

.track-tab:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.track-tab.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

/* --- 资料包网格 --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 0 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.product-card .card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  z-index: 1;
}

.product-card .card-badge.track-a {
  background: var(--red-up);
  color: #fff;
}

.product-card .card-badge.track-b {
  background: var(--accent-b);
  color: #fff;
}

.product-card .card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, #1e1e2e, #2a2a3e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.product-card .card-body {
  padding: 16px 20px 20px;
}

.product-card .card-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary);
  line-height: 1.4;
}

.product-card .card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-card .card-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--gold);
}

.product-card .card-price .currency {
  font-size: 14px;
  font-weight: 600;
}

.product-card .card-btn {
  padding: 6px 16px;
  border-radius: 6px;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.product-card .card-btn:hover {
  background: var(--gold);
  color: #000;
}

/* --- 资料包详情页 --- */
.product-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.product-detail .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 24px;
  transition: color 0.2s;
}

.product-detail .back-link:hover {
  color: var(--gold);
}

.product-detail .detail-header {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.product-detail .detail-image {
  width: 280px;
  height: 200px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #1e1e2e, #2a2a3e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  flex-shrink: 0;
}

.product-detail .detail-info {
  flex: 1;
}

.product-detail .detail-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
}

.product-detail .detail-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
  margin: 0 0 16px;
}

.product-detail .detail-price .currency {
  font-size: 20px;
}

.product-detail .detail-desc {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 20px;
}

.product-detail .detail-actions {
  display: flex;
  gap: 12px;
}

.product-detail .btn-primary {
  padding: 12px 32px;
  border-radius: 8px;
  border: none;
  background: var(--gold);
  color: #000;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.product-detail .btn-primary:hover {
  background: #e6c060;
  transform: translateY(-1px);
}

.product-detail .btn-secondary {
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--text-primary);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.product-detail .btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* --- 目录列表 --- */
.product-detail .content-list {
  margin-top: 30px;
}

.product-detail .content-list h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--card-border);
}

.product-detail .content-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-detail .content-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-detail .content-list li::before {
  content: "📄";
  font-size: 14px;
}

/* --- 微信引流横幅 --- */
.wechat-banner {
  background: linear-gradient(135deg, #1a1a2e, #2d1b69);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius);
  padding: 24px 30px;
  margin-top: 40px;
  text-align: center;
}

.wechat-banner h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
}

.wechat-banner p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 0 16px;
}

.wechat-banner .wechat-id {
  display: inline-block;
  padding: 8px 24px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px dashed rgba(139, 92, 246, 0.5);
  border-radius: 6px;
  color: #c4b5fd;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
}

/* --- Footer --- */
.site-footer {
  background: #0a0a0a;
  border-top: 1px solid var(--card-border);
  padding: 30px 0;
}

#site-bottom {
  background: transparent !important;
  padding: 0 !important;
}

#site-bottom .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.site-info {
  color: var(--text-muted);
  font-size: 13px;
}

.site-info a {
  color: var(--text-secondary);
}

/* --- 响应式 --- */
@media (max-width: 768px) {
  .hero-section h1 { font-size: 26px; }
  .hero-section p { font-size: 14px; }
  .products-grid { grid-template-columns: 1fr; padding: 0 16px 40px; }
  .product-detail .detail-header { flex-direction: column; }
  .product-detail .detail-image { width: 100%; height: 180px; }
  .product-detail .detail-title { font-size: 22px; }
  .product-detail .detail-price { font-size: 26px; }
  .track-tabs { flex-direction: column; align-items: center; }
  .track-tab { width: 200px; text-align: center; }
  .site-header .container { flex-direction: column; gap: 10px; }
  #primary-menu { flex-wrap: wrap; justify-content: center; }
}

/* --- 动画 --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-card {
  animation: fadeInUp 0.5s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }
.product-card:nth-child(9) { animation-delay: 0.45s; }
.product-card:nth-child(10) { animation-delay: 0.5s; }
.product-card:nth-child(11) { animation-delay: 0.55s; }
.product-card:nth-child(12) { animation-delay: 0.6s; }
.product-card:nth-child(13) { animation-delay: 0.65s; }
.product-card:nth-child(14) { animation-delay: 0.7s; }
.product-card:nth-child(15) { animation-delay: 0.75s; }
.product-card:nth-child(16) { animation-delay: 0.8s; }
.product-card:nth-child(17) { animation-delay: 0.85s; }
.product-card:nth-child(18) { animation-delay: 0.9s; }
.product-card:nth-child(19) { animation-delay: 0.95s; }
.product-card:nth-child(20) { animation-delay: 1.0s; }
.product-card:nth-child(21) { animation-delay: 1.05s; }
.product-card:nth-child(22) { animation-delay: 1.1s; }
