﻿/* ===================================================================
   首页 (启明星) 专用样式 - 参考新版视觉
   独立命名空间 home-*, 不依赖旧 .hero/.brands 结构
   =================================================================== */
.home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(520px, 1.5fr) minmax(200px, .8fr);
    align-items: center;
    gap: 20px;
    min-height: 620px;
    padding: 40px 6% 34px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 34% 52% at 63% 46%, rgba(122,152,255,0.16) 0%, transparent 70%),
        radial-gradient(ellipse 46% 70% at 14% 88%, rgba(34, 201, 166, 0.28) 0%, transparent 62%),
        radial-gradient(ellipse 44% 62% at 88% 12%, rgba(157, 123, 255, 0.34) 0%, transparent 64%),
        radial-gradient(ellipse 60% 50% at 52% 44%, rgba(45, 70, 180, 0.22) 0%, transparent 72%),
        linear-gradient(155deg, #0c1430 0%, #121a3c 42%, #1c1444 76%, #140a26 100%);
    border-bottom: 1px solid rgba(120, 150, 255, 0.14);
}
/* logo 的椭圆轨道弧: 大尺度水印, 斜跨首屏 */
.home-hero::before {
    content: ""; position: absolute; z-index: 0; pointer-events: none;
    right: 6%; top: 50%;
    width: 640px; height: 320px;
    transform: translateY(-50%) rotate(-22deg);
    border: 1px solid rgba(157, 123, 255, .17); border-radius: 50%;
    border-right-color: transparent; border-bottom-color: transparent;
}
/* 环绕大星的点点星光 */
.home-hero::after {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(circle 3px at 78% 20%, rgba(226,238,255,.55), transparent 70%),
        radial-gradient(circle 2px at 90% 64%, rgba(126,240,212,.6), transparent 70%),
        radial-gradient(circle 2px at 26% 16%, rgba(157,123,255,.75), transparent 70%),
        radial-gradient(circle 2px at 11% 66%, rgba(226,238,255,.4), transparent 70%);
}

/* --- 左: 文案 --- */
/* 靠列右端并留出固定间距: 与右侧评分块到卡组的距离相等(三列等距), 间距适中 */
.home-copy { z-index: 3; justify-self: end; margin-right: 100px; }
.home-crumb { font-size: 12px; letter-spacing: 5px; color: rgba(226,233,255,.5); font-weight: 700; margin-bottom: 20px; }
.home-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));
}
.home-title {
    display: inline-block; vertical-align: top; position: relative;
    font-size: clamp(44px, 4.4vw, 68px);
    font-weight: 900;
    letter-spacing: 4px;
    line-height: 1.1;
    background: linear-gradient(180deg, #ffffff 0%, #d6e6ff 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-bottom: 14px;
}
/* 标题旁的启明星本尊: 四芒星 + 呼吸光晕 */
.home-title::after {
    content: ""; position: absolute; right: -34px; top: -4px;
    width: 22px; height: 30px;
    background: linear-gradient(180deg, #ffffff 0%, var(--mint) 52%, var(--violet) 100%);
    clip-path: var(--star-4);
    filter: drop-shadow(0 0 12px rgba(126,240,212,.75));
    animation: homeStarTwinkle 4s ease-in-out infinite;
}
@keyframes homeStarTwinkle {
    0%, 100% { opacity: .72; transform: scale(.9) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.08) rotate(12deg); }
}
.home-sub { font-size: 21px; letter-spacing: 3px; color: rgba(233,238,255,.85); font-weight: 700; margin-bottom: 42px; }
.home-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.home-btn-primary {
    display: inline-flex; align-items: center; gap: 14px;
    text-decoration: none; font-weight: 900; letter-spacing: 2px; font-size: 16px;
    padding: 15px 30px; border-radius: 8px;
    background: linear-gradient(180deg, #8ff6dc, #22c9a6);
    color: #04241b;
    box-shadow: 0 4px 0 #12866d, 0 12px 26px rgba(126,240,212,.25);
    transition: transform .18s, box-shadow .18s;
}
.home-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #12866d, 0 16px 32px rgba(126,240,212,.38); }
.home-btn-primary::before {
    content: ""; flex-shrink: 0; width: 12px; height: 12px;
    background: rgba(4,36,27,.55); clip-path: var(--star-4);
}
.home-btn-primary i { font-size: 14px; }
.home-btn-ghost {
    display: inline-flex; align-items: center; gap: 10px;
    text-decoration: none; color: rgba(233,238,255,.8); font-weight: 700; font-size: 16px; letter-spacing: 1px;
    padding: 10px 2px; border-bottom: 1.5px solid rgba(226,233,255,.35);
    transition: color .2s, border-color .2s;
}
.home-btn-ghost:hover { color: #fff; border-color: var(--mint); }

/* --- 中: 卡组 --- */
.home-stage {
    position: relative;
    height: 540px;
    display: flex; align-items: center; justify-content: center;
    perspective: 1500px;
    touch-action: pan-y;
    cursor: grab; user-select: none; -webkit-user-select: none;
    z-index: 2;
}
.home-stage.dragging { cursor: grabbing; }
/* 卡组下方的环境光, 让亚克力砖像落在有反光的台面上 */
.home-stage::before {
    content: ""; position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%);
    width: 460px; height: 70px; border-radius: 50%; z-index: 0; pointer-events: none;
    background: radial-gradient(ellipse, rgba(90,150,255,.30) 0%, rgba(34,201,166,.10) 45%, transparent 72%);
    filter: blur(20px);
}
/* 248/409 = 0.606, 与素材 960/1584 精确同比例, contain 无空隙无形变 */
.home-deck { position: relative; width: 248px; height: 409px; transform-style: preserve-3d; }
@keyframes homeFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.home-deck.is-idle { animation: homeFloat 5.5s ease-in-out infinite; }
.home-deck.dragging { animation: none; }

/* 完整塑料评级砖: 壳体、圆角、壳壁高光与内框都在 PNG 素材里,
   这里不再叠加第二层玻璃, 保证原图内容与比例 100% 完整、不裁切不拉伸 */
.home-card {
    position: absolute; inset: 0;
    border-radius: 14px;
    overflow: hidden;
    isolation: isolate;
    transition: transform .55s cubic-bezier(.22,.9,.32,1.14), opacity .45s;
    will-change: transform;
    background: transparent;
    transform-origin: 50% 62%;
}
.home-card img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,.38));
}
/* 正/背两张同尺寸同比例, 靠透明度切换, 翻面无裁切无跳动 */
.home-card img.back { opacity: 0; }
.home-card.is-back img.front { opacity: 0; }
.home-card.is-back img.back { opacity: 1; }
.home-card.is-center { transform: translateX(0) rotateY(0) scale(1.06); z-index: 5; }
.home-card.is-left  { transform: translateX(-198px) translateY(16px) rotateY(34deg) scale(.82); z-index: 3; opacity: .9; }
.home-card.is-right { transform: translateX(198px) translateY(16px) rotateY(-34deg) scale(.82); z-index: 3; opacity: .9; }
.home-card.is-hidden { transform: translateX(0) scale(.7); opacity: 0; z-index: 1; pointer-events: none; }

.home-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 12;
    width: 44px; height: 44px; border-radius: 50%;
    border: 1.5px solid rgba(226,233,255,.4); background: rgba(8,12,28,.5);
    color: #dfe7ff; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all .2s;
}
.home-arrow:hover { border-color: var(--mint); color: var(--mint); box-shadow: 0 0 14px rgba(126,240,212,.35); }
/* 箭头落在侧卡外缘约 60px 处: 取"贴 stage 两端(太散)"与"压侧卡(太挤)"的中间值。
   窄 stage 下最多溢出 12px, 既离开卡片又不压到右侧评分文案 */
.home-arrow.prev { left: max(-12px, calc(50% - 387px)); }
.home-arrow.next { right: max(-12px, calc(50% - 387px)); }

.home-backlink {
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); z-index: 12;
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; letter-spacing: 1px; color: var(--mint); text-decoration: none;
    opacity: .9; transition: opacity .2s;
}
.home-backlink:hover { opacity: 1; text-shadow: 0 0 10px rgba(126,240,212,.5); }

.home-dots { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 12; }
.home-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(226,233,255,.28); transition: all .3s; cursor: pointer; }
.home-dots i.on {
    width: 10px; height: 10px; border-radius: 0;
    background: var(--mint); clip-path: var(--star-4);
    filter: drop-shadow(0 0 6px rgba(126,240,212,.8));
}

/* --- 右: 评级信息 --- */
/* 与左侧对称: 靠列左端并留相同间距, 保证三列等距 */
.home-score { z-index: 3; justify-self: start; margin-left: 100px; text-align: left; }
.home-score-name { font-size: 24px; font-weight: 900; letter-spacing: 2px; color: #fff; }
.home-score-code { font-size: 12px; letter-spacing: 2px; color: rgba(226,233,255,.5); margin-top: 8px; }
.home-score-div { width: 100%; max-width: 150px; height: 1px; background: linear-gradient(90deg, var(--mint), transparent); margin: 20px 0 22px; position: relative; }
.home-score-div::after {
    content: ""; position: absolute; right: 0; top: -6px;
    width: 12px; height: 12px;
    background: var(--mint); clip-path: var(--star-4);
    filter: drop-shadow(0 0 8px rgba(126,240,212,.7));
}
.home-score-label { font-size: 16px; letter-spacing: 4px; color: var(--ink-dim); font-weight: 700; }
.home-score-value {
    font-size: clamp(76px, 7vw, 116px); font-weight: 900; font-style: italic; line-height: 1;
    background: linear-gradient(180deg, #ffffff, #bcdcff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.home-score-tag { font-size: 14px; letter-spacing: 7px; color: rgba(226,233,255,.7); font-weight: 700; margin-top: 2px; }

/* ===== 品牌体系 ===== */
.home-section { padding: 64px 6% 0; }
.home-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 26px; }
.home-section-title { position: relative; padding-left: 24px; font-size: 28px; font-weight: 900; letter-spacing: 3px; color: #fff; }
.home-section-title::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));
}
.home-section-en { font-size: 11px; letter-spacing: 4px; color: rgba(226,233,255,.38); font-weight: 700; }

.home-brands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.home-brand {
    position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 20px;
    min-height: 118px; padding: 22px 26px;
    border: 1px solid var(--panel-border); border-radius: 10px;
    background: linear-gradient(180deg, rgba(18, 26, 50, 0.9), rgba(11, 17, 36, 0.94));
    text-decoration: none; color: var(--ink);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.home-brand:hover { transform: translateY(-3px); border-color: rgba(126,240,212,.4); box-shadow: 0 14px 30px rgba(3,6,18,.5); }
/* 品牌卡水印: logo 的双层椭圆轨道弧 */
.home-brand-arc {
    position: absolute; right: -40px; top: -34px;
    width: 196px; height: 104px; transform: rotate(-24deg);
    border: 1px solid rgba(157,123,255,.22); border-radius: 50%;
    border-right-color: transparent; border-bottom-color: transparent;
    pointer-events: none;
}
.home-brand-arc::after {
    content: ""; position: absolute; right: 30px; top: 18px;
    width: 132px; height: 68px;
    border: 1px solid rgba(126,240,212,.14); border-radius: 50%;
    border-right-color: transparent; border-bottom-color: transparent;
}
.home-brand-icon { font-size: 44px; font-weight: 900; line-height: 1; width: 56px; text-align: center; flex-shrink: 0; }
.home-brand-icon.bi-z { color: var(--mint); font-style: italic; }
.home-brand-icon.bi-px { color: var(--violet); font-size: 38px; }
.home-brand-icon.bi-p { color: #ff8ea0; font-style: italic; }
.home-brand-txt h3 { font-size: 21px; font-weight: 900; letter-spacing: 1px; margin-bottom: 5px; }
.home-brand-txt p { font-size: 13px; color: var(--ink-dim); }
/* 右下角换成启明星 logo 的四芒星元素, 与导航/标题星标同源 */
.home-brand-go {
    position: absolute; right: 22px; bottom: 18px;
    width: 16px; height: 22px;
    background: var(--mint);
    clip-path: var(--star-4);
    filter: drop-shadow(0 0 7px rgba(126, 240, 212, .55));
    transition: transform .25s;
}
.home-brand:hover .home-brand-go { transform: rotate(90deg); }

/* ===== 为什么选择 MSG ===== */
.home-standards { padding-bottom: 80px; }
/* 右栏与左图等高并垂直居中: 要点组落在卡图中间, 上下留白均匀, 不再头重脚轻 */
.home-std-grid { display: grid; grid-template-columns: 400px 1fr; gap: 56px; align-items: stretch; }
.home-std-photo {
    border-radius: 10px; overflow: hidden;
    border: 1px solid rgba(226,238,255,.34);
    background:
        radial-gradient(ellipse 60% 62% at 50% 38%, rgba(90,130,255,.20), transparent 72%),
        linear-gradient(155deg, rgba(20,30,62,.85), rgba(10,15,34,.95));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 14px 30px rgba(3,6,18,.45);
}
/* 完整评级砖竖向居中展示, contain 保证不裁切、不变形 */
.home-std-photo img {
    width: 100%; height: 400px; display: block; box-sizing: border-box;
    padding: 10px 0;
    object-fit: contain; object-position: center;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,.5));
}
.home-std-photo-cap { padding: 18px 22px; }
.home-std-photo-cap h4 { font-size: 17px; font-weight: 900; letter-spacing: 2px; margin-bottom: 8px; }
.home-std-photo-cap p { font-size: 12px; letter-spacing: 2px; color: var(--ink-dim); }

.home-std-list { display: flex; flex-direction: column; justify-content: center; }
.home-std-item {
    display: grid; grid-template-columns: 22px 160px 1fr; align-items: baseline; gap: 16px;
    padding: 28px 4px; border-bottom: 1px solid rgba(120,150,255,.16);
}
.home-std-item:first-child { border-top: 1px solid rgba(120,150,255,.16); }
/* 标准清单: 菱形换成启明星四芒星 */
.home-std-item .diamond { position: relative; color: var(--mint); font-size: 11px; }
.home-std-item .diamond i { display: none; }
.home-std-item .diamond::before {
    content: ""; display: block; width: 11px; height: 11px;
    background: var(--mint); clip-path: var(--star-4);
    filter: drop-shadow(0 0 6px rgba(126,240,212,.55));
}
.home-std-item h4 { font-size: 18px; font-weight: 800; letter-spacing: 2px; color: #fff; }
.home-std-item p { font-size: 14px; color: var(--ink-dim); line-height: 1.7; }

/* ===== 首页页脚精简 ===== */
.home-footer { position: relative; overflow: hidden; border-top: 1px solid rgba(120,150,255,.14); background: rgba(6,9,20,.75); }
/* 页脚底部一条低对比轨道弧 */
.home-footer::before {
    content: ""; position: absolute; left: -8%; bottom: -150px;
    width: 620px; height: 260px;
    border: 1px solid rgba(157,123,255,.11); border-radius: 50%;
    border-bottom-color: transparent; pointer-events: none;
}
.home-footer-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 6%; flex-wrap: wrap; }
.home-footer-brand { display: flex; align-items: center; gap: 14px; }
.home-footer-brand img { height: 30px; }
.home-footer-brand b { position: relative; padding-right: 17px; font-size: 17px; letter-spacing: 1px; }
.home-footer-brand b::after {
    content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    width: 10px; height: 10px;
    background: var(--violet); clip-path: var(--star-4);
    filter: drop-shadow(0 0 6px rgba(157,123,255,.7));
}
.home-footer-brand span { color: var(--ink-dim); font-size: 13px; }
.home-footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.home-footer-links a { color: var(--ink-dim); text-decoration: none; font-size: 13px; transition: color .2s; }
.home-footer-links a:hover { color: var(--mint); }
.home-footer-cr { color: rgba(226,233,255,.35); font-size: 12px; }

/* ===== 响应式 ===== */
/* 窄三列区间: 列宽不足以容纳 100px 等距间距, 收窄防止文案溢出屏幕左缘 */
@media (min-width: 1101px) and (max-width: 1500px) {
    .home-copy { margin-right: 30px; }
    .home-score { margin-left: 30px; }
}
@media (max-width: 1100px) {
    .home-hero { grid-template-columns: 1fr; gap: 6px; padding: 44px 5% 30px; min-height: 0; text-align: center; }
    /* 单列居中布局下取消靠边对齐, 否则文案/评分会偏离居中 */
    .home-copy, .home-score { justify-self: stretch; margin-right: 0; margin-left: 0; }
    .home-crumb { letter-spacing: 3px; }
    .home-sub { margin-bottom: 28px; }
    .home-actions { justify-content: center; }
    .home-stage { order: 2; height: 500px; }
    .home-score { order: 3; text-align: center; padding: 0; }
    .home-score-div { margin: 14px auto; }
    .home-score-tag { letter-spacing: 5px; }
    .home-std-grid { grid-template-columns: 1fr; gap: 30px; }
    .home-std-photo { max-width: 420px; }
}
@media (max-width: 720px) {
    .home-hero { padding: 34px 5% 26px; }
    .home-title { font-size: 40px; }
    .home-sub { font-size: 16px; }
    .home-btn-primary { padding: 13px 22px; font-size: 15px; }
    .home-stage { height: 430px; }
    .home-deck { width: 198px; height: 327px; }
    .home-card.is-center { transform: rotateY(0) scale(1.02); }
    .home-card.is-left { transform: translateX(-132px) translateY(14px) rotateY(32deg) scale(.76); }
    .home-card.is-right { transform: translateX(132px) translateY(14px) rotateY(-32deg) scale(.76); }
    .home-arrow { width: 38px; height: 38px; }
    .home-arrow.prev { left: 0; } .home-arrow.next { right: 0; }
    .home-score-value { font-size: 78px; }
    .home-section { padding: 48px 5% 0; }
    .home-section-title { font-size: 24px; }
    .home-brands { grid-template-columns: 1fr; gap: 14px; }
    .home-brand { min-height: 92px; padding: 16px 20px; }
    .home-std-item { grid-template-columns: 18px 1fr; gap: 6px 12px; }
    .home-std-item p { grid-column: 2; }
    .home-std-photo img { height: 330px; }
    .home-footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 720px) {
    .home-hero::before { display: none; }
    .home-title::after { width: 16px; height: 22px; right: -26px; top: 0; }
    .home-section-title { padding-left: 20px; }
    .home-section-title::before { width: 11px; height: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-title::after { animation: none; }
}
