/* ays66.top v3 — 全面重排版 */

:root {
  --brand: #1d4ed8 !important;
  --brand-light: #3b82f6 !important;
  --accent: #c2410c !important;
  --accent-light: #ea580c !important;
  --bg: #ffffff !important;
  --bg-section: #f8fafc !important;
  --text: #111827 !important;
  --text-dim: #4b5563 !important;
  --text-mute: #9ca3af !important;
  --border: #e5e7eb !important;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04) !important;
  --shadow: none !important;
  --container-max: 1200px !important;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif !important;
  background: #fff !important;
}

/* ========== 顶部导航栏 — 双层结构 ========== */
nav.sticky {
  box-shadow: none !important;
  border-bottom: 1px solid #e5e7eb !important;
}
/* 分类条 — 白底灰线，扁平 */
nav .border-t {
  background: #f9fafb !important;
  border-color: #f3f4f6 !important;
}
nav .overflow-x-auto {
  gap: 0 !important;
}
nav .overflow-x-auto a {
  padding: 8px 18px !important;
  font-size: 13px !important;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
nav .overflow-x-auto a:hover {
  color: var(--brand) !important;
  border-bottom-color: var(--brand);
}

/* ========== 商品卡片 — 完全重塑 ========== */
/* 卡片外框 */
.bg-white.rounded {
  border-radius: 2px !important;
  border: 1px solid #e5e7eb !important;
  border-left: none !important;
  box-shadow: none !important;
  overflow: hidden;
  transition: box-shadow 0.2s !important;
}
.bg-white.rounded:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
  transform: none !important;
}

/* 商品图片 — 无圆角，紧贴 */
.aspect-\[4\/3\] {
  border-radius: 0 !important;
}
.aspect-\[4\/3\] img {
  border-radius: 0 !important;
}

/* 商品网格 — 5列桌面端 */
@media (min-width: 1024px) {
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, 1fr) !important; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(5, 1fr) !important; }
}
@media (min-width: 768px) {
  .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr) !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(4, 1fr) !important; }
}
.grid.gap-3, .grid.gap-4 {
  gap: 10px !important;
}

/* 价格 — 加粗红色 */
.text-\[var\(--accent\)\] {
  font-weight: 800 !important;
  font-family: 'DIN Alternate', 'Helvetica Neue', Arial, sans-serif !important;
}

/* ========== 首屏 Hero 区 — 注入背景 ========== */
section:first-of-type {
  position: relative;
}
/* 首屏背景渐变条 */
.bg-\[var\(--bg-section\)\]:first-of-type {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 50%, #fefce8 100%) !important;
}

/* ========== 区块标题 — 下划线风格 ========== */
h1.text-lg, h2.text-lg, .text-lg.font-bold {
  padding-left: 0 !important;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand);
  display: inline-block;
  margin-bottom: 16px !important;
}
.text-lg.font-bold::before {
  display: none !important;
}

/* ========== 搜索框 — 方角 + 灰底 ========== */
input[type="text"] {
  border-radius: 2px !important;
}
.border.rounded.bg-white {
  border-radius: 2px !important;
  background: #f9fafb !important;
}

/* ========== 页脚 — 更深、更宽 ========== */
footer, .bg-\[\#292524\] {
  background: #111827 !important;
  padding-top: 40px !important;
  padding-bottom: 24px !important;
}

/* ========== 按钮 — 方角企业风 ========== */
.rounded.bg-\[var\(--brand\)\],
.rounded.bg-\[var\(--accent\)\],
button.rounded,
a.rounded {
  border-radius: 2px !important;
}

/* ========== 新闻/动态列表 — 添加左侧日期 ========== */
.space-y-3 > .bg-white {
  border-radius: 2px !important;
  border-left: 4px solid var(--brand) !important;
}

/* ========== 商品详情页 — 图片更大 ========== */
.md\:w-2\/5 {
  width: 45% !important;
}
.md\:w-3\/5 {
  width: 55% !important;
}

/* ========== 滚动条 ========== */
::-webkit-scrollbar-thumb {
  background: #94a3b8 !important;
}

/* ========== 浮动按钮 — 方角 ========== */
.float-btn {
  border-radius: 4px !important;
}

/* ========== 标签样式 — 更扁平 ========== */
.rounded-full {
  border-radius: 2px !important;
}
.bg-amber-50, .bg-blue-50, .bg-green-50, .bg-red-50 {
  border-radius: 2px !important;
}

/* ========== 关于我们/联系我们页 ========== */
.max-w-3xl {
  max-width: 56rem !important;
}

/* ========== 手机端 ========== */
@media (max-width: 768px) {
  .grid.gap-3, .grid.gap-4 {
    gap: 8px !important;
  }
  .bg-white.rounded {
    border-left: none !important;
  }
  nav .overflow-x-auto a {
    padding: 6px 12px !important;
    font-size: 12px !important;
  }
}

/* 隐藏 React 自带的导航品牌色背景（用自定义 hero 替代）*/
#root > nav + div > section:first-child .text-2xl,
#root > nav + div > section:first-child .md\:text-2xl {
  font-size: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* React 顶部导航适配 — 不粘顶（让自定义公告条在上面） */
nav.sticky {
  position: relative !important;
}
