/* =====================================================================
 * 飞矿网首页 - 矿业 AI 应用中心（对齐 demo：feikuang-home-demo.html）
 * 前缀 fkh-（feikuang home）避免与 Destoon header/footer 冲突
 * 关联: template/default-new/index.htm
 * ===================================================================== */
:root {
  --fkh-bg: #FAFBFC;
  --fkh-surface: #FFFFFF;
  --fkh-surface-2: #F4F6F8;
  --fkh-border: #E5E9EE;
  --fkh-border-strong: #D1D7DF;
  --fkh-text: #0F172A;
  --fkh-text-2: #475569;
  --fkh-text-3: #8893A3;
  --fkh-primary: #0256FF;
  --fkh-primary-hover: #0048CC;
  --fkh-primary-soft: rgba(2,86,255,0.08);
  --fkh-green: #10B981;
  --fkh-green-soft: rgba(16,185,129,0.1);
  --fkh-purple: #8B5CF6;
  --fkh-purple-soft: rgba(139,92,246,0.1);
  --fkh-orange: #F97316;
  --fkh-orange-soft: rgba(249,115,22,0.1);
  --fkh-gold: #F59E0B;
  --fkh-gold-soft: rgba(245,158,11,0.1);
  --fkh-price: #E11D48;
  --fkh-price-soft: rgba(225,29,72,0.08);
}

.fkh-home-body { background: var(--fkh-bg); }

/* ---- Hero 精选应用 ---- */
.fkh-hero { background: var(--fkh-surface); border-bottom: 1px solid var(--fkh-border); }
.fkh-hero-inner { max-width: 1440px; margin: 0 auto; padding: 28px; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 16px; align-items: stretch; }
.fkh-hero-main { background: linear-gradient(135deg, #0256FF 0%, #0048CC 100%); border-radius: 14px; padding: 26px 28px; color: white; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 204px; }
.fkh-hero-main::before { content: ''; position: absolute; top: -50%; right: -20%; width: 60%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 60%); }
.fkh-hero-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 4px 10px; background: rgba(255,255,255,0.15); border-radius: 100px; width: fit-content; }
.fkh-hero-title { font-size: 26px; font-weight: 800; line-height: 1.25; margin: 12px 0 8px; }
.fkh-hero-sub { font-size: 13px; opacity: 0.85; max-width: 380px; line-height: 1.6; }
.fkh-hero-cta { display: flex; gap: 10px; margin-top: 16px; position: relative; z-index: 1; }
.fkh-btn-hero-primary { background: white; color: var(--fkh-primary); font-weight: 600; padding: 9px 18px; border-radius: 8px; font-size: 13px; text-decoration: none; }
.fkh-btn-hero-ghost { background: rgba(255,255,255,0.12); color: white; padding: 9px 18px; border-radius: 8px; font-size: 13px; border: 1px solid rgba(255,255,255,0.2); text-decoration: none; }

.fkh-hero-side { background: var(--fkh-surface); border: 1px solid var(--fkh-border); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; transition: all 0.2s; cursor: pointer; text-decoration: none; color: inherit; }
.fkh-hero-side:hover { border-color: var(--fkh-primary); box-shadow: 0 8px 24px rgba(2,86,255,0.08); transform: translateY(-2px); }
.fkh-hero-side-head { display: flex; align-items: center; gap: 10px; }
.fkh-hero-side-icon { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fkh-hero-side-tag { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 4px; }
.fkh-tag-new { background: var(--fkh-green-soft); color: var(--fkh-green); }
.fkh-tag-hot { background: var(--fkh-orange-soft); color: var(--fkh-orange); }
.fkh-tag-deploy { background: var(--fkh-purple-soft); color: var(--fkh-purple); }
.fkh-hero-side-name { font-size: 14px; font-weight: 700; }
.fkh-hero-side-desc { font-size: 12px; color: var(--fkh-text-2); line-height: 1.55; flex: 1; }
.fkh-hero-side-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px dashed var(--fkh-border); }
.fkh-hero-side-price { font-size: 14px; font-weight: 700; color: var(--fkh-price); }
.fkh-hero-side-price.free { color: var(--fkh-green); }
.fkh-hero-side-price.subscribe { color: var(--fkh-primary); }
.fkh-hero-side-cta { font-size: 12px; font-weight: 600; color: var(--fkh-primary); display: flex; align-items: center; gap: 3px; }

/* ---- 主体布局 ---- */
.fkh-layout { max-width: 1440px; width: 100%; margin: 0 auto; padding: 24px 28px 60px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.fkh-layout > *, .fkh-main { min-width: 0; }

/* ---- 左侧分类导航 ---- */
.fkh-sidebar { position: sticky; top: 84px; }
.fkh-side-block { background: var(--fkh-surface); border: 1px solid var(--fkh-border); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.fkh-side-title { font-size: 12px; font-weight: 700; color: var(--fkh-text-3); margin-bottom: 10px; letter-spacing: 0.04em; }
.fkh-side-list { display: flex; flex-direction: column; gap: 2px; }
.fkh-side-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 7px; font-size: 13px; color: var(--fkh-text-2); cursor: pointer; transition: all 0.15s; justify-content: space-between; }
.fkh-side-item:hover { background: var(--fkh-surface-2); color: var(--fkh-text); }
.fkh-side-item.active { background: var(--fkh-primary-soft); color: var(--fkh-primary); font-weight: 600; }
.fkh-side-item .fkh-count { font-size: 11px; color: var(--fkh-text-3); }
.fkh-side-item.active .fkh-count { color: var(--fkh-primary); }

.fkh-scene-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fkh-scene-chip { padding: 5px 10px; border-radius: 100px; font-size: 12px; background: var(--fkh-surface-2); color: var(--fkh-text-2); cursor: pointer; transition: all 0.15s; border: 1px solid transparent; }
.fkh-scene-chip:hover { color: var(--fkh-primary); }
.fkh-scene-chip.active { background: var(--fkh-primary); color: white; }

/* ---- 飞矿链小卡 ---- */
.fkh-fkl-mini { background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%); border-radius: 12px; padding: 16px; color: white; position: relative; overflow: hidden; }
.fkh-fkl-mini::after { content: ''; position: absolute; top: -30%; right: -30%; width: 80%; height: 160%; background: radial-gradient(circle, rgba(2,86,255,0.15), transparent 60%); }
.fkh-fkl-mini-eyebrow { font-size: 10px; color: rgba(255,255,255,0.6); letter-spacing: 0.08em; font-weight: 600; }
.fkh-fkl-mini-name { font-size: 15px; font-weight: 700; margin: 4px 0 6px; }
.fkh-fkl-mini-desc { font-size: 12px; color: rgba(255,255,255,0.75); line-height: 1.5; margin-bottom: 12px; position: relative; z-index: 1; }
.fkh-fkl-mini-cta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: white; padding: 6px 12px; background: var(--fkh-primary); border-radius: 6px; position: relative; z-index: 1; text-decoration: none; }

/* ---- 右侧应用区 ---- */
.fkh-apps-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.fkh-apps-tabs { display: flex; max-width: 100%; gap: 4px; background: var(--fkh-surface); padding: 4px; border-radius: 9px; border: 1px solid var(--fkh-border); overflow-x: auto; scrollbar-width: none; }
.fkh-apps-tabs::-webkit-scrollbar { display: none; }
.fkh-apps-tab { padding: 7px 14px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--fkh-text-2); white-space: nowrap; transition: all 0.15s; cursor: pointer; border: none; background: transparent; font-family: inherit; }
.fkh-apps-tab:hover { color: var(--fkh-text); }
.fkh-apps-tab.active { background: var(--fkh-primary); color: white; font-weight: 600; }
.fkh-apps-tab .fkh-count { font-size: 11px; opacity: 0.7; margin-left: 4px; }

/* ---- 区块 ---- */
.fkh-section { margin-bottom: 28px; }
.fkh-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.fkh-section-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.fkh-section-title .fkh-dot { width: 6px; height: 6px; border-radius: 50%; }
.fkh-section-sub { font-size: 12px; color: var(--fkh-text-3); font-weight: 400; margin-left: 6px; }
.fkh-section-more { font-size: 12px; color: var(--fkh-primary); font-weight: 500; text-decoration: none; }

/* ---- 应用卡片 ---- */
.fkh-app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fkh-app-card { background: var(--fkh-surface); border: 1px solid var(--fkh-border); border-radius: 12px; overflow: hidden; transition: all 0.2s; display: flex; flex-direction: column; position: relative; }
.fkh-app-card:hover { border-color: var(--fkh-primary); box-shadow: 0 10px 28px rgba(2,86,255,0.08); transform: translateY(-2px); }
/* 16:9 应用预览图 */
.fkh-app-cover { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.fkh-app-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.18) 100%); }
.fkh-app-cover-icon { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 14px; background: rgba(255,255,255,0.18); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; color: white; border: 1px solid rgba(255,255,255,0.3); box-shadow: 0 6px 16px rgba(0,0,0,0.18); }
.fkh-app-cover-icon svg { width: 28px; height: 28px; }
.fkh-app-cover-badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.fkh-app-cover-deco { position: absolute; z-index: 0; opacity: 0.2; }
.fkh-app-cover-deco-1 { top: -25%; right: -15%; width: 70%; height: 150%; border-radius: 50%; background: rgba(255,255,255,0.5); }
.fkh-app-cover-deco-2 { bottom: -35%; left: -15%; width: 60%; height: 120%; border-radius: 50%; background: rgba(255,255,255,0.35); }

.fkh-app-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.fkh-app-card-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.fkh-app-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fkh-app-icon svg { width: 18px; height: 18px; }
.fkh-app-meta-top { flex: 1; min-width: 0; }
.fkh-app-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.fkh-app-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.fkh-badge { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 4px; display: inline-flex; align-items: center; gap: 3px; }
.fkh-badge-package { background: var(--fkh-primary-soft); color: var(--fkh-primary); }
.fkh-badge-online { background: var(--fkh-green-soft); color: var(--fkh-green); }
.fkh-badge-private { background: var(--fkh-purple-soft); color: var(--fkh-purple); }
.fkh-badge-solution { background: var(--fkh-orange-soft); color: var(--fkh-orange); }
.fkh-badge-level { background: var(--fkh-gold-soft); color: var(--fkh-gold); }
.fkh-badge-new { background: var(--fkh-green-soft); color: var(--fkh-green); }
.fkh-app-desc { font-size: 12px; color: var(--fkh-text-2); line-height: 1.55; margin-bottom: 10px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fkh-app-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.fkh-app-tag { font-size: 11px; color: var(--fkh-text-3); background: var(--fkh-surface-2); padding: 3px 8px; border-radius: 4px; }
.fkh-app-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--fkh-border); }
.fkh-app-price { display: flex; flex-direction: column; gap: 1px; }
.fkh-price-main { font-size: 16px; font-weight: 800; color: var(--fkh-price); line-height: 1.1; }
.fkh-price-main.free { color: var(--fkh-green); }
.fkh-price-main.subscribe { color: var(--fkh-primary); }
.fkh-price-main.quote { color: var(--fkh-orange); font-size: 13px; }
.fkh-price-unit { font-size: 11px; color: var(--fkh-text-3); }
.fkh-price-label { font-size: 11px; color: var(--fkh-text-3); }

/* ---- 按钮 ---- */
.fkh-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 7px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s; border: 1px solid transparent; text-decoration: none; }
.fkh-btn-primary { background: var(--fkh-primary); color: white; font-weight: 600; }
.fkh-btn-primary:hover { background: var(--fkh-primary-hover); }
.fkh-btn-outline { border-color: var(--fkh-border-strong); color: var(--fkh-text); background: var(--fkh-surface); }
.fkh-btn-outline:hover { border-color: var(--fkh-primary); color: var(--fkh-primary); }
.fkh-btn-subscribe { background: var(--fkh-primary); color: white; font-weight: 600; }
.fkh-btn-subscribe:hover { background: var(--fkh-primary-hover); }
.fkh-btn-quote { background: var(--fkh-orange); color: white; font-weight: 600; }
.fkh-btn-quote:hover { background: #EA580C; }

/* ---- 空白 / 加载态 ---- */
.fkh-empty { padding: 40px 20px; text-align: center; color: var(--fkh-text-3); font-size: 13px; background: var(--fkh-surface); border: 1px dashed var(--fkh-border-strong); border-radius: 12px; }
.fkh-loading { padding: 40px 20px; text-align: center; color: var(--fkh-text-3); font-size: 13px; }

/* ---- 响应式 ---- */
@media (max-width: 1100px) {
  .fkh-layout { grid-template-columns: 1fr; }
  .fkh-sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .fkh-sidebar .fkh-side-block { margin-bottom: 0; }
  .fkh-hero-inner { grid-template-columns: 1fr 1fr; }
  .fkh-hero-main { grid-column: 1 / -1; }
  .fkh-app-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .fkh-hero-inner { grid-template-columns: 1fr; padding: 16px; }
  .fkh-layout { width: 100%; padding: 16px; overflow-x: hidden; }
  .fkh-sidebar { display: none; }
  .fkh-app-grid { grid-template-columns: 1fr; }
  .fkh-apps-header { align-items: flex-start; }
  .fkh-apps-tabs { width: 100%; }
  .fkh-app-card { width: 100%; min-width: 0; }
}