/* ==========================================================================
   济宁餐找物 · 次级页面样式（产品分类 / 详情 / 新闻 / 店铺模型）
   依赖 style.css 的 CSS 变量与基础组件
   ========================================================================== */

/* 次级页顶部条（比首页 hero 矮） */
.page-hero {
  background:
    radial-gradient(900px 360px at 80% -20%, rgba(46,123,224,.35), transparent 60%),
    linear-gradient(160deg, var(--blue-900), var(--blue-700));
  color: #fff;
  padding: 56px 0;
}
.page-hero .section-kicker { background: rgba(255,255,255,.14); color: #FFC864; }
.page-hero h1 { font-size: 34px; font-weight: 800; margin-top: 8px; }
.page-hero p { margin-top: 10px; font-size: 15px; color: rgba(255,255,255,.82); max-width: 720px; }

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--blue-700); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--line); }
.breadcrumb em { font-style: normal; color: var(--ink); }

/* 主体容器 */
.detail-section { padding: 56px 0 80px; background: #fff; }

/* 分类区块（产品分类页） */
.category-block { padding: 40px 0; }
.category-block:nth-child(odd) { background: var(--bg-soft); }
.category-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.category-head h2 { font-size: 24px; color: var(--blue-900); }
.category-head p { font-size: 14px; color: var(--muted); margin-top: 4px; max-width: 620px; }
.category-head .btn { margin-left: auto; flex-shrink: 0; }
.category-icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--blue-50);
}
.category-icon svg {
  width: 30px; height: 30px;
  fill: none; stroke: var(--blue-700);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

.category-desc {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--blue-50);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
}
.category-desc .category-icon { background: #fff; }
.category-desc p { font-size: 15px; color: var(--ink-soft); line-height: 1.9; }

/* 详情页两栏布局 */
.detail-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 36px;
  align-items: start;
}
.detail-main .detail-visual {
  display: grid;
  place-items: center;
  width: 100%;
  height: 220px;
  background: linear-gradient(160deg, var(--blue-50), var(--blue-100));
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}
.detail-main .detail-visual svg {
  width: 96px; height: 96px;
  fill: none; stroke: var(--blue-700);
  stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.detail-main > p { font-size: 15.5px; color: var(--ink-soft); line-height: 2; margin-bottom: 14px; }
.detail-subtitle { font-size: 20px; color: var(--blue-900); margin: 26px 0 14px; }

.feature-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.feature-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); }
.feature-list svg {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: var(--accent); stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* 侧栏 */
.detail-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 20px; }
.side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.side-card h3 { font-size: 17px; color: var(--blue-900); margin-bottom: 16px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td {
  padding: 10px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.spec-table th { width: 34%; color: var(--muted); font-weight: 600; white-space: nowrap; }
.spec-table td { color: var(--ink); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

.side-cta { background: linear-gradient(160deg, var(--blue-800), var(--blue-600)); color: #fff; border: none; }
.side-cta h3 { color: #fff; }
.side-cta p { color: rgba(255,255,255,.82); font-size: 14px; margin-bottom: 16px; }

/* 相关产品 */
.related { margin-top: 48px; }
.related h3 { font-size: 20px; color: var(--blue-900); margin-bottom: 20px; }

/* 新闻列表 */
.news-group { margin-bottom: 40px; }
.news-group-title {
  font-size: 20px;
  color: var(--blue-900);
  padding-left: 14px;
  border-left: 4px solid var(--blue-600);
  margin-bottom: 18px;
}
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.news-item:hover { box-shadow: var(--shadow-md); border-color: var(--blue-500); }
.news-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.news-cat {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-700);
  background: var(--blue-50);
  padding: 2px 10px;
  border-radius: 999px;
}
.news-item h3 { font-size: 18px; }
.news-item h3 a { color: var(--blue-900); transition: color .15s ease; }
.news-item h3 a:hover { color: var(--blue-600); }
.news-item p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.news-more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--blue-700); }
.news-more:hover { color: var(--blue-600); }

/* 新闻详情 */
.article-container { max-width: 820px; }
.article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 40px; }
.article-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.article p { font-size: 16px; line-height: 2.1; color: var(--ink-soft); margin-bottom: 18px; }
.article p:last-child { margin-bottom: 0; }
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  font-size: 14px;
}
.article-nav a {
  flex: 1;
  color: var(--blue-700);
  padding: 14px 18px;
  background: var(--blue-50);
  border-radius: 10px;
  transition: background .15s ease;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.article-nav a:hover { background: var(--blue-100); }

/* 店铺模型页 */
.store-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.store-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.store-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.store-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.store-icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; flex-shrink: 0;
  font-size: 30px;
  background: var(--blue-50);
  border-radius: 14px;
}
.store-head h2 { font-size: 22px; color: var(--blue-900); }
.store-head p { font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.8; }

.store-analysis {
  background: var(--blue-50);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
}
.store-analysis strong { display: block; font-size: 14px; color: var(--blue-800); margin-bottom: 6px; }
.store-analysis p { font-size: 14px; color: var(--ink-soft); line-height: 1.9; }

.store-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
.store-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.store-item strong { display: block; font-size: 14px; color: var(--blue-900); margin-bottom: 3px; }
.store-item span { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.store-card .btn { align-self: flex-start; margin-top: auto; }

/* 响应式 */
@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .store-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-hero { padding: 40px 0; }
  .page-hero h1 { font-size: 26px; }
  .category-head { flex-wrap: wrap; }
  .category-head .btn { margin-left: 0; width: 100%; }
  .store-items { grid-template-columns: 1fr; }
  .article { padding: 24px 20px; }
  .article-nav { flex-direction: column; }
  .article-nav a { white-space: normal; }
}
