/* GPU 云主机页 - 全部样式限定在 .gc 内；主色取自模板变量 --primary-accent-color */
.gc {
	--p: var(--primary-accent-color, #6419ff);
	--p-dark: var(--primary-accent-color--darken, #4b00e5);
	--p-soft: #f1ebff;
	--ink: #272a2c;
	--body: #5b6470;
	--mute: #8a929c;
	--line: #e3e8ee;
	--bg: #f5f7fa;
	--ok: #00a651;
	color: var(--body); font-size: 15px; line-height: 1.75; background: #fff;
}
.gc *, .gc *::before, .gc *::after { box-sizing: border-box; }
.gc [hidden] { display: none !important; }
.gc h2, .gc h3, .gc p, .gc ul { margin: 0; padding: 0; }
.gc ul { list-style: none; }
.gc li::before { content: none; }
.gc h2, .gc h3 { color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 700; }
.gc-wrap { max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.gc-narrow { max-width: 860px; }
.gc-sec { padding: 84px 0; }
.gc-sec--alt { background: var(--bg); }
.gc-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.gc-head h2 { margin-bottom: 12px; font-size: 32px; line-height: 1.3; }
.gc-head p { font-size: 16px; color: var(--mute); }

/* 按钮 */
.gc .gc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 28px; border: 1.5px solid transparent; border-radius: 50px; font-size: 15px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.gc .gc-btn, .gc .gc-btn:hover, .gc .gc-btn:focus { outline: 0; box-shadow: none; }
.gc .gc-btn:focus-visible { box-shadow: 0 0 0 4px rgba(100, 25, 255, .22); }
.gc .gc-btn--primary { color: #fff; background: var(--p); }
.gc .gc-btn--primary:hover { color: #fff; background: var(--p-dark); }
.gc .gc-btn--ghost { color: var(--p); border-color: #d9ccfa; background: #fff; }
.gc .gc-btn--ghost:hover { color: var(--p); border-color: var(--p); background: var(--p-soft); }
.gc .gc-btn--light { color: var(--p); background: #fff; }
.gc .gc-btn--light:hover { color: var(--p-dark); background: var(--p-soft); }

/* 首屏 */
.gc-hero { padding: 72px 0 80px; background: var(--bg); }
.gc-hero-grid > * { min-width: 0; }
.gc-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
.gc-eyebrow { display: inline-block; margin-bottom: 18px; padding: 5px 14px; border-radius: 50px; color: var(--p); background: var(--p-soft); font-size: 13px; font-weight: 700; }
.gc-hero-text h2 { margin-bottom: 18px; font-size: 40px; line-height: 1.25; }
.gc-hero-text > p { max-width: 560px; font-size: 16px; }
.gc-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.gc-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 36px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.gc-stats b { display: block; color: var(--ink); font-size: 24px; line-height: 1.2; }
.gc-stats span { color: var(--mute); font-size: 13px; }

/* 首屏插画：一张显卡 */
.gc-hero-art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 360px; }
.gc-card { position: relative; width: 420px; max-width: 100%; height: 220px; padding: 22px; border-radius: 22px; background: #272a2c; box-shadow: 0 24px 50px rgba(39, 42, 44, .18); }
.gc-card .fans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; height: 100%; }
.gc-card .fan { position: relative; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #3b3f43 0 16%, #31353a 17% 100%); border: 4px solid #3f444a; }
.gc-card .fan::before, .gc-card .fan::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .22); }
.gc-card .fan::after { inset: 34%; border-style: solid; border-color: var(--p); }
.gc-card .bar { position: absolute; left: 22px; right: 22px; bottom: -12px; height: 12px; border-radius: 0 0 8px 8px; background: #d6dbe1; }
.gc-card .port { position: absolute; top: 26px; right: -8px; width: 8px; height: 70px; border-radius: 0 4px 4px 0; background: #c3c9d0; }
.gc-chip-f { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 50px; color: var(--ink); background: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 6px 20px rgba(39, 42, 44, .08); }
.gc-chip-f .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.gc-chip-f.c1 { top: 18px; left: 2%; }
.gc-chip-f.c2 { top: 56%; right: 0; }
.gc-chip-f.c3 { bottom: 24px; left: 6%; }

/* 选购区 */
.gc-buy-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.gc-steps { display: flex; flex-direction: column; gap: 20px; }
.gc-step { padding: 26px 28px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.gc-step > h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 17px; }
.gc-step > h3 .no { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px; border-radius: 50%; color: #fff; background: var(--p); font-size: 13px; line-height: 1; }
.gc-rf { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; font-weight: 400; }
.gc-rf small { color: var(--mute); font-size: 12.5px; }
.gc .gc-refresh { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; margin: 0; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 50px; color: var(--body); background: #fff; font: inherit; font-size: 13px; font-weight: 700; line-height: 1; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.gc .gc-refresh, .gc .gc-refresh:focus { outline: 0; box-shadow: none; }
.gc .gc-refresh:focus-visible { box-shadow: 0 0 0 4px rgba(100, 25, 255, .22); }
.gc .gc-refresh:hover:not(:disabled) { border-color: var(--p); color: var(--p); background: var(--p-soft); }
.gc .gc-refresh:disabled { cursor: default; color: var(--p); }
.gc .gc-refresh.spin svg { animation: gc-r .8s linear infinite; }
.gc .gc-sub { margin: 18px 0 10px; color: var(--ink); font-size: 14px; font-weight: 700; }
.gc .gc-step > h3 + .gc-sub { margin-top: 0; }
.gc .gc-hint { margin-top: 12px; color: var(--mute); font-size: 13px; }

.gc-onlyrow { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--body); font-size: 13.5px; cursor: pointer; user-select: none; }
.gc-onlyrow input { width: 16px; height: 16px; margin: 0; accent-color: var(--p); cursor: pointer; }
.gc-onlyrow em { color: var(--mute); font-style: normal; }

/* 显卡卡片 */
.gc-gpus { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.gc .gc-gpu { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; color: var(--body); background: #fff; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.gc .gc-gpu, .gc .gc-gpu:focus { outline: 0; box-shadow: none; }
.gc .gc-gpu:focus-visible { box-shadow: 0 0 0 4px rgba(100, 25, 255, .22); }
.gc .gc-gpu:hover:not(.off) { border-color: var(--p); }
.gc .gc-gpu.on { border-color: var(--p); background: var(--p-soft); }
.gc .gc-gpu .n { color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.3; }
.gc .gc-gpu .m { display: flex; align-items: center; gap: 8px; color: var(--mute); font-size: 12.5px; }
.gc .gc-gpu .m i { padding: 0 7px; border-radius: 50px; color: var(--p); background: var(--p-soft); font-size: 11.5px; font-style: normal; line-height: 18px; }
.gc .gc-gpu.on .m i { background: #fff; }
.gc .gc-gpu .p { margin-top: 4px; color: var(--mute); font-size: 12.5px; }
.gc .gc-gpu .p b { color: var(--p); font-size: 17px; }
.gc .gc-gpu .p em { color: #b0b7bf; font-style: normal; }
.gc .gc-gpu.off { cursor: not-allowed; background: var(--bg); }
.gc .gc-gpu.off .n { color: var(--mute); }

/* 选项按钮 */
.gc-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.gc .gc-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin: 0; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 10px; color: var(--body); background: #fff; font: inherit; font-size: 14px; font-weight: 700; line-height: 1; cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.gc .gc-chip, .gc .gc-chip:focus { outline: 0; box-shadow: none; }
.gc .gc-chip:focus-visible { box-shadow: 0 0 0 4px rgba(100, 25, 255, .22); }
.gc .gc-chip:hover { border-color: var(--p); color: var(--p); }
.gc .gc-chip.on { border-color: var(--p); color: var(--p); background: var(--p-soft); }
.gc .gc-chip svg, .gc .gc-chip img.os { flex: none; }
.gc .gc-chip img.os { display: block; width: 20px; height: 20px; object-fit: contain; }
.gc .gc-chip small { color: #e8590c; font-size: 11.5px; font-weight: 700; }

/* 镜像列表 */
.gc-imgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.gc .gc-img { position: relative; display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 13px 40px 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; color: var(--body); background: #fff; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.gc .gc-img, .gc .gc-img:focus { outline: 0; box-shadow: none; }
.gc .gc-img:focus-visible { box-shadow: 0 0 0 4px rgba(100, 25, 255, .22); }
.gc .gc-img:hover { border-color: var(--p); }
.gc .gc-img.on { border-color: var(--p); background: var(--p-soft); }
.gc .gc-img .t { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14.5px; font-weight: 700; line-height: 1.4; }
.gc .gc-img .e { display: -webkit-box; overflow: hidden; color: var(--mute); font-size: 12.5px; line-height: 1.55; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gc .gc-img .ck { position: absolute; top: 14px; right: 14px; display: none; width: 20px; height: 20px; border-radius: 50%; color: #fff; background: var(--p); align-items: center; justify-content: center; }
.gc .gc-img.on .ck { display: inline-flex; }
.gc .gc-img .tag { padding: 0 7px; border-radius: 4px; font-size: 11px; font-style: normal; font-weight: 700; line-height: 18px; color: #fff; background: var(--mute); }
.gc .gc-img .tag.new { background: var(--ok); }
.gc .gc-img .tag.hot { background: #e8590c; }
.gc .gc-img .tag.old { background: #b0b7bf; }

/* 汇总卡片 */
.gc-sum { position: sticky; top: 100px; padding: 26px 26px 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(39, 42, 44, .06); }
.gc-sum h3 { margin-bottom: 14px; font-size: 18px; }
.gc-rows { margin-bottom: 18px; padding: 4px 0; border-top: 1px solid var(--line); }
.gc-rows li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.gc-rows li:last-child { border-bottom: 0; }
.gc-rows .k { flex: none; color: var(--mute); }
.gc-rows .v { color: var(--ink); font-weight: 700; text-align: right; word-break: break-all; }
.gc-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px; min-height: 66px; margin-bottom: 16px; color: var(--p); transition: opacity .2s; }
.gc-price[data-s="load"] { opacity: .45; }
.gc-price .y { font-size: 18px; font-weight: 700; }
.gc-price b { font-size: 38px; line-height: 1.1; letter-spacing: -1px; }
.gc-price .u { margin-left: 4px; color: var(--mute); font-size: 14px; }
.gc-price small { flex-basis: 100%; margin-top: 2px; color: var(--mute); font-size: 12.5px; }
.gc-price .na { color: var(--mute); font-size: 14px; }
.gc-sum .gc-btn { width: 100%; }
.gc-sum .gc-tip { display: flex; gap: 6px; margin-top: 14px; color: var(--mute); font-size: 12.5px; line-height: 1.7; }
.gc-sum .gc-tip svg { flex: none; margin-top: 3px; }

.gc-banner { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 20px; padding: 12px 16px; border: 1px solid #ffe0b2; border-radius: 12px; color: #8a5a00; background: #fff8ec; font-size: 13.5px; }
.gc-banner svg { flex: none; margin-top: 3px; }
.gc-state { padding: 60px 0; color: var(--mute); text-align: center; }
.gc-spin { display: inline-block; width: 22px; height: 22px; margin-bottom: 10px; border: 3px solid var(--line); border-top-color: var(--p); border-radius: 50%; animation: gc-r .8s linear infinite; }
@keyframes gc-r { to { transform: rotate(360deg); } }

/* 功能 */
.gc-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gc-feat { padding: 28px 26px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .2s; }
.gc-feat:hover { border-color: var(--p); }
.gc-feat .ico, .gc-pane .ico { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 12px; color: var(--p); background: var(--p-soft); }
.gc-feat h3 { margin-bottom: 8px; font-size: 16.5px; line-height: 1.4; }
.gc-feat p { color: var(--mute); font-size: 13.5px; line-height: 1.8; }

/* 场景 */
.gc-scene { display: grid; grid-template-columns: 280px 1fr; border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.gc-tabs { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--bg); }
.gc-tab { display: flex; align-items: center; gap: 12px; margin: 0; padding: 20px 24px; border: 0; border-left: 3px solid transparent; border-radius: 0; color: var(--body); background: transparent; font: inherit; font-weight: 700; text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.gc-tab, .gc-tab:focus { outline: 0; box-shadow: none; }
.gc-tab:hover { color: var(--p); }
.gc-tab.on { border-left-color: var(--p); color: var(--p); background: #fff; }
.gc-panes { padding: 48px 52px; }
.gc-pane { display: none; align-items: flex-start; gap: 24px; }
.gc-pane.on { display: flex; }
.gc-pane .ico { flex: none; width: 64px; height: 64px; margin: 0; border-radius: 16px; }
.gc-pane h3 { margin-bottom: 4px; font-size: 24px; }
.gc-pane .sub { margin-bottom: 14px; color: var(--p); font-size: 14px; font-weight: 700; }
.gc-pane p:last-child { font-size: 15.5px; line-height: 1.9; }

/* FAQ */
.gc-faq { display: flex; flex-direction: column; gap: 14px; }
.gc-q { border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .2s; }
.gc-q.open { border-color: var(--p); }
.gc-q .q { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; margin: 0; padding: 20px 24px; border: 0; border-radius: 12px; color: var(--ink); background: transparent; font: inherit; font-size: 16px; font-weight: 700; text-align: left; cursor: pointer; }
.gc-q .q, .gc-q .q:focus { outline: 0; box-shadow: none; }
.gc-q .q:focus-visible { box-shadow: 0 0 0 4px rgba(100, 25, 255, .22); }
.gc-q .q i { position: relative; flex: none; width: 14px; height: 14px; }
.gc-q .q i::before, .gc-q .q i::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 2px; background: var(--p); transition: transform .25s; }
.gc-q .q i::after { transform: rotate(90deg); }
.gc-q.open .q i::after { transform: rotate(0); }
.gc-q .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.gc-q.open .a { grid-template-rows: 1fr; }
.gc-q .a p { min-height: 0; padding: 0 24px; overflow: hidden; color: var(--body); line-height: 1.9; }
.gc-q.open .a p { padding-bottom: 22px; }

/* 行动区 */
.gc-cta { padding: 72px 0; color: #fff; background: var(--p); text-align: center; }
.gc-cta h2 { margin-bottom: 10px; color: #fff; font-size: 32px; }
.gc-cta p { color: rgba(255, 255, 255, .85); font-size: 16px; }
.gc-cta .gc-actions { justify-content: center; }

@media (max-width: 991px) {
	.gc-hero-grid { grid-template-columns: minmax(0, 1fr); }
	.gc-hero-art { min-height: 300px; }
	.gc-buy-grid { grid-template-columns: 1fr; }
	.gc-sum { position: static; }
	.gc-feats { grid-template-columns: repeat(2, 1fr); }
	.gc-scene { grid-template-columns: 1fr; }
	.gc-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
	.gc-tabs::-webkit-scrollbar { display: none; }
	.gc-tab { flex: none; padding: 16px 20px; border-left: 0; border-bottom: 3px solid transparent; }
	.gc-tab.on { border-bottom-color: var(--p); }
}
@media (max-width: 620px) {
	.gc-sec { padding: 56px 0; }
	.gc-head { margin-bottom: 30px; }
	.gc-head h2, .gc-cta h2 { font-size: 26px; }
	.gc-hero { padding: 44px 0 52px; }
	.gc-hero-text h2 { font-size: 30px; }
	.gc-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
	.gc-actions .gc-btn { flex: 1; }
	.gc-card { height: 170px; padding: 16px; }
	.gc-card .fans { gap: 12px; }
	.gc-step { padding: 20px 18px; }
	.gc-step > h3 { flex-wrap: wrap; }
	.gc-rf small { display: none; }
	.gc-gpus { grid-template-columns: repeat(2, 1fr); }
	.gc-imgs { grid-template-columns: 1fr; }
	.gc-feats { grid-template-columns: 1fr; }
	.gc-panes { padding: 28px 22px; }
	.gc-pane.on { flex-direction: column; gap: 16px; }
	.gc-chip-f.c1 { left: 0; } .gc-chip-f.c2 { right: 0; } .gc-chip-f.c3 { left: 2%; }
	.gc-q .q { padding: 16px 18px; font-size: 15px; }
	.gc-q .a p { padding: 0 18px; }
}

/* 镜像不可用 / 无可用镜像 / 手机底部购买栏 */
.gc .gc-img.off { cursor: not-allowed; background: var(--bg); }
.gc .gc-img.off:hover { border-color: var(--line); }
.gc .gc-img.off .t { color: var(--mute); }
.gc .gc-btn.dis { color: #fff; background: #b8bec6; pointer-events: none; }
.gc .gc-warn { margin: -4px 0 12px; padding: 10px 12px; border-radius: 10px; color: #8a5a00; background: #fff8ec; font-size: 13px; line-height: 1.6; }
.gc-bar { display: none; }
@media (max-width: 991px) {
	.gc-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 90; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -6px 20px rgba(39, 42, 44, .08); transform: translateY(110%); transition: transform .25s; }
	.gc-bar.show { display: flex; transform: none; }
	.gc-bar .bp { min-width: 0; color: var(--p); line-height: 1.2; }
	.gc-bar .bp b { font-size: 22px; letter-spacing: -.5px; }
	.gc-bar .bp span { margin-left: 4px; color: var(--mute); font-size: 12.5px; }
	.gc-bar .gc-btn { flex: none; min-height: 44px; padding: 0 24px; }
}

/* 手机底栏出现时，把模板右下角的“回到顶部”按钮抬高，避免盖住购买按钮 */
@media (max-width: 991px) {
	body:has(.gc-bar.show) .back-to-top { bottom: 84px; }
}
