/* =========================================================
   上海长江口智养安康养老服务有限公司 - 官方平台样式表
   风格：极简明蓝色、清爽板正、大字体适老关怀、无多余花哨装饰
   ========================================================= */

:root {
  --primary-blue: #1875d2;
  --primary-hover: #125bb0;
  --primary-light: #e8f3fc;
  --primary-subtle: #f0f7ff;
  --accent-cyan: #0284c7;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-dark: #cbd5e1;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --price-red: #e11d48;
  --success-green: #16a34a;
  --warning-orange: #ea580c;
  --font-base: 16px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --max-width: 1200px;
}

/* 适老关怀大字模式 */
body.elder-mode {
  --font-base: 18px;
}

body.elder-mode .nav-link,
body.elder-mode .course-title,
body.elder-mode .product-title,
body.elder-mode .article-title,
body.elder-mode .btn,
body.elder-mode input,
body.elder-mode select,
body.elder-mode textarea {
  font-size: 1.12em !important;
}

/* 基础重置 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  font-size: var(--font-base);
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-blue);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

/* 布局容器 */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* 顶部服务信息栏 */
.top-bar {
  background-color: #f1f5f9;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-info-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-info-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-phone {
  color: var(--primary-blue);
  font-weight: 600;
}

.font-size-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
}

.font-size-toggle button {
  border: none;
  background: transparent;
  padding: 2px 8px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-muted);
}

.font-size-toggle button.active {
  background-color: var(--primary-blue);
  color: #fff;
  font-weight: bold;
}

.top-auth-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-auth-link a {
  color: var(--text-muted);
}

.top-auth-link a:hover {
  color: var(--primary-blue);
}

/* 主导航栏 */
.site-header {
  background-color: #ffffff;
  border-bottom: 2px solid var(--primary-blue);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  width: 44px;
  height: 44px;
  background-color: var(--primary-blue);
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
}

.logo-text h1 {
  font-size: 19px;
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.logo-text p {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* 导航链接 */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary-blue);
  background-color: var(--primary-subtle);
}

.nav-link.active {
  color: #ffffff;
  background-color: var(--primary-blue);
}

/* 快捷操作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cart:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.cart-count {
  background-color: var(--price-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

/* 按钮规范 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
}

.btn-outline {
  background-color: #ffffff;
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.btn-outline:hover {
  background-color: var(--primary-subtle);
}

.btn-secondary {
  background-color: #f1f5f9;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: #e2e8f0;
}

.btn-danger {
  background-color: var(--price-red);
  color: #ffffff;
}

.btn-danger:hover {
  background-color: #be123c;
  color: #ffffff;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 16px;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}

/* 面包屑导航 */
.breadcrumb-bar {
  background-color: #f1f5f9;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumb-list li::after {
  content: "/";
  margin-left: 8px;
  color: var(--text-light);
}

.breadcrumb-list li:last-child::after {
  content: "";
}

.breadcrumb-list a {
  color: var(--text-muted);
}

.breadcrumb-list a:hover {
  color: var(--primary-blue);
}

.breadcrumb-list li.active {
  color: var(--text-main);
  font-weight: 600;
}

/* 通用模块标题 */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 20px;
  position: relative;
}

.section-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  position: relative;
  padding-left: 14px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  background-color: var(--primary-blue);
  border-radius: 2px;
}

.section-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.section-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.section-more:hover {
  text-decoration: underline;
}

/* 首页 Banner */
.hero-banner {
  background: linear-gradient(135deg, #1875d2 0%, #0284c7 100%);
  color: #ffffff;
  padding: 42px 0;
  border-bottom: 3px solid #0f58a3;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.hero-text {
  max-width: 680px;
}

.hero-tag {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.hero-text h2 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.hero-text p {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.92;
  margin-bottom: 24px;
}

.hero-btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-btn-white {
  background-color: #ffffff;
  color: var(--primary-blue);
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
}

.hero-btn-white:hover {
  background-color: #f8fafc;
  color: var(--primary-hover);
}

.hero-btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #ffffff;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
}

.hero-btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.hero-stat-card {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  min-width: 280px;
}

.hero-stat-item {
  margin-bottom: 14px;
}

.hero-stat-item:last-child {
  margin-bottom: 0;
}

.hero-stat-num {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.hero-stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

/* 首页四个分类入口导航 */
.category-shortcuts {
  margin-top: -24px;
  margin-bottom: 32px;
  position: relative;
  z-index: 10;
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.shortcut-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s ease;
}

.shortcut-card:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.shortcut-icon {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background-color: var(--primary-light);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.shortcut-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
}

.shortcut-info p {
  font-size: 12px;
  color: var(--text-muted);
}

/* 课程卡片网格规范 (与国家老年大学课程中心一致风格) */
.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.course-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.course-card:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.course-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #e2e8f0;
  overflow: hidden;
}

.course-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.course-card:hover .course-thumb {
  transform: scale(1.03);
}

/* 去掉老年大学标志，换为课程价格显示 (39.9 - 59.9) */
.course-price-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(225, 29, 72, 0.92);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.course-price-badge .currency {
  font-size: 11px;
  margin-right: 2px;
}

.course-category-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 3px;
}

.course-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 42px;
}

.course-card:hover .course-title {
  color: var(--primary-blue);
}

.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.course-lecturer {
  display: flex;
  align-items: center;
  gap: 4px;
}

.course-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.course-price-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-current {
  color: var(--price-red);
  font-size: 17px;
  font-weight: 700;
}

.price-original {
  font-size: 12px;
  color: var(--text-light);
  text-decoration: line-through;
}

/* 课程中心筛选区 (清爽板正) */
.filter-panel {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.filter-row {
  display: flex;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.filter-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.filter-label {
  width: 90px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  padding-top: 4px;
  flex-shrink: 0;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-grow: 1;
}

.filter-btn {
  border: 1px solid transparent;
  background: transparent;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn:hover {
  color: var(--primary-blue);
  background-color: var(--primary-subtle);
}

.filter-btn.active {
  background-color: var(--primary-blue);
  color: #ffffff;
  font-weight: 600;
}

/* 课程详情页结构 */
.course-detail-header {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 28px;
}

.course-scene-poster {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: #0f172a;
  position: relative;
}

.course-scene-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
}

.course-detail-summary h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 12px;
}

.course-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag-badge {
  background-color: var(--primary-light);
  color: var(--primary-blue);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.course-price-banner {
  background-color: var(--primary-subtle);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-desc {
  font-size: 13px;
  color: var(--text-muted);
}

.price-value-large {
  font-size: 28px;
  font-weight: 800;
  color: var(--price-red);
}

.price-orig-large {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: line-through;
  margin-left: 8px;
}

.course-detail-info-list {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 18px;
}

.course-detail-actions {
  display: flex;
  gap: 12px;
}

/* 课程亮点与专家 */
.course-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

.detail-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.detail-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-card-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background-color: var(--primary-blue);
  border-radius: 2px;
}

.highlights-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.highlight-item {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
}

.highlight-icon {
  width: 32px;
  height: 32px;
  background-color: var(--primary-light);
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.highlight-item h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.highlight-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 授课专家卡片 */
.expert-profile {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.expert-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
  flex-shrink: 0;
}

.expert-info h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.expert-title {
  font-size: 13px;
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 6px;
}

.expert-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 课程学习滚动目录 (保留视频标志，后面加付费学习) */
.catalog-scroll-container {
  max-height: 480px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.catalog-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s;
}

.catalog-item:last-child {
  border-bottom: none;
}

.catalog-item:hover {
  background-color: var(--primary-subtle);
}

.catalog-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-grow: 1;
  min-width: 0;
}

/* 视频播放标志（保留） */
.video-icon-badge {
  width: 32px;
  height: 32px;
  background-color: #eff6ff;
  color: var(--primary-blue);
  border: 1px solid #bfdbfe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.catalog-title-box {
  min-width: 0;
}

.catalog-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-time {
  font-size: 12px;
  color: var(--text-muted);
}

.catalog-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-pay-study {
  background-color: var(--primary-blue);
  color: #ffffff;
  border: none;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-pay-study:hover {
  background-color: var(--primary-hover);
}

.btn-pay-study.unlocked {
  background-color: var(--success-green);
}

/* 资讯专栏样式 (基于 https://www.lnjk.org.cn/article/p-2581.html 纯净正文规范) */
.news-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

.article-container {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
}

.article-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.article-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 14px;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-body {
  font-size: 16px;
  line-height: 1.85;
  color: #334155;
}

.article-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-blue);
  margin: 28px 0 14px 0;
  padding-left: 10px;
  border-left: 4px solid var(--primary-blue);
}

.article-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin: 18px 0 8px 0;
}

.article-body p {
  margin-bottom: 16px;
  text-indent: 2em;
}

.article-callout {
  background-color: var(--primary-subtle);
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--primary-blue);
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-callout h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 6px;
}

.article-callout p {
  text-indent: 0;
  margin-bottom: 0;
  font-size: 14px;
}

/* 资讯列表卡片 */
.news-list-item {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 20px;
  transition: all 0.2s;
}

.news-list-item:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.news-item-img {
  width: 200px;
  height: 125px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.news-item-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-item-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 8px;
}

.news-list-item:hover .news-item-title {
  color: var(--primary-blue);
}

.news-item-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-light);
}

/* 在线商城样式 (预包装保健食品、枸杞、奶粉、参片干货) */
.mall-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.mall-grid > .empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
}

.filter-loading {
  padding: 7px 12px;
  color: var(--text-muted);
  font-size: 13px;
}

.product-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.product-card:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #f1f5f9;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-img {
  transform: scale(1.04);
}

.product-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: var(--primary-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
}

.product-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 6px;
  height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-spec {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.product-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.product-price {
  font-size: 19px;
  font-weight: 800;
  color: var(--price-red);
}

.product-price span {
  font-size: 12px;
}

.btn-add-cart {
  background-color: var(--primary-light);
  color: var(--primary-blue);
  border: 1px solid #bfdbfe;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add-cart:hover {
  background-color: var(--primary-blue);
  color: #ffffff;
}

/* 关于我们页面 & 留言板 */
.about-company-box {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.company-info-list {
  background-color: var(--primary-subtle);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 20px 0;
}

.company-info-item {
  display: flex;
  align-items: baseline;
  margin-bottom: 12px;
  font-size: 15px;
}

.company-info-item:last-child {
  margin-bottom: 0;
}

.company-label {
  width: 100px;
  font-weight: 700;
  color: var(--primary-blue);
  flex-shrink: 0;
}

.company-value {
  color: var(--text-main);
  font-weight: 500;
}

/* 留言表单卡片 */
.feedback-card {
  background-color: #ffffff;
  border: 2px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--price-red);
  margin-left: 4px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-main);
  background-color: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(24, 117, 210, 0.15);
}

.form-help {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.radio-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
}

/* 登录 & 注册单页规范 */
.auth-page-wrap {
  min-height: calc(100vh - 280px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.auth-header {
  background: linear-gradient(135deg, #1875d2 0%, #0284c7 100%);
  color: #ffffff;
  padding: 24px;
  text-align: center;
}

.auth-header h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.auth-header p {
  font-size: 13px;
  opacity: 0.9;
}

.auth-body {
  padding: 28px 24px;
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 20px;
}

.auth-tab-btn {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.auth-tab-btn.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
}

.input-with-btn {
  display: flex;
  gap: 10px;
}

.btn-send-code {
  flex-shrink: 0;
  white-space: nowrap;
}

/* 购物车抽屉 / 模态弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  background-color: var(--primary-subtle);
  border-bottom: 1px solid #bfdbfe;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-blue);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body {
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 14px 20px;
  background-color: #f8fafc;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Toast 提示框 */
.toast-msg {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 商品详情页与商家信息专属样式 */
.product-detail-hero {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 36px;
  margin-bottom: 32px;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-gallery-main {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.product-gallery-main:hover img {
  transform: scale(1.03);
}

.product-gallery-thumbs {
  display: flex;
  gap: 12px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
}

.product-gallery-thumbs > img {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background-color: #f1f5f9;
  object-fit: cover;
  transition: border-color var(--transition-fast);
}

.product-gallery-thumbs > img.active {
  border-color: var(--primary-blue);
}

.thumb-item {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background-color: #f1f5f9;
  transition: border-color var(--transition-fast);
}

.thumb-item.active {
  border-color: var(--primary-blue);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-summary h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.product-detail-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.product-price-panel {
  background-color: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price-main {
  font-size: 32px;
  font-weight: 800;
  color: #e11d48;
}

.product-price-main span {
  font-size: 18px;
  margin-right: 2px;
}

.product-price-del {
  font-size: 14px;
  color: #94a3b8;
  text-decoration: line-through;
  margin-left: 10px;
}

.product-meta-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.product-meta-label {
  color: var(--text-muted);
}

.product-meta-val {
  color: var(--text-main);
}

.product-merchant-summary {
  margin-top: 16px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: var(--radius-sm);
}

.product-merchant-summary-title {
  margin-bottom: 10px;
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 700;
}

.product-merchant-summary-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(120px, 1fr) minmax(180px, 1fr);
  gap: 12px 20px;
  margin: 0;
}

.product-merchant-summary-grid div { min-width: 0; }
.product-merchant-summary-grid dt { margin-bottom: 4px; color: var(--text-muted); font-size: 12px; }
.product-merchant-summary-grid dd { margin: 0; color: var(--text-main); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.product-merchant-link { color: var(--primary-blue); text-decoration: none; }
.product-merchant-link[href]:hover { text-decoration: underline; }
.product-merchant-link[aria-disabled="true"] { color: var(--text-main); cursor: default; }
.product-merchant-phone-note { display: none; margin-left: 6px; color: var(--text-muted); font-size: 11px; font-weight: 400; }

.product-qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 22px 0;
  padding-top: 16px;
  border-top: 1px dashed var(--border-color);
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: #ffffff;
}

.qty-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8fafc;
  border: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.qty-btn:hover {
  background-color: #e2e8f0;
}

.qty-input {
  width: 50px;
  height: 38px;
  border: none;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.product-actions-bar {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.store-detail-main { padding-top: 24px; padding-bottom: 52px; }
.store-detail-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 26px;
  padding: 26px 30px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 68%, #f0fdf4 100%);
}
.store-detail-hero h1 { margin: 9px 0 7px; color: var(--text-main); font-size: 26px; }
.store-detail-hero p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.store-detail-products { padding: 24px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: #ffffff; }
.store-detail-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 20px; }
.store-detail-heading h2 { color: var(--text-main); font-size: 21px; }
.store-detail-heading p { margin-top: 5px; color: var(--text-muted); font-size: 13px; }
.store-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.store-pagination button { min-width: 38px; height: 36px; padding: 0 12px; border: 1px solid var(--border-color); border-radius: 5px; background: #ffffff; color: var(--text-main); cursor: pointer; }
.store-pagination button:hover:not(:disabled), .store-pagination button.active { border-color: var(--primary-blue); background: var(--primary-blue); color: #ffffff; }
.store-pagination button:disabled { opacity: .45; cursor: not-allowed; }

/* 详情页主体两栏布局：左侧图文/规格/常见问题；右侧商家信息 */
.product-content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.merchant-entry-hero {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 58%, #ecfdf5 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 24px;
}
.merchant-entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.merchant-entry-step, .merchant-apply-card { background: #ffffff; border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 20px; }
.merchant-entry-step strong { display: block; color: #1e293b; margin-bottom: 6px; }
.merchant-entry-step span { color: #64748b; font-size: 13px; line-height: 1.6; }
.merchant-apply-card { max-width: 860px; margin: 0 auto; padding: 28px; }
.merchant-apply-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.merchant-apply-field { display: flex; flex-direction: column; gap: 7px; }
.merchant-apply-field.full { grid-column: 1 / -1; }
.merchant-apply-field label { color: #334155; font-size: 13px; font-weight: 700; }
.merchant-apply-field input, .merchant-apply-field textarea { width: 100%; border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 10px 12px; font: inherit; }
.merchant-apply-field textarea { min-height: 110px; resize: vertical; }
.merchant-apply-note { margin: 18px 0; padding: 14px; background: #f8fafc; color: #64748b; border-radius: var(--radius-sm); font-size: 13px; line-height: 1.7; }
.merchant-apply-status { display: none; gap: 8px; justify-content: space-between; margin-bottom: 18px; padding: 14px; background: #ecfdf5; border: 1px solid #bbf7d0; border-radius: var(--radius-sm); color: #166534; }

.product-tabs-header {
  display: flex;
  border-bottom: 2px solid var(--primary-blue);
  background-color: #ffffff;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.product-tab-btn {
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.product-tab-btn:hover {
  color: var(--primary-blue);
}

.product-tab-btn.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
  background-color: #f8fafc;
}

.product-tab-panel {
  display: none;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 24px;
  min-height: 320px;
}

.product-tab-panel.active {
  display: block;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.spec-table th,
.spec-table td {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  text-align: left;
}

.spec-table th {
  background-color: #f8fafc;
  width: 140px;
  color: var(--text-muted);
  font-weight: 600;
}

.spec-table td {
  color: var(--text-main);
}

/* 商家信息专属卡片 */
.merchant-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  position: sticky;
  top: 96px;
}

.merchant-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.merchant-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary-blue), #0284c7);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}

.merchant-title h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.merchant-tag {
  display: inline-block;
  font-size: 11px;
  color: #047857;
  background-color: #ecfdf5;
  padding: 1px 6px;
  border-radius: 2px;
  margin-top: 4px;
  font-weight: 600;
}

.merchant-info-item {
  display: flex;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.6;
}

.merchant-label {
  color: var(--text-muted);
  width: 70px;
  flex-shrink: 0;
}

.merchant-value {
  color: var(--text-main);
}

.merchant-promises {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-color);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.promise-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.promise-icon {
  font-size: 16px;
}

.promise-text h5 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.promise-text p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

.merchant-contact-btn {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .product-merchant-summary-grid { grid-template-columns: 1fr 1fr; }
  .product-detail-hero {
    grid-template-columns: 1fr;
  }
  .product-content-layout {
    grid-template-columns: 1fr;
  }
  .merchant-card {
    position: static;
  }
  .shortcuts-grid,
  .course-grid,
  .mall-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .course-detail-header,
  .course-detail-layout,
  .news-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .product-merchant-summary-grid { grid-template-columns: 1fr; }
  .store-detail-hero { align-items: flex-start; flex-direction: column; padding: 22px; }
  .store-detail-products { padding: 18px; }
  .merchant-entry-grid,
  .merchant-apply-fields { grid-template-columns: 1fr; }
  .merchant-apply-field.full { grid-column: auto; }
  .shortcuts-grid,
  .course-grid,
  .mall-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    height: auto;
    padding: 12px 0;
    flex-direction: column;
    gap: 12px;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
