/* ============================================
   广东哈理工校友会 — Content Module & Tabs
   Additional styles for the 3-tab content section
   (广东报道 / 母校报道 / 校友企业)
   ============================================ */

/* ——— Main Content Tabs (reference: hustgd365 mini-program layout) ——— */
.content-tabs-section {
  background: var(--bg);
  padding: var(--s-16) 0;
}

.tab-nav {
  display: flex;
  gap: 4px;
  background: white;
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: var(--s-8);
  border: 1px solid var(--border-light);
  max-width: 420px;
}

.tab-btn {
  flex: 1;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  transition: all var(--duration-fast);
  white-space: nowrap;
}

.tab-btn.active {
  background: var(--hust-blue);
  color: white;
  box-shadow: var(--shadow-sm);
}

.tab-btn:hover:not(.active) {
  background: var(--hust-blue-wash);
  color: var(--hust-blue);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ——— Featured Story Card (from WeChat article style) ——— */
.story-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  margin-bottom: var(--s-6);
}

.story-card-header {
  position: relative;
  height: 320px;
  background: linear-gradient(160deg, var(--hust-blue-deep) 0%, var(--hust-blue-mid) 100%);
  display: flex;
  align-items: flex-end;
  padding: var(--s-8);
}

.story-card-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(10,45,92,0.85) 100%);
  z-index: 1;
}

.story-card-header-content {
  position: relative;
  z-index: 2;
  color: white;
}

.story-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: var(--gold);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  margin-bottom: var(--s-3);
}

.story-card-header h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  margin-bottom: var(--s-2);
}

.story-card-header .story-meta {
  font-size: var(--fs-xs);
  opacity: 0.7;
}

.story-card-body {
  padding: var(--s-8);
}

.story-card-body p {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--s-5);
}

.story-highlight {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}

.story-highlight-item {
  padding: var(--s-5);
  background: var(--hust-blue-wash);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--hust-blue-bright);
}

.story-highlight-item h4 {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  color: var(--hust-blue-deep);
  margin-bottom: var(--s-1);
}

.story-highlight-item p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: var(--lh-snug);
}

.story-quote {
  padding: var(--s-6);
  background: var(--gold-wash);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--gold);
  margin-bottom: var(--s-6);
}

.story-quote p {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  color: var(--hust-blue-deep);
  line-height: var(--lh-snug);
  font-style: italic;
  margin-bottom: var(--s-2);
}

.story-quote .quote-author {
  font-size: var(--fs-sm);
  color: var(--gold);
  font-weight: var(--fw-medium);
  font-style: normal;
}

/* ——— Alumni Enterprise Cards ——— */
.enterprise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}

.enterprise-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--s-6);
  border: 1px solid var(--border-light);
  transition: all var(--duration);
  cursor: pointer;
}

.enterprise-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.enterprise-card .ent-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--hust-blue) 0%, var(--hust-blue-bright) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  margin-bottom: var(--s-4);
}

.enterprise-card h4 {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin-bottom: var(--s-1);
}

.enterprise-card .ent-industry {
  font-size: var(--fs-xs);
  color: var(--hust-blue-soft);
  margin-bottom: var(--s-3);
}

.enterprise-card p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: var(--lh-snug);
}

/* ——— Mobile style article feed ——— */
.article-feed {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.article-feed-item {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: var(--s-4);
  padding: var(--s-5);
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.article-feed-item:hover {
  border-color: var(--hust-blue-ghost);
  box-shadow: var(--shadow-sm);
}

.article-feed-item .afi-content h4 {
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  line-height: var(--lh-snug);
  margin-bottom: var(--s-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-feed-item .afi-content .afi-meta {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}

.article-feed-item .afi-thumb {
  width: 100px;
  height: 70px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--hust-blue-soft) 0%, var(--hust-blue-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: rgba(255,255,255,0.6);
}

/* ——— Icon markers (matching WeChat article style) ——— */
.marker-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-size: 13px;
  margin-right: 2px;
  vertical-align: middle;
}

.marker-blue { background: #dbeafe; color: #2563eb; }
.marker-red { background: #fce8e8; color: #dc2626; }
.marker-amber { background: #fef3c7; color: #d97706; }
.marker-green { background: #d1fae5; color: #059669; }
.marker-purple { background: #ede9fe; color: #7c3aed; }

/* ——— Wide-screen Enterprise Carousel (5 slides) ——— */
.ent-carousel-section {
  position: relative;
  overflow: hidden;
  background: var(--hust-blue-deep);
  border-top: 2px solid var(--gold);
}

.ent-carousel {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
}

.ent-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.ent-carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.ent-carousel-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(255,255,255,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.03) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

/* 5 distinct gradient themes for each enterprise */
.slide-theme-1 { background: linear-gradient(135deg, #0a2d5c 0%, #0f3d7a 40%, #1855a3 100%); }
.slide-theme-2 { background: linear-gradient(135deg, #1a1a3e 0%, #0f3d7a 40%, #c8923a 100%); }
.slide-theme-3 { background: linear-gradient(135deg, #0a2d5c 0%, #1855a3 40%, #2175d9 100%); }
.slide-theme-4 { background: linear-gradient(135deg, #1a1a3e 0%, #3a1a5c 30%, #0f3d7a 100%); }
.slide-theme-5 { background: linear-gradient(135deg, #0a2d5c 0%, #c8923a 60%, #d4a54e 100%); }

.ent-carousel-content {
  position: relative;
  z-index: 2;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--s-12);
  width: 100%;
}

.ent-carousel-rank {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 16px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  color: var(--gold);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
  margin-bottom: var(--s-5);
}

.ent-carousel-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: var(--fw-black);
  color: white;
  margin-bottom: var(--s-3);
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}

.ent-carousel-tagline {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--s-3);
  max-width: 42ch;
}

.ent-carousel-desc {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.5);
  max-width: 48ch;
  line-height: var(--lh-relaxed);
  margin-bottom: var(--s-6);
}

.ent-carousel-stats {
  display: flex;
  gap: var(--s-8);
  margin-bottom: var(--s-6);
}

.ent-carousel-stat {
  text-align: left;
}

.ent-carousel-stat .ecs-num {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-black);
  color: var(--gold);
  line-height: 1;
}

.ent-carousel-stat .ecs-label {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

/* Carousel controls */
.ent-carousel-controls {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.ent-carousel-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ent-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: all var(--duration);
  padding: 0;
}

.ent-carousel-dot.active {
  background: var(--gold);
  transform: scale(1.3);
  box-shadow: 0 0 12px rgba(200,146,58,0.5);
}

.ent-carousel-dot:hover:not(.active) {
  background: rgba(255,255,255,0.55);
}

.ent-carousel-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast);
  backdrop-filter: blur(8px);
  font-size: 18px;
}

.ent-carousel-arrow:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

/* Progress bar */
.ent-carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.08);
  z-index: 5;
}

.ent-carousel-progress-bar {
  height: 100%;
  background: var(--gold);
  width: 0%;
  transition: width 5s linear;
}

.ent-carousel-slide.active .ent-carousel-progress-bar {
  width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .ent-carousel { height: 440px; }
  .ent-carousel-name { font-size: clamp(1.5rem, 6vw, 2rem); }
  .ent-carousel-tagline { font-size: var(--fs-body); }
  .ent-carousel-content { padding: 0 var(--s-6); }
  .ent-carousel-stats { gap: var(--s-5); flex-wrap: wrap; }
  .ent-carousel-controls { bottom: 20px; }
}

@media (max-width: 480px) {
  .ent-carousel { height: 380px; }
  .ent-carousel-desc { font-size: var(--fs-xs); }
}

/* Responsive adjustments for new components */
@media (max-width: 1024px) {
  .enterprise-grid { grid-template-columns: repeat(2, 1fr); }
  .story-highlight { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .enterprise-grid { grid-template-columns: 1fr; }
  .story-highlight { grid-template-columns: 1fr; }
  .story-card-header { height: 240px; }
  .article-feed-item { grid-template-columns: 1fr 80px; }
  .article-feed-item .afi-thumb { width: 80px; height: 56px; }
  .tab-nav { max-width: 100%; }
}
