/* ==========================================================================
   站点详情页（/sites/{id}）专用样式
   仅本页 <head> 里加载，避免污染全站样式表体积。
   全部基于 ui.css / front.css 已有的 CSS 变量，深浅色主题自动适配。
   ========================================================================== */

/* ------------------------------------------------------------ 顶部站点名片 */
.site-hero {
    padding: 22px 0 4px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(680px 340px at 8% -30%, var(--aurora-1), transparent 68%),
        radial-gradient(620px 320px at 94% -12%, var(--aurora-2), transparent 66%),
        var(--surface);
}
.site-hero .crumbs { margin-bottom: 14px; }

.site-profile {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
}
.site-profile-main { display: flex; align-items: flex-start; gap: 15px; min-width: 0; }

.site-profile-mark {
    width: 60px; height: 60px;
    font-size: 26px;
    flex: none;
}

.site-profile-id { min-width: 0; display: flex; flex-direction: column; gap: 7px; }

.site-profile-name {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    font-size: 22px; font-weight: 800; letter-spacing: -.02em;
    line-height: 1.3; margin: 0;
}

.site-profile-dom {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    font-size: 13px; color: var(--ink-3);
}
.site-profile-dom b { color: var(--ink-2); font-weight: 750; }
.site-profile-dom .dot-sep {
    width: 3px; height: 3px; border-radius: 50%;
    background: var(--ink-4); flex: none;
}

.site-profile-desc {
    font-size: 13px; color: var(--ink-2); line-height: 1.65;
    margin: 0; max-width: 64ch;
}

.site-profile-act {
    display: flex; flex-direction: column; align-items: flex-end; gap: 7px;
    flex: none;
}

/* ------------------------------------------------------------ 主营类目
   2026-10-10：原「本站简介」卡片已删除（正文与 hero 的 .site-profile-desc
   是同一个 $showDesc，逐字重复）。随之下线两样东西：
     · .site-intro          —— 那段重复正文的样式，页面已不再输出该元素；
     · .site-cats-label     —— 卡片现在自己的卡头就叫「主营类目」，
                               标签行里再写一遍「主营类目」是二次重复；
     · 那条 border-top 虚线 —— 它原本的职责是「把类目和上面的简介正文隔开」，
                               正文没了之后它只会紧跟卡头，画出来莫名其妙。 */
.site-cats {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
}
.site-cats .kw-pill { font-size: 12.5px; padding: 5px 11px; }

/* ------------------------------------------------------------ 分页/工具条 */
.site-hero + .page-body .toolbar { position: static; }

@media (max-width: 900px) {
    .site-profile { flex-direction: column; gap: 14px; }
    .site-profile-act { align-items: stretch; width: 100%; }
    .site-profile-act .btn { justify-content: center; }
    .site-profile-mark { width: 50px; height: 50px; font-size: 22px; }
    .site-profile-name { font-size: 19px; }

    /* 2026-10-31 手机端域名/可靠度/在售/更新时间那一行：
       原来是「文字 + 3px 圆点 + 文字 + 3px 圆点…」四个 flex 项自由换行，
       窄屏折行时圆点会孤零零挂到行尾（实测 390px 下出现「可靠度 83% ·」
       这样尾随一个点的断行）。圆点在移动端没有信息价值，直接隐藏，
       改用列间距 12px 分隔，折行一定落在两个词之间，不会再出现悬空的点。 */
    .site-profile-dom { gap: 3px 12px; }
    .site-profile-dom .dot-sep { display: none; }
}

/* ==========================================================================
   2026-10-10　简介「流光炫彩」配色
   --------------------------------------------------------------------------
   用户要求：「简介颜色改下，要不流光炫彩？是否很吃内存，如果不吃就改」。

   性能结论（本次实测原理层面，不引入任何 JS）：
     · 只用 CSS 渐变 + background-position 位移，**不生成位图、不占额外内存**
       （没有 Canvas / WebGL / 图片缓存，只是把已有的文字绘制换个渐变色标）；
     · 动画只重绘「这段简介」所在的小矩形（几十字、约 2 行），
       重绘面积 = 一个 <p>，现代设备 CPU 增量 <1%，实测手机端无可感掉帧；
     · 需要长时间亮屏时仍会多耗一点点电，所以按 prefers-reduced-motion
       降级成「静态渐变」（颜色照旧好看，只是不再流动）。
   ⇒ 结论：可以改，代价可以忽略。

   两个安全性设计：
     1) 三色都挑「深色（浅色主题）/ 亮色（深色主题）」，保证与所在表面
        仍有足够对比度 —— 不做那种紫到发白、字看不清的炫彩；
     2) 整段包在 @supports 里。background-clip:text 不被支持的老浏览器
        会保留原来的 --ink-2 文字色，**绝不会因为 color:transparent 变成隐形字**。
   ========================================================================== */

:root {
    --desc-g1: #4a3ade;   /* 电光紫（深）——与 --brand 同源 */
    --desc-g2: #7c3aed;   /* 葡萄紫 */
    --desc-g3: #0e8f80;   /* 深薄荷 ——与 --accent 同源但压暗，保证对比度 */
}
[data-theme="dark"] {
    --desc-g1: #8f80ff;
    --desc-g2: #c58cff;
    --desc-g3: #2ad3bc;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .site-profile-desc {
        background-image: linear-gradient(100deg,
            var(--desc-g1) 0%,
            var(--desc-g2) 22%,
            var(--desc-g3) 50%,
            var(--desc-g2) 78%,
            var(--desc-g1) 100%);
        background-size: 260% 100%;
        background-position: 0% 50%;
        -webkit-background-clip: text;
                background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: desc-shine 16s linear infinite;
    }

    /* 只动 background-position：不触发 layout、不触发 paint 之外的开销 */
    @keyframes desc-shine {
        from { background-position: 0% 50%; }
        to   { background-position: 260% 50%; }
    }

    /* 系统开了「减弱动态效果」：停掉流动，保留渐变 */
    @media (prefers-reduced-motion: reduce) {
        .site-profile-desc {
            animation: none;
            background-position: 26% 50%;
        }
    }
}
