/* ========================================
   工具页样式
   ======================================== */

/* ========== 页面 Hero ========== */
.page-hero {
  background: linear-gradient(180deg, #F0F7FF 0%, #FFFFFF 100%);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(79, 195, 247, 0.20) 0%, transparent 70%);
  border-radius: 50%;
}

.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.page-hero-breadcrumb a {
  color: var(--text-soft);
  transition: color 0.2s;
}

.page-hero-breadcrumb a:hover { color: var(--primary); }

.page-hero h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  position: relative;
}

.page-hero p {
  font-size: 16px;
  color: var(--text-soft);
  max-width: 640px;
  position: relative;
  margin-bottom: 32px;
}

.tools-quick-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

.qs-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(21, 101, 192, 0.10);
  border-radius: var(--radius);
  min-width: 140px;
}

.qs-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.qs-label {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 500;
}

/* ========== 板块布局 ========== */
.tools-page {
  padding: 40px 0 64px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #EAF2FF 0%, #F4EEFF 52%, #E9FBF2 100%);
}

/* 玻璃拟态背景光斑 */
.tools-page::before,
.tools-page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
}

.tools-page::before {
  width: 520px;
  height: 520px;
  top: -140px;
  left: -160px;
  background: radial-gradient(circle, rgba(79, 195, 247, 0.42), transparent 70%);
}

.tools-page::after {
  width: 580px;
  height: 580px;
  bottom: -180px;
  right: -200px;
  background: radial-gradient(circle, rgba(171, 71, 188, 0.30), transparent 70%);
}

.tools-page > .container {
  position: relative;
  z-index: 1;
}

.section-block {
  margin-bottom: 64px;
}

.section-block-header {
  margin-bottom: 28px;
}

.block-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.pin-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #FF6B6B 0%, #FF4757 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(255, 71, 87, 0.30);
  animation: pin-pulse 2s ease-in-out infinite;
}

@keyframes pin-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.block-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
}

/* 分类圆点：已上线 / 即将上线 */
.cat-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.cat-dot-live {
  background: #2E8B57;
  box-shadow: 0 0 0 4px rgba(46, 139, 87, 0.16);
}

.cat-dot-soon {
  background: #F2994A;
  box-shadow: 0 0 0 4px rgba(242, 153, 74, 0.16);
}

.block-title-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
}

.block-sub {
  font-size: 14px;
  color: var(--text-soft);
  margin-left: 4px;
}

/* ========== 玻璃拟态产品卡 ========== */
.tool-glass-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.glass-tool {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.70) 0%, rgba(255, 255, 255, 0.38) 100%);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 14px 44px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.90),
    inset 0 0 0 1px rgba(255, 255, 255, 0.10);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.glass-tool::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  opacity: 0.9;
}

.glass-tool:hover {
  transform: translateY(-8px);
  box-shadow:
    0 24px 56px rgba(21, 101, 192, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  border-color: rgba(21, 101, 192, 0.45);
}

/* 重点突出产品卡：更大、带光晕描边与角标 */
.glass-tool.is-featured {
  grid-column: span 3;
  background: rgba(255, 255, 255, 0.64);
  border: 1.5px solid rgba(21, 101, 192, 0.30);
  box-shadow:
    0 14px 42px rgba(21, 101, 192, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.glass-tool.is-featured::after {
  content: "明星产品";
  position: absolute;
  top: 18px;
  right: -36px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #1565C0, #42A5F5);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 42px;
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.30);
}

.gt-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 18px;
  overflow: hidden;
  flex-shrink: 0;
}

.gt-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gt-icon.gt-icon-transparent {
  background: transparent;
  padding: 0;
}

.gt-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gt-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.gt-head h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.glass-tool.is-featured .gt-head h3 {
  font-size: 20px;
}

.gt-desc {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 14px;
  flex: 1;
}

.gt-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ========== 置顶主推区 ========== */
.featured-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

.featured-tool {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  display: block;
}

.featured-tool:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(21, 101, 192, 0.20);
}

.featured-tool-main {
  position: relative;
}

.featured-tool-main:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(21, 101, 192, 0.20);
  border-color: var(--primary);
}

.ft-cover {
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ft-icon {
  width: 100px;
  height: 100px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px;
  position: relative;
  z-index: 2;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.20);
}

.ft-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.30) 50%, transparent 100%);
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.ft-body {
  padding: 24px;
}

.ft-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.ft-head h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.ft-name-en {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.ft-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 16px;
}

.ft-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.ft-tags span {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--bg-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
}

.ft-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.ft-rating {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
}

.ft-action {
  font-size: 20px;
  color: var(--primary);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.featured-tool-main:hover .ft-action {
  transform: translateX(4px);
}

/* ========== 侧边工具卡 ========== */
.featured-grid-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.featured-tool-side {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  flex: 1;
}

.featured-tool-side:hover {
  border-color: var(--primary);
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.fts-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 6px;
}

.fts-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.fts-icon img.logo-no-invert {
  filter: none;
}

.fts-body {
  flex: 1;
  min-width: 0;
}

.fts-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.fts-head h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.fts-body p {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fts-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ========== 严选工具商店 ========== */
.tool-store-toolbar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  margin-bottom: 20px;
  display: flex;
  overflow-x: auto;
}

.store-filter {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  background: var(--bg-soft);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

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

.app-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(21, 101, 192, 0.20);
}

.app-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.app-icon-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

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

.app-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-vendor {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.app-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 600;
  margin-bottom: 8px;
}

.app-rating-star {
  color: #FFB300;
}

.app-desc {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.app-downloads {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.app-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.app-btn:hover {
  background: var(--primary-dark);
}

.app-flag {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
}

.app-flag-hot { background: #FFF3E0; color: #EF6C00; }
.app-flag-new { background: #E8F5E9; color: #2E7D32; }
.app-flag-staff { background: rgba(21, 101, 192, 0.10); color: var(--primary); }

/* ========== CTA ========== */
/* 底部 CTA 区块：毛玻璃背景 */
.cta-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(66, 165, 245, 0.22), transparent 42%),
    radial-gradient(circle at 82% 28%, rgba(255, 167, 38, 0.22), transparent 46%),
    radial-gradient(circle at 50% 90%, rgba(21, 101, 192, 0.14), transparent 55%),
    linear-gradient(135deg, #EFF6FB 0%, #F8FAFC 100%);
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(66, 165, 245, 0.18), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.tools-cta {
  position: relative;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 8px 32px rgba(15, 23, 42, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.tools-cta h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.tools-cta p {
  font-size: 16px;
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.tools-cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== 响应式 ========== */
@media (max-width: 960px) {
  .page-hero h1 { font-size: 32px; }
  .tool-glass-grid { grid-template-columns: repeat(2, 1fr); }
  .glass-tool { grid-column: span 1; }
  .glass-tool.is-featured { grid-column: span 2; }
  .block-title { font-size: 22px; }
  .tools-cta { padding: 40px 28px; }
  .tools-cta h2 { font-size: 26px; }
}

@media (max-width: 640px) {
  .page-hero { padding: 40px 0 32px; }
  .page-hero h1 { font-size: 28px; }
  .tools-quick-stats { gap: 8px; }
  .qs-item { padding: 10px 14px; min-width: auto; flex: 1; }
  .qs-num { font-size: 22px; }
  .qs-label { font-size: 11px; }
  .tool-glass-grid { grid-template-columns: 1fr; }
  .glass-tool,
  .glass-tool.is-featured { grid-column: span 1; }
  .ft-cover { height: 160px; }
  .ft-icon { width: 80px; height: 80px; border-radius: 22px; }
  .ft-body { padding: 20px; }
  .ft-head h3 { font-size: 18px; }
  .tools-cta { padding: 32px 20px; }
  .tools-cta h2 { font-size: 22px; }
}
