/* qingyun-home · 独立宣传站样式（v2，2026-11-15）
 * 基于源站 css/app.css 视觉语言扩展：导航/hero/区块节奏/卡片 */

/* —— 全局 —— */
html { scroll-behavior: smooth; }
body.bg-color { background-color: rgb(243, 243, 245, 1); }
a { text-decoration: none !important; }
img { max-width: 100%; }

/* —— 导航 —— */
.qy-nav { background-color: rgba(33, 37, 41, 0.95); }
.qy-nav .qy-logo { filter: brightness(1.1); }
.qy-nav .nav-link { color: rgba(255,255,255,0.85); }
.qy-nav .nav-link:hover,
.qy-nav .nav-link:focus { color: #fff; }

/* —— Hero —— */
.qy-hero {
    min-height: 88vh;
    padding-top: 4rem;
    background: linear-gradient(135deg, #1f2a44 0%, #2c4a7c 55%, #3a6ea5 100%);
}
.qy-hero-logo { width: 4.5rem; height: 4.5rem; }
.qy-hero-sub { opacity: 0.85; }

/* —— Hero 分栏（v2.2：左 30% 企业形象 · 右 70% 项目动态速览） —— */
.qy-hero-split { display: flex; align-items: center; gap: 2.5rem; }
.qy-hero-left { flex: 0 0 30%; max-width: 30%; min-width: 0; }
.qy-hero-right { flex: 1 1 70%; min-width: 0; }
/* 降级态（速览块隐藏：API 不可达/加载中）——左栏放开占满，免 30% 窄条 */
.qy-hero-split.qy-solo .qy-hero-left { flex: 0 0 100%; max-width: 100%; }

/* 左栏排版（logo 已去）：公司名素白大字一行；AI 味下放双标语——
   渐变流光字＋token 分词彩色下划线 loop（主标青蓝紫谱居左、副标紫粉青谱居右） */
.qy-hero-left h1 {
    font-size: clamp(1.2rem, 1.9vw, 1.75rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.3;
    white-space: nowrap;
    color: #fff;
    margin-bottom: 2.9rem;
}
.qy-hero-left .qy-hero-lead,
.qy-hero-left .qy-hero-sub {
    --tok-slot: 1.3s;
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: qy-name-flow 7s ease-in-out infinite alternate;
}
.qy-hero-left .qy-hero-lead {
    font-size: clamp(0.85rem, 0.75rem + 0.45vw, 1.1rem);
    letter-spacing: 0.03em;
    margin-bottom: 1rem; /* 原 0.5——主副标间距扩大一倍 */
    text-align: left;
    background-image: linear-gradient(90deg, #22d3ee 0%, #60a5fa 45%, #a78bfa 100%);
}
.qy-hero-left .qy-hero-sub {
    font-size: 0.85rem;
    margin-bottom: 2.5rem;
    text-align: right;
    background-image: linear-gradient(90deg, #a78bfa 0%, #f472b6 50%, #22d3ee 100%);
    animation-direction: alternate-reverse;
}
@keyframes qy-name-flow {
    from { background-position: 0% 50%; }
    to   { background-position: 100% 50%; }
}
/* 词元下划线（真分词自适应：任意 --tok-n/--tok-i 皆可，顺序即句序）
   行内片段 + box-decoration-break:clone——折行按字续排、每片段线克隆不断；
   条带 300% 宽自右向左扫入（读序扫光），扫毕留光驻留至循环末 */
.qy-tok {
    background-image: linear-gradient(90deg, var(--ua, #22d3ee), var(--ub, #60a5fa));
    background-size: 300% 2px;
    background-repeat: no-repeat;
    background-position: 200% 100%;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    padding-bottom: 0.2em;
    animation: qy-tok-flow calc(var(--tok-n, 8) * var(--tok-slot, 1.3s)) linear infinite;
    animation-delay: var(--tok-d, 0s);
}
@keyframes qy-tok-flow {
    0%        { background-position-x: 200%; opacity: 0; }
    3%        { opacity: 1; }
    9%        { background-position-x: -200%; }
    12%       { opacity: 0.5; }
    93%       { opacity: 0.5; }
    98%, 100% { opacity: 0; background-position-x: 200%; }
}
@media (prefers-reduced-motion: reduce) {
    .qy-hero-left h1,
    .qy-hero-left .qy-hero-lead,
    .qy-hero-left .qy-hero-sub,
    .qy-hero-ai { animation: none; }
    .qy-tok { animation: none; background-position: 0 100%; opacity: 0.6; }
}
.qy-hero-left .btn { font-size: 0.95rem; padding: 0.45rem 1.1rem; }

/* CTA 行：按钮 + AI擎云 徽字（字号同主标语；字色取首词元青端，渐变流转同相） */
.qy-hero-cta { display: flex; align-items: center; gap: 1.5rem; }
.qy-hero-ai {
    font-size: clamp(0.85rem, 0.75rem + 0.45vw, 1.1rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    background: linear-gradient(90deg, #22d3ee 0%, #60a5fa 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: qy-name-flow 7s ease-in-out infinite alternate;
}

/* 右栏速览面板：玻璃拟态融入深底（v2.3——去白板贴片感）
   文字全套深底浅字：名称浅蓝、正文白系梯度、元信息半透 */
.qy-hero .qy-panel {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.75rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.18);
    overflow: hidden;
}
.qy-hero .qy-panel-head {
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.88rem;
    letter-spacing: 0.05em;
}
.qy-hero .qy-panel-head .qy-count {
    color: rgba(255, 255, 255, 0.65);
    border-color: rgba(255, 255, 255, 0.3);
    background: transparent;
}
.qy-hero .qy-repo-list,
.qy-hero .qy-activity-list {
    max-height: 20rem;
    font-size: 0.9rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}
.qy-hero .qy-repo-list::-webkit-scrollbar,
.qy-hero .qy-activity-list::-webkit-scrollbar { width: 5px; }
.qy-hero .qy-repo-list::-webkit-scrollbar-track,
.qy-hero .qy-activity-list::-webkit-scrollbar-track { background: transparent; }
.qy-hero .qy-repo-list::-webkit-scrollbar-thumb,
.qy-hero .qy-activity-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 3px;
}
.qy-hero .qy-repo-item { border-bottom-color: rgba(255, 255, 255, 0.08); }
.qy-hero .qy-repo-item:hover,
.qy-hero .qy-act-item:hover { background: rgba(255, 255, 255, 0.06); }
.qy-hero .qy-repo-name { color: #9cc3ff; }
.qy-hero .qy-repo-desc { color: rgba(255, 255, 255, 0.66); }
.qy-hero .qy-repo-meta { color: rgba(255, 255, 255, 0.55); }
.qy-hero .qy-ic { color: rgba(255, 255, 255, 0.6); }
.qy-hero .qy-muted { color: rgba(255, 255, 255, 0.5); }
.qy-hero .qy-badge {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.28);
    background: transparent;
}
.qy-hero .qy-act-item { border-bottom-color: rgba(255, 255, 255, 0.08); }
.qy-hero .qy-act-text { color: rgba(255, 255, 255, 0.88); }
.qy-hero .qy-act-repo { color: #9cc3ff; }
.qy-hero .qy-ref {
    color: rgba(255, 255, 255, 0.66);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}
.qy-hero .qy-act-summary { color: rgba(255, 255, 255, 0.6); }
.qy-hero .qy-act-time { color: rgba(255, 255, 255, 0.42); }
.qy-hero .qy-empty { color: rgba(255, 255, 255, 0.55); }

@media (max-width: 991.98px) {
    .qy-hero-split { flex-direction: column; gap: 2rem; }
    .qy-hero-left { flex: 0 0 auto; max-width: 100%; }
    .qy-hero-right { flex: 0 0 auto; width: 100%; }
}

/* —— 区块节奏 —— */
.qy-section { padding: 4.5rem 0; scroll-margin-top: 4rem; }
.qy-section.qy-alt { background-color: #fff; }
.qy-title {
    font-weight: bold;
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
}
.qy-title::after {
    content: "";
    display: block;
    width: 3rem;
    height: 0.2rem;
    margin: 0.6rem auto 0;
    border-radius: 0.1rem;
    background: linear-gradient(90deg, #2c4a7c, #3a6ea5);
}
.qy-lead-text { max-width: 46rem; color: #555; font-size: 1rem; }

/* —— 卡片 —— */
.qy-card { border: 0; border-radius: 0.6rem; transition: transform 0.25s, box-shadow 0.25s; }
.qy-card:hover { transform: translateY(-0.25rem); box-shadow: 0 0.75rem 1.5rem rgba(0,0,0,0.12) !important; }
.qy-icon { width: 5rem; height: 5rem; }

/* —— 产品展示 —— */
.qy-product { padding: 2.5rem 0; }
.qy-shot {
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1.25rem rgba(0,0,0,0.15);
    background: #fff;
}

/* —— 页脚 —— */
.qy-footer { background-color: #1f2a44; }
.qy-footer .qy-link { color: rgba(255,255,255,0.85); margin: 0 0.35rem; }
.qy-footer .qy-link:hover { color: #fff; }
.qy-hr { border-color: rgba(255,255,255,0.25); opacity: 0.6; }

/* —— 联系我们清单（旧版联系方式全套：地址＋执照＋备案） —— */
.qy-contact { max-width: 42rem; text-align: left; }
.qy-contact-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem 0.75rem;
    padding: 0.55rem 0.25rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
    font-size: 0.95rem;
}
.qy-contact-item:last-child { border-bottom: 0; }
.qy-contact-label {
    flex: 0 0 2.8rem;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.92);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 2em;
    padding: 0.05rem 0;
}
.qy-contact-beian { display: inline-flex; flex-wrap: wrap; gap: 0.25rem 0; }

/* —— 沿用源站遗风 —— */
.fontcoler { color: #EEE8AA; }
