/* Dark theme */ .theme-dark .header-components-search__form, html.dark .header-components-search__form, body.dark-theme .header-components-search__form { background: rgba(30, 30, 30, 0.9); } .theme-dark .header-components-search__input, html.dark .header-components-search__input, body.dark-theme .header-components-search__input { color: #eee; } /* ============================================================ * Layer 3: 图标卡片(模仿 zibll — 骑在 hero 底部边界线上) * * 关键技术:卡片在 DOM 中位于轮播之后, * 使用 margin-top: -40px 向上拉,使其骑在 hero 底部边界线上 * ============================================================ */ .header-components-card { position: relative; z-index: 10; margin-top: -40px; } .header-components-card__container { max-width: var(--container, 1280px); margin: 0 auto; padding: 0 16px; } /* 卡片行:flex 水平排列 */ .header-components-card__row { display: flex; gap: 10px; padding-top: 4px; /* 为 hover 上浮留出空间 */ } /* 每个卡片项等宽 */ .header-components-card__item { flex: 1; min-width: 0; } /* 共享背景模式:一个大卡片包裹 */ .header-components-card__wrap--shared { background: var(--surface-page); border-radius: 8px; padding: 10px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); border: 1px solid var(--color-line); } /* 独立背景模式:每个卡片有自己的背景 */ .header-components-card__item-bg { background: var(--surface-page); border-radius: 8px; padding: 12px 14px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); border: 1px solid var(--color-line); height: 100%; transition: transform 0.2s ease, box-shadow 0.2s ease; } .header-components-card__item-bg:hover { transform: none; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); } /* 毛玻璃效果 */ .filter-blur .header-components-card__wrap--shared, .filter-blur .header-components-card__item-bg { background: rgba(255, 255, 255, 0.75); backdrop-filter: saturate(3) blur(20px); -webkit-backdrop-filter: saturate(3) blur(20px); border-color: rgba(255, 255, 255, 0.3); } .theme-dark .filter-blur .header-components-card__wrap--shared, html.dark .filter-blur .header-components-card__wrap--shared, body.dark-theme .filter-blur .header-components-card__wrap--shared, .theme-dark .filter-blur .header-components-card__item-bg, html.dark .filter-blur .header-components-card__item-bg, body.dark-theme .filter-blur .header-components-card__item-bg { background: rgba(30, 30, 30, 0.75); border-color: rgba(255, 255, 255, 0.1); } /* ============================================================ * 单个图标卡片样式(模仿 zibll icon-cover-card) * 结构:左侧圆形图标 + 右侧标题/描述 * ============================================================ */ .icon-cover-card { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 6px; text-decoration: none; color: var(--color-ink); transition: background 0.15s ease; } a.icon-cover-card:hover { background: var(--surface-3); text-decoration: none; color: var(--color-ink); } /* 图标容器 — 圆形 */ .icon-cover-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; min-width: 40px; border-radius: 50%; font-size: 18px; flex-shrink: 0; } /* 方形图标 */ .icon-cover-icon.radius4 { border-radius: 6px; } /* 图标颜色类(模仿 zibll 的调色板) */ .icon-cover-icon.c-blue { background: rgba(66, 133, 244, 0.12); color: #4285f4; } .icon-cover-icon.c-yellow { background: rgba(251, 188, 4, 0.12); color: #fbbc04; } .icon-cover-icon.c-green { background: rgba(52, 168, 83, 0.12); color: #34a853; } .icon-cover-icon.c-red { background: rgba(234, 67, 53, 0.12); color: #ea4335; } .icon-cover-icon.c-orange { background: rgba(255, 152, 0, 0.12); color: #ff9800; } .icon-cover-icon.c-cyan { background: rgba(0, 188, 212, 0.12); color: #00bcd4; } .icon-cover-icon.c-pink { background: rgba(233, 30, 99, 0.12); color: #e91e63; } /* 渐变图标背景 */ .icon-cover-icon.jb-cyan { background: linear-gradient(135deg, #4facfe, #00f2fe); color: #fff; } .icon-cover-icon.jb-green { background: linear-gradient(135deg, #43e97b, #38f9d7); color: #fff; } .icon-cover-icon.jb-orange { background: linear-gradient(135deg, #fa709a, #fee140); color: #fff; } /* 文字区 */ .icon-cover-desc { flex: 1; min-width: 0; overflow: hidden; } .icon-cover-title { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--color-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .icon-cover-subtitle { font-size: 11px; color: var(--color-ink-4); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; } /* ============================================================ * 响应式 * ============================================================ */ @media (max-width: 767px) { .header-components-card { margin-top: -35px; } .header-components-card__row { flex-wrap: wrap; gap: 6px; } /* 移动端 2 列 */ .header-components-card__item { flex: 0 0 calc(50% - 3px); } .header-components-card__item-bg { padding: 10px; } .header-components-card__wrap--shared { padding: 6px; } .icon-cover-card { gap: 6px; padding: 6px; } .icon-cover-icon { width: 32px; height: 32px; min-width: 32px; font-size: 14px; } .icon-cover-title { font-size: 12px; } .icon-cover-subtitle { display: none; } } @media (max-width: 480px) { .icon-cover-card { gap: 4px; padding: 2px; } .icon-cover-icon { width: 28px; height: 28px; min-width: 28px; font-size: 12px; } } /* ============================================================ * Nav 透明模式(轮播可见时 nav 变透明) * ============================================================ */ /* ============================================================ * Zibll-aligned text/search structure overrides * ============================================================ */ .header-components__content.slide-text { width: calc(100% - 32px); max-width: 920px; top: 42%; z-index: 12; padding-top: 0; } .header-components__content.slide-text .slide-title { font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.2; margin: 0 0 12px; } .header-components__content.slide-text .slide-desc { max-width: 680px; margin: 0 auto; font-size: clamp(0.9rem, 1.4vw, 1.125rem); line-height: 1.6; color: rgba(255, 255, 255, 0.9); } .header-components-search { top: calc(50% + 56px); bottom: auto; max-width: 680px; padding: 0 20px; font-size: 16px; } .card-0 .header-components-search { top: calc(50% + 76px); } .header-components-search .search-input { max-width: 620px; margin: 0 auto; } .header-components-search .search-form { margin: 0; display: block; background: transparent; border-radius: 0; padding: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; } .header-components-search .search-form:focus-within { box-shadow: none; transform: none; } .header-components-search .line-form { position: relative; border-radius: 100px; padding: 0.35em 1em; background: rgba(255, 255, 255, 0.82); color: #555; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16); -webkit-backdrop-filter: saturate(5) blur(20px); backdrop-filter: saturate(5) blur(20px); } .filter-blur .header-components-search .line-form { background: rgba(255, 255, 255, 0.75); } /* ===== Container-level blur: PC/Mobile split ===== */ @media (min-width: 768px) { .has-blur-pc .header-components-card__wrap--shared, .has-blur-pc .header-components-card__item-bg { background: rgba(255, 255, 255, 0.75); backdrop-filter: saturate(3) blur(20px); -webkit-backdrop-filter: saturate(3) blur(20px); border-color: rgba(255, 255, 255, 0.3); } .has-blur-pc .header-components-search .line-form { background: rgba(255, 255, 255, 0.75); } .theme-dark .has-blur-pc .header-components-card__wrap--shared, html.dark .has-blur-pc .header-components-card__wrap--shared, .theme-dark .has-blur-pc .header-components-card__item-bg, html.dark .has-blur-pc .header-components-card__item-bg { background: rgba(30, 30, 30, 0.75); border-color: rgba(255, 255, 255, 0.1); } } @media (max-width: 767px) { .has-blur-mobile .header-components-card__wrap--shared, .has-blur-mobile .header-components-card__item-bg { background: rgba(255, 255, 255, 0.75); backdrop-filter: saturate(3) blur(20px); -webkit-backdrop-filter: saturate(3) blur(20px); border-color: rgba(255, 255, 255, 0.3); } .has-blur-mobile .header-components-search .line-form { background: rgba(255, 255, 255, 0.75); } .theme-dark .has-blur-mobile .header-components-card__wrap--shared, html.dark .has-blur-mobile .header-components-card__wrap--shared, .theme-dark .has-blur-mobile .header-components-card__item-bg, html.dark .has-blur-mobile .header-components-card__item-bg { background: rgba(30, 30, 30, 0.75); border-color: rgba(255, 255, 255, 0.1); } }