/* ============================================================
   合肥安堃混凝土官网 · 新版 UI（深色极光主题骨架）
   设计语言：Aurora 极光背景 · 玻璃拟态 · 紫蓝×亮绿渐变
   说明：本版为 UI 骨架，所有图文位使用占位块（.ph），
        真实资料待 UI 定稿后统一填充。
   ============================================================ */

/* ===== 变量 ===== */
:root {
    --ink: #070d17;
    --ink-2: #0a1526;
    --glass: rgba(11, 20, 36, 0.55);
    --glass-2: rgba(11, 20, 36, 0.78);
    --line: rgba(255, 255, 255, 0.10);
    --line-2: rgba(255, 255, 255, 0.20);
    --text: #eef3fb;
    --dim: rgba(238, 243, 251, 0.66);
    --mute: rgba(238, 243, 251, 0.40);
    --violet: #5227ff;
    --green: #7cff67;
    --grad: linear-gradient(135deg, #5227ff 0%, #7cff67 100%);
    --grad-soft: linear-gradient(135deg, rgba(82, 39, 255, 0.35) 0%, rgba(124, 255, 103, 0.22) 100%);
    --radius: 20px;
    --radius-lg: 28px;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 18px 60px rgba(82, 39, 255, 0.28);
    --t: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--ink);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== 极光背景层（全站固定） ===== */
#auroraCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* 内容层统一抬到背景之上 */
.page { position: relative; z-index: 1; }

/* ===== 占位块（UI 骨架用，填资料时替换）=====
   按美学处理：柔和渐变面 + 内高光，不用虚线"占位格"观感 */
.ph {
    position: relative;
    border-radius: 16px;
    background:
        linear-gradient(150deg, rgba(82, 39, 255, 0.20) 0%, rgba(124, 255, 103, 0.08) 48%, rgba(10, 18, 34, 0.28) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 12px 34px rgba(3, 7, 15, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(238, 243, 251, 0.26);
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-align: center;
    padding: 12px;
    overflow: hidden;
    transition: var(--t);
}
.ph::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.05) 50%, transparent 66%);
    pointer-events: none;
}
.ph-16x9 { aspect-ratio: 16 / 9; }
.ph-square { aspect-ratio: 1 / 1; }
.ph-3x4 { aspect-ratio: 3 / 4; }
.ph-4x3 { aspect-ratio: 4 / 3; }
.ph-avatar { aspect-ratio: 1 / 1; border-radius: 50%; font-size: 0.66rem; letter-spacing: 1px; }
/* ===== 无限螺旋相册 =====
   美学取向：不加容器外框，让图片自由漂浮在极光背景上，
   层次完全由景深(z)、模糊、缩放与明暗对比自然形成 */
.spiral-wrap {
    position: relative;
    height: 620px;
    overflow: hidden;
}
.infinite-spiral {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    overflow: hidden;
    isolation: isolate;
}
.infinite-spiral__stage {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
}
.infinite-spiral__item {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 16px 42px rgba(3, 7, 15, 0.42);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity, filter;
    transition: box-shadow var(--t), border-color var(--t);
}
.infinite-spiral__item:hover {
    border-color: rgba(124, 255, 103, 0.55);
    box-shadow: 0 20px 52px rgba(3, 7, 15, 0.55), 0 0 34px rgba(124, 255, 103, 0.22);
}
.infinite-spiral__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-position: center;
    user-select: none;
}

/* ===== MagicBento 魔法网格（核心优势区）===== */
.card-grid {
    display: grid;
    gap: 0.5em;
    padding: 0.75em;
    max-width: 54em;
    margin: 0 auto;
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.5rem);
}
.magic-bento-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    aspect-ratio: 4 / 3;
    min-height: 212px;
    width: 100%;
    padding: 1.25em;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(11, 20, 36, 0.60);
    backdrop-filter: blur(10px);
    font-weight: 300;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    --glow-x: 50%;
    --glow-y: 50%;
    --glow-intensity: 0;
    --glow-radius: 200px;
    --magic-glow: 132, 0, 255;
}
.magic-bento-card:hover { transform: translateY(-2px); }
.magic-bento-card__header,
.magic-bento-card__content { position: relative; color: #fff; }
.magic-bento-card__header { display: flex; justify-content: space-between; }
.magic-bento-card__content { display: flex; flex-direction: column; }
.magic-bento-card__label { font-size: 16px; color: rgba(255, 255, 255, 0.55); letter-spacing: 2px; }
.magic-bento-card__title { font-weight: 500; font-size: 16px; margin: 0 0 0.25em; }
.magic-bento-card__description { font-size: 12px; line-height: 1.2; opacity: 0.9; }
.magic-bento-card--text-autohide .magic-bento-card__title,
.magic-bento-card--text-autohide .magic-bento-card__description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.magic-bento-card--text-autohide .magic-bento-card__title { -webkit-line-clamp: 1; line-clamp: 1; }
.magic-bento-card--text-autohide .magic-bento-card__description { -webkit-line-clamp: 2; line-clamp: 2; }

/* 核心优势要点列表：填充卡片，避免视觉空洞 */
.bento-points {
    list-style: none;
    margin: 0.55em 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.bento-points li {
    position: relative;
    padding-left: 16px;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(238, 243, 251, 0.8);
    font-weight: 300;
}
.bento-points li::before {
    content: '';
    position: absolute;
    left: 1px;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px rgba(124, 255, 103, 0.55);
}

/* 边框辉光（渐变环 mask，由 --glow-intensity/x/y 驱动） */
.magic-bento-card--border-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 6px;
    background: radial-gradient(
        var(--glow-radius) circle at var(--glow-x) var(--glow-y),
        rgba(var(--magic-glow), calc(var(--glow-intensity) * 0.8)) 0%,
        rgba(var(--magic-glow), calc(var(--glow-intensity) * 0.4)) 30%,
        transparent 60%);
    border-radius: inherit;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}
.magic-bento-card--border-glow:hover {
    box-shadow: 0 4px 20px rgba(46, 24, 78, 0.4), 0 0 30px rgba(var(--magic-glow), 0.2);
}
.particle::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: rgba(var(--magic-glow), 0.2);
    border-radius: 50%;
    z-index: -1;
}
@media (max-width: 599px) {
    .card-grid { grid-template-columns: 1fr; width: 100%; margin: 0 auto; padding: 0.5em; }
    .magic-bento-card { min-height: 180px; }
}
@media (min-width: 600px) and (max-width: 1023px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .card-grid { grid-template-columns: repeat(4, 1fr); }
    .magic-bento-card:nth-child(3) { grid-column: span 2; grid-row: span 2; }
    .magic-bento-card:nth-child(4) { grid-column: 1 / span 2; grid-row: 2 / span 2; }
    .magic-bento-card:nth-child(6) { grid-column: 4; grid-row: 3; }
}

/* ===== Accordion Gallery（核心优势图片手风琴）===== */
.accordion-gallery {
    --ag-accent: #7cff67;
    --ag-overlay: #060010;
    --ag-text: #ffffff;
    --ag-gap: 10px;
    --ag-radius: 16px;
    --ag-media-size: 320px;
    display: flex;
    flex-direction: row;
    gap: var(--ag-gap);
    width: 100%;
    max-width: 100%;
    perspective: 1400px;
    perspective-origin: 50% 50%;
}
.accordion-gallery--vertical { flex-direction: column; }

.ag-panel {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: var(--ag-radius);
    cursor: pointer;
    display: block;
    text-decoration: none;
    outline: none;
    transform-style: preserve-3d;
    transform-origin: center center;
    background: #0a0713;
    box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
    will-change: flex-grow, transform;
    -webkit-tap-highlight-color: transparent;
}
.ag-panel:focus-visible { box-shadow: 0 0 0 2px var(--ag-accent), 0 10px 30px -18px rgba(0, 0, 0, 0.8); }

.ag-panel__frame { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.ag-panel__media {
    --ag-gray: 0;
    --ag-dim: 0.35;
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--ag-media-size);
    height: 100%;
    filter: grayscale(var(--ag-gray));
    will-change: transform, filter;
}
.accordion-gallery--vertical .ag-panel__media { width: 100%; height: var(--ag-media-size); }
.ag-panel__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}
.ag-panel__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, transparent 38%, color-mix(in srgb, var(--ag-overlay) 82%, transparent) 100%),
        color-mix(in srgb, var(--ag-overlay) calc(var(--ag-dim, 0.35) * 100%), transparent);
}

/* 收起态：竖排标题，避免窄框空白 */
.ag-panel__vlabel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    z-index: 2;
    margin: 0 auto;
    width: fit-content;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: clamp(0.85rem, 1vw, 1rem);
    font-weight: 700;
    letter-spacing: 3px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    opacity: 0.92;
    transition: opacity 0.35s ease;
}
.ag-panel--active .ag-panel__vlabel { opacity: 0; }

/* 展开态：完整文字内容 */
.ag-panel__content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(16px, 2.2vw, 30px);
    pointer-events: none;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.ag-panel--active .ag-panel__content { opacity: 1; transform: none; }

.ag-panel__badge {
    position: absolute;
    top: clamp(14px, 2vw, 26px);
    left: clamp(16px, 2.2vw, 30px);
    display: flex;
    align-items: center;
    gap: 8px;
}
.ag-panel__badge .bento-icon {
    width: 26px;
    height: 26px;
    color: var(--ag-accent);
    filter: drop-shadow(0 0 8px color-mix(in srgb, var(--ag-accent) 60%, transparent));
}
.ag-panel__badge b {
    font-size: 0.9rem;
    color: var(--ag-accent);
    letter-spacing: 1px;
}
.ag-panel__title {
    font-size: clamp(1.05rem, 1.6vw, 1.7rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.45em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}
.ag-panel__desc {
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(0.85rem, 1vw, 0.98rem);
    line-height: 1.55;
    margin: 0 0 0.7em;
    max-width: 46ch;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.ag-panel__content .bento-points { margin: 0; }
.ag-panel__content .bento-points li {
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(0.8rem, 0.95vw, 0.92rem);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

@media (max-width: 600px) {
    .accordion-gallery {
        flex-direction: column;
        perspective: none;
        height: auto !important;
    }
    .ag-panel { min-height: 92px; transform: none !important; }
    .accordion-gallery .ag-panel__media { width: 100%; height: var(--ag-media-size); }
    .ag-panel__vlabel { writing-mode: horizontal-tb; bottom: 12px; }
}

/* 通用辉光边框：所有 .glass / .cert-card 共享（跟随鼠标的紫色渐变环）
   与 MagicBento 同款 mask 技术，--glow-x/y/intensity 由 JS 驱动 */
.glass::after,
.cert-card::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 5px;
    background: radial-gradient(
        var(--glow-radius) circle at var(--glow-x) var(--glow-y),
        rgba(var(--magic-glow, 132, 0, 255), calc(var(--glow-intensity) * 0.8)) 0%,
        rgba(var(--magic-glow, 132, 0, 255), calc(var(--glow-intensity) * 0.4)) 30%,
        transparent 60%);
    border-radius: inherit;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
    opacity: 1;
}

/* ===== ProfileCard 个人资料卡（服务团队）===== */
.pc-card-wrapper {
    perspective: 500px;
    transform: translate3d(0, 0, 0.1px);
    position: relative;
    --card-opacity: 0;
    --pointer-x: 50%;
    --pointer-y: 50%;
    --pointer-from-center: 0;
    --pointer-from-top: 0.5;
    --pointer-from-left: 0.5;
    --background-x: 50%;
    --background-y: 50%;
    --rotate-x: 0deg;
    --rotate-y: 0deg;
    --behind-glow-color: rgba(132, 0, 255, 0.42);
    --inner-gradient: linear-gradient(145deg, rgba(82, 39, 255, 0.38) 0%, rgba(56, 189, 248, 0.16) 100%);
}
.pc-card-wrapper:hover,
.pc-card-wrapper.active { --card-opacity: 1; }

.pc-behind {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at var(--pointer-x) var(--pointer-y),
        var(--behind-glow-color) 0%, transparent 62%);
    filter: blur(50px) saturate(1.1);
    opacity: calc(0.8 * var(--card-opacity));
    transition: opacity 200ms ease;
}
.pc-card-shell { position: relative; z-index: 1; }
.pc-card-shell.entering .pc-card { transition: transform 180ms ease-out; }

.pc-card {
    aspect-ratio: 0.718;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    background: rgba(7, 13, 23, 0.88);
    box-shadow:
        rgba(0, 0, 0, 0.8) calc((var(--pointer-from-left) * 10px) - 3px)
        calc((var(--pointer-from-top) * 20px) - 6px) 20px -5px,
        0 20px 50px rgba(0, 0, 0, 0.4);
    transition: transform 1s ease;
    transform: translateZ(0) rotateX(0deg) rotateY(0deg);
}
.pc-card:hover,
.pc-card.active {
    transition: none;
    transform: translateZ(0) rotateX(var(--rotate-y)) rotateY(var(--rotate-x));
}
.pc-card > * { border-radius: inherit; pointer-events: none; }

.pc-inside {
    position: absolute;
    inset: 0;
    background-image: var(--inner-gradient);
    background-color: rgba(7, 13, 23, 0.9);
}
.pc-glare {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: radial-gradient(farthest-corner circle at var(--pointer-x) var(--pointer-y),
        hsla(248, 60%, 85%, 0.35) 8%, hsla(207, 40%, 30%, 0.25) 55%, transparent 90%);
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* 头像层 */
.pc-avatar-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    display: block;
}
.pc-avatar-content .avatar {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: translateX(calc(-50% + (var(--pointer-from-left) - 0.5) * 6px))
        scaleY(calc(1 + (var(--pointer-from-top) - 0.5) * 0.02))
        scaleX(calc(1 + (var(--pointer-from-left) - 0.5) * 0.01));
    transition: transform 120ms ease-out;
    will-change: transform;
    /* 头像底部渐隐融入卡片 */
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
}

/* 底部玻璃信息条 */
.pc-user-info {
    position: absolute;
    bottom: 18px;
    left: 18px;
    right: 18px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(26px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 12px 14px;
}
.pc-user-details { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pc-mini-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    flex-shrink: 0;
}
.pc-mini-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.pc-user-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pc-handle { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.92); line-height: 1; white-space: nowrap; }
.pc-status { font-size: 13px; color: rgba(124, 255, 103, 0.85); line-height: 1; }
.pc-contact-btn {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.pc-contact-btn:hover { border-color: rgba(124, 255, 103, 0.6); color: #fff; transform: translateY(-1px); }

/* 姓名 + 职务（渐变字） */
.pc-content {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 96px;
    text-align: center;
    transform: translate3d(
        calc(var(--pointer-from-left) * -6px + 3px),
        calc(var(--pointer-from-top) * -6px + 3px),
        0.1px);
}
.pc-details h3 {
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    font-weight: 700;
    margin: 0 0 6px;
    background-image: linear-gradient(to bottom, #ffffff, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pc-details p {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    color: rgba(238, 243, 251, 0.66);
}

/* 点击"了解我"滑入的个人介绍层 */
.pc-about {
    position: absolute;
    inset: 0;
    z-index: 6;
    background: rgba(7, 13, 23, 0.95);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 26px 22px;
    border-radius: inherit;
    transform: translateY(102%);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}
.pc-about.open { transform: translateY(0); }
.pc-about-inner {
    text-align: center;
    max-height: 100%;
    overflow-y: auto;
    width: 100%;
}
.pc-about-inner::-webkit-scrollbar { width: 4px; }
.pc-about-inner::-webkit-scrollbar-thumb { background: rgba(124, 255, 103, 0.3); border-radius: 4px; }
.pc-about-inner h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 14px;
    background-image: linear-gradient(to bottom, #ffffff, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pc-about-inner p {
    font-size: 0.86rem;
    line-height: 1.85;
    color: rgba(238, 243, 251, 0.80);
}
.pc-about-close {
    margin-top: 18px;
    border: 1px solid rgba(124, 255, 103, 0.40);
    border-radius: 100px;
    padding: 9px 26px;
    font-size: 12px;
    font-weight: 600;
    color: var(--green);
    background: rgba(124, 255, 103, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
}
.pc-about-close:hover { background: rgba(124, 255, 103, 0.20); transform: translateY(-1px); }

/* ===== CardSwap 卡片交换（服务团队轮换）===== */
.card-swap-container {
    position: relative;
    width: min(360px, 92vw);
    aspect-ratio: 0.72;
    /* 上方留白：给向上堆叠的卡片让出空间，避免遮挡板块标题 */
    margin: 130px auto 70px;
    perspective: 900px;
    overflow: visible;
}
.card-swap-container .pc-card-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* 后方卡片可点击切换，给出手型提示 */
    cursor: pointer;
}

/* 相册区：移除旧瀑布流网格（已由螺旋替代） */
.ph-logo { width: 132px; height: 40px; border-radius: 10px; font-size: 0.68rem; letter-spacing: 2px; }

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: rgba(16, 26, 44, 0.22);
    backdrop-filter: blur(16px) saturate(150%);
    border-bottom: 1px solid transparent;
    transition: var(--t);
}
.navbar.scrolled {
    background: rgba(16, 26, 44, 0.6);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.nav-logo-img { height: 34px; width: auto; display: block; filter: drop-shadow(0 1px 4px rgba(0,0,0,.45)); }
.nav-menu { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-link {
    font-size: 0.92rem;
    color: var(--dim);
    position: relative;
    transition: var(--t);
    white-space: nowrap;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    width: 0; height: 2px;
    background: var(--grad);
    transition: var(--t);
    border-radius: 2px;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--text); margin: 5px 0; border-radius: 2px;
    transition: var(--t);
}

/* ===== 通用 Section ===== */
.section { padding: 112px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 62px; }
.section-kicker {
    display: inline-block;
    font-size: 0.74rem; font-weight: 700;
    letter-spacing: 5px; text-transform: uppercase;
    color: var(--green);
    margin-bottom: 14px;
}
.section-title {
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    font-weight: 800; letter-spacing: 1px;
    position: relative; display: inline-block;
}
.section-title::after {
    content: ''; display: block;
    width: 72px; height: 4px;
    background: var(--grad);
    margin: 16px auto 0; border-radius: 4px;
}
.section-desc { margin-top: 14px; color: var(--dim); font-size: 1rem; }

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 120px 24px 80px;
}
.hero-kicker {
    display: inline-block;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 4px;
    color: var(--text);
    padding: 8px 20px; border-radius: 100px;
    background: rgba(82, 39, 255, 0.18);
    border: 1px solid rgba(124, 255, 103, 0.32);
    margin: 0 0 24px;
}
.hero-title {
    margin-bottom: 20px;
    line-height: 0;
    display: grid;
    place-items: center;
}
/* hero 标题：描边层与 3D 立体层叠放在同一网格单元，便于描边结束后交叉淡入立体字 */
.hero-title > * {
    grid-area: 1 / 1;
}
.hero-title .stroke-text {
    /* 描边层与 3D 立体层共用同一自适应字号，保证描边阶段字号与终态一致 */
    width: calc(11 * clamp(1.5rem, 7vw, 5.5rem) * 0.98);
    max-width: 100%;
}

/* ===== StrokeText 描边标题 ===== */
.stroke-text {
    display: block;
    width: 100%;
    line-height: 0;
}
.stroke-text__svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}
.stroke-text__stroke,
.stroke-text__fill {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    user-select: none;
}

/* ===== DepthText 3D 立体字（描边动画结束后叠加）===== */
.depth-text {
    display: inline-block;
    perspective: var(--depth-text-perspective);
    perspective-origin: 50% 48%;
    isolation: isolate;
}
.depth-text__stage {
    position: relative;
    display: inline-grid;
    place-items: center;
    transform-style: preserve-3d;
    transform: rotateX(-2.4deg) rotateY(3.15deg);
    transform-origin: 50% 50%;
    will-change: transform;
}
.depth-text__layer,
.depth-text__face {
    grid-area: 1 / 1;
    display: inline-block;
    font-size: var(--depth-text-font-size);
    font-weight: var(--depth-text-font-weight);
    line-height: 0.86;
    letter-spacing: -0.02em;
    white-space: nowrap;
    user-select: none;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    font-kerning: normal;
    text-rendering: geometricPrecision;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.depth-text__layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    filter: saturate(0.95) brightness(0.92);
    pointer-events: none;
}
.depth-text__face {
    position: relative;
    z-index: 1;
    color: var(--depth-text-face-color);
    text-shadow: var(--depth-text-shadow);
    transform: translateZ(0.6px);
}
@media (hover: hover) and (pointer: fine) {
    .depth-text { cursor: default; }
}
@media (prefers-reduced-motion: reduce) {
    .depth-text__stage { will-change: auto; }
}

/* ===== ShinyText 闪亮文字（纯 CSS 扫光）===== */
.shiny-text {
    --shiny-color: currentColor;
    --shiny-shine: #ffffff;
    --shiny-speed: 2s;
    --shiny-spread: 120deg;
    --shiny-delay: 0s;
    display: inline-block;
    background-image: linear-gradient(
        var(--shiny-spread),
        var(--shiny-color) 0%,
        var(--shiny-color) 35%,
        var(--shiny-shine) 50%,
        var(--shiny-color) 65%,
        var(--shiny-color) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shiny-sweep var(--shiny-speed) linear var(--shiny-delay) infinite;
}
.shiny-text--right { animation-direction: reverse; }
.shiny-text--yoyo { animation-direction: alternate; }
.shiny-text--pause-on-hover:hover { animation-play-state: paused; }

@keyframes shiny-sweep {
    0%   { background-position: 150% center; }
    100% { background-position: -50% center; }
}

@media (prefers-reduced-motion: reduce) {
    .shiny-text {
        animation: none;
        background-position: 150% center;
    }
}

/* ===== 发光拖尾光标（全屏叠加，不拦截点击）===== */
#glowCursor {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
    mix-blend-mode: screen;
}
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--text); margin-bottom: 14px; }
.hero-desc { color: var(--dim); max-width: 680px; margin: 0 auto 34px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-block; padding: 14px 34px;
    border-radius: 100px; font-weight: 700; font-size: 0.96rem;
    transition: var(--t); border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--grad); color: #0a1020; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-3px); filter: brightness(1.08); }
.btn-outline { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, 0.05); }
.btn-outline:hover { border-color: var(--green); transform: translateY(-3px); }

/* ===== 数据条带 ===== */
.stats-band { padding: 8px 0 0; }
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.stat-card {
    background: var(--glass); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 30px 18px; text-align: center;
    backdrop-filter: blur(14px);
}
.stat-num {
    display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; line-height: 1;
    background: var(--grad); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label { margin-top: 10px; color: var(--mute); font-size: 0.9rem; letter-spacing: 2px; }

/* ===== 玻璃卡片通用 ===== */
.glass {
    position: relative;
    background: var(--glass); border: 1px solid var(--line);
    border-radius: var(--radius); backdrop-filter: blur(14px);
    transition: var(--t);
    --glow-x: 50%;
    --glow-y: 50%;
    --glow-intensity: 0;
    --glow-radius: 320px;
}
.glass:hover {
    transform: translateY(-6px);
    border-color: var(--line-2);
    box-shadow: var(--shadow);
}

/* ===== 关于我们 ===== */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.about-text p { color: var(--dim); margin-bottom: 16px; }
.about-images { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-images .ph:first-child { grid-column: 1 / -1; }

/* ===== 宣传片 ===== */
.video-wrap { max-width: 960px; margin: 0 auto; }
.video-ph {
    aspect-ratio: 16 / 9; border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    border: 1px dashed rgba(255, 255, 255, 0.24);
    background: var(--grad-soft);
}
.play-badge {
    width: 82px; height: 82px; border-radius: 50%;
    background: var(--grad); display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-glow);
}
.play-badge::after {
    content: ''; width: 0; height: 0; margin-left: 6px;
    border-left: 22px solid #0a1020;
    border-top: 13px solid transparent; border-bottom: 13px solid transparent;
}

/* ===== 网格卡片区 ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card { padding: 30px 26px; }
.card-icon {
    width: 56px; height: 56px; border-radius: 16px;
    background: var(--grad-soft); border: 1px solid var(--line-2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 18px;
}
.card h3 { font-size: 1.1rem; margin-bottom: 10px; font-weight: 700; }
.card p { color: var(--mute); font-size: 0.94rem; }

/* 业务范围（图标+标题紧凑卡） */
.service-card { padding: 26px 22px; text-align: center; }
.service-card .card-icon { margin: 0 auto 14px; }

/* 图标（线性 SVG sprite）*/
.bento-icon, .card-icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bento-icon { width: 38px; height: 38px; color: var(--green); margin-bottom: 14px; filter: drop-shadow(0 0 8px rgba(124,255,103,.4)); flex-shrink: 0; }
.card-icon svg { width: 28px; height: 28px; color: #fff; }
.service-card .card-icon svg { width: 26px; height: 26px; }
.icon-sprite { display: none; }

/* ===== 团队 ===== */
.team-card { padding: 26px; text-align: center; }
.team-card .ph-avatar { width: 132px; margin: 0 auto 18px; }
.team-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.team-role { color: var(--green); font-size: 0.9rem; margin-bottom: 12px; }
.team-desc { color: var(--mute); font-size: 0.9rem; }

/* ===== 相册（瀑布流）===== */
.gallery-grid { columns: 3; column-gap: 20px; }
.gallery-item { break-inside: avoid; margin-bottom: 20px; }

/* ===== 资质 ===== */
.cert-card {
    position: relative;
    max-width: 760px; margin: 0 auto; padding: 52px 40px; text-align: center;
    background: var(--glass-2); border: 1px solid var(--line);
    border-radius: var(--radius-lg); backdrop-filter: blur(16px);
    --glow-x: 50%;
    --glow-y: 50%;
    --glow-intensity: 0;
    --glow-radius: 360px;
}
.cert-card h3 { font-size: 1.3rem; margin: 18px 0 12px; }
.cert-card p { color: var(--dim); margin-bottom: 26px; }
.cert-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== 联系 ===== */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 30px; align-items: start; }
.contact-item { display: flex; gap: 16px; padding: 24px; margin-bottom: 16px; }
.contact-item h3 { font-size: 1rem; margin-bottom: 6px; }
.contact-item p { color: var(--mute); font-size: 0.94rem; }
.map-ph { height: 100%; min-height: 380px; }

/* ===== 页脚 ===== */
.footer {
    border-top: 1px solid var(--line);
    padding: 60px 0 30px; margin-top: 40px;
    background: rgba(7, 13, 23, 0.55);
    backdrop-filter: blur(12px);
}
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.footer h3 { font-size: 1.1rem; margin-bottom: 12px; }
.footer h4 { font-size: 1rem; margin-bottom: 14px; }
.footer p, .footer li { color: var(--mute); font-size: 0.92rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a:hover { color: var(--green); }
.footer-bottom {
    max-width: 1200px; margin: 40px auto 0; padding: 20px 24px 0;
    border-top: 1px solid var(--line);
    text-align: center; color: var(--mute); font-size: 0.88rem;
}

/* ===== 滚动显现 ===== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== 响应式 ===== */
@media (max-width: 980px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { columns: 2; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 84px 0; }

    .nav-toggle { display: block; }
    .nav-menu {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; gap: 0;
        background: rgba(7, 13, 23, 0.96);
        backdrop-filter: blur(18px);
        border-top: 1px solid var(--line);
        max-height: 0; overflow: hidden;
        transition: max-height var(--t);
    }
    .nav-menu.open { max-height: 420px; }
    .nav-menu li { width: 100%; text-align: center; }
    .nav-link { display: block; padding: 16px 0; }
}

@media (max-width: 680px) {
    .grid-3, .grid-4, .stats-grid { grid-template-columns: 1fr; }
    .gallery-grid { columns: 1; }
    .about-images { grid-template-columns: 1fr; }
    .hero { padding-top: 100px; }
    .cert-card { padding: 40px 24px; }
}

/* ===== GooeyNav 粘性流体导航（替换原导航动效）===== */
.gooey-nav-container {
    position: relative;
    --color-1: #7cff67;   /* 亮绿 */
    --color-2: #5227FF;   /* 极光紫 */
    --color-3: #38bdf8;   /* 青蓝 */
    --color-4: #fbb24c;   /* 琥珀橙 */
}
.gooey-nav-container nav {
    display: flex;
    position: relative;
    transform: translate3d(0, 0, 0.01px);
}
.gooey-nav-container nav ul {
    position: relative;
    z-index: 3;
    color: #fff;
}
.gooey-nav-container nav ul li {
    border-radius: 100vw;
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease;
    color: rgba(238, 243, 251, 0.72);
}
/* 激活态改由药丸表示，去掉原来的下划线动效 */
.gooey-nav-container .nav-link::after { display: none; }
.gooey-nav-container .nav-link { display: inline-block; padding: 0.55em 1.05em; }
.gooey-nav-container nav ul li::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100vw;
    background: #fff;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    z-index: -1;
}
.gooey-nav-container nav ul li.active { color: #0a1020; font-weight: 600; }
.gooey-nav-container nav ul li.active::after { opacity: 1; transform: scale(1); }

/* 流体效果层（filter 做粘性融合，text 做药丸上的文字） */
.gooey-nav-container .effect {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    opacity: 1;
    pointer-events: none;
    display: grid;
    place-items: center;
    z-index: 1;
}
.gooey-nav-container .effect.text {
    color: #fff;
    transition: color 0.3s ease;
    white-space: nowrap;
    font-size: 0.92rem;
}
.gooey-nav-container .effect.text.active { color: #0a1020; }
/* 去掉原"粘性融合"黑底技巧（background:#000 + contrast + lighten），那层黑底在当前
   层叠/背景下未按预期透明化，反而露出大黑块。改为干净的白色高亮药丸。 */
.gooey-nav-container .effect.filter::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #ffffff;
    transform: scale(0);
    opacity: 0;
    z-index: -1;
    border-radius: 100vw;
    box-shadow: 0 6px 22px rgba(124, 255, 103, 0.28);
}
.gooey-nav-container .effect.active::after { animation: pill 0.3s ease both; }
@keyframes pill {
    to { transform: scale(1); opacity: 1; }
}

/* 粒子（点击时从四周被吸入） */
.particle,
.point {
    display: block;
    opacity: 0;
    width: 20px;
    height: 20px;
    border-radius: 100%;
    transform-origin: center;
}
.particle {
    --time: 5s;
    position: absolute;
    top: calc(50% - 8px);
    left: calc(50% - 8px);
    animation: particle calc(var(--time)) ease 1 -350ms;
}
.point {
    background: var(--color);
    opacity: 1;
    animation: point calc(var(--time)) ease 1 -350ms;
}
@keyframes particle {
    0% {
        transform: rotate(0deg) translate(calc(var(--start-x)), calc(var(--start-y)));
        opacity: 1;
        animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
    }
    70% {
        transform: rotate(calc(var(--rotate) * 0.5)) translate(calc(var(--end-x) * 1.2), calc(var(--end-y) * 1.2));
        opacity: 1;
        animation-timing-function: ease;
    }
    85% {
        transform: rotate(calc(var(--rotate) * 0.66)) translate(calc(var(--end-x)), calc(var(--end-y)));
        opacity: 1;
    }
    100% {
        transform: rotate(calc(var(--rotate) * 1.2)) translate(calc(var(--end-x) * 0.5), calc(var(--end-y) * 0.5));
        opacity: 1;
    }
}
@keyframes point {
    0% {
        transform: scale(0);
        opacity: 0;
        animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
    }
    25% { transform: scale(calc(var(--scale) * 0.25)); }
    38% { opacity: 1; }
    65% {
        transform: scale(var(--scale));
        opacity: 1;
        animation-timing-function: ease;
    }
    85% {
        transform: scale(var(--scale));
        opacity: 1;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* 移动端下拉菜单里的导航项间距微调 */
@media (max-width: 980px) {
    .gooey-nav-container .nav-link { padding: 0.85em 1.2em; }
}

/* ============================================================
   移动端 / 平板 适配增强（2026-09-02 补充）
   原响应式只覆盖 980 / 680 两档，以下细化手机体验，
   并修正 gooey 导航在移动端下拉菜单中的表现。
   ============================================================ */

/* 平板及以下：锚点滚动偏移收紧（移动端导航栏更矮） */
@media (max-width: 1024px) {
    html { scroll-padding-top: 70px; }
}

/* ---------- 大屏手机 / 竖屏平板（<=768px） ---------- */
@media (max-width: 768px) {
    .container { padding: 0 18px; }
    .section { padding: 76px 0; }
    .section-header { margin-bottom: 42px; }
    .section-title { font-size: clamp(1.5rem, 6.5vw, 2rem); }
    .section-desc { font-size: 0.92rem; }

    /* Hero */
    .hero { min-height: 90vh; padding: 104px 18px 56px; }
    .hero-title .stroke-text {
        /* 用 min(94vw,...) 兜住，确保长标题在最小屏也不溢出 */
        width: min(94vw, calc(11 * clamp(1.4rem, 7vw, 5.5rem) * 0.98));
    }
    .hero-kicker { font-size: 0.74rem; letter-spacing: 3px; padding: 7px 16px; }
    .hero-subtitle { font-size: clamp(0.95rem, 4vw, 1.1rem); }
    .hero-desc { font-size: 0.92rem; margin-bottom: 26px; }
    .hero-buttons { gap: 12px; }
    .btn { padding: 12px 26px; font-size: 0.9rem; }

    /* 数据条带：手机保持 2 列（4 项 2x2 更紧凑） */
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 18px; }
    .stat-card { padding: 22px 10px; }
    .stat-label { font-size: 0.82rem; letter-spacing: 1px; }

    /* 关于我们 */
    .about-grid { gap: 30px; }
    .about-images { gap: 12px; }
    .about-text p { font-size: 0.95rem; }

    /* 业务范围：12 张卡手机 2 列（比单列紧凑太多） */
    .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .card { padding: 22px 16px; }
    .service-card { padding: 18px 12px; }
    .card-icon { width: 48px; height: 48px; margin-bottom: 12px; border-radius: 14px; }
    .card-icon svg { width: 24px; height: 24px; }
    .card h3 { font-size: 1rem; }
    .card p { font-size: 0.86rem; }

    /* 核心优势手风琴（已竖向，微调内边距字号） */
    .ag-panel__content { padding: 18px; }
    .ag-panel__title { font-size: 1.15rem; }
    .ag-panel__desc { font-size: 0.85rem; }

    /* 服务团队：卡片交换留白收紧 */
    .card-swap-container { width: min(320px, 88vw); margin: 56px auto 44px; }

    /* 公司相册螺旋：压低高度，避免占屏过长 */
    .spiral-wrap { height: 460px; }

    /* 企业资质 */
    .cert-card { padding: 34px 20px; }
    .cert-card iframe { height: 300px; }
    .cert-card h3 { font-size: 1.1rem; }

    /* 了解我们 */
    .contact-grid { gap: 20px; }
    .contact-map { min-height: 300px; }
    .contact-item { padding: 18px; gap: 14px; }
    .contact-item h3 { font-size: 0.95rem; }

    /* 页脚 */
    .footer { padding: 44px 0 24px; margin-top: 30px; }
    .footer-grid { gap: 28px; padding: 0 18px; }
    .footer p, .footer li { font-size: 0.88rem; }

    /* 导航：移动端下拉表现 */
    .nav-container { padding: 12px 18px; }
    .nav-logo-img { height: 30px; }
    .gooey-nav-container { width: 100%; }
    /* 移动端隐藏 gooey 药丸特效，改用简洁高亮，避免下拉里错位 */
    .gooey-nav-container .effect { display: none; }
    .gooey-nav-container nav ul li.active { color: var(--green); }
    .gooey-nav-container nav ul li.active::after { display: none; }
    .nav-menu li + li { border-top: 1px solid var(--line); }
    .nav-link { color: var(--text); }
    .nav-menu.open { max-height: 80vh; overflow-y: auto; }
}

/* ---------- 小屏手机（<=480px） ---------- */
@media (max-width: 480px) {
    .section { padding: 64px 0; }
    .section-header { margin-bottom: 34px; }
    .hero { padding: 92px 16px 48px; }
    .hero-title .stroke-text {
        width: min(96vw, calc(11 * clamp(1.25rem, 7.5vw, 4rem) * 0.98));
    }
    .hero-buttons .btn { flex: 1 1 auto; }
    .stats-grid { gap: 10px; }
    .stat-card { padding: 18px 8px; }
    .stat-num { font-size: clamp(1.7rem, 9vw, 2.2rem); }
    .about-images { grid-template-columns: 1fr; }
    .grid-4 { gap: 12px; }
    .service-card { padding: 16px 10px; }
    .card-icon { width: 44px; height: 44px; }
    .card h3 { font-size: 0.94rem; }
    .card-swap-container { width: 90vw; }
    .cert-card iframe { height: 260px; }
    .footer-bottom { font-size: 0.8rem; }
    /* 联系信息卡居中竖排，更贴合窄屏 */
    .contact-item { flex-direction: column; gap: 8px; text-align: center; }
    .contact-item .card-icon { margin: 0 auto; }
}

/* ============================================================
   移动端降级：把手机的持续重绘动画改为静态呈现，
   根治「划到相册/团队就闪退或强制刷新」（iOS/弱 GPU 上
   无限 rAF + filter:blur + 3D 变换叠加导致 OOM 进程被杀）。
   桌面端完全不受影响。
   ============================================================ */

/* --- 相册 InfiniteSpiral：静态网格陈列 --- */
.infinite-spiral.is-static {
    height: auto;
    min-height: 0;
    overflow: visible;
}
.infinite-spiral.is-static .infinite-spiral__stage {
    position: static;
    transform: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 2px;
}
.infinite-spiral.is-static .infinite-spiral__item {
    position: static;
    top: auto; left: auto;
    width: 100%;
    aspect-ratio: 4 / 3;
    transform: none !important;
    will-change: auto;
}
.infinite-spiral.is-static .infinite-spiral__image {
    position: static;
    height: 100%;
    object-fit: cover;
    filter: none !important;
}

/* --- 团队 CardSwap：静态 2x2 网格（不轮换、不 tilt）--- */
.card-swap-container.is-static {
    width: 100%;
    aspect-ratio: auto;
    margin: 24px auto 8px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    perspective: none;
}
.card-swap-container.is-static .pc-card-wrapper {
    position: static !important;
    top: auto; left: auto;
    width: 100%;
    height: auto;
    transform: none !important;
    will-change: auto;
    --card-opacity: 1;
}

/* --- 移动端导航修复：去掉 backdrop-filter（iOS Safari 崩溃主因）--- */
@media (max-width: 980px) {
    .navbar { background: rgba(7, 13, 23, 0.94); backdrop-filter: none; -webkit-backdrop-filter: none; }
    .nav-container { flex-wrap: wrap; }
    .gooey-nav-container { order: 3; width: 100%; }
    .nav-menu { background: rgba(7, 13, 23, 0.98); backdrop-filter: none; -webkit-backdrop-filter: none; }
    .nav-menu.open { max-height: 80vh; overflow-y: auto; }
    /* 移动端关闭所有毛玻璃，全面降低重绘压力 */
    * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}
