@import url('../common/responsive.css');

/* ==========================================================================
   活动专属页面 (activities.html) 样式表
   主题色彩: 智简魔方主色 #FF6739, 深空暗蓝 #13182C, 纯白卡片 #FFFFFF
   ========================================================================== */

.activities-page {
  background: #F4F6F9;
  color: #333333;
}

/* ---------------- 1. 顶部活动 Hero Banner 与核心倒计时看板 ---------------- */
.activities-hero {
  position: relative;
  background: radial-gradient(circle at 50% 30%, #1f2742 0%, #111524 60%, #0d101d 100%);
  color: #ffffff;
  padding: 60px 0 80px 0;
  overflow: hidden;
  border-bottom: 2px solid rgba(255, 103, 57, 0.3);
}

.activities-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 103, 57, 0.18) 0%, rgba(255, 103, 57, 0) 70%);
  filter: blur(50px);
  pointer-events: none;
}

.activities-hero .hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* 活动顶标与主副标题 */
.activities-hero .hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  background: rgba(255, 103, 57, 0.15);
  border: 1px solid rgba(255, 103, 57, 0.4);
  border-radius: 30px;
  font-size: 14px;
  color: #FF8F6B;
  margin-bottom: 18px;
  letter-spacing: 1px;
}

.activities-hero h1.hero-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #FFFFFF 0%, #E2E8F0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.activities-hero p.hero-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 650px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

/* 核心两阶段倒计时面板 (Master Countdown Hub) */
.countdown-hub-card {
  max-width: 820px;
  margin: 0 auto;
  background: rgba(25, 32, 53, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 30px 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.countdown-hub-card .hub-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 18px;
  margin-bottom: 24px;
}

/* 阶段状态标签 */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
}

/* 未开始：金橙色 */
.status-badge.badge-upcoming {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #FBBF24;
}
.status-badge.badge-upcoming .status-dot {
  background: #FBBF24;
  box-shadow: 0 0 8px #FBBF24;
}

/* 进行中：品牌红橙高亮脉冲 */
.status-badge.badge-ongoing {
  background: linear-gradient(135deg, rgba(255, 103, 57, 0.25), rgba(226, 73, 27, 0.35));
  border: 1px solid #FF6739;
  color: #FFA07A;
}
.status-badge.badge-ongoing .status-dot {
  background: #FF6739;
  box-shadow: 0 0 10px #FF6739;
}
.status-dot.pulsing {
  animation: pulseLight 1.5s infinite;
}
@keyframes pulseLight {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* 已结束：灰色 */
.status-badge.badge-ended {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #94A3B8;
}
.status-badge.badge-ended .status-dot {
  background: #94A3B8;
}

.countdown-hub-card .countdown-title {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.countdown-label-icon {
  margin-right: 4px;
}

/* 数字化卡片倒计时展示 */
.timer-digits-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.digit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.digit-box {
  width: 76px;
  height: 76px;
  background: linear-gradient(180deg, #1e263d 0%, #151a2c 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 800;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.digit-unit {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.timer-separator {
  font-size: 28px;
  font-weight: bold;
  color: #FF6739;
  margin-bottom: 24px;
}

.banner-notice-bar {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.banner-notice-bar strong {
  color: #FFA07A;
}

/* ---------------- 2. 快捷跳锚点与活动特色卡片 ---------------- */
.quick-nav-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -38px;
  position: relative;
  z-index: 5;
  margin-bottom: 50px;
}

.quick-nav-item {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 20px 24px;
  box-shadow: 0 4px 16px rgba(19, 24, 44, 0.08);
  border: 1px solid #EAEDF2;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quick-nav-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 103, 57, 0.16);
  border-color: rgba(255, 103, 57, 0.4);
}

.quick-nav-item .nav-title {
  font-size: 17px;
  font-weight: 700;
  color: #222222;
  margin-bottom: 4px;
  transition: color 0.2s;
}

.quick-nav-item:hover .nav-title {
  color: #FF6739;
}

.quick-nav-item .nav-desc {
  font-size: 12px;
  color: #777777;
}

.quick-nav-item .nav-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFF5F1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF6739;
  font-size: 18px;
}

/* ---------------- 3. 楼层公用标题 ---------------- */
.act-floor {
  margin-bottom: 60px;
}

.floor-header {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid #E6EAED;
  padding-bottom: 14px;
}

.floor-title-box h3 {
  font-size: 26px;
  font-weight: 800;
  color: #1F2937;
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.floor-title-box h3::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 22px;
  background: #FF6739;
  border-radius: 3px;
  margin-right: 12px;
}

.floor-subtitle {
  font-size: 14px;
  color: #6B7280;
  margin-left: 17px;
}

/* ---------------- 4. 爆款限时秒杀商品卡片 (Seckill Grid) ---------------- */
.seckill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.seckill-card {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #EAEDF2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.seckill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  border-color: #FF6739;
}

/* 角标 */
.seckill-card .card-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #FF6739, #E2491B);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 0 12px 0 12px;
  z-index: 2;
}

.seckill-card.card-hot .card-badge {
  background: linear-gradient(135deg, #EF4444, #B91C1C);
}

.seckill-card.card-vip .card-badge {
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
}

.card-top {
  padding: 24px 20px 16px 20px;
  background: linear-gradient(180deg, #FFF9F6 0%, #FFFFFF 100%);
  border-bottom: 1px solid #F3F4F6;
}

.card-top .prod-name {
  font-size: 19px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.card-top .prod-desc {
  font-size: 12px;
  color: #6B7280;
  line-height: 1.4;
  margin-bottom: 10px;
}

.card-top .prod-loc {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: #4B5563;
  background: #F3F4F6;
  padding: 2px 8px;
  border-radius: 4px;
}

.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.spec-list {
  margin-bottom: 16px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.spec-item .spec-k {
  color: #6B7280;
}

.spec-item .spec-v {
  font-weight: 600;
  color: #1F2937;
}

.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tag-pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  background: #FFF2EB;
  color: #FF6739;
  border: 1px solid rgba(255, 103, 57, 0.2);
}

/* 进度条 */
.sale-progress-box {
  margin-bottom: 16px;
}

.sale-progress-box .progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6B7280;
  margin-bottom: 5px;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: #F3F4F6;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #FFA07A, #FF6739);
  border-radius: 4px;
}

/* 价格区域 */
.price-area {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed #E5E7EB;
  margin-bottom: 16px;
}

.current-price {
  color: #FF6739;
  font-size: 14px;
  font-weight: bold;
}

.current-price .price-num {
  font-size: 26px;
  font-weight: 800;
}

.original-price {
  font-size: 12px;
  color: #9CA3AF;
  text-decoration: line-through;
}

/* ---------------- 5. 核心购买按钮样式与两阶段状态控制 ---------------- */
.act-buy-btn {
  display: block;
  width: 100%;
  height: 44px;
  line-height: 44px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  box-sizing: border-box;
  text-decoration: none !important;
}

/* 进行中状态：高亮大橙色按钮 */
.act-buy-btn.btn-active {
  background: linear-gradient(135deg, #FF6739 0%, #E2491B 100%);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(255, 103, 57, 0.35);
  border: none;
}

.act-buy-btn.btn-active:hover {
  background: linear-gradient(135deg, #FF7B52 0%, #F05323 100%);
  box-shadow: 0 6px 18px rgba(255, 103, 57, 0.45);
  transform: translateY(-1px);
}

/* 未开始 / 已结束状态：置灰禁用，不可购买 */
.act-buy-btn.btn-disabled {
  background: #E5E7EB !important;
  color: #9CA3AF !important;
  border: 1px solid #D1D5DB !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  position: relative;
}

.act-buy-btn.btn-disabled:hover {
  background: #E5E7EB !important;
  color: #9CA3AF !important;
  transform: none !important;
}

/* 商品卡片锁定半透明遮罩微效 */
.seckill-card.status-locked .card-badge {
  opacity: 0.8;
}

/* ---------------- 6. 云服务器与物理机多规格专区 ---------------- */
.cloud-tab-nav {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  overflow-x: auto;
  white-space: nowrap;
}

.cloud-tab-nav .tab-item {
  padding: 10px 24px;
  background: #FFFFFF;
  border: 1px solid #EAEDF2;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #4B5568;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.cloud-tab-nav .tab-item:hover,
.cloud-tab-nav .tab-item.active-tab {
  background: #FF6739;
  border-color: #FF6739;
  color: #FFFFFF;
}

/* 云服务器地域选项卡面板切换 */
.cloud-goods-group .tab-content {
  display: none;
}

.cloud-goods-group .tab-content.active {
  display: block;
  animation: tabFadeIn 0.25s ease;
}

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

.cloud-rows-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cloud-row-item {
  background: #FFFFFF;
  border-radius: 10px;
  border: 1px solid #EAEDF2;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.cloud-row-item:hover {
  border-color: #FF6739;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.row-left {
  width: 25%;
}

.row-left .plan-name {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.row-left .plan-desc {
  font-size: 13px;
  color: #6B7280;
}

.row-specs {
  display: flex;
  gap: 30px;
  width: 45%;
}

.row-spec-col {
  text-align: center;
}

.row-spec-col .spec-val {
  font-size: 18px;
  font-weight: 700;
  color: #1F2937;
}

.row-spec-col .spec-key {
  font-size: 12px;
  color: #9CA3AF;
  margin-top: 2px;
}

.row-right {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 30%;
  justify-content: flex-end;
}

.row-price-box {
  text-align: right;
}

.row-price-box .price-unit {
  color: #FF6739;
  font-size: 14px;
  font-weight: bold;
}

.row-price-box .price-big {
  font-size: 26px;
  font-weight: 800;
}

.row-price-box .orig-price {
  font-size: 12px;
  color: #9CA3AF;
  text-decoration: line-through;
}

.row-right .act-buy-btn {
  width: 130px;
  height: 42px;
  line-height: 42px;
}

/* ---------------- 7. 活动规则与权益说明 ---------------- */
.perks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.perk-card {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 24px 20px;
  border: 1px solid #EAEDF2;
  text-align: center;
  transition: all 0.25s;
}

.perk-card:hover {
  border-color: #FF6739;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.perk-icon {
  font-size: 32px;
  color: #FF6739;
  margin-bottom: 12px;
}

.perk-title {
  font-size: 16px;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 6px;
}

.perk-desc {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.4;
}

.rules-card {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 30px;
  border: 1px solid #EAEDF2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.rules-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

.rules-list {
  padding-left: 20px;
  color: #4B5563;
  font-size: 14px;
  line-height: 1.8;
}

.rules-list li {
  margin-bottom: 8px;
}

/* ---------------- 8. 轻量 Toast 提示组件 ---------------- */
.activity-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  display: none;
}

.toast-content {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.toast-warning .toast-content {
  border-color: #F59E0B;
  color: #FEF3C7;
}

.toast-success .toast-content {
  border-color: #10B981;
  color: #D1FAE5;
}

.toast-info .toast-content {
  border-color: #3B82F6;
  color: #DBEAFE;
}

/* ---------------- 9. 悬浮状态预览调试面板 (方便随时验收3种状态) ---------------- */
.activity-demo-tool {
  position: fixed;
  bottom: 25px;
  right: 20px;
  z-index: 99999;
  font-family: inherit;
}

.demo-tool-card {
  background: #1E293B;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  width: 250px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.demo-header {
  padding: 10px 14px;
  background: #0F172A;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-header .toggle-icon {
  font-size: 12px;
  color: #94A3B8;
}

.demo-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-btn {
  padding: 8px 10px;
  font-size: 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-align: left;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-demo-upcoming {
  background: rgba(245, 158, 11, 0.2);
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.btn-demo-upcoming:hover { background: rgba(245, 158, 11, 0.35); }

.btn-demo-ongoing {
  background: rgba(255, 103, 57, 0.2);
  color: #FF8F6B;
  border: 1px solid rgba(255, 103, 57, 0.5);
}
.btn-demo-ongoing:hover { background: rgba(255, 103, 57, 0.35); }

.btn-demo-ended {
  background: rgba(148, 163, 184, 0.2);
  color: #CBD5E1;
  border: 1px solid rgba(148, 163, 184, 0.4);
}
.btn-demo-ended:hover { background: rgba(148, 163, 184, 0.35); }

.btn-demo-reset {
  background: rgba(59, 130, 246, 0.2);
  color: #93C5FD;
  border: 1px solid rgba(59, 130, 246, 0.4);
}
.btn-demo-reset:hover { background: rgba(59, 130, 246, 0.35); }

/* 默认折叠面板只留头部，点击可展开 */
.demo-tool-card:not(.expanded) .demo-body {
  display: none;
}

/* ---------------- 10. 移动端自适应响应式 (Mobile Responsive) ---------------- */
@media screen and (max-width: 991px) {
  .activities-hero h1.hero-title {
    font-size: 30px;
  }
  .countdown-hub-card {
    padding: 20px 16px;
  }
  .digit-box {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }
  .timer-separator {
    font-size: 22px;
  }
  .quick-nav-bar {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -20px;
  }
  .seckill-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .perks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cloud-row-item {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .row-left, .row-specs, .row-right {
    width: 100%;
  }
  .row-right {
    justify-content: space-between;
  }
}

@media screen and (max-width: 768px) {
  .activities-hero {
    padding: 35px 0 50px 0;
  }
  .activities-hero h1.hero-title {
    font-size: 24px;
    margin-bottom: 10px;
  }
  .activities-hero p.hero-subtitle {
    font-size: 13px;
    margin-bottom: 20px;
  }
  .countdown-hub-card .hub-top {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .timer-digits-group {
    gap: 8px;
  }
  .digit-box {
    width: 50px;
    height: 52px;
    font-size: 24px;
    border-radius: 8px;
  }
  .digit-unit {
    font-size: 11px;
    margin-top: 4px;
  }
  .timer-separator {
    font-size: 18px;
    margin-bottom: 18px;
  }
  .banner-notice-bar {
    font-size: 12px;
  }

  .quick-nav-bar {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: -15px;
    margin-bottom: 30px;
  }
  .quick-nav-item {
    padding: 14px 12px;
  }
  .quick-nav-item .nav-title {
    font-size: 14px;
  }
  .quick-nav-item .nav-desc {
    font-size: 11px;
  }
  .quick-nav-item .nav-icon {
    display: none;
  }

  .floor-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .floor-title-box h3 {
    font-size: 20px;
  }
  .floor-subtitle {
    margin-left: 0;
    font-size: 12px;
  }

  .seckill-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .perks-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cloud-tab-nav .tab-item {
    padding: 8px 16px;
    font-size: 13px;
  }
  .row-specs {
    justify-content: space-between;
    gap: 10px;
  }
  .row-spec-col .spec-val {
    font-size: 15px;
  }

  .activity-demo-tool {
    bottom: 15px;
    right: 10px;
  }
  .demo-tool-card {
    width: 220px;
  }
}
