/* 首页布局独立于购买、账户及管理页面。 */
.home-page {
    --home-ink: #172c46;
    --home-blue: #245dd6;
    --home-line: #dce5ef;
    background: #fff;
}
.skip-link {
    position: fixed;
    top: 10px;
    left: 16px;
    z-index: 6000;
    padding: 10px 18px;
    border-radius: 8px;
    color: #fff;
    background: #245dd6;
    transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.home-page .hero {
    min-height: clamp(620px, 80svh, 780px);
    padding-bottom: 64px;
    background: #10243f;
}
.home-page .hero-bg {
    background: radial-gradient(ellipse at 80% 45%, #234c72 0%, transparent 65%), #10243f;
}
.home-page .hero-bg::after {
    background: linear-gradient(90deg, rgba(11, 28, 50, .78), rgba(11, 28, 50, .1));
}
.home-page .hero h1 { font-size: clamp(40px, 4.4vw, 62px); line-height: 1.2; }
.home-page .hero-title-accent { color: #a2d7f5; }
.home-page .hero .hero-lead { max-width: 470px; color: #c3d1df; font-size: 16px; }
.home-page .hero .primary-btn { background: #2563eb; box-shadow: 0 8px 24px #071d3759; }
.home-page .hero .secondary-btn { backdrop-filter: none; }
.home-page .hero-panel-frame { box-shadow: 0 24px 60px #06142666; }
.home-page .hero-service-chip { background: #193953; animation: none; }
.home-page .hero-service-chip small { color: #b3c8dc; }
.home-page .idc-topology { opacity: .65; }
.home-page .idc-racks { opacity: .55; }
.home-page .sidebar-btn { border: 1px solid #d5e2f1; }

.home-catalog { padding: 72px 0; background: #f5f8fc; border-bottom: 1px solid var(--home-line); }
.home-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.section-kicker { display: block; margin-bottom: 10px; color: var(--home-blue); font-size: 13px; font-weight: 600; letter-spacing: .16em; }
.home-section-heading h2 { color: var(--home-ink); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.4; letter-spacing: -.025em; }
.home-section-heading p { margin-top: 12px; color: #596a7f; font-size: 14px; }
.section-more { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; min-height: 44px; color: var(--home-blue); font-size: 14px; font-weight: 600; }
.section-more:hover { text-decoration: underline; text-underline-offset: 5px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.catalog-card { display: flex; flex-direction: column; min-width: 0; padding: 26px; border: 1px solid var(--home-line); border-radius: 14px; background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.catalog-card:hover { border-color: #85a9e5; box-shadow: 0 10px 28px #234a7012; transform: translateY(-3px); }
.catalog-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.catalog-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: var(--home-blue); background: #edf3ff; font-size: 18px; }
.catalog-count { padding: 4px 9px; color: #53657a; background: #f5f7fa; border-radius: 5px; font-size: 12px; }
.catalog-card h3 { color: var(--home-ink); font-size: 18px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.catalog-card p { margin: 10px 0 24px; color: #617084; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.catalog-card-link { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; border-top: 1px solid #edf1f6; color: var(--home-blue); font-size: 13px; font-weight: 600; }
.catalog-card-link i { transition: transform .2s; }
.catalog-card:hover .catalog-card-link i { transform: translateX(3px); }
.catalog-status { padding: 36px 20px; border: 1px dashed #c7d5e5; border-radius: 12px; margin-bottom: 20px; color: #53657a; text-align: center; font-size: 14px; }
.catalog-status[hidden] { display: none; }
.catalog-status button { margin-left: 12px; padding: 8px 12px; border: 1px solid #c7d5e5; border-radius: 6px; color: var(--home-blue); background: #fff; }
.catalog-status a { color: var(--home-blue); text-decoration: underline; }
.catalog-help { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; color: #5b6e83; font-size: 13px; }
.catalog-help > i { color: var(--home-blue); }
.catalog-help button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; border: 0; color: var(--home-blue); background: transparent; font-size: 13px; font-weight: 600; }

.home-page .services, .home-page .features, .home-page .about { padding: 72px 0; }
.home-page .section-header { margin-bottom: 36px; }
.home-page .section-header h2 { color: var(--home-ink); font-size: 32px; }
.home-page .section-header h2 em, .home-page .about-text h2 em { color: var(--home-blue); background: none; -webkit-text-fill-color: currentColor; font-style: normal; animation: none; }
.home-page .section-header h2::after { display: none; }
.home-page .section-header p { color: #617084; font-size: 14px; }
.home-page .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.home-page .service-card { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; text-align: left; border: 1px solid var(--home-line); border-radius: 14px; box-shadow: none; }
.home-page .service-card::before, .home-page .feature-item::before { content: none; }
.home-page .service-icon { width: 48px; height: 48px; margin: 0 0 22px; background: #edf3ff; color: var(--home-blue); border: 0; border-radius: 12px; box-shadow: none; font-size: 21px; }
.home-page .service-card:hover .service-icon { background: #e5efff; color: var(--home-blue); transform: none; }
.home-page .service-card h3 { font-size: 18px; }
.home-page .service-card p { color: #617084; font-size: 14px; line-height: 1.8; }
.home-page .service-link { margin-top: auto; color: var(--home-blue); min-height: 38px; }
.home-page .features { background: #f5f8fc; }
.home-page .features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.home-page .feature-item { padding: 12px 8px; background: transparent; border: 0; box-shadow: none; text-align: left; }
.home-page .feature-item:hover { transform: none; box-shadow: none; }
.home-page .feature-icon { margin: 0 0 14px; width: 40px; height: 40px; border-radius: 10px; color: #245dd6; background: #e5edfb; box-shadow: none; font-size: 19px; }
.home-page .feature-item h3 { font-size: 17px; }
.home-page .feature-item p { color: #617084; font-size: 14px; }
.home-page .about-content { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 64px; }
.home-page .about-image { max-width: 300px; margin: auto; }
.home-page .about-image img { height: auto; border-radius: 20px; box-shadow: none; }
.home-page .about-text h2 { font-size: 30px; color: var(--home-ink); }
.home-page .about-text p { font-size: 14px; line-height: 1.9; }
.home-page .about-stats { gap: 16px; }
.home-page .stat-number { color: var(--home-blue); background: none; -webkit-text-fill-color: currentColor; font-size: 26px; }
.home-page .contact { padding: 56px 0; background: #edf3fa; }
.home-page .contact-content { display: block; }
.home-page .contact-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.home-page .contact-item { margin: 0; gap: 14px; }
.home-page .contact-icon { width: 42px; height: 42px; flex: 0 0 42px; background: #fff; color: var(--home-blue); box-shadow: none; font-size: 18px; }
.home-page .contact-text h3 { font-size: 14px; }
.home-page .contact-text p { font-size: 15px; overflow-wrap: anywhere; }
.home-page .contact-text a:hover { color: var(--home-blue); text-decoration: underline; }
.home-page .contact-social { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 0; padding-top: 24px; border-top: 1px solid #d6e2ef; }
.home-page .contact-social h3 { margin: 0; font-size: 15px; }
.home-page .contact-action { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 1px solid #c7d8ec; border-radius: 8px; background: #fff; color: var(--home-blue); font-size: 13px; }
.home-page .contact-action:hover { border-color: #245dd6; }
.home-page .footer { border: 0; border-top: 1px solid #24344a; background: #101c2d; padding-top: 56px; }
.home-page .footer-logo .social-link { display: inline-flex; justify-content: center; width: 40px; height: 40px; margin: 0; border: 0; font-size: 16px; }
.home-page .footer .logo-text { background: none; -webkit-text-fill-color: #e7f0fa; }
.home-page .footer-bottom { color: #9baabe; }
.qrcode-dialog { position: fixed; inset: 0; margin: auto; width: min(360px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 16px; background: #fff; overflow-y: auto; }
.qrcode-dialog::backdrop { background: rgba(11, 24, 42, .65); }
.qrcode-dialog .qrcode-modal-box { max-width: none; box-shadow: none; }
.qrcode-dialog img { width: 100%; height: auto; }
.qrcode-dialog .qrcode-modal-box p { margin-top: 12px; color: #53657a; font-size: 13px; }

@media (max-width: 1080px) {
    .home-page .hero { min-height: auto; }
    .home-page .hero-sidebar { display: none; }
}
@media (max-width: 992px) {
    .home-page .hero { padding-bottom: 52px; }
    .home-page .hero .container { gap: 32px; }
    .home-page .hero-visual { max-width: 650px; }
    .home-page .about-content { grid-template-columns: 1fr; gap: 32px; }
    .home-page .about-image { max-width: 200px; }
}
@media (max-width: 768px) {
    .home-catalog, .home-page .services, .home-page .features, .home-page .about { padding: 48px 0; }
    .home-section-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 24px; }
    .catalog-grid, .home-page .services-grid, .home-page .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .catalog-card { padding: 20px; }
    .home-page .service-card { padding: 22px; }
    .home-page .contact-info { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 540px) {
    .home-page .hero { padding-top: calc(var(--header-height) + 40px); }
    .home-page .hero h1 { font-size: clamp(32px, 9vw, 44px); }
    .home-page .hero-eyebrow { font-size: 9px; letter-spacing: .08em; }
    .home-page .hero-buttons { flex-wrap: nowrap; gap: 10px; }
    .home-page .hero-buttons .btn { width: auto; flex: 1; padding: 12px; font-size: 14px; }
    .home-page .hero-assurances { gap: 10px 16px; }
    .home-page .hero-visual { padding-bottom: 0; }
    .catalog-grid, .home-page .services-grid { grid-template-columns: 1fr; }
    .catalog-card { padding: 22px; }
    .catalog-card-top { margin-bottom: 14px; }
    .catalog-card p { margin-bottom: 16px; }
    .home-page .section-header h2 { font-size: 26px; }
    .home-page .features-grid { gap: 24px 16px; }
    .home-page .feature-item { padding: 0; }
    .home-page .feature-item h3 { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .catalog-card, .catalog-card-link i { transition: none; }
    .qrcode-dialog .qrcode-modal-box { animation: none; }
}

/* 版面与触控优化：所有颜色继续使用上方及公共样式的原值。 */
.home-page .hero { display: block; min-height: 660px; padding: calc(var(--header-height) + 84px) 0 112px; overflow: visible; }
.home-page .hero .container { max-width: 1280px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; }
.home-page .hero-content { min-width: 0; }
.home-page .hero h1 { font-size: clamp(36px, 3.8vw, 54px); line-height: 1.25; letter-spacing: -.04em; }
.home-page .hero .hero-lead { max-width: 460px; line-height: 1.9; }
.home-page .hero-buttons { gap: 12px; margin-top: 32px; }
.home-page .hero .btn { min-height: 48px; padding: 12px 22px; border-radius: 8px; font-size: 15px; }
.home-page .hero .primary-btn:hover, .home-page .hero .secondary-btn:hover { transform: none; }
.home-page .hero-assurances { gap: 12px 24px; margin-top: 28px; }
.home-page .hero-visual { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; min-width: 0; margin: 0; padding: 0; order: initial; }
.home-page .hero-panel-frame { grid-column: 1 / -1; border-radius: 12px; }
.home-page .hero-panel-top { min-height: 44px; height: auto; padding: 10px 16px; font-size: 13px; }
.home-page .hero-service-chip { position: static; display: flex; min-width: 0; padding: 12px; }
.home-page .hero-service-chip strong { font-size: 14px; }
.home-page .hero-service-chip small { font-size: 12px; }
.home-page .hero-sidebar { display: flex; top: auto; right: 32px; bottom: 24px; transform: none; flex-direction: row; gap: 8px; }
.home-page .sidebar-btn { flex-direction: row; gap: 7px; width: auto; min-height: 44px; height: auto; padding: 10px 14px; border-radius: 8px; }
.home-page .sidebar-btn i { font-size: 14px; margin: 0; }
.home-page .sidebar-btn:hover { transform: none; }
.catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.catalog-card:hover { transform: none; }
.qrcode-modal-close { width:44px; height:44px; }
@media (max-width: 1080px) {
    .home-page .hero .container { gap: 32px; }
    .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
    .home-page .hero { min-height: auto; padding-top: calc(var(--header-height) + 48px); padding-bottom: 48px; }
    .home-page .hero .container { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .home-page .hero-visual { width: 100%; max-width: 650px; }
    .home-page .hero-sidebar { position: static; margin: 28px 20px 0; }
}
@media (max-width: 540px) {
    .home-page .hero { padding-top: calc(var(--header-height) + 40px); }
    .home-page .hero h1 { font-size: clamp(32px, 9vw, 44px); }
    .home-page .hero-eyebrow { font-size: 10px; letter-spacing: .04em; }
    .home-page .hero-buttons { flex-wrap: nowrap; gap: 10px; }
    .home-page .hero-buttons .btn { width: auto; flex: 1; padding: 12px; font-size: 14px; }
    .home-page .hero-assurances { gap: 10px 16px; }
    .home-page .hero-panel-top { min-height: 40px; padding: 8px 12px; font-size: 12px; }
    .home-page .hero-service-chip { gap: 8px; align-items: flex-start; }
    .home-page .hero-service-chip > i { width: 24px; height: 28px; font-size: 16px; }
    .home-page .hero-service-chip small { line-height: 1.7; }
    .home-page .hero-sidebar { margin-left: 16px; margin-right: 16px; }
    .catalog-grid { grid-template-columns: minmax(0, 1fr); }
}
