* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f5f7fa !important; line-height: 1.6; color: #1f2937; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 动画 */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0% { background-position: -1000px 0; } 100% { background-position: 1000px 0; } }
.fade-in-up { animation: fadeInUp 0.6s ease forwards; }

/* 顶部导航 */
.theme-header { background: #fff; box-shadow: 0 2px 20px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 1000; backdrop-filter: blur(10px); }
.theme-header-inner { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; gap: 20px; }
.theme-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: #1f2937; }
.theme-logo-icon { width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; box-shadow: 0 4px 12px rgba(102,126,234,0.3); }
.theme-search { display: flex; gap: 8px; flex: 1; max-width: 500px; }
.theme-search input { flex: 1; padding: 10px 16px; border: 2px solid #e5e7eb; border-radius: 10px; font-size: 14px; transition: border-color 0.3s; }
.theme-search input:focus { outline: none; border-color: var(--primary); }
.theme-search button { padding: 10px 20px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border: none; border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 500; }
.theme-nav { display: flex; gap: 24px; }
.theme-nav a { color: #4b5563; font-size: 15px; font-weight: 500; }
.theme-nav a:hover { color: var(--primary); }

/* 分类导航 */
.theme-catnav { background: #fff; border-bottom: 1px solid #e5e7eb; }
.theme-catnav-inner { display: flex; gap: 4px; padding: 0; overflow-x: auto; }
.theme-catnav a { padding: 16px 20px; font-size: 14px; color: #4b5563; border-bottom: 3px solid transparent; white-space: nowrap; transition: all 0.3s; }
.theme-catnav a.active, .theme-catnav a:hover { color: var(--primary); border-bottom-color: var(--primary); background: rgba(102,126,234,0.05); }

/* Banner */
.theme-banner { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; padding: 80px 20px; text-align: center; position: relative; overflow: hidden; margin-bottom: 60px; }
.theme-banner::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%); }
.theme-banner-content { position: relative; z-index: 1; }
.theme-banner h2 { font-size: 42px; margin-bottom: 16px; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.theme-banner p { font-size: 18px; opacity: 0.95; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.theme-banner .btn { display: inline-block; padding: 14px 40px; background: #fff; color: var(--primary); border-radius: 50px; font-weight: 600; font-size: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); transition: transform 0.3s; }
.theme-banner .btn:hover { transform: translateY(-2px); }

/* 分类图标块 */
.theme-cat-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 16px; margin: -60px auto 40px; position: relative; z-index: 2; max-width: 1200px; padding: 0 20px; }
.theme-cat-block { background: #fff; border-radius: 16px; padding: 24px 16px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.08); transition: all 0.3s; cursor: pointer; }
.theme-cat-block:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.theme-cat-block-icon { width: 48px; height: 48px; background: linear-gradient(135deg, var(--primary-light), var(--primary)); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; margin: 0 auto 12px; }
.theme-cat-block-name { font-size: 14px; font-weight: 500; color: #374151; }

/* 主内容区 */
.theme-main { padding: 40px 0; }
.theme-section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.theme-section-title h3 { font-size: 24px; font-weight: 700; color: #1f2937; }
.theme-section-title a { color: var(--primary); font-size: 14px; font-weight: 500; }

/* 文字广告位 */
.theme-ad { background: linear-gradient(135deg, #fef3c7, #fde68a); border-radius: 12px; padding: 20px 24px; margin: 24px 0; display: flex; align-items: center; gap: 16px; border-left: 4px solid #f59e0b; }
.theme-ad-icon { font-size: 28px; }
.theme-ad-text { flex: 1; color: #92400e; font-weight: 500; }

/* 商品网格 */
.theme-goods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.theme-goods-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: all 0.3s; display: block; }
.theme-goods-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.12); }
.theme-goods-cover { height: 220px; overflow: hidden; position: relative; background: #f3f4f6; }
.theme-goods-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.theme-goods-card:hover .theme-goods-cover img { transform: scale(1.05); }
.theme-goods-badge { position: absolute; top: 12px; left: 12px; background: #ef4444; color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 500; }
.theme-goods-info { padding: 20px; }
.theme-goods-name { font-size: 16px; font-weight: 600; margin-bottom: 12px; color: #1f2937; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 45px; }
.theme-goods-bottom { display: flex; justify-content: space-between; align-items: center; }
.theme-goods-price { font-size: 24px; font-weight: 800; color: #ef4444; }
.theme-goods-price small { font-size: 14px; font-weight: 500; }
.theme-goods-btn { padding: 8px 18px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border: none; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; transition: opacity 0.3s; }
.theme-goods-btn:hover { opacity: 0.9; }

/* 按钮 */
.btn { display: inline-block; padding: 12px 28px; border-radius: 10px; font-size: 14px; border: none; cursor: pointer; transition: all 0.3s; text-align: center; font-weight: 500; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 4px 12px rgba(102,126,234,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(102,126,234,0.4); }
.btn-secondary { background: #e5e7eb; color: #374151; }
.btn-secondary:hover { background: #d1d5db; }

/* 商品详情页 */
.goods-detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: flex-start; }
.goods-detail-left { min-width: 0; }
.goods-detail-right { position: sticky; top: 100px; }
.goods-cover-main { background: #fff; border-radius: 16px; padding: 24px; margin-bottom: 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.goods-cover-main img { width: 100%; border-radius: 12px; }
.goods-detail-card { background: #fff; border-radius: 16px; padding: 24px; margin-bottom: 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.goods-detail-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #e5e7eb; color: #1f2937; }
.goods-buy-card { position: sticky; top: 100px; }
.goods-price-large { font-size: 40px; font-weight: 800; color: #ef4444; margin-bottom: 8px; }
.goods-price-large small { font-size: 20px; }
.goods-tip { color: #10b981; font-size: 14px; margin-bottom: 24px; }

/* B站视频 */
.bili-video-item { margin-bottom: 20px; }
.bili-video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 12px; background: #000; }
.bili-video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* 友情链接 */
.theme-links { background: #fff; border-radius: 16px; padding: 24px; margin: 40px 0; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.theme-links h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: #1f2937; }
.theme-links-list { display: flex; flex-wrap: wrap; gap: 16px; }
.theme-links-list a { color: #6b7280; font-size: 14px; }
.theme-links-list a:hover { color: var(--primary); }

/* 底部 */
.theme-footer { background: #1f2937; color: #9ca3af; padding: 40px 0 20px; margin-top: 60px; }
.theme-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; margin-bottom: 32px; }
.theme-footer-col h4 { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.theme-footer-col p { font-size: 14px; line-height: 1.8; }
.theme-footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid #374151; font-size: 13px; color: #6b7280; }

/* 分页 */
.pagination, .page, .pages { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span, .page a, .page span, .pages a, .pages span { padding: 10px 18px; border-radius: 8px; font-size: 14px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: all 0.3s; }
.pagination .current, .pagination .active, .page .current, .page .active, .pages .current, .pages .active { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }
.pagination a:hover, .page a:hover, .pages a:hover { color: var(--primary); transform: translateY(-2px); }

/* 客服悬浮 */
.theme-service { position: fixed; right: 20px; bottom: 80px; display: flex; flex-direction: column; gap: 12px; z-index: 999; }
.theme-service-btn { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border: none; font-size: 22px; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center; transition: transform 0.3s; }
.theme-service-btn:hover { transform: scale(1.1); }
.theme-service-panel { position: fixed; right: 84px; bottom: 80px; width: 320px; background: #fff; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.15); z-index: 999; display: none; overflow: hidden; }
.theme-service-panel.show { display: block; }
.theme-service-header { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
.theme-service-body { padding: 20px; }
.theme-service-item { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.theme-service-item-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; }

/* 响应式 */
@media (max-width: 768px) {
  .theme-header-inner { flex-wrap: wrap; }
  .theme-search { order: 3; max-width: 100%; width: 100%; }
  .theme-banner h2 { font-size: 28px; }
  .theme-banner p { font-size: 16px; }
  .theme-goods-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
  .theme-goods-cover { height: 160px; }
  .goods-detail-grid { grid-template-columns: 1fr; }
  .goods-detail-right { position: static; }
  .theme-cat-blocks { grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); }
  .theme-footer-grid { grid-template-columns: 1fr; }
  .theme-nav { gap: 16px; }
}
