﻿.defense-page {
    position: relative;
    background: transparent;
    color: #141627;
}

/* 页脚视差图为负 translateY 时易与上方 CTA 叠层；保证按钮区块在上层 */
.defense-page .footer .common_sec .btn {
    position: relative;
    z-index: 2;
}

.defense-page .footer .common_sec .pic {
    position: relative;
    z-index: 1;
}

.defense-page * {
    box-sizing: border-box;
}

.home.defense-page {
    background: transparent !important;
}

/* 仅作用于 header 下方的首屏区域（不是某个 section） */
.defense-page::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: min(36vh, 360px);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.88) 42%,
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.defense-page__bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
}

.section-wrap {
    width: min(1500px, 92vw);
    margin: 0 auto;
}

.section-head {
    text-align: center;
    max-width: 980px;
    margin: 0 auto 3.2vw;
}

.section-head h2 {
    font-size: clamp(28px, 2.3vw, 46px);
    line-height: 1.25;
    color: #7245ff;
    margin: 0 0 1vw;
}

.section-head p {
    margin: 0;
    font-size: clamp(15px, 0.95vw, 18px);
    line-height: 1.85;
    color: #4b4f67;
}

.defense-kv {
    position: relative;
    padding-top: 7.5vw;
    padding-bottom: 6vw;
    margin: 8.75vw auto 1.30208vw;
    overflow: hidden;
    background: transparent;
}

.defense-kv__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3vw;
}

.defense-kv__content h1 {
    margin: 0;
    font-size: clamp(34px, 3vw, 56px);
    line-height: 1.16;
    color: #1d1f33;
}

.defense-kv__content h2 {
    margin: 1vw 0 1.2vw;
    font-size: clamp(20px, 1.55vw, 32px);
    line-height: 1.35;
    color: #7245ff;
    font-weight: 600;
}

.defense-kv__content p {
    margin: 0;
    font-size: clamp(15px, 1vw, 19px);
    line-height: 1.9;
    color: #3e445c;
    max-width: 760px;
}

.defense-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.8vw;
    padding: 0 34px;
    height: 52px;
    border-radius: 999px;
    background: linear-gradient(90deg, #6f41ff 0%, #8f67ff 100%);
    color: #ffffff;
    font-size: 17px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.defense-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(114, 69, 255, 0.3);
}

.defense-kv__visual {
    position: relative;
    height: min(36vw, 560px);
    border-radius: 26px;
    overflow: hidden;
    background: radial-gradient(circle at 30% 20%, #d7c9ff 0%, #f6f3ff 45%, #ffffff 100%);
    border: 1px solid #ece6ff;
    isolation: isolate;
}

.defense-kv__sweep {
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    width: 160%;
    height: 160%;
    margin: -80% 0 0 -80%;
    pointer-events: none;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        rgba(114, 69, 255, 0.07) 55deg,
        rgba(114, 69, 255, 0.18) 90deg,
        rgba(114, 69, 255, 0.07) 125deg,
        transparent 180deg,
        transparent 360deg
    );
    animation: defenseSweepRotate 14s linear infinite;
}

.defense-kv__mesh {
    position: absolute;
    z-index: 1;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    overflow: hidden;
}

.defense-kv__mesh--1 {
    inset: 6%;
    mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, #000 55%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, #000 55%, transparent 100%);
}

.defense-kv__mesh-pattern {
    position: absolute;
    width: calc(100% + 160px);
    height: calc(100% + 160px);
    left: -80px;
    top: -80px;
    background-image:
        linear-gradient(rgba(114, 69, 255, 0.28) 1px, transparent 1px),
        linear-gradient(90deg, rgba(114, 69, 255, 0.28) 1px, transparent 1px);
    background-size: 32px 32px;
    animation: defenseMeshPan 7s linear infinite;
    will-change: transform;
}

.defense-kv__mesh-pattern--fine {
    background-size: 16px 16px;
    animation-name: defenseMeshPanRev;
    animation-duration: 9s;
    opacity: 0.55;
}

.defense-kv__mesh--2 {
    inset: 0;
    opacity: 0.55;
}

.defense-kv__glow {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 48%;
    width: 55%;
    height: 55%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(114, 69, 255, 0.22) 0%, transparent 68%);
    animation: defenseGlowPulse 5s ease-in-out infinite;
    pointer-events: none;
}

.orbit {
    position: absolute;
    z-index: 3;
    border: 1px solid rgba(114, 69, 255, 0.45);
    border-radius: 50%;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    animation: defenseOrbitSpin 22s linear infinite;
    will-change: transform;
}

.orbit-1 {
    width: 48%;
    aspect-ratio: 1 / 1;
}

.orbit-2 {
    width: 66%;
    aspect-ratio: 1 / 1;
    animation-duration: 30s;
    animation-direction: reverse;
    border-color: rgba(114, 69, 255, 0.32);
}

.orbit-3 {
    width: 84%;
    aspect-ratio: 1 / 1;
    animation-duration: 40s;
    border-color: rgba(114, 69, 255, 0.22);
}

.defense-kv__streams {
    position: absolute;
    z-index: 4;
    inset: 0;
    pointer-events: none;
}

.defense-kv__streams .stream {
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
}

.stream-line {
    position: absolute;
    left: 6%;
    right: 6%;
    top: 50%;
    height: 2px;
    margin-top: -1px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(114, 69, 255, 0.15) 18%,
        rgba(114, 69, 255, 0.45) 50%,
        rgba(114, 69, 255, 0.15) 82%,
        transparent 100%
    );
    overflow: hidden;
}

.stream-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.85),
        transparent
    );
    width: 28%;
    animation: defenseShimmer 1.6s linear infinite;
}

.packet-track {
    position: absolute;
    left: 6%;
    right: 6%;
    top: 50%;
    height: 16px;
    margin-top: -8px;
    overflow: visible;
}

.packet {
    position: absolute;
    top: 50%;
    left: 0;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #a889ff 38%, #7245ff 100%);
    box-shadow:
        0 0 16px rgba(114, 69, 255, 1),
        0 0 32px rgba(114, 69, 255, 0.55);
    animation: defensePacketRun 2.1s linear infinite;
    will-change: left;
}

.packet-track:nth-child(3) .packet {
    animation-delay: 0.85s;
}

.stream-1 {
    top: 24%;
}

.stream-2 {
    top: 44%;
}

.stream-2 .packet {
    animation-duration: 1.8s;
    animation-direction: reverse;
}

.stream-2 .packet-track:nth-child(3) .packet {
    animation-delay: 0.65s;
}

.stream-3 {
    top: 64%;
}

.stream-3 .packet {
    animation-duration: 2.4s;
}

.stream-3 .packet-track:nth-child(3) .packet {
    animation-delay: 1.1s;
}

.stream-4 {
    top: 82%;
}

.stream-4 .packet {
    animation-duration: 2s;
}

.stream-4 .packet-track:nth-child(3) .packet {
    animation-delay: 0.55s;
}

/* 浠呭叧闂己鍔ㄦ€佸厓绱狅紱缃戞牸淇濈暀鏋佹參骞崇Щ锛岄伩鍏嶇郴缁熷紑鍚€屽噺灏戝姩鎬佹晥鏋溿€嶆椂鏁村尯瀹屽叏闈欐 */
@media (prefers-reduced-motion: reduce) {
    .defense-kv__sweep,
    .orbit,
    .packet,
    .stream-line::after,
    .defense-kv__glow {
        animation: none !important;
    }

    /* 鍔ㄧ敾琚郴缁熷叧闂悗锛屽厜鐐逛細鍗″湪杞ㄩ亾璧风偣鐪嬭捣鏉ュ儚銆屽潖鎺夌殑浜偣銆嶏紝鐩存帴闅愯棌 */
    .packet {
        opacity: 0 !important;
        visibility: hidden;
    }

    .defense-kv__mesh-pattern {
        animation-duration: 24s !important;
    }

    .defense-kv__mesh--2 {
        opacity: 0.25;
    }
}

.defense-capabilities {
    padding: 2.4vw 0 0.6vw;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25vw;
}

.cap-card {
    border: 1px solid #ece6ff;
    border-radius: 18px;
    background: #fbfaff;
    padding: 1.5vw 1.25vw;
    min-height: 220px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cap-card:hover {
    transform: translateY(-8px);
    border-color: #d7c9ff;
    box-shadow: 0 20px 36px rgba(114, 69, 255, 0.16);
}

.cap-card h3 {
    margin: 0 0 0.8vw;
    font-size: clamp(19px, 1.2vw, 24px);
    line-height: 1.35;
    color: #2a2b45;
}

.cap-card p {
    margin: 0;
    font-size: clamp(14px, 0.9vw, 17px);
    line-height: 1.85;
    color: #4f536d;
}

.defense-scenes {
    padding: 5.4vw 0 0.6vw;
}

.scene-wrap {
    display: grid;
    grid-template-columns: 0.34fr 0.66fr;
    gap: 1.5vw;
    align-items: stretch;
}

.scene-tabs {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.scene-tab {
    width: 100%;
    border: 1px solid #e4dbff;
    border-radius: 14px;
    background: #f8f5ff;
    color: #3a3f59;
    text-align: left;
    padding: 1vw 1.2vw;
    font-size: clamp(15px, 0.95vw, 18px);
    cursor: pointer;
    transition: all 0.25s ease;
}

.scene-tab.is-active {
    background: #7245ff;
    border-color: #7245ff;
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(114, 69, 255, 0.24);
}

.scene-content {
    border: 1px solid #e8e1ff;
    border-radius: 20px;
    background: linear-gradient(145deg, #f9f6ff 0%, #ffffff 100%);
    min-height: 320px;
    display: block;
    overflow: hidden;
}

.scene-panel {
    display: none;
    width: 100%;
    min-height: 320px;
    height: 100%;
}

.scene-panel.is-active {
    display: grid;
    grid-template-columns: 0.42fr 0.58fr;
    align-items: stretch;
}

.scene-panel__text {
    padding: 2.2vw 1.3vw 2.2vw 2vw;
    display: flex;
    align-items: center;
}

.scene-panel__media {
    width: 100%;
    height: 100%;
    min-height: 320px;
}

.scene-panel__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.scene-panel p {
    margin: 0;
    font-size: clamp(16px, 1vw, 20px);
    line-height: 1.9;
    color: #2c314d;
}

.defense-base {
    padding: 5.4vw 0 0.8vw;
}

.base-graph {
    position: relative;
    min-height: 430px;
    border-radius: 24px;
    border: 1px solid #e8e1ff;
    background: radial-gradient(circle at center, #f4efff 0%, #fdfcff 58%, #ffffff 100%);
    overflow: hidden;
}

.base-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(32vw, 460px);
    min-height: 88px;
    border-radius: 16px;
    background: #7245ff;
    color: #ffffff;
    font-size: clamp(20px, 1.5vw, 30px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 18px 30px rgba(114, 69, 255, 0.32);
    z-index: 2;
}

.base-node {
    position: absolute;
    min-width: 118px;
    padding: 0.65vw 1.1vw;
    border-radius: 999px;
    border: 1px solid #d5c4ff;
    background: #ffffff;
    color: #3b4060;
    text-align: center;
    font-size: clamp(14px, 0.85vw, 17px);
    z-index: 2;
}

.base-link {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, rgba(199, 178, 255, 0.1), rgba(199, 178, 255, 0.9), rgba(199, 178, 255, 0.1));
    transform-origin: left center;
    z-index: 1;
    left: 0;
    top: 0;
    width: 0;
}

.node-1 {
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
}

.node-2 {
    top: 28%;
    left: 15%;
}

.node-3 {
    top: 68%;
    left: 20%;
}

.node-4 {
    top: 28%;
    right: 15%;
}

.node-5 {
    top: 68%;
    right: 20%;
}

.base-advantages {
    margin-top: 1.3vw;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1vw;
}

.adv-item {
    background: #f9f6ff;
    border: 1px solid #e7e0ff;
    border-radius: 16px;
    padding: 1.15vw;
}

.adv-item h3 {
    margin: 0 0 0.7vw;
    font-size: clamp(17px, 1.05vw, 21px);
    color: #272b45;
    line-height: 1.4;
}

.adv-item p {
    margin: 0;
    font-size: clamp(14px, 0.85vw, 16px);
    line-height: 1.75;
    color: #505571;
}

.defense-security {
    padding: 5.4vw 0 6vw;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2vw;
}

.security-card {
    border-radius: 18px;
    border: 1px solid #e5ddff;
    background: linear-gradient(145deg, #fbfaff 0%, #ffffff 100%);
    padding: 1.4vw 1.3vw;
    min-height: 210px;
}

.security-card h3 {
    margin: 0 0 0.8vw;
    font-size: clamp(19px, 1.2vw, 25px);
    line-height: 1.36;
    color: #252b45;
}

.security-card p {
    margin: 0;
    font-size: clamp(14px, 0.9vw, 17px);
    line-height: 1.85;
    color: #4e536d;
}

@keyframes defenseMeshPan {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-128px, -128px, 0);
    }
}

@keyframes defenseMeshPanRev {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(96px, -96px, 0);
    }
}

@keyframes defenseSweepRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes defenseGlowPulse {
    0%,
    100% {
        opacity: 0.55;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.85;
        transform: translate(-50%, -50%) scale(1.06);
    }
}

@keyframes defenseOrbitSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes defenseShimmer {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(320%);
    }
}

@keyframes defensePacketRun {
    0% {
        left: 0;
        opacity: 0.35;
    }
    8% {
        opacity: 1;
    }
    92% {
        opacity: 1;
    }
    100% {
        left: calc(100% - 14px);
        opacity: 0.35;
    }
}

@media (max-width: 1200px) {
    .defense-kv {
        padding-top: 120px;
        padding-bottom: 64px;
        margin: 100px auto 20px;
    }

    .defense-kv__grid {
        grid-template-columns: 1fr;
    }

    .defense-kv__visual {
        height: 420px;
    }

    .capability-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .scene-wrap {
        grid-template-columns: 1fr;
    }

    .scene-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .scene-tab {
        width: calc(50% - 5px);
        text-align: center;
        padding: 14px;
    }

    .scene-content {
        min-height: 260px;
    }

    .scene-panel,
    .scene-panel__media {
        min-height: 260px;
    }

    .scene-panel.is-active {
        grid-template-columns: 0.44fr 0.56fr;
    }

    .scene-panel__text {
        padding: 24px 18px 24px 24px;
    }

    .base-graph {
        min-height: 480px;
    }

    .base-center {
        width: min(420px, 72vw);
    }

    .base-advantages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: 16px;
    }

    .security-grid {
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .defense-page::before {
        display: none;
    }

    .section-wrap {
        width: 90vw;
    }

    .section-head {
        margin-bottom: 22px;
    }

    .defense-kv {
        padding-top: 96px;
        padding-bottom: 48px;
        margin: 84px auto 16px;
        border-radius: 16px;
    }

    .defense-kv__content h2 {
        margin: 12px 0 14px;
    }

    .defense-btn {
        margin-top: 18px;
        height: 48px;
        padding: 0 24px;
        font-size: 15px;
    }

    .defense-kv__visual {
        height: 300px;
        border-radius: 18px;
    }

    .defense-capabilities,
    .defense-scenes,
    .defense-base,
    .defense-security {
        padding-top: 44px;
    }

    .capability-grid,
    .security-grid,
    .base-advantages {
        grid-template-columns: 1fr;
    }

    .cap-card,
    .security-card,
    .adv-item {
        padding: 18px 16px;
        min-height: 0;
    }

    .scene-tab {
        width: 100%;
    }

    .scene-content {
        min-height: 220px;
        border-radius: 16px;
    }

    .scene-panel {
        min-height: 220px;
    }

    .scene-panel.is-active {
        grid-template-columns: 1fr;
    }

    .scene-panel__text {
        padding: 16px 14px;
    }

    .scene-panel__media {
        height: 210px;
        min-height: 210px;
    }

    .base-graph {
        min-height: 600px;
        padding-top: 120px;
    }

    .base-center {
        top: 44%;
        min-height: 70px;
        border-radius: 12px;
        padding: 0 18px;
    }

    .base-node {
        min-width: 100px;
        padding: 8px 12px;
    }

    .node-1 {
        top: 8%;
    }

    .node-2 {
        top: 25%;
        left: 5%;
    }

    .node-3 {
        top: 68%;
        left: 8%;
    }

    .node-4 {
        top: 25%;
        right: 5%;
    }

    .node-5 {
        top: 68%;
        right: 8%;
    }

}

