/* 护航云 C 端统一视觉：基础设施工作台 */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --secondary: #2563eb;
    --accent: #1d4ed8;
    --success: #16845b;
    --warning: #b76a12;
    --danger: #c53b3b;
    --price: #172033;
    --bg-dark: #f3f5f8;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-input: #f8fafc;
    --text-primary: #172033;
    --text-secondary: #526075;
    --text-muted: #8490a3;
    --border-color: #dfe4ec;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .04);
    --shadow-lg: 0 8px 24px rgba(15, 23, 42, .08);
    --transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
    --font-main: 'Noto Sans SC', 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-padding-top: 72px; }
body { background: var(--bg-dark); letter-spacing: 0; }
.bg-gradient { display: none !important; }
.container { max-width: 1320px; padding-inline: 28px; }

/* 全站导航 */
.navbar {
    min-height: 64px;
    padding: 8px 0;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.navbar.scrolled { box-shadow: 0 2px 10px rgba(15, 23, 42, .05); border-bottom-color: var(--border-color); }
.logo { gap: 9px; font-size: 1.13rem; font-weight: 750; letter-spacing: -.02em; }
.logo:hover { color: var(--text-primary); transform: none; }
.logo-icon,
.logo-badge,
.brand-logo .logo-badge,
.card-brand .logo-badge {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    background: #172033 !important;
    box-shadow: none !important;
}
.logo-icon::before { display: none; }
.logo-icon svg,
.logo-badge svg { width: 19px !important; height: 19px !important; }
.nav-links { gap: 2px; }
.nav-links a { padding: 8px 13px; border-radius: 6px; font-size: .9rem; }
.nav-links a::after { display: none; }
.nav-links a:hover { color: var(--text-primary); background: #f1f4f8; }
.nav-links a.active { color: var(--primary-dark); background: var(--primary-light); }
.nav-auth { gap: 8px; }

/* 控件 */
.btn { min-height: 40px; padding: 9px 17px; border-radius: 7px; font-size: .9rem; font-weight: 600; }
.btn-primary,
.tech-btn {
    color: #fff;
    background: var(--primary) !important;
    border: 1px solid var(--primary) !important;
    box-shadow: none !important;
}
.btn-primary:hover,
.tech-btn:hover:not(:disabled) { color: #fff; background: var(--primary-dark) !important; transform: none !important; box-shadow: none !important; }
.tech-btn::after { display: none !important; }
.btn-secondary { background: #fff; border: 1px solid #cfd6e1; color: var(--text-primary); }
.btn-secondary:hover { background: #f6f8fb; border-color: #aeb8c7; color: var(--text-primary); transform: none; }
.form-input,
.glass-card .tech-input { min-height: 44px; border-radius: 7px !important; background: #fff !important; border-color: #cfd6e1 !important; }
.form-input:focus,
.glass-card .tech-input:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12) !important; }
:where(a, button, input, select, textarea):focus-visible { outline: 3px solid rgba(37, 99, 235, .24); outline-offset: 2px; }

/* 首页：左侧说明 + 右侧真实资源状态面板 */
.hero {
    min-height: 520px;
    padding: 74px 0 64px;
    background: #eef2f6 !important;
    background-image: none !important;
    border-bottom: 1px solid var(--border-color);
}
.hero .container { display: grid; grid-template-columns: minmax(0, 1fr) 410px; align-items: center; gap: 88px; }
.hero-content { max-width: 650px; }
.hero-tag {
    margin-bottom: 24px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    color: #38506e;
    font-size: .78rem;
    font-weight: 650;
    letter-spacing: .08em;
}
.hero-tag:hover { background: transparent; color: var(--primary-dark); transform: none; }
.hero h1 { max-width: 620px; margin-bottom: 20px; font-size: clamp(2.65rem, 5vw, 4.45rem); line-height: 1.04; letter-spacing: -.055em; }
.hero-title-accent { color: var(--primary); background: none; -webkit-text-fill-color: currentColor; }
.hero p { max-width: 590px; margin-bottom: 30px; color: #526075; font-size: 1rem; line-height: 1.8; }
.hero-actions { margin-bottom: 44px; gap: 10px; }
.hero-link { font-size: .9rem; }
.hero-features { grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid #d5dce6; }
.hero-feature { padding: 18px 22px 0 0; }
.hero-feature + .hero-feature { padding-left: 22px; border-left: 1px solid #d5dce6; }
.hero-feature h3 { margin-bottom: 5px; color: #28364a; font-size: .85rem; }
.hero-feature p { margin: 0; color: #718096; font-size: .78rem; line-height: 1.55; }
.hero-resource-panel {
    background: #111a2b;
    color: #fff;
    border: 1px solid #26334a;
    border-radius: 12px;
    box-shadow: 18px 22px 0 #d9e0e9;
    overflow: hidden;
}
.resource-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid #2b374d; }
.resource-panel-head strong { font-size: .86rem; font-weight: 600; }
.resource-panel-status { display: inline-flex; align-items: center; gap: 7px; color: #a7f3d0; font-size: .72rem; }
.resource-panel-status::before { content: ''; width: 7px; height: 7px; background: #34d399; border-radius: 50%; }
.resource-panel-body { padding: 6px 18px; }
.resource-row { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 15px 0; border-bottom: 1px solid #253149; }
.resource-row:last-child { border-bottom: 0; }
.resource-row span { color: #8fa0ba; font-size: .75rem; }
.resource-row strong { font: 600 .84rem/1.4 var(--font-mono); color: #e5edf8; }
.resource-panel-foot { padding: 12px 18px; background: #0c1423; color: #8291a9; font: .7rem/1.5 var(--font-mono); }

.section { padding: 68px 0; }
.section-header { margin-bottom: 32px; text-align: left; }
.section-header h2 { margin-bottom: 7px; font-size: 1.8rem; letter-spacing: -.035em; }
.section-header p { font-size: .92rem; }
.filter-panel { padding: 14px 20px; margin-bottom: 22px; border-radius: 10px; box-shadow: none; }
.filter-row { padding: 8px 0; }
.filter-chip { padding: 7px 13px; border-radius: 6px; }
.filter-chip.active { box-shadow: none; }
.section-tabs-wrap { justify-content: flex-start; margin-bottom: 22px; }
.section-tabs { padding: 4px; border-radius: 8px; box-shadow: none; }
.section-tab { padding: 9px 16px; border-radius: 6px; }
.servers-grid { gap: 16px; }
.server-card { border-radius: 10px; box-shadow: none; }
.server-card::before { display: none; }
.server-card:hover { transform: none; border-color: #b9c3d1; box-shadow: 0 5px 16px rgba(15, 23, 42, .06); }
.price-amount { color: var(--text-primary); font-size: 1.7rem; }

.features-grid { grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border-color); border: 1px solid var(--border-color); border-radius: 10px; overflow: hidden; }
.feature-card { padding: 28px; border: 0; border-radius: 0; box-shadow: none; text-align: left; }
.feature-card:hover { border: 0; transform: none; box-shadow: none; background: #f9fbfd; }
.feature-icon {
    width: auto;
    height: auto;
    margin: 0 0 18px;
    background: transparent;
    color: var(--primary);
    border-radius: 0;
    font: 700 .72rem/1 var(--font-mono);
    letter-spacing: .1em;
}
.feature-card h3 { font-size: 1.05rem; }
.feature-card p { line-height: 1.7; font-size: .86rem; }

.footer { padding: 42px 0 18px; background: #111827; border-top: 0; }
.footer .logo, .footer-title { color: #fff; }
.footer-brand p, .footer-links a, .footer-bottom { color: #93a0b4; }
.footer-grid { gap: 40px; }
.footer-links a:hover { color: #fff; }

/* 登录：左侧品牌信息，右侧表单。无光晕、无动态装饰 */
.login-scene { grid-template-columns: minmax(380px, .85fr) minmax(500px, 1.15fr) !important; background: #fff !important; }
.login-scene::before, .orb, .halo { display: none !important; }
.login-brand { padding: 48px 56px !important; background: #111a2b; color: #fff; }
.brand-logo { color: #fff !important; font-size: 1.2rem !important; }
.brand-tag { padding: 0 !important; border: 0 !important; background: transparent !important; color: #9fb2cc !important; border-radius: 0 !important; letter-spacing: .06em; }
.brand-tag .dot { background: #34d399 !important; box-shadow: none !important; animation: none !important; }
.brand-hero h1 { color: #fff !important; font-size: clamp(2.25rem, 4vw, 3.75rem) !important; line-height: 1.08 !important; letter-spacing: -.05em !important; }
.brand-hero h1 .grad { color: #93b4ff !important; background: none !important; -webkit-text-fill-color: currentColor !important; }
.brand-hero p { color: #aab7ca !important; max-width: 460px !important; font-size: .96rem !important; }
.login-panel { padding: 48px !important; background: #f5f7fa; }
.glass-card { max-width: 420px !important; padding: 36px !important; background: #fff !important; border: 1px solid #dfe4ec !important; border-radius: 10px !important; backdrop-filter: none !important; box-shadow: 0 8px 24px rgba(15, 23, 42, .06) !important; }
.card-brand { justify-content: flex-start !important; margin-bottom: 28px !important; }
.card-head { text-align: left !important; }
.card-divider::before, .card-divider::after { background: var(--border-color) !important; }
.card-foot a::after { content: none; }

/* 注册、支付状态 */
.auth-page { align-items: flex-start; min-height: calc(100vh - 1px); padding: 54px 20px; background: #f3f5f8; }
.auth-card { max-width: 480px; padding: 32px 36px; border: 1px solid var(--border-color); border-radius: 10px; box-shadow: 0 8px 24px rgba(15, 23, 42, .05); }
.auth-header h1 { font-size: 1.55rem; }
.payment-result-card { border: 1px solid var(--border-color); border-radius: 10px; box-shadow: none; }

/* 购物车 */
.cart-shell { max-width: 1180px !important; padding-top: 34px !important; }
.cart-eyebrow { color: #59708e !important; letter-spacing: .08em !important; text-transform: none !important; }
.cart-head h1 { font-size: 2rem !important; letter-spacing: -.03em !important; }
.cart-balance, .cart-list, .summary { border-color: var(--border-color) !important; border-radius: 10px !important; box-shadow: none !important; }
.summary { top: 82px !important; }
.summary-total strong { color: var(--text-primary) !important; }
.empty-mark { border-radius: 10px !important; background: var(--primary-light) !important; color: var(--primary) !important; }
.confirm-layer { backdrop-filter: none !important; }
.confirm-card { border: 1px solid var(--border-color); border-radius: 10px !important; box-shadow: 0 18px 50px rgba(15, 23, 42, .16) !important; }

/* 详情页 */
.server-detail { padding-top: 28px !important; }
.buy-header-tags { flex-wrap: wrap; justify-content: flex-end; }
.buy-tag { border-radius: 6px !important; }
.config-switcher, .spec-strip, .config-card { border: 1px solid var(--border-color) !important; border-radius: 10px !important; box-shadow: none !important; }
.switcher-cat { border-radius: 6px !important; }
.switcher-item { border-width: 1px !important; border-radius: 8px !important; }
.switcher-item.active { border-color: var(--primary) !important; box-shadow: 0 0 0 1px var(--primary); }
.switcher-item.active::after { border-radius: 4px !important; }
.checkout-bar { border-top: 1px solid var(--border-color) !important; box-shadow: 0 -4px 16px rgba(15, 23, 42, .05) !important; }
.btn-apple { border-radius: 7px !important; }

/* 控制台：紧凑、数据优先 */
.console-layout { max-width: 1360px !important; gap: 18px !important; padding: 18px 28px 40px !important; }
.console-sidebar { width: 228px !important; top: 82px !important; height: calc(100vh - 100px) !important; border-radius: 10px !important; box-shadow: none !important; }
.sidebar-user { padding: 20px 18px 16px !important; text-align: left !important; }
.sidebar-avatar { width: 38px !important; height: 38px !important; margin: 0 0 10px !important; border-radius: 8px !important; background: #172033 !important; color: #fff !important; }
.sidebar-balance, .sidebar-role-tag { border-radius: 5px !important; }
.sidebar-role-tag { display: none !important; }
.sidebar-menu { padding: 10px 8px !important; }
.menu-section-title { padding: 14px 12px 6px !important; }
.menu-item { padding: 9px 12px !important; border-radius: 6px !important; }
.menu-item { width: 100%; border: 0 !important; font: inherit; text-align: left; text-decoration: none; }
.menu-item.active::before { display: none !important; }
.console-main { padding: 0 !important; }
.console-hero { min-height: 0 !important; padding: 20px 22px !important; border-radius: 10px !important; box-shadow: none !important; }
.console-hero-greeting { margin-bottom: 3px !important; }
.console-hero-title { font-size: 1.28rem !important; letter-spacing: -.02em !important; }
.console-hero-desc { max-width: 650px; }
.console-hero-action .btn { border-radius: 7px !important; background: var(--primary) !important; }
.hero-aside { min-width: 230px !important; border-left: 1px solid var(--border-color); padding-left: 22px; }
.hero-date-day { font-size: 2.2rem !important; }
.console-stats { grid-template-columns: repeat(5, 1fr) !important; gap: 1px !important; overflow: hidden; border: 1px solid var(--border-color); border-radius: 10px; background: var(--border-color); }
.console-stat { min-height: 86px; padding: 15px 17px !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.console-stat:hover { border: 0 !important; box-shadow: none !important; }
.console-stat-icon { display: none !important; }
.console-stat-value { font-size: 1.45rem !important; }
.console-header { margin-top: 22px; }
.console-header h1 { font-size: 1.08rem !important; }
.list-card, .instance-card, .api-intro, .api-docs, .api-create, .api-card { border-radius: 9px !important; box-shadow: none !important; }
.list-card:hover, .instance-card:hover { transform: none !important; }

@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr 350px; gap: 38px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .console-stats { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 768px) {
    .container { padding-inline: 18px; }
    .navbar .container { gap: 10px; }
    .navbar .logo { order: 1; }
    .mobile-menu-btn { order: 2; margin-left: auto; }
    .nav-links { order: 3; flex: 0 0 100%; gap: 3px; padding-top: 10px; border-top: 1px solid var(--border-color); }
    .nav-auth { order: 4; flex: 0 0 100%; }
    .nav-links.active, .nav-auth.active { position: static; inset: auto; box-shadow: none; }
    .nav-links.active a { width: 100%; justify-content: flex-start; padding: 10px 6px; }
    .nav-auth.active { flex-direction: column; align-items: stretch; gap: 7px; padding: 10px 0 5px; border-bottom: 0; }
    .nav-auth.active > * { width: 100%; text-align: center; }
    .hero { min-height: auto; padding: 48px 0; }
    .hero .container { display: block; }
    .hero-content { text-align: left; }
    .hero h1 { font-size: 2.55rem; }
    .hero p { margin-inline: 0; }
    .hero-actions { justify-content: flex-start; margin-bottom: 34px; }
    .hero-features { margin: 0; }
    .hero-resource-panel { margin-top: 40px; box-shadow: 9px 11px 0 #d9e0e9; }
    .features-grid { grid-template-columns: 1fr; }
    .section { padding: 50px 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .login-scene { display: block !important; overflow-y: auto !important; background: #f3f5f8 !important; }
    .login-brand { display: block !important; padding: 22px 24px !important; min-height: auto; }
    .login-brand .brand-hero { display: none; }
    .login-panel { min-height: calc(100vh - 78px); padding: 24px !important; }
    .console-layout { padding: 14px 14px 34px !important; }
    .console-sidebar { width: min(300px, calc(100% - 28px)) !important; top: 76px !important; }
    .console-hero { align-items: flex-start !important; }
    .hero-aside { display: none !important; }
    .console-stats { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 520px) {
    .hero h1 { font-size: 2.15rem; }
    .hero-features { grid-template-columns: 1fr; }
    .hero-feature, .hero-feature + .hero-feature { padding: 13px 0; border-left: 0; border-bottom: 1px solid #d5dce6; }
    .hero-feature:last-child { border-bottom: 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .glass-card, .auth-card { padding: 26px 22px !important; }
    .console-stats { grid-template-columns: 1fr 1fr !important; }
    .console-stat { min-height: 76px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
