/* ============================================================
 * 首页视觉升级包（2026-10-20 第二阶段）
 *
 * 包含：
 * 1. Hero 背景与 CTA 按钮强化
 * 2. 产品卡片重构（排版、价格突出、交互）
 * 3. 新闻栏三列布局优化
 * 4. 快捷入口卡片美化
 *
 * 用法：在 theme-enhancements.css 后引入
 * ============================================================ */

/* ================= Hero 背景增强 ================= */

/* 背景几何体动画 */
@keyframes blobFloat {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.1); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes blobFloat2 {
  0% { transform: translate(0, 0) scale(0.9); }
  33% { transform: translate(-30px, 20px) scale(1); }
  66% { transform: translate(20px, -30px) scale(1.05); }
  100% { transform: translate(0, 0) scale(0.9); }
}

.tc-hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f7ff 0%, #f0f4ff 50%, #fffbf5 100%);
}

.home-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.3;
  mix-blend-mode: multiply;
}

.blob-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #165dff, #4080ff);
  top: -50px;
  right: 10%;
  animation: blobFloat 20s ease-in-out infinite;
}

.blob-2 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, #00b42a, #85ce61);
  bottom: -80px;
  left: 5%;
  animation: blobFloat2 25s ease-in-out infinite;
}

.grid-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(0deg, rgba(22, 93, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 93, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
}

.tc-hero-inner {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  width: 100%;
  padding: 60px 40px;
  display: flex;
  align-items: center;
  gap: 80px;
}

.tc-hero-copy {
  flex: 1;
  min-width: 300px;
}

/* ================= CTA 按钮强化 ================= */

.tc-hero-btns {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.tc-hero-btns .arco-btn {
  font-size: 16px;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(22, 93, 255, 0.15);
}

.tc-hero-btns .arco-btn-primary {
  background: linear-gradient(135deg, #165dff 0%, #4080ff 100%);
  border: none;
}

.tc-hero-btns .arco-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(22, 93, 255, 0.3);
}

.tc-hero-btns .arco-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(22, 93, 255, 0.25);
}

/* 辅助按钮 */
.tc-hero-btns .arco-btn:not(.arco-btn-primary) {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #e5e6eb;
  color: #1d2129;
}

.tc-hero-btns .arco-btn:not(.arco-btn-primary):hover {
  background: #ffffff;
  border-color: #165dff;
  color: #165dff;
  transform: translateY(-2px);
}

/* ================= 快捷入口卡片 ================= */

.dn-quick {
  background: #f7f8fa;
  padding: 60px 40px;
  border-top: 1px solid #e5e6eb;
}

.dn-quick-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.dn-quick-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e6eb;
  transition: all 300ms ease-out;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.dn-quick-item:hover {
  border-color: #165dff;
  box-shadow: 0 8px 24px rgba(22, 93, 255, 0.12);
  transform: translateY(-4px);
}

.dn-quick-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(22, 93, 255, 0.1), rgba(64, 128, 255, 0.1));
  border-radius: 8px;
  color: #165dff;
  font-size: 20px;
}

.dn-quick-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.dn-quick-text b {
  font-size: 15px;
  font-weight: 600;
  color: #1d2129;
}

.dn-quick-text em {
  font-size: 13px;
  font-style: normal;
  color: #86909c;
}

/* ================= 产品卡片重构 ================= */

.tc-sc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.tc-scard {
  position: relative;
  background: white;
  border: 1px solid #e5e6eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 300ms ease-out;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tc-scard:hover {
  border-color: #165dff;
  box-shadow: 0 12px 32px rgba(22, 93, 255, 0.15);
  transform: translateY(-8px);
}

.tc-scard-bg {
  position: relative;
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, rgba(22, 93, 255, 0.05), rgba(64, 128, 255, 0.05));
  overflow: hidden;
}

.tc-scard-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dn-card-art {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  font-size: 40px;
  color: #165dff;
  opacity: 0.9;
  transition: all 300ms ease-out;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(22, 93, 255, 0.15);
}

.tc-scard:hover .dn-card-art {
  transform: translate(-50%, -50%) scale(1.1);
  background: white;
  opacity: 1;
  color: #4080ff;
  box-shadow: 0 8px 20px rgba(22, 93, 255, 0.25);
}

.tc-scard-promo {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #ff7d00, #ffa500);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 8;
}

.tc-scard-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tc-scard-title {
  font-size: 16px;
  font-weight: 600;
  color: #1d2129;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.tc-scard-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tc-spec-chip {
  display: inline-block;
  padding: 4px 10px;
  background: #f2f3f5;
  border-radius: 6px;
  font-size: 12px;
  color: #4e5969;
  transition: all 200ms ease-out;
}

.tc-spec-chip.is-core,
.tc-spec-chip.is-mem,
.tc-spec-chip.is-bw {
  background: linear-gradient(135deg, rgba(22, 93, 255, 0.1), rgba(64, 128, 255, 0.05));
  color: #165dff;
  font-weight: 600;
}

.tc-scard:hover .tc-spec-chip {
  background: linear-gradient(135deg, rgba(22, 93, 255, 0.15), rgba(64, 128, 255, 0.1));
}

.tc-scard-extra {
  font-size: 12px;
  color: #86909c;
  margin: 8px 0;
  line-height: 1.4;
}

.tc-scard-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
  font-size: 12px;
}

.tc-scard-tag {
  background: #f2f3f5;
  color: #4e5969;
  padding: 2px 8px;
  border-radius: 4px;
}

.tc-scard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f0f1f3;
}

.tc-scard-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.tc-scard-price .cur {
  font-size: 14px;
  color: #ff7d00;
  font-weight: 600;
}

.tc-scard-price {
  font-size: 28px;
  font-weight: 700;
  color: #ff7d00;
  line-height: 1;
}

.tc-scard-price .unit {
  font-size: 12px;
  color: #86909c;
  font-weight: 400;
  margin-left: 4px;
}

.tc-scard-btn {
  flex: 0 0 auto;
  padding: 8px 16px;
  background: linear-gradient(135deg, #165dff, #4080ff);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms ease-out;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
}

.tc-scard-btn:hover:not(.disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22, 93, 255, 0.25);
}

.tc-scard-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.tc-scard.is-soldout {
  opacity: 0.7;
}

.tc-scard.is-soldout .tc-scard-btn {
  background: #c6c6c6;
}

/* ================= 新闻栏三列优化 ================= */

.tc-news-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.tc-news-column {
  opacity: 0;
  animation: fadeInLeft 600ms ease-out forwards;
}

.tc-news-column:nth-child(2) {
  animation-delay: 100ms;
}

.tc-news-column:nth-child(3) {
  animation-delay: 200ms;
}

.tc-news-title {
  font-size: 16px;
  font-weight: 700;
  color: #1d2129;
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #165dff;
  display: inline-block;
}

.tc-news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tc-news-item {
  padding: 12px 0;
  border-bottom: 1px solid #f0f1f3;
  transition: all 200ms ease-out;
}

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

.tc-news-link {
  display: block;
  font-size: 14px;
  color: #4e5969;
  text-decoration: none;
  line-height: 1.5;
  transition: color 200ms ease-out;
}

.tc-news-link:hover {
  color: #165dff;
  margin-left: 4px;
}

.tc-news-date {
  font-size: 12px;
  color: #86909c;
  margin-top: 4px;
}

/* ================= Tab 按钮组优化 ================= */

.tc-sc-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 32px;
  justify-content: center;
}

.tc-sc-tab {
  padding: 8px 18px;
  background: #f2f3f5;
  border: 2px solid transparent;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #4e5969;
  cursor: pointer;
  transition: all 200ms ease-out;
}

.tc-sc-tab:hover {
  background: rgba(22, 93, 255, 0.1);
  color: #165dff;
}

.tc-sc-tab.active {
  background: linear-gradient(135deg, #165dff, #4080ff);
  color: white;
  border-color: #165dff;
}

/* ================= 小卡片网格 ================= */

.tc-sc-consult {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.tc-ccard {
  background: white;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  padding: 16px;
  transition: all 200ms ease-out;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.tc-ccard:hover {
  border-color: #165dff;
  box-shadow: 0 6px 16px rgba(22, 93, 255, 0.1);
  transform: translateY(-4px);
}

.tc-ccard-title {
  font-size: 14px;
  font-weight: 600;
  color: #1d2129;
  margin: 0 0 8px 0;
}

.tc-ccard-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tc-ccard-specs .tc-spec-chip {
  font-size: 11px;
  padding: 2px 8px;
}

.tc-ccard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f0f1f3;
}

.tc-ccard-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-weight: 600;
}

.tc-ccard-price .cur {
  font-size: 12px;
  color: #165dff;
}

.tc-ccard-price .amount {
  font-size: 18px;
  color: #165dff;
}

.tc-ccard-price .unit {
  font-size: 11px;
  color: #86909c;
  font-weight: 400;
}

.tc-ccard-btn {
  padding: 6px 12px;
  background: #165dff;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease-out;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.tc-ccard-btn:hover:not(.disabled) {
  background: #0e42d2;
  transform: translateY(-1px);
}

.tc-ccard-btn.disabled {
  background: #c6c6c6;
  cursor: not-allowed;
}

/* ================= 响应式 ================= */

@media (max-width: 1024px) {
  .tc-hero-inner {
    gap: 40px;
    flex-direction: column;
  }

  .tc-hero-title {
    font-size: 40px;
  }

  .dn-hero-visual {
    display: none;
  }
}

@media (max-width: 768px) {
  .tc-hero {
    min-height: 500px;
  }

  .tc-hero-inner {
    padding: 40px 20px;
    gap: 20px;
  }

  .tc-hero-title {
    font-size: 28px;
  }

  .tc-hero-btns {
    gap: 12px;
  }

  .tc-hero-btns .arco-btn {
    font-size: 14px;
    padding: 10px 24px;
  }

  .tc-sc-grid {
    grid-template-columns: 1fr;
  }

  .dn-quick-inner {
    grid-template-columns: 1fr;
  }

  .tc-news-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .tc-sc-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ================= 深色模式适配 ================= */

@media (prefers-color-scheme: dark) {
  .tc-hero {
    background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
  }

  .blob {
    opacity: 0.15;
  }

  .dn-quick {
    background: #1a1a1a;
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  .dn-quick-item {
    background: #242424;
    border-color: rgba(255, 255, 255, 0.1);
  }

  .dn-quick-item:hover {
    border-color: #165dff;
    box-shadow: 0 8px 24px rgba(22, 93, 255, 0.2);
  }

  .tc-scard {
    background: #242424;
    border-color: rgba(255, 255, 255, 0.1);
  }

  .tc-scard:hover {
    border-color: #165dff;
  }

  .tc-scard-bg {
    background: linear-gradient(135deg, rgba(22, 93, 255, 0.1), rgba(64, 128, 255, 0.05));
  }

  .tc-scard-title {
    color: #e5e7eb;
  }

  .tc-spec-chip {
    background: rgba(255, 255, 255, 0.1);
    color: #a0aec0;
  }

  .tc-spec-chip.is-core,
  .tc-spec-chip.is-mem,
  .tc-spec-chip.is-bw {
    background: rgba(22, 93, 255, 0.2);
    color: #4080ff;
  }

  .tc-scard-foot {
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  .tc-ccard {
    background: #242424;
    border-color: rgba(255, 255, 255, 0.1);
  }

  .tc-ccard-title {
    color: #e5e7eb;
  }

  .tc-sc-tab {
    background: rgba(255, 255, 255, 0.1);
    color: #a0aec0;
  }

  .tc-sc-tab.active {
    background: linear-gradient(135deg, #165dff, #4080ff);
    color: white;
  }

  .tc-news-title {
    color: #e5e7eb;
    border-bottom-color: #4080ff;
  }

  .tc-news-link {
    color: #a0aec0;
  }

  .tc-news-link:hover {
    color: #4080ff;
  }
}
