/* ==========================================================================
   components.css
   Universum 雇主品牌页 - 全部组件样式
   按功能模块组织：品牌头 → 搜索 → 轮播 → 企业 → 图表 → 讨论 → 文章 → 详情弹层
   ========================================================================== */

/* ========== 顶部品牌区 ========== */
.brand-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 0 4px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(234,90,31,.25));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-darker);
  letter-spacing: .5px;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ========== 搜索框 ========== */
.search-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254,248,243,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 4px 0 8px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  background: var(--card);
  border-radius: 24px;
  padding: 0 6px 0 18px;
  height: 46px;
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border);
  transition: border-color .2s, box-shadow .2s;
}

.search-input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.search-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-right: 8px;
  color: var(--primary);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  background: transparent;
  color: var(--text);
}

.search-input::placeholder { color: #b9a899; }

.search-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(234,90,31,.3);
}

.search-btn:active { transform: scale(.96); }

.search-results {
  display: none;
  background: var(--card);
  border-radius: var(--radius);
  margin-top: 8px;
  box-shadow: 0 8px 24px rgba(234,90,31,.15);
  overflow: hidden;
  max-height: 280px;
  overflow-y: auto;
}

.search-results.show { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 10px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:active { background: var(--primary-light); }

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.search-result-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== 轮播图 ========== */
.award-carousel {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(234,90,31,.18);
}

.swiper {
  width: 100%;
  aspect-ratio: 16/9;
}

.swiper-slide {
  position: relative;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

/* 轮播图位置不增加任何浮层元素（点击查看详情等），纯净展示海报 */
.swiper-slide::after { display: none !important; }

.award-slide-content {
  width: 100%;
  padding: 24px 20px;
  background: linear-gradient(transparent, rgba(139,47,18,.85));
  color: #fff;
}

.award-slide-badge {
  display: inline-block;
  background: linear-gradient(135deg, #fff 0%, #fef0e7 100%);
  color: var(--primary-darker);
  font-size: 11px;
  padding: 3px 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: .5px;
}

.award-slide-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.award-slide-desc {
  font-size: 13px;
  opacity: .95;
}

.swiper-pagination-bullet { background: rgba(255,255,255,.5); }
.swiper-pagination-bullet-active { background: #fff; }

/* ========== 通用标题 ========== */
.section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-darker);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 2px;
}

.section-title-tag {
  font-size: 10px;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 2px 8px;
  border-radius: 8px;
  letter-spacing: 1px;
}

/* ========== 企业区域 ========== */
.company-section {
  background: linear-gradient(160deg, #ffffff 0%, #fef6ee 100%);
  border-radius: var(--radius);
  padding: 12px 0 14px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.company-section::before {
  content: '';
  position: absolute;
  top: -30px;
  left: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(234,90,31,.1) 0%, transparent 70%);
  pointer-events: none;
}

/* logo 横滑墙 */
.logo-marquee {
  overflow: hidden;
  position: relative;
  margin-top: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.logo-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: logoMarquee 35s linear infinite;
}

.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-marquee:active .logo-track { animation-play-state: paused; }

@keyframes logoMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.logo-card {
  flex-shrink: 0;
  width: 108px;
  height: 96px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(234,90,31,.08);
  border: 1.5px solid var(--border);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.logo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  border-radius: 0 0 2px 2px;
  opacity: 0;
  transition: opacity .25s;
  z-index: 3;
}

.logo-card:active {
  transform: scale(.94);
  border-color: var(--primary);
  box-shadow: 0 6px 14px rgba(234,90,31,.22);
}

.logo-card:active::before { opacity: 1; }

.logo-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
  padding: 2px;
}

.logo-card-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  position: relative;
}

.logo-card-fallback::after {
  content: '';
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.25), transparent);
  border-radius: 11px 11px 50% 50% / 11px 11px 100% 100%;
}

.logo-card-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 4px 4px;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s, transform .2s;
  z-index: 2;
}

.logo-card:active .logo-card-name {
  opacity: 1;
  transform: translateY(0);
}

.logo-card-heat {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px 9px 9px 0;
  background: linear-gradient(135deg, #ea5a1f 0%, #c8461a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(234,90,31,.4);
  z-index: 3;
  line-height: 1;
}

.logo-card-heat.hot {
  background: linear-gradient(135deg, #ff6b1a 0%, #d63031 100%);
  animation: flicker 1.6s ease-in-out infinite;
}
.logo-card-heat.warm {
  background: linear-gradient(135deg, #f09060 0%, #ea5a1f 100%);
}
.logo-card-heat.normal {
  background: linear-gradient(135deg, #8b2f12 0%, #c8461a 100%);
}

/* 热度标识 */
.company-heat {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 5px 2px 4px;
  background: linear-gradient(135deg, #ea5a1f 0%, #c8461a 100%);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 8px 8px 8px 0;
  box-shadow: 0 2px 4px rgba(234,90,31,.35);
  z-index: 3;
  line-height: 1;
}

.company-heat-icon {
  font-size: 9px;
  line-height: 1;
  animation: flicker 1.6s ease-in-out infinite;
  transform-origin: 50% 90%;
  filter: drop-shadow(0 0 2px rgba(255,200,100,.6));
}

@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(-2deg); }
  25% { transform: scale(1.15) rotate(2deg); }
  50% { transform: scale(.92) rotate(-3deg); }
  75% { transform: scale(1.1) rotate(1deg); }
}

.company-heat.hot {
  background: linear-gradient(135deg, #ff6b1a 0%, #d63031 100%);
  box-shadow: 0 2px 6px rgba(214,48,49,.4);
}

.company-heat.warm {
  background: linear-gradient(135deg, #f09060 0%, #ea5a1f 100%);
}

.company-heat.normal {
  background: linear-gradient(135deg, #8b2f12 0%, #c8461a 100%);
}

.company-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(234,90,31,.25);
  position: relative;
}

.company-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.25) 0%, transparent 50%);
}

.company-name {
  font-size: 12px;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.company-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 1px 6px;
  border-radius: 6px;
  letter-spacing: .3px;
}

.company-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px 16px 0;
  padding: 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(234,90,31,.08);
  border: 1px dashed var(--primary);
  transition: background .15s;
}

.company-more:active { background: var(--primary-light); }

/* ========== 环形图区域 ========== */
.chart-section {
  background: linear-gradient(160deg, #ffffff 0%, #fef6ee 100%);
  border-radius: var(--radius);
  padding: 20px 16px 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.chart-section::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(234,90,31,.12) 0%, transparent 70%);
  pointer-events: none;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.chart-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chart-header-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-darker);
}

.chart-header-sub {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.chart-total {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.chart-total-num {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.chart-total-label {
  font-size: 11px;
  color: var(--text-secondary);
}

/* 堆叠条形图 */
.chart-stack {
  display: flex;
  width: 100%;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--primary-lighter);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.06);
  margin-bottom: 4px;
}

.chart-stack-seg {
  height: 100%;
  transition: filter .2s, transform .2s;
  cursor: pointer;
  position: relative;
}

.chart-stack-seg:hover { filter: brightness(1.15); }
.chart-stack-seg + .chart-stack-seg { border-left: 1px solid #fff; }

/* Canvas 环形图容器 */
.chart-canvas-wrap {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 10px auto 14px;
  filter: drop-shadow(0 8px 20px rgba(234,90,31,.18));
}

.chart-canvas-wrap::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(234,90,31,.06) 90deg, transparent 180deg, rgba(234,90,31,.06) 270deg, transparent 360deg);
  animation: rotateBg 8s linear infinite;
  z-index: -1;
}

@keyframes rotateBg {
  to { transform: rotate(360deg); }
}

.chart-canvas-wrap::after {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 2px dashed rgba(234,90,31,.15);
  pointer-events: none;
  animation: spin 30s linear infinite;
}

.chart-center-info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  width: 60%;
}

.chart-center-value {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  transition: all .3s;
}

.chart-center-label {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 6px;
  letter-spacing: 1.5px;
}

.chart-center-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-darker);
  margin-top: 4px;
  transition: all .3s;
}

/* 主题卡片网格 */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.theme-card {
  background: #fff;
  border-radius: 10px;
  padding: 10px 6px 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(234,90,31,.06);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}

.theme-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-color, var(--primary));
  opacity: .8;
}

.theme-card:active {
  transform: scale(.95);
  border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(234,90,31,.18);
}

.theme-card-pct {
  font-size: 16px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--card-color, var(--primary)) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.theme-card-label {
  font-size: 11px;
  color: var(--text);
  margin-top: 2px;
  font-weight: 500;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 26px;
}

.theme-detail {
  display: none;
  margin-top: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-lighter) 100%);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
  animation: fadeIn .3s;
  border-left: 3px solid var(--primary);
}

.theme-detail.show { display: block; }

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

.theme-detail-title {
  font-weight: 800;
  font-size: 15px;
  color: var(--primary-darker);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-detail-title::before {
  content: '';
  width: 4px;
  height: 14px;
  background: var(--primary);
  border-radius: 2px;
}

/* ========== 企业详情页（弹层） ========== */
.company-detail {
  position: fixed;
  inset: 0;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 20% 0%, rgba(234,90,31,.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(232,122,63,.05) 0%, transparent 40%);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  max-width: 480px;
  margin: 0 auto;
}

.company-detail.show { transform: translateX(0); }

.detail-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(254,248,243,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.detail-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--primary-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, transform .15s;
}

.detail-back:active { background: var(--primary-light); transform: scale(.92); }

.detail-header-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-darker);
}

.detail-body {
  padding: 20px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, var(--primary-darker) 100%);
  border-radius: var(--radius);
  padding: 24px 20px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(234,90,31,.25);
  position: relative;
  overflow: hidden;
}

.detail-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255,255,255,.15) 0%, transparent 70%);
  border-radius: 50%;
}

.detail-hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.detail-hero-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  border: 2px solid rgba(255,255,255,.3);
  flex-shrink: 0;
}

.detail-hero-info {
  flex: 1;
  min-width: 0;
}

.detail-hero-name {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.detail-hero-desc {
  font-size: 12px;
  opacity: .9;
  line-height: 1.4;
}

.detail-hero-tag {
  display: inline-block;
  background: rgba(255,255,255,.22);
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 8px;
  margin-top: 6px;
  font-weight: 600;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.detail-info-card {
  background: #fff;
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(234,90,31,.06);
  border: 1px solid var(--border);
}

.detail-info-label {
  font-size: 10px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.detail-info-value {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-darker);
}

.detail-section {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.detail-section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-darker);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-section-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 2px;
}

.detail-intro {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text);
}

.detail-highlights {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, var(--primary-lighter) 0%, #fff 100%);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text);
  border-left: 3px solid var(--primary);
  font-weight: 500;
}

.detail-highlight-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(234,90,31,.3);
}

.detail-action {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.detail-action-btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform .15s, box-shadow .2s;
}

.detail-action-btn:active { transform: scale(.97); }

.detail-action-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(234,90,31,.3);
}

.detail-action-secondary {
  background: #fff;
  color: var(--primary-dark);
  border: 1.5px solid var(--primary);
}

/* ========== 互动讨论区 ========== */
.discuss-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.discuss-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 11px;
}

.discuss-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 360px;
  overflow-y: auto;
  margin: 0 -4px;
  padding: 2px 4px;
}

.discuss-list::-webkit-scrollbar { width: 4px; }
.discuss-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.discuss-item {
  display: flex;
  gap: 10px;
  animation: slideIn .35s ease;
}

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

.discuss-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(234,90,31,.2);
}

.discuss-item-body {
  flex: 1;
  min-width: 0;
  background: linear-gradient(135deg, var(--primary-lighter) 0%, #fff 100%);
  border-radius: 10px;
  padding: 10px 12px;
  border-left: 2px solid var(--primary);
}

.discuss-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.discuss-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-darker);
}

.discuss-time {
  font-size: 10px;
  color: var(--text-secondary);
}

.discuss-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  word-break: break-word;
}

.discuss-actions {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}

.discuss-action {
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color .15s;
  display: flex;
  align-items: center;
  gap: 3px;
}

.discuss-action:active { color: var(--primary); }
.discuss-action.liked { color: var(--primary); }

.discuss-empty {
  text-align: center;
  padding: 20px 0;
  color: var(--text-secondary);
  font-size: 12px;
}

.discuss-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 8px 8px 8px;
  background: var(--primary-lighter);
  border-radius: 24px;
  border: 1.5px solid var(--border);
  transition: border-color .2s, box-shadow .2s;
}

.discuss-input-wrap:focus-within {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 4px 12px rgba(234,90,31,.12);
}

.discuss-input-wrap .discuss-avatar {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

.discuss-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: var(--text);
  padding: 0 4px;
  min-width: 0;
}

.discuss-input::placeholder { color: #b9a899; }

.discuss-send {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, opacity .2s, box-shadow .2s;
  box-shadow: 0 2px 6px rgba(234,90,31,.25);
  flex-shrink: 0;
}

.discuss-send:active { transform: scale(.95); }
.discuss-send:disabled { opacity: .4; cursor: not-allowed; }

/* ========== 首页互动讨论区 ========== */
.discuss-section {
  background: linear-gradient(160deg, #ffffff 0%, #fef6ee 100%);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.discuss-section::before {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(234,90,31,.1) 0%, transparent 70%);
  pointer-events: none;
}

.discuss-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}

.discuss-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-darker);
}

.discuss-section-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 2px;
}

.discuss-section-icon {
  font-size: 16px;
}

.discuss-section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(234,90,31,.3);
}

.discuss-section .discuss-list {
  max-height: none;
  margin: 0;
}

/* ========== 公众号文章列表 ========== */
.article-section {
  background: linear-gradient(160deg, #ffffff 0%, #fef6ee 100%);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.article-section::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(234,90,31,.08) 0%, transparent 70%);
  pointer-events: none;
}

.article-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
  position: relative;
  z-index: 1;
}

.article-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.article-header-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-darker);
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-header-title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 2px;
}

.article-header-sub {
  font-size: 10px;
  color: var(--text-secondary);
  letter-spacing: 1.5px;
}

.article-account {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(234,90,31,.1);
  border: 1px solid var(--border);
}

.article-account-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(234,90,31,.25);
}

.article-account-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.article-account-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-darker);
}

.article-account-follow {
  font-size: 9px;
  color: var(--primary);
  font-weight: 600;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.article-item {
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(234,90,31,.05);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, border-color .2s;
}

.article-item:active {
  transform: scale(.98);
  border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(234,90,31,.15);
}

.article-cover {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.article-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.2) 0%, transparent 50%);
}

.article-cover-icon {
  font-size: 32px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.15);
  z-index: 1;
}

.article-cover-tag {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  z-index: 1;
}

.article-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-summary {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 10px;
  color: var(--text-secondary);
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 2px;
}

.article-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 10px;
  padding: 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  border-radius: 10px;
  border: 1px dashed var(--primary);
  cursor: pointer;
  transition: background .15s;
}

.article-more:active { background: var(--primary-light); }

/* ========== 文章详情页 ========== */
.article-detail-body {
  padding: 20px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-detail-cover {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(234,90,31,.2);
}

.article-detail-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.12) 0%, transparent 50%);
}

.article-detail-cover-icon {
  font-size: 64px;
  color: #fff;
  z-index: 1;
  text-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.article-detail-cover-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,.4);
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  z-index: 1;
  font-weight: 600;
}

.article-detail-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.4;
}

.article-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
}

.article-detail-account {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-detail-account-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-detail-account-name {
  color: var(--primary-darker);
  font-weight: 700;
}

.article-detail-content {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
}

.article-detail-content p {
  margin-bottom: 14px;
}

.article-detail-content h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-darker);
  margin: 18px 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
}

.article-detail-content blockquote {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-lighter) 100%);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 14px 0;
  font-size: 14px;
  color: var(--primary-darker);
  border-left: 3px solid var(--primary);
  font-weight: 500;
}

.article-detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  margin-top: 10px;
}

.article-detail-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 11px;
  transition: color .2s, transform .15s;
}

.article-detail-action:active { transform: scale(.9); }
.article-detail-action.liked { color: var(--primary); }

.article-detail-action-icon {
  font-size: 22px;
}

/* ========== 奖项详情页 ========== */
.award-detail-body {
  padding: 20px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.award-detail-hero {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(234,90,31,.25);
}

.award-detail-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(139,47,12,.75) 100%);
}

.award-detail-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 20px;
  color: #fff;
  z-index: 1;
}

.award-detail-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 6px;
  border: 1px solid rgba(255,255,255,.3);
}

.award-detail-hero-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  text-shadow: 0 2px 6px rgba(0,0,0,.3);
}

.award-detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.award-stat-card {
  background: linear-gradient(135deg, #fff 0%, var(--primary-lighter) 100%);
  border-radius: 10px;
  padding: 14px 8px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(234,90,31,.08);
  border: 1px solid var(--border);
}

.award-stat-value {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.award-stat-label {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.award-detail-section {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.award-detail-section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-darker);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.award-detail-section-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 2px;
}

.award-detail-desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text);
}

.award-criteria {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.award-criteria-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, var(--primary-lighter) 0%, #fff 100%);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text);
  border-left: 3px solid var(--primary);
  line-height: 1.6;
}

.award-criteria-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(234,90,31,.3);
}

.award-winner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.award-winner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 4px 10px;
  background: linear-gradient(160deg, var(--primary-lighter) 0%, #fff 100%);
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .15s, border-color .2s, box-shadow .2s;
  min-height: 64px;
  position: relative;
}

.award-winner-card:active {
  transform: scale(.95);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(234,90,31,.18);
}

.award-winner-medal {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 2px 4px rgba(234,90,31,.3);
}

.award-winner-card:nth-child(1) .award-winner-medal {
  background: linear-gradient(135deg, #ffd700 0%, #ff8c1a 100%);
  box-shadow: 0 3px 8px rgba(255,140,26,.4);
}
.award-winner-card:nth-child(1)::before { content: '🥇'; position: absolute; top: -6px; right: -4px; font-size: 14px; }

.award-winner-card:nth-child(2) .award-winner-medal {
  background: linear-gradient(135deg, #c0c0c0 0%, #8a8a8a 100%);
  box-shadow: 0 2px 6px rgba(138,138,138,.4);
}
.award-winner-card:nth-child(2)::before { content: '🥈'; position: absolute; top: -6px; right: -4px; font-size: 14px; }

.award-winner-card:nth-child(3) .award-winner-medal {
  background: linear-gradient(135deg, #cd7f32 0%, #8b4513 100%);
  box-shadow: 0 2px 6px rgba(139,69,19,.4);
}
.award-winner-card:nth-child(3)::before { content: '🥉'; position: absolute; top: -6px; right: -4px; font-size: 14px; }

.award-winner-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-all;
}

.award-detail-action {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}