* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "Noto Sans SC", sans-serif;
    background: radial-gradient(circle at 15% 10%, #18285c 0%, #070b17 40%, #03050b 100%);
    color: #e7ecff;
    overflow-x: hidden;
    /* 全局禁止用户选中文字，避免拖动鼠标时产生蓝色底色 */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

#webgl-bg { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
#energy-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; mix-blend-mode: screen; opacity: .92; }

.noise-overlay {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        linear-gradient(140deg, rgba(35,247,255,.06), rgba(175,91,255,.03) 35%, rgba(5,7,15,.75)),
        radial-gradient(circle at 20% 20%, rgba(35,247,255,.12), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(175,91,255,.1), transparent 40%);
}

.container { width: min(1200px, 92vw); margin: 0 auto; position: relative; z-index: 10; }
section { padding: 80px 0; }

/* 基础按钮组件样式 (Design System) */
.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, #23f7ff, #af5bff);
    color: #000;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    letter-spacing: 1px;
    box-shadow: 0 10px 25px rgba(35,247,255, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(175,91,255, 0.5);
}

.stack-panel { position:relative; overflow:hidden; border-radius:22px; border:1px solid rgba(125,180,255,.22); padding:22px 0; background:linear-gradient(130deg,rgba(255,255,255,.08),rgba(255,255,255,.03)); }
.stack-panel::before {
    content:""; position:absolute; inset:0; pointer-events:none;
    background: radial-gradient(circle 170px at var(--mx,50%) var(--my,50%), rgba(35,247,255,.24), transparent 65%);
}
.marquee, .marquee-rev { display:flex; width:max-content; }

/* ---- 案例展示区 - 3D Coverflow 转动排版 ---- */
.case-3d-swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 80px;
    overflow: hidden; /* 隐藏容器外的部分 */
    cursor: default;
    transform: translateZ(0);
    will-change: transform;
}

.case-3d-swiper.is-selected {
    cursor: grab;
}

.case-3d-swiper.is-selected:active {
    cursor: grabbing;
}

.case-3d-slide {
    background-position: center;
    background-size: cover;
    width: 600px; /* 幻灯片的基准宽度 */
    max-width: 90vw;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.case-3d-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.55s ease, border-color 0.55s ease, filter 0.55s ease;
    will-change: transform, box-shadow;
    transform: scale(0.92);
    filter: saturate(0.9) brightness(0.92);
}

/* 居中激活状态的卡片呼吸光效 */
.swiper-slide-active .case-3d-card {
    border-color: rgba(35, 247, 255, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(35, 247, 255, 0.15);
    transform: scale(1);
    filter: saturate(1) brightness(1);
    animation: breathingLight 4s ease-in-out infinite;
}

.case-3d-slide-prev .case-3d-card,
.case-3d-slide-next .case-3d-card {
    transform: scale(0.95);
    filter: saturate(0.95) brightness(0.96);
}

@keyframes breathingLight {
    0% { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(35, 247, 255, 0.1); }
    50% { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(35, 247, 255, 0.3); }
    100% { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(35, 247, 255, 0.1); }
}

.case-3d-info {
    text-align: center;
    position: relative;
    z-index: 5;
}

.case-3d-info h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.case-3d-info h3 svg { color: #23f7ff; }

.case-3d-info p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* 导航按钮自定义 */
.case-3d-prev, .case-3d-next {
    color: #23f7ff !important;
    background: rgba(0, 0, 0, 0.5);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 1200 !important;
    pointer-events: auto;
}
.case-3d-pagination {
    z-index: 1200 !important;
    pointer-events: auto;
}
.case-3d-info a {
    position: relative;
    z-index: 1200;
    pointer-events: auto;
    display: inline-block;
    text-decoration: none;
}
.case-3d-prev:after, .case-3d-next:after {
    font-size: 20px !important;
    font-weight: bold;
}
.case-3d-prev:hover, .case-3d-next:hover {
    background: rgba(35, 247, 255, 0.2);
    transform: scale(1.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .case-3d-slide { width: 320px; }
}

/* ---- 设备模型包装 (自适应图片尺寸版) ---- */
.mockup-mac, .mockup-phone {
    width: 100%;
    background: #0a0f1a;
    border-radius: 12px;
    border: 1px solid rgba(125, 180, 255, 0.15);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    height: max-content; /* 高度完全由内部图片撑开，绝不裁剪 */
    position: relative;
}
/* 修复容器模型高度限制导致图片截断的问题 */
.mockup-phone {
    width: 70%;
    max-width: 260px;
    border-radius: 24px;
    border: 5px solid #1a2235;
    overflow: hidden; /* 保证内部元素不超出圆角 */
    position: relative;
    background: #000;
}
.mockup-phone-notch {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 40%; height: 14px;
    background: #1a2235;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    z-index: 2;
}

.mockup-mac {
    width: 100%;
    border-radius: 12px;
    border: 4px solid #1a2235;
    overflow: hidden;
    position: relative;
    background: #000;
}

.mockup-mac-header {
    height: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 6px;
}
.mockup-mac-dot {
    width: 8px; height: 8px; border-radius: 50%;
}

.mockup-mac-body {
    width: 100%;
    aspect-ratio: 16 / 10; /* 标准电脑屏幕比例 */
    background: #000;
    position: relative;
    overflow: hidden; /* 隐藏超出部分，按比例展示长图顶部 */
}

.mockup-phone-body {
    width: 100%;
    aspect-ratio: 9 / 19.5; /* 标准手机屏幕比例 */
    background: #000;
    position: relative;
    overflow: hidden; /* 隐藏超出部分，按比例展示长图顶部 */
}

/* 图片直接按比例显示，不再变形或模糊 */
.mockup-mac-body img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 电脑端保持 cover，不留黑边 */
    object-position: left top; /* 确保长截图从左上角开始展示 */
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    
    /* 增加渲染清晰度，适应高分屏 */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
    image-rendering: -webkit-optimize-contrast;
}

.mockup-phone-body img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 手机端改为 contain，缩小展示全貌 */
    object-position: center; /* 手机端居中显示 */
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    
    /* 增加渲染清晰度，适应高分屏 */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
    image-rendering: -webkit-optimize-contrast;
}

/* 兼容 Firefox 等的平滑缩放，部分高分屏下 crisp-edges 反而会有锯齿，改用更通用的高质量渲染 */
@supports (image-rendering: -moz-crisp-edges) {
    .mockup-mac-body img, .mockup-phone-body img {
        image-rendering: -moz-crisp-edges;
    }
}

.bento-item:hover .mockup-mac-body img,
.bento-item:hover .mockup-phone-body img {
    transform: scale(1.03); /* 悬浮微微放大，提升高级感 */
}

/* Swiper 自定义样式 */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5) !important;
}
.swiper-pagination-bullet-active {
    background: #23f7ff !important;
    box-shadow: 0 0 8px rgba(35, 247, 255, 0.8);
}

/* ---- 解决方案卡片样式 (Solution Cards) ---- */
.solution-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-top: 40px;
}

.solution-card {
    background: rgba(18, 26, 46, 0.4);
    border: 1px solid rgba(125, 180, 255, 0.15);
    border-radius: 20px;
    padding: 32px 24px;
    transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    cursor: pointer;
}

.solution-card:hover {
    transform: translateY(-8px);
    background: rgba(20, 30, 56, 0.8);
    border-color: rgba(175, 91, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 25px rgba(175, 91, 255, 0.15);
}

.sol-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #e7ecff; /* 默认颜色 */
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, color 0.4s ease, background 0.4s ease;
}

.solution-card:hover .sol-icon {
    transform: scale(1.35) rotate(12deg) translateY(-4px);
    color: #23f7ff; /* 悬浮时变青色高亮 */
    background: rgba(35, 247, 255, 0.1);
    box-shadow: 0 8px 20px rgba(35, 247, 255, 0.3), inset 0 0 10px rgba(35, 247, 255, 0.2);
}

.solution-card h3 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 16px;
}

.sol-features {
    list-style: none;
    margin-bottom: 24px;
}

.sol-features li {
    color: #9aa7cd;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.sol-features .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #4e9dff;
    border-radius: 50%;
    margin-top: 7px;
    flex-shrink: 0;
}

.sol-link {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.solution-card:hover .sol-link {
    background: #fff;
    color: #050a15;
}

.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}

.contact-modal-overlay.active {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.contact-modal-overlay:target {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.contact-modal-content {
    background: rgba(10, 15, 24, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    width: min(92vw, 720px);
    border-radius: 16px;
    padding: 48px 56px 40px;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    border: 1px solid rgba(35, 247, 255, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(35, 247, 255, 0.05);
    overflow: hidden;
}

.contact-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #23f7ff, #a855f7, transparent);
}

.contact-modal-overlay.active .contact-modal-content,
.contact-modal-overlay:target .contact-modal-content {
    transform: translateY(0) scale(1);
}

.contact-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #8c9bba;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    z-index: 20;
    pointer-events: auto;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    transition: all 0.3s ease;
}

.contact-modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form-title {
    margin: 0 0 20px 0;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 4px;
    background: linear-gradient(90deg, #fff, #a0afd6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.contact-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.form-input {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid rgba(125, 180, 255, 0.1);
    border-radius: 8px;
    font-size: 14px;
    color: #fff;
    background: rgba(6, 11, 20, 0.6);
    outline: none;
    transition: all 0.3s ease;
    text-align: left;
    line-height: 1.5;
    letter-spacing: 1px;
}

.form-input::placeholder {
    color: #566480;
    font-family: "JetBrains Mono", "Noto Sans SC", sans-serif;
}

.form-input:focus {
    border-color: #23f7ff;
    background: rgba(10, 15, 26, 0.9);
    box-shadow: 0 0 15px rgba(35, 247, 255, 0.15), inset 0 0 8px rgba(35, 247, 255, 0.05);
}

.form-textarea {
    resize: none;
    height: 160px;
    padding-top: 16px;
    font-size: 14px;
    letter-spacing: 1px;
}

.form-submit-btn {
    width: fit-content;
    min-width: 220px;
    margin: 16px auto 0;
    border: none;
    border-radius: 999px;
    padding: 14px 32px;
    background: linear-gradient(90deg, #23f7ff, #a855f7);
    color: #111;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 2px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 8px 24px rgba(35, 247, 255, 0.2), 0 8px 24px rgba(168, 85, 247, 0.2);
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(35, 247, 255, 0.3), 0 12px 28px rgba(168, 85, 247, 0.3);
}

.form-submit-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.form-status {
    min-height: 20px;
    text-align: center;
    font-size: 14px;
    color: #9aa7cd;
}

.form-status.error {
    color: #ff6b6b;
}

.form-status.success {
    color: #27c93f;
}

@media (max-width: 900px) {
    .contact-modal-content {
        padding: 46px 24px 30px;
    }

    .contact-form-title {
        font-size: 30px;
        letter-spacing: 1px;
    }

    .form-input {
        font-size: 15px;
    }

    .form-textarea {
        height: 200px;
        padding-top: 22px;
    }

    .form-submit-btn {
        font-size: 16px;
    }
}

@media (max-width: 1200px) {
    .container {
        width: min(1240px, 94vw);
    }

    section {
        padding: 72px 0;
    }

    .solution-grid {
        gap: 20px;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .case-3d-slide {
        width: min(560px, 86vw);
    }

    .case-3d-card {
        padding: 26px;
    }
}

@media (max-width: 992px) {
    section {
        padding: 64px 0;
    }

    .btn-primary {
        padding: 12px 26px;
        font-size: 15px;
        letter-spacing: 0.5px;
    }

    .solution-card {
        padding: 26px 20px;
    }

    .solution-card h3 {
        font-size: 20px;
    }

    .case-3d-swiper {
        padding-top: 34px;
        padding-bottom: 60px;
    }

    .case-3d-slide {
        width: min(480px, 88vw);
    }

    .case-3d-card {
        padding: 22px;
        border-radius: 20px;
    }

    .case-3d-info h3 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 94vw;
    }

    section {
        padding: 56px 0;
    }

    .btn-primary {
        padding: 11px 22px;
        font-size: 14px;
    }

    .solution-grid {
        grid-template-columns: 1fr;
    }

    .solution-card {
        border-radius: 16px;
        padding: 22px 16px;
    }

    .case-3d-slide {
        width: min(360px, 90vw);
    }

    .case-3d-card {
        padding: 18px;
        border-radius: 16px;
        gap: 14px;
    }

    .case-3d-info h3 {
        font-size: 18px;
    }

    .case-3d-info p {
        font-size: 13px;
    }

    .contact-modal-content {
        width: 94vw;
        border-radius: 14px;
        padding: 42px 16px 24px;
    }

    .contact-modal-close {
        top: 14px;
        right: 14px;
    }

    .contact-form-title {
        font-size: 24px;
    }

    .form-textarea {
        height: 140px;
        padding-top: 14px;
    }

    .form-submit-btn {
        width: 100%;
        min-width: 0;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 48px 0;
    }

    .case-3d-slide {
        width: 92vw;
    }

    .case-3d-prev,
    .case-3d-next {
        width: 40px !important;
        height: 40px !important;
    }

    .case-3d-prev:after,
    .case-3d-next:after {
        font-size: 16px !important;
    }

    .mockup-phone {
        width: 76%;
        max-width: 220px;
    }
}

@media (max-width: 390px) {
    .container {
        width: 95vw;
    }

    section {
        padding: 42px 0;
    }

    .btn-primary {
        padding: 10px 18px;
        font-size: 13px;
    }

    .case-3d-card {
        padding: 14px;
    }

    .case-3d-info h3 {
        font-size: 16px;
    }

    .case-3d-info p {
        font-size: 12px;
    }
}

@media (max-width: 430px) and (max-height: 932px) {
    .contact-modal-content {
        max-height: 84vh;
        overflow: auto;
    }
}

@media (max-width: 1024px) and (orientation: landscape) {
    section {
        padding: 50px 0;
    }

    .case-3d-swiper {
        padding-top: 28px;
        padding-bottom: 48px;
    }

    .contact-modal-content {
        max-height: 82vh;
        overflow: auto;
        padding: 36px 20px 22px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .btn-primary:hover {
        transform: none;
    }

    .solution-card:hover,
    .bento-item:hover .mockup-mac-body img,
    .bento-item:hover .mockup-phone-body img {
        transform: none;
    }

    .solution-card:hover {
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    }

    .case-3d-prev,
    .case-3d-next {
        width: 44px !important;
        height: 44px !important;
    }
}

@media (min-width: 1440px) {
    .container {
        width: min(1320px, 90vw);
    }

    section {
        padding: 90px 0;
    }

    .case-3d-slide {
        width: min(660px, 42vw);
    }

    .case-3d-card {
        padding: 34px;
    }
}

@media (min-resolution: 2dppx) {
    .mockup-mac-body img,
    .mockup-phone-body img {
        image-rendering: auto;
    }
}

@media (max-width: 375px) and (max-height: 667px) {
    .btn-primary {
        min-height: 40px;
    }

    .case-3d-slide {
        width: 94vw;
    }

    .case-3d-card {
        padding: 12px;
    }

    .contact-modal-content {
        width: 95vw;
        max-height: 86vh;
        padding: 34px 12px 18px;
    }

    .form-input {
        padding: 12px 14px;
        font-size: 13px;
    }

    .form-submit-btn {
        min-height: 40px;
        font-size: 14px;
    }
}

@media (min-width: 428px) and (max-width: 430px) and (min-height: 920px) {
    .container {
        width: 93vw;
    }

    section {
        padding: 52px 0;
    }

    .btn-primary {
        min-height: 46px;
    }

    .case-3d-slide {
        width: min(370px, 88vw);
    }
}

@media (min-width: 810px) and (max-width: 834px) and (orientation: portrait) {
    .container {
        width: 91vw;
    }

    section {
        padding: 62px 0;
    }

    .solution-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) and (max-width: 940px) and (orientation: portrait) {
    .container {
        width: 90vw;
    }

    .btn-primary {
        min-height: 44px;
    }
}

@media (min-width: 1920px) {
    .container {
        width: min(1480px, 84vw);
    }

    section {
        padding: 96px 0;
    }

    .btn-primary {
        padding: 15px 34px;
        font-size: 17px;
    }
}

@media (min-width: 2560px) {
    .container {
        width: min(1680px, 78vw);
    }

    section {
        padding: 108px 0;
    }
}
