/* ==========================================================================
   LY云计算 · 免费云电脑展示站   前端样式
   配色：樱花粉 + 白   纯平色块，无渐变   移动端优先
   ========================================================================== */

:root {
    --pink-50: #FFF7FA;
    --pink-100: #FFEDF3;
    --pink-200: #FFDCE7;
    --pink-300: #FFC2D6;
    --pink-400: #FF9DB8;
    --pink-500: #FF7A9C;
    --pink-600: #EE5680;
    --ink: #2A2A33;
    --ink-2: #6E6E7A;
    --ink-3: #9C9CA8;
    --line: #F2E7EC;
    --bg: #FFF9FB;
    --white: #FFFFFF;
    --r: 14px;
    --r-lg: 18px;
    --sh: 0 2px 8px rgba(255, 122, 156, .06);
    --sh-hover: 0 6px 20px rgba(255, 122, 156, .14);
    --head-h: 56px;
    --foot-h: 0px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* hidden 属性必须真的隐藏。
   浏览器默认的 [hidden]{display:none} 属于「浏览器默认样式」，
   会被作者样式里的 display:flex / display:block 覆盖掉（如 .list-loading、.lightbox），
   所以这里用 !important 兜底，避免出现「一直转圈」和「遮罩层关不掉」。 */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
                 "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
}

img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
ul, ol { list-style: none; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------- 顶部 ---------- */
.site-head {
    position: sticky; top: 0; z-index: 50;
    height: var(--head-h);
    background: var(--white);
    border-bottom: 1px solid var(--line);
}
.head-inner { height: var(--head-h); display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-mark {
    width: 30px; height: 30px; border-radius: 9px;
    background: var(--pink-500); color: #fff;
    font-size: 13px; font-weight: 700; letter-spacing: .5px;
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 auto;
}
.logo-text { font-size: 16px; font-weight: 600; letter-spacing: .5px; }
.head-nav { display: flex; gap: 6px; }
.head-nav a {
    padding: 7px 13px; border-radius: 999px;
    font-size: 14px; color: var(--ink-2);
}
.head-nav a.on { background: var(--pink-100); color: var(--pink-600); font-weight: 600; }

/* ---------- Hero ---------- */
.main { min-height: 60vh; }
.hero { background: var(--pink-50); padding: 26px 0 22px; border-bottom: 1px solid var(--line); }
.hero.slim { padding: 20px 0 18px; }
.hero-t { font-size: 24px; font-weight: 700; letter-spacing: .5px; }
.hero-s { margin-top: 6px; color: var(--ink-2); font-size: 13px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hs {
    flex: 1 1 calc(50% - 5px); min-width: 0;
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--r); padding: 10px 8px; text-align: center;
}
.hs b { display: block; font-size: 19px; color: var(--pink-600); font-variant-numeric: tabular-nums; }
.hs span { font-size: 11px; color: var(--ink-3); }

/* ---------- 公告 ---------- */
.notice {
    display: flex; align-items: flex-start; gap: 9px;
    margin-top: 14px; padding: 11px 12px;
    background: var(--pink-100); border-radius: var(--r);
    border-left: 3px solid var(--pink-400);
}
.notice.static { margin-top: 0; margin-bottom: 16px; }
.notice-tag {
    flex: 0 0 auto; font-size: 11px; line-height: 18px;
    padding: 0 7px; border-radius: 5px;
    background: var(--pink-500); color: #fff;
}
.notice p { flex: 1; font-size: 12.5px; color: var(--ink-2); }
.notice-x { flex: 0 0 auto; font-size: 20px; line-height: 18px; color: var(--pink-400); padding: 0 2px; }

/* ---------- 筛选 ---------- */
.filter-bar {
    position: sticky; top: var(--head-h); z-index: 40;
    background: var(--bg); padding: 12px 0 10px;
    border-bottom: 1px solid var(--line);
}
.search { display: flex; gap: 8px; }
.search input {
    flex: 1; height: 40px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: 10px;
    background: var(--white); outline: none;
    -webkit-appearance: none; appearance: none;
}
.search input:focus { border-color: var(--pink-300); }
.search input::placeholder { color: var(--ink-3); }
.search button {
    height: 40px; padding: 0 18px; border-radius: 10px;
    background: var(--pink-500); color: #fff; font-weight: 600;
}
.search button:active { background: var(--pink-600); }

.chips {
    display: flex; gap: 8px; margin-top: 10px;
    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: 0 0 auto; height: 32px; padding: 0 15px;
    border: 1px solid var(--line); border-radius: 999px;
    background: var(--white); color: var(--ink-2); font-size: 13px;
    white-space: nowrap; transition: .15s;
}
.chip.on { background: var(--pink-500); border-color: var(--pink-500); color: #fff; font-weight: 600; }

/* ---------- 列表 ---------- */
.list-wrap { padding: 16px 0 40px; position: relative; }
.list-loading {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 16px; color: var(--ink-3); font-size: 13px;
}
.spin {
    width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid var(--pink-200); border-top-color: var(--pink-500);
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pc-list { transition: opacity .18s; }
.pc-list.loading { opacity: .45; }

.pc-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

.pc-card {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--r-lg); overflow: hidden;
    box-shadow: var(--sh); transition: box-shadow .18s, transform .18s;
}
.pc-shot {
    display: block; position: relative;
    padding-top: 56.25%; background: var(--pink-50); overflow: hidden;
}
.pc-shot img {
    position: absolute; left: 0; top: 0; width: 100%; height: 100%;
    object-fit: cover;
}
.pc-status {
    position: absolute; left: 10px; top: 10px;
    font-size: 11px; line-height: 22px; padding: 0 9px;
    border-radius: 999px; color: #fff; background: var(--pink-500); font-weight: 600;
}
.pc-status.st-2 { background: #B9B3BC; }
.pc-status.st-0 { background: #CFC9CE; }
.pc-cat {
    position: absolute; right: 10px; top: 10px;
    font-size: 11px; line-height: 22px; padding: 0 9px;
    border-radius: 999px; color: var(--ink-2); background: rgba(255, 255, 255, .92);
}

.pc-body { padding: 13px 13px 12px; }
.pc-title { font-size: 16px; font-weight: 600; line-height: 1.4; }
.pc-title a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-sum {
    margin-top: 4px; font-size: 12.5px; color: var(--ink-2);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pc-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.pc-specs span {
    font-size: 11.5px; line-height: 21px; padding: 0 8px;
    border-radius: 6px; background: var(--pink-50); color: var(--pink-600);
}

.pc-links { margin-top: 11px; display: flex; flex-direction: column; gap: 7px; }
.pc-link {
    display: flex; align-items: center; gap: 9px;
    padding: 8px 9px; border-radius: 11px;
    background: var(--pink-50); border: 1px solid var(--line);
}
.pc-link.empty { color: var(--ink-3); }
.soft-badge {
    flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .2px;
}
.soft-badge.lg { width: 34px; height: 34px; border-radius: 11px; font-size: 13px; }
.soft-badge.xl { width: 46px; height: 46px; border-radius: 14px; font-size: 17px; }
.pl-main { flex: 1; min-width: 0; }
.pl-main em { display: block; font-style: normal; font-size: 11px; color: var(--ink-3); }
.pl-main b {
    display: block; font-size: 15px; font-weight: 600; letter-spacing: .6px;
    color: var(--ink); font-variant-numeric: tabular-nums;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pl-main i { display: block; font-style: normal; font-size: 11px; color: var(--ink-3); }

.btn-copy {
    flex: 0 0 auto; min-height: 34px; padding: 0 13px;
    border-radius: 9px; border: 1px solid var(--pink-300);
    color: var(--pink-600); font-size: 13px; font-weight: 600;
    background: var(--white); transition: .15s; white-space: nowrap;
}
.btn-copy:active { background: var(--pink-100); }
.btn-copy.solid { background: var(--pink-500); border-color: var(--pink-500); color: #fff; }
.btn-copy.solid:active { background: var(--pink-600); }
.btn-copy.lg { min-height: 42px; padding: 0 20px; border-radius: 11px; }
.btn-copy.done { background: var(--pink-100); border-color: var(--pink-300); color: var(--pink-600); }
.pc-link-more { font-size: 12.5px; color: var(--pink-600); padding-left: 3px; }

.pc-foot {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line);
    font-size: 12px; color: var(--ink-3);
}
.pc-more { color: var(--pink-600); font-weight: 600; }

/* ---------- 空状态 / 分页 ---------- */
.empty-box { text-align: center; padding: 52px 20px; }
.empty-box.big { padding: 70px 20px; }
.empty-ico {
    width: 54px; height: 54px; margin: 0 auto 14px;
    border-radius: 50%; background: var(--pink-100);
    border: 2px dashed var(--pink-300);
}
.empty-t { font-size: 15px; font-weight: 600; }
.empty-s { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.btn-primary {
    display: inline-block; margin-top: 16px; height: 40px; line-height: 40px;
    padding: 0 22px; border-radius: 10px;
    background: var(--pink-500); color: #fff; font-weight: 600; font-size: 14px;
}

.list-foot {
    margin-top: 20px; display: flex; flex-direction: column;
    align-items: center; gap: 12px;
}
.list-count { font-size: 12.5px; color: var(--ink-3); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pg {
    min-width: 34px; height: 34px; padding: 0 10px; border-radius: 9px;
    border: 1px solid var(--line); background: var(--white);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; color: var(--ink-2);
}
.pg.cur { background: var(--pink-500); border-color: var(--pink-500); color: #fff; font-weight: 600; }
.pg.dis { opacity: .38; pointer-events: none; }
.pg-dot { color: var(--ink-3); padding: 0 2px; line-height: 34px; }

/* ---------- 详情页 ---------- */
.detail-main { padding-bottom: 30px; }
.crumb {
    display: flex; align-items: center; gap: 6px;
    padding: 14px 0 10px; font-size: 12.5px; color: var(--ink-3);
    overflow: hidden; white-space: nowrap;
}
.crumb a { color: var(--ink-2); }
.crumb em { font-style: normal; color: var(--pink-600); }

.detail-grid { display: grid; grid-template-columns: 1fr; gap: 14px; padding-bottom: 8px; }

.shot-box {
    position: relative; border-radius: var(--r-lg); overflow: hidden;
    border: 1px solid var(--line); background: var(--white);
    padding-top: 56.25%;
}
.shot-box img {
    position: absolute; left: 0; top: 0; width: 100%; height: 100%;
    object-fit: cover;
}
.shot-zoom {
    position: absolute; right: 10px; bottom: 10px;
    font-size: 12px; line-height: 28px; padding: 0 12px;
    border-radius: 999px; background: rgba(42, 42, 51, .6); color: #fff;
}

.panel {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 16px 14px; margin-top: 14px;
    box-shadow: var(--sh);
}
.panel-t { font-size: 15px; font-weight: 700; }
.panel-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.panel-more { display: block; margin-top: 12px; font-size: 13px; color: var(--pink-600); font-weight: 600; }
.detail-sum { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }

.kv { margin-top: 12px; border-top: 1px solid var(--line); }
.kv-row {
    display: flex; gap: 14px; padding: 9px 0;
    border-bottom: 1px solid var(--line); font-size: 13px;
}
.kv-row:last-child { border-bottom: 0; }
.kv-row span { flex: 0 0 58px; color: var(--ink-3); }
.kv-row b { flex: 1; font-weight: 500; word-break: break-all; }
.st-text.st-1 { color: var(--pink-600); }
.st-text.st-2 { color: #9A94A0; }

.link-list { margin-top: 13px; display: flex; flex-direction: column; gap: 11px; }
.link-card {
    border: 1px solid var(--line); border-radius: var(--r);
    padding: 12px; background: var(--pink-50);
}
.link-card.empty { text-align: center; color: var(--ink-3); font-size: 13px; }
.link-head { display: flex; align-items: center; gap: 9px; }
.link-name { flex: 1; min-width: 0; }
.link-name b { font-size: 14px; }
.link-name em { display: block; font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.tag-main {
    font-size: 11px; line-height: 20px; padding: 0 8px; border-radius: 999px;
    background: var(--pink-500); color: #fff;
}
.code-line {
    display: flex; align-items: center; gap: 9px;
    margin-top: 9px; padding: 9px 10px;
    background: var(--white); border: 1px solid var(--line); border-radius: 11px;
}
.code-label { flex: 0 0 auto; font-size: 11.5px; color: var(--ink-3); }
.code-val {
    flex: 1; min-width: 0; font-size: 16px; font-weight: 700; letter-spacing: 1px;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.link-dl {
    display: block; margin-top: 9px; text-align: center;
    height: 38px; line-height: 38px; border-radius: 11px;
    background: var(--white); border: 1px solid var(--pink-300);
    color: var(--pink-600); font-size: 13px; font-weight: 600;
}

/* Windows 登录信息（用户名 / 密码） */
.win-info { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.win-info .code-line { margin-top: 0; }
.win-note { margin-top: 10px; font-size: 12px; color: var(--ink-3); line-height: 1.7; }

.steps { margin-top: 12px; }
.steps li {
    position: relative; padding: 0 0 14px 26px;
    border-left: 1px dashed var(--pink-200); margin-left: 8px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
    content: counter(step); counter-increment: step;
    position: absolute; left: -10px; top: 1px;
    width: 19px; height: 19px; border-radius: 50%;
    background: var(--pink-500); color: #fff;
    font-size: 11px; font-weight: 700; text-align: center; line-height: 19px;
}
.steps { counter-reset: step; }
.steps b { display: block; font-size: 13.5px; }
.steps span { display: block; font-size: 12.5px; color: var(--ink-2); }

.sec-t { font-size: 16px; font-weight: 700; margin: 24px 0 12px; }
.related { padding-bottom: 20px; }

/* ---------- 软件下载页 ---------- */
.soft-grid { display: grid; grid-template-columns: 1fr; gap: 14px; padding-top: 16px; }
.soft-card {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 15px 14px;
    box-shadow: var(--sh); display: flex; flex-direction: column;
}
.soft-top { display: flex; align-items: center; gap: 11px; }
.soft-name h3 { font-size: 16px; font-weight: 600; }
.soft-plat { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.soft-desc { margin-top: 10px; font-size: 13px; color: var(--ink-2); flex: 1; }
.soft-act { display: flex; gap: 9px; margin-top: 13px; }
.btn-dl {
    flex: 1; height: 40px; line-height: 40px; text-align: center;
    border-radius: 11px; background: var(--pink-500); color: #fff;
    font-size: 14px; font-weight: 600;
}
.btn-dl:active { background: var(--pink-600); }
.btn-ghost {
    flex: 0 0 84px; height: 40px; line-height: 38px; text-align: center;
    border-radius: 11px; border: 1px solid var(--line);
    color: var(--ink-2); font-size: 13px; background: var(--white);
}
.soft-url {
    margin-top: 9px; font-size: 11px; color: var(--ink-3);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.soft-help { margin: 18px 0 30px; }
.tips { margin-top: 10px; }
.tips li {
    position: relative; padding: 5px 0 5px 16px;
    font-size: 13px; color: var(--ink-2);
}
.tips li::before {
    content: ''; position: absolute; left: 2px; top: 13px;
    width: 5px; height: 5px; border-radius: 50%; background: var(--pink-400);
}

/* ---------- 底部 ---------- */
.site-foot {
    background: var(--white); border-top: 1px solid var(--line);
    padding: 24px 0 22px;
}
.foot-brand { display: flex; align-items: center; gap: 8px; }
.foot-desc { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.foot-contact { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--ink-3); }
.foot-contact a { color: var(--pink-600); }
.foot-bar {
    margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
    font-size: 12px; color: var(--ink-3);
}
.foot-tip { margin-top: 8px; font-size: 11.5px; color: var(--ink-3); line-height: 1.7; }

/* ---------- 移动端底部操作条 ---------- */
.mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; align-items: center; gap: 11px;
    padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--line);
    box-shadow: 0 -3px 14px rgba(255, 122, 156, .1);
}
.mb-info { flex: 1; min-width: 0; }
.mb-info em { display: block; font-style: normal; font-size: 11px; color: var(--ink-3); }
.mb-info b {
    display: block; font-size: 16px; letter-spacing: .8px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
body.has-mbar { padding-bottom: 72px; }
body.has-mbar .toast { bottom: 84px; }

/* ---------- 图片放大 ---------- */
.lightbox {
    position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 100;
    background: rgba(30, 24, 28, .94);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; padding: 20px;
}
.lightbox img { max-width: 100%; max-height: 76vh; border-radius: 10px; }
.lb-close {
    position: absolute; right: 14px; top: 14px;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255, 255, 255, .16); color: #fff; font-size: 24px; line-height: 34px;
}
.lb-tip { margin-top: 16px; color: rgba(255, 255, 255, .72); font-size: 12.5px; }

/* ---------- Toast ---------- */
.toast {
    position: fixed; left: 50%; bottom: 30px; z-index: 200;
    transform: translate(-50%, 12px);
    max-width: 82vw; padding: 10px 18px; border-radius: 999px;
    background: rgba(42, 42, 51, .92); color: #fff; font-size: 13.5px;
    opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
    text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   响应式：≥640 双列，≥900 三列 / 详情两栏，≥1100 无内边距调整
   ========================================================================== */
@media (min-width: 640px) {
    .wrap { padding: 0 20px; }
    .pc-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .soft-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-t { font-size: 28px; }
    .hero-stats { max-width: 520px; }
    .hs { flex: 1 1 0; }
    .list-foot { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 900px) {
    .pc-grid { grid-template-columns: repeat(3, 1fr); }
    .detail-grid { grid-template-columns: 1.12fr .88fr; gap: 18px; align-items: start; }
    .mobile-bar { display: none; }
    body.has-mbar { padding-bottom: 0; }
    body.has-mbar .toast { bottom: 30px; }
    .detail-right .panel:first-child { margin-top: 0; }
    .panel { padding: 18px 16px; }
}

@media (min-width: 1100px) {
    .hero { padding: 34px 0 28px; }
    .wrap { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
