/* Showcase Detail Page - Immersive Fullscreen Revamp */

:root {
    --apple-black: #1d1d1f;
    --apple-gray: #86868b;
    --apple-bg: #f5f5f7;
    --apple-blue: #0071e3;
    --section-spacing: 120px;
}

/* 全局滚动平滑 */
html {
    scroll-behavior: smooth;
}

body {
    background: #000;
    /* 修改为黑色背景以增强沉浸感 */
    color: #fff;
    overflow-x: hidden;
}

/* 导航适配 - 强制悬浮效果在暗色背景下可见 */
.glass-header {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

.glass-header.scrolled {
    background: rgba(0, 0, 0, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.glass-header.scrolled .logo h1,
.glass-header.scrolled .nav-links a {
    color: #fff !important;
}

.glass-header.scrolled .nav-links a.active {
    color: var(--apple-blue) !important;
}

/* --- Section Layout --- */
.showcase-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem;
    background: #000 !important;
    color: #fff !important;
}

.showcase-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 4rem;
    z-index: 2;
}

/* --- Hero Section --- */
.hero-showcase {
    background: #000;
    text-align: center;
    flex-direction: column;
}

/* --- Hero 3D Perspective Array (V6.0) --- */
.hero-3d-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* 改用从顶部对齐，放弃垂直居中引发的位置漂移 */
    padding-top: 120px;
    padding-bottom: 60px;
    /* 安全避让区，躲开固定的玻璃态悬浮 Header */
    overflow: hidden;
    perspective: 2000px;
    /* 3D 景深视距 */
}

/* 反查杀：强行剔除因引入 faq-apple.css 而造成的全局蓝色下划线污染 */
.hero-3d-wrapper .hero-title::after {
    display: none !important;
}

/* 独立的描述文字层 (完全与图片阵列分离) */
.hero-text-floating {
    position: relative;
    text-align: center;
    z-index: 100;
    width: 100%;
    min-height: 150px;
    /* 锁死文字块高度，防止切换内容时引发下方图片抖动 */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

/* 3D 卡片轨道 */
.hero-3d-carousel {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 550px;
    /* 强制保底图片高度 */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2vh;
    transform-style: preserve-3d;
}

/* 每张模式卡的样式基座 */
.hero-3d-card {
    position: absolute;
    width: 60%;
    max-width: 900px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 100px rgba(0, 0, 0, 0.4);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* 默认状态：完全隐藏在后方 */
    opacity: 0;
    transform: scale(0.6) translateZ(-500px);
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-3d-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- 3D 梯队排布 (通过 JS 附加动态类名) --- */
/* 中心地带 (最高权) */
.hero-3d-card.active {
    opacity: 1;
    transform: translateX(0) scale(1) translateZ(0);
    z-index: 50;
    pointer-events: auto;
    filter: brightness(1.1);
}

/* 左侧贴近 (偏左下，退后) */
.hero-3d-card.prev-1 {
    opacity: 0.7;
    transform: translateX(-45%) scale(0.8) translateZ(-200px);
    z-index: 40;
    filter: brightness(0.6);
}

/* 右侧贴近 (偏右下，退后) */
.hero-3d-card.next-1 {
    opacity: 0.7;
    transform: translateX(45%) scale(0.8) translateZ(-200px);
    z-index: 40;
    filter: brightness(0.6);
}

/* 左侧远端 */
.hero-3d-card.prev-2 {
    opacity: 0.3;
    transform: translateX(-70%) scale(0.65) translateZ(-400px);
    z-index: 30;
    filter: brightness(0.3) blur(2px);
}

/* 右侧远端 */
.hero-3d-card.next-2 {
    opacity: 0.3;
    transform: translateX(70%) scale(0.65) translateZ(-400px);
    z-index: 30;
    filter: brightness(0.3) blur(2px);
}

/* 渐变标题 */
.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    background: linear-gradient(to bottom, #fff 0%, #a1a1a6 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #a1a1a6;
    font-weight: 400;
    margin-bottom: 2rem;
}

/* --- 轮播指示器 --- */
.carousel-indicators {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    z-index: 20;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-indicators .indicator {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.4s ease;
}

.carousel-indicators .indicator:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.carousel-indicators .indicator.active {
    color: #000;
    background: #fff;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}


/* --- Specs Matrix (功能矩阵) --- */
.specs-section {
    background: #000 !important;
    /* 强制背景为黑，防止继承全局导致白底 */
    padding: 100px 0;
    color: #fff !important;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

.spec-card {
    background: #111112;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1), border-color 0.3s;
}

.spec-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.spec-card h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #fff;
}

.spec-card p {
    color: #a1a1a6;
    /* 核心卡片描述文字色 */
    font-size: 1.05rem;
    line-height: 1.5;
}

.spec-icon {
    font-size: 2rem;
    color: var(--apple-blue);
    margin-bottom: 1.5rem;
    display: block;
}

/* --- More Features (点到为止列表) --- */
.more-features-list {
    margin-top: 5rem;
    padding: 3rem;
    background: #080808;
    border-radius: 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.more-feature-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.more-feature-item i {
    color: var(--apple-blue);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.more-feature-item h5 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}

.more-feature-item p {
    font-size: 0.9rem;
    color: #86868b;
    line-height: 1.4;
}

/* --- Mockup System --- */
.mockup-container {
    position: relative;
    width: 100%;
    /* 移除写死的高度 450px，改由内容自身或者 aspect-ratio 在 flex 布局下自适应撑起 */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.car-display-mockup {
    width: 90%;
    /* 加宽车机屏占比 */
    aspect-ratio: 16 / 9;
    /* 用长宽比来控制高度，取代死板的 px 和 % */
    max-height: 480px;
    /* 控制上限避免在大屏过度膨胀 */
    background: #2c2c2e;
    border: 8px solid #3a3a3c;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.phone-mockup {
    position: absolute;
    right: -2%;
    /* 把手机向外侧稍微拉伸，凸显层次和破框感 */
    bottom: -8%;
    width: 25%;
    max-width: 160px;
    /* 采用自适应宽度+限制上限的响应式配置 */
    aspect-ratio: 1 / 2;
    background: #000;
    border: 6px solid #333;
    border-radius: 24px;
    z-index: 2;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
}

.phone-mockup img,
.car-display-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Feature Content --- */
.showcase-section:nth-child(even) .showcase-container {
    flex-direction: row-reverse;
}

.feature-visual {
    flex: 1.2;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    /* 为绝对定位元素做铺垫 */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    background: #1c1c1e;
    transform: translateY(30px);
    opacity: 0;
    transition: all 1s cubic-bezier(0.2, 1, 0.3, 1);
}

.feature-visual img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Theme Split View 特效 --- */
.theme-split-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 解决绝对定位导致外层 .feature-visual 容器高度塌陷问题 */
.showcase-section .feature-visual:has(.theme-split-container) {
    aspect-ratio: 16 / 9;
    /* 如果是横屏，强制占据空间比例 */
    min-height: 300px;
}

.theme-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.theme-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    /* 强制填满容器 */
}

/* 底层：黑夜 */
.theme-night-layer {
    z-index: 1;
}

/* 上层：白天（在右侧显示，占据超过大半的面积） */
.theme-day-layer {
    z-index: 2;
    clip-path: polygon(45.2% 0, 100% 0, 100% 100%, 34.8% 100%);
}

/* 霓虹分割线已被移除，采用简洁纯切设计 */


.feature-text {
    flex: 1;
}

.showcase-section .feature-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--apple-blue);
    margin-bottom: 1rem;
    display: block;
    /* 强制清除可能从其他组件继承的白色胶囊背景样式 */
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.feature-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #fff;
}

.feature-description {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #cececf;
    /* 提高灰度亮度，确保对比度 */
    margin-bottom: 2rem;
}

/* --- Reveal Animations --- */
.reveal-on-scroll.is-revealed .feature-visual {
    transform: translateY(0);
    opacity: 1;
}

.reveal-on-scroll .feature-text {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1) 0.2s;
}

.reveal-on-scroll.is-revealed .feature-text {
    transform: translateY(0);
    opacity: 1;
}

/* --- Staggered Reveal --- */
.specs-grid .reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.specs-grid .reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 延迟序列 */
.specs-grid .reveal-on-scroll:nth-child(1) {
    transition-delay: 0.1s;
}

.specs-grid .reveal-on-scroll:nth-child(2) {
    transition-delay: 0.2s;
}

.specs-grid .reveal-on-scroll:nth-child(3) {
    transition-delay: 0.3s;
}

.specs-grid .reveal-on-scroll:nth-child(4) {
    transition-delay: 0.4s;
}

/* --- Footer Link --- */
.showcase-bottom {
    padding: 100px 0;
    text-align: center;
    background: #000;
}

/* Responsive */
@media (max-width: 1024px) {
    .showcase-container {
        flex-direction: column !important;
        text-align: center;
        gap: 3rem;
    }

    .feature-visual {
        width: 100%;
    }
}