﻿/* ===================================================================
   MSG 全站视觉主题 (现代深色 · 青绿点缀) 
   覆盖层: 在所有页面最后引入, 统一导航/按钮/面板/背景/配色
   参考: 启明星新版首页视觉规范
   =================================================================== */
:root {
    --primary-dark: #080c18;
    --primary-blue: #10162c;
    --shell-dark: #05070f;

    --accent-blue: #5b7cff;
    --accent-teal: #7ef0d4;      /* 主强调色: 薄荷青绿 */
    --accent-red: #ff5d6c;
    --accent-green: #38d982;
    --mint: #7ef0d4;
    --mint-deep: #22c9a6;
    --violet: #9d7bff;
    --gold: #ffcb05;

    --panel: #121a30;
    --panel-2: #0c1226;
    --panel-3: #1a2444;
    --panel-border: rgba(120, 150, 255, 0.22);

    --radius-md: 8px;
    --radius-lg: 12px;

    --ink: #eef2ff;
    --ink-dim: rgba(226, 233, 255, 0.62);

    --shadow-hard: 0 8px 26px rgba(3, 6, 18, 0.5);
    --shadow-hard-sm: 0 4px 14px rgba(3, 6, 18, 0.4);

    /* 启明星 logo 抽象元素: 四芒星轮廓 / 品牌紫 */
    --star-4: polygon(50% 0%, 57% 43%, 100% 50%, 57% 57%, 50% 100%, 43% 57%, 0% 50%, 43% 43%);
    --logo-purple: #4a1fa8;
}

html, body { height: 100%; }

body {
    color: var(--ink);
    background:
        radial-gradient(ellipse 60% 40% at 85% 0%, rgba(157, 123, 255, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse 50% 36% at 8% 100%, rgba(34, 201, 166, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, #0a0f1e 0%, #080c18 100%);
    background-attachment: fixed;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

/* ===== 导航栏: 扁平深色 + 细线 ===== */
.navbar {
    background: rgba(8, 12, 24, 0.9) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(120, 150, 255, 0.14) !important;
    box-shadow: none !important;
}
.nav-content { height: 72px; position: relative; }
.logo-img { filter: drop-shadow(0 0 8px rgba(94, 130, 255, 0.25)); }
/* logo 的椭圆轨道弧: 环在右上菜单区后方 */
.nav-content::before {
    content: ""; position: absolute; right: 96px; top: 50%; z-index: 0;
    width: 350px; height: 64px; transform: translateY(-50%) rotate(-11deg);
    border: 1px solid rgba(157, 123, 255, 0.16); border-radius: 50%;
    border-right-color: transparent; border-bottom-color: transparent;
    pointer-events: none;
}
.nav-content > .logo, .nav-content > .nav-links { position: relative; z-index: 1; }
.nav-links { gap: 6px; }
.nav-link, .nav-links .nav-link {
    color: var(--ink-dim) !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    padding: 10px 18px !important;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: .5px;
    transition: color .2s, background .2s;
}
/* 右上页面切换菜单: 文字保持纯净, 不再给每颗按钮前置圆形/星形图标 */
.nav-links .nav-link:not(.lang-toggle)::before { content: none; }
.nav-link:hover { color: #fff !important; background: rgba(120, 150, 255, 0.08) !important; }
.nav-link.active {
    color: #fff !important;
    background: linear-gradient(180deg, rgba(157, 123, 255, .12), transparent) !important;
    position: relative;
}
/* 选中指示: 一条横向星轨 + 中间的启明星(四芒星), 与送评流程页标题装饰同源 */
.nav-link.active::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 1px;
    transform: translateX(-50%);
    width: 50px; height: 12px;
    border: none !important;
    border-radius: 0;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 0.8Q7.8 6.2 13.2 7 7.8 7.8 7 13.2 6.2 7.8 0.8 7 6.2 6.2 7 0.8Z' fill='%23c8fff0'/%3E%3C/svg%3E") center / 12px 12px no-repeat,
        linear-gradient(90deg, transparent, rgba(126, 240, 212, .7) 20%, rgba(126, 240, 212, .7) 80%, transparent) center / 100% 1.4px no-repeat;
    filter: drop-shadow(0 0 6px rgba(126, 240, 212, .65));
    box-shadow: none;
}
.lang-toggle {
    border: 1.5px solid rgba(226, 233, 255, 0.26) !important;
    border-radius: 999px !important;
    padding: 7px 16px !important;
    font-size: 13px !important;
    margin-left: 10px;
}
/* 最右侧语言切换按钮: 一颗小启明星 */
.lang-toggle::before {
    content: ""; display: inline-block; flex-shrink: 0;
    width: 9px; height: 13px;
    background: #b79aff;
    clip-path: var(--star-4);
    filter: drop-shadow(0 0 6px rgba(157, 123, 255, .75));
    transition: background .2s, transform .3s;
}
.lang-toggle:hover::before { background: var(--mint); transform: rotate(90deg); }

/* ===== 主按钮: 薄荷绿扁平 ===== */
.btn-primary, .contact-send-btn {
    background: linear-gradient(180deg, #8ff6dc, var(--mint-deep)) !important;
    color: #04241b !important;
    border: none !important;
    box-shadow: 0 4px 0 #12866d, 0 10px 24px rgba(126, 240, 212, 0.22) !important;
    border-radius: 8px !important;
    font-weight: 900 !important;
}
.btn-primary:hover { box-shadow: 0 6px 0 #12866d, 0 12px 28px rgba(126, 240, 212, 0.34) !important; transform: translateY(-2px); }
.btn-secondary {
    background: rgba(120, 150, 255, 0.08) !important;
    color: var(--ink) !important;
    border: 1px solid var(--panel-border) !important;
    box-shadow: none !important;
    border-radius: 8px !important;
}

/* ===== 面板: 细边框 + 柔和阴影 (去掉 8-bit 硬边) ===== */
.query-card, .contact-modal-content {
    background: linear-gradient(180deg, rgba(20, 28, 54, 0.92), rgba(11, 17, 36, 0.96)) !important;
    border: 1px solid var(--panel-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 18px 46px rgba(3, 6, 18, 0.5) !important;
}

/* ===== 标题 & 分区通用 ===== */
h1, h2, h3, h4 { text-shadow: none; }

/* ===== 页脚: 扁平细线 ===== */
.footer {
    background: rgba(6, 9, 20, 0.9) !important;
    border-top: 1px solid rgba(120, 150, 255, 0.14) !important;
    box-shadow: none !important;
    padding: 44px 0 22px !important;
}
.footer a { color: var(--ink-dim) !important; transition: color .2s; }
.footer a:hover { color: var(--mint) !important; }

/* ===== 覆盖各页硬编码的金黄/红色点缀, 统一为青绿 ===== */
.query-title i, .form-label i, .query-hero i { color: var(--mint) !important; }
.form-label i, .input-icon { color: var(--mint) !important; }

/* 输入框: 深色扁平 */
input[type=text], input[type=email], input[type=password], input[type=number],
textarea, select, .cf-input, .input-group input {
    background: rgba(6, 10, 26, 0.8) !important;
    border: 1.5px solid rgba(120, 150, 255, 0.3) !important;
    color: var(--ink) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}
input:focus, textarea:focus, .cf-input:focus {
    border-color: var(--mint) !important;
    box-shadow: 0 0 0 3px rgba(126, 240, 212, 0.14) !important;
}
input::placeholder, textarea::placeholder { color: rgba(226, 233, 255, 0.35) !important; }

/* 状态色 */
.search-error, .cf-status.is-error { color: #ff9d9d !important; }

/* 卡片/表格 */
table th { background: rgba(120, 150, 255, 0.08) !important; color: #fff !important; }
table td { border-color: rgba(120, 150, 255, 0.14) !important; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #080c18; }
::-webkit-scrollbar-thumb { background: #24305a; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #33437a; }

/* ===== 清除旧游戏风残留 (霓虹导轨 / 暗角 / 金边) ===== */
.page-content::before, .page-content::after { display: none !important; }
body::after { display: none !important; }
.logo, .logo a { border: none !important; box-shadow: none !important; background: none !important; }
.logo-img { filter: drop-shadow(0 0 8px rgba(94, 130, 255, 0.22)) !important; border: none !important; }
.btn-primary, .cf-label, .flow-badge {
    border-color: var(--panel-border) !important;
    filter: none !important;
}
.flow-arrow, .query-tips i, .flow-badge { color: var(--mint) !important; }

/* ===== 零星金黄小件统一为青绿/深蓝 ===== */
.query-subtitle, .cf-label, .contact-subtitle,
.step-icon, .brand-tag, .query-title,
.page-title, .dot {
    border-color: rgba(126, 240, 212, 0.45) !important;
    color: var(--ink-dim) !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
.step-num, .flow-badge, .side-tip i, .query-tips i,
.cert-grade-value, .page-title i, .query-title i,
.flow-arrow i, .step-icon i {
    color: var(--mint) !important;
    -webkit-text-fill-color: var(--mint) !important;
    text-shadow: none !important;
}
.step-icon, .flow-badge, .side-tip i, .brand-tag {
    border-color: rgba(126, 240, 212, 0.4) !important;
    background: rgba(126, 240, 212, 0.08) !important;
}
/* 胶囊标题两侧菱形 */
.pricing-title::before, .flow-title::before, .flow-title::after { color: var(--mint) !important; }
/* 表头/评级徽标的金黄底变深蓝 */
.brand-tag, .cert-grade-box, .report-status {
    background: rgba(120, 150, 255, 0.1) !important;
    border-color: var(--panel-border) !important;
}
.price-table th, .data-table th { background: rgba(120,150,255,.08) !important; }

/* ===== 报告页图标: 黄 -> 青绿 ===== */
.report-page .report-title i, .report-page h1 i, .report-page h2 i,
.report-status i, .report-empty i, .empty-state i,
.report-page .fa-sun, .report-page .fa-exclamation-circle { color: var(--mint) !important; }

/* ===== 全站布局协调: 内容不足一屏时主区撑开、页脚贴底 =====
   短页面(如联系我们)不会出现页脚悬在页面中部、下方留大片空白 */
.page-content { display: flex; flex-direction: column; min-height: 100vh; }
.page-content > main,
.page-content > header { flex: 1 0 auto; }
.page-content > .navbar { flex-shrink: 0; }
.page-content > footer { margin-top: auto; flex-shrink: 0; }
/* 管理端登录框标题: 星标呼应品牌 */
#login-overlay .login-box h2::after {
    content: ""; display: inline-block;
    width: 10px; height: 10px; margin-left: 10px; vertical-align: 1px;
    background: var(--mint);
    clip-path: var(--star-4);
    filter: drop-shadow(0 0 6px rgba(126, 240, 212, .65));
}
/* 内页: 面包屑星标 */
.q-crumb::before, .sg-crumb::before, .ct-crumb::before,
.rp-crumb::before, .admin-crumb::before {
    content: ""; display: inline-block;
    width: 9px; height: 12px; margin-right: 10px; vertical-align: -1px;
    background: var(--mint);
    clip-path: var(--star-4);
    filter: drop-shadow(0 0 6px rgba(126, 240, 212, .6));
}
/* 内页: 区块标题星标 */
.q-h2, .sg-h2, .rp-h2 { position: relative; padding-left: 24px; }
.q-h2::before, .sg-h2::before, .rp-h2::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 13px; height: 13px;
    background: var(--mint);
    clip-path: var(--star-4);
    filter: drop-shadow(0 0 7px rgba(126, 240, 212, .6));
}
/* 窄屏导航改两行, 轨道弧省略避免压字 */
@media (max-width: 720px) {
    .nav-content::before { display: none; }
    /* 窄屏导航改两/三行, 高度必须自适应, 否则语言按钮溢出与 hero 重叠 */
    .nav-content { height: auto; padding: 8px 0; }
    .nav-link, .nav-links .nav-link { padding: 9px 12px !important; }
    .q-h2, .sg-h2, .rp-h2 { padding-left: 20px; }
    .q-h2::before, .sg-h2::before, .rp-h2::before { width: 11px; height: 11px; }
}
@media print {
    .page-content { display: block; min-height: 0; }
}
