/* Showcase Redesign CSS - Minimalist Light Edition */

.showcase-redesign {
    background: #f8f9fa;
    /* 浅淡灰色背景 */
    padding: 80px 0;
}

.showcase-redesign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.showcase-card {
    background: rgba(255, 255, 255, 0.7);
    /* 浅色玻璃拟态 */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 30px;
    padding: 35px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 440px;
    /* 减小高度 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.showcase-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.showcase-card-header h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1d1d1f;
    letter-spacing: -0.3px;
}

.showcase-card-header p {
    color: #86868b;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 0;
}

/* UI Mockup Area */
.ui-mockup-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    position: relative;
}

/* ⭐ Dynamic Island (Compact Switcher) */
.capsule-switcher {
    position: relative;
    width: 260px;
    height: 54px;
}

.capsule-mockup {
    background: #1d1d1f;
    /* 核心胶囊保持深色以模拟硬件感 */
    border-radius: 100px;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    transition: all 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

.capsule-nav {
    opacity: 1;
    transform: scale(1);
    animation: switchStateA 8s infinite;
}

.capsule-music {
    opacity: 0;
    transform: scale(0.85);
    animation: switchStateB 8s infinite;
}

@keyframes switchStateA {

    0%,
    45% {
        opacity: 1;
        transform: scale(1);
        visibility: visible;
    }

    50%,
    95% {
        opacity: 0;
        transform: scale(0.85);
        visibility: hidden;
    }

    100% {
        opacity: 1;
        transform: scale(1);
        visibility: visible;
    }
}

@keyframes switchStateB {

    0%,
    45% {
        opacity: 0;
        transform: scale(0.85);
        visibility: hidden;
    }

    50%,
    95% {
        opacity: 1;
        transform: scale(1);
        visibility: visible;
    }

    100% {
        opacity: 0;
        transform: scale(0.85);
        visibility: hidden;
    }
}

.capsule-icon {
    color: #30d158;
    font-size: 20px;
}

.capsule-icon.music {
    color: #ff375f;
}

.capsule-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.capsule-subtitle {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
}

/* ⭐ Minimalist Compass */
.minimal-compass {
    width: 160px;
    height: 160px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #fff 0%, #f0f0f5 100%);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.02);
}

.compass-center-dot {
    width: 8px;
    height: 8px;
    background: #1d1d1f;
    border-radius: 50%;
    z-index: 5;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.compass-ring {
    position: absolute;
    inset: 15px;
    border: 1px dashed rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}

.minimal-pointer {
    position: absolute;
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, #ff3b30 50%, #1d1d1f 50%);
    border-radius: 4px;
    top: 50%;
    margin-top: -30px;
    animation: jitterRotate 15s infinite ease-in-out;
}

@keyframes jitterRotate {
    0% {
        transform: rotate(0deg);
    }

    15% {
        transform: rotate(45deg);
    }

    30% {
        transform: rotate(42deg);
    }

    45% {
        transform: rotate(120deg);
    }

    60% {
        transform: rotate(115deg);
    }

    80% {
        transform: rotate(-30deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.minimal-degree {
    position: absolute;
    bottom: -35px;
    font-size: 18px;
    font-weight: 700;
    color: #1d1d1f;
}

/* ⭐ TPMS Refined */
.tpms-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
    padding: 20px;
    border-radius: 28px;
    box-shadow: inset 0 2px 15px rgba(0, 0, 0, 0.02);
}

.car-icon-simple {
    width: 45px;
    height: 90px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.car-icon-simple::before {
    content: '';
    position: absolute;
    inset: 10px 5px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0%, transparent 100%);
    border-radius: 8px 8px 20px 20px;
}

.tpms-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 2px 6px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.tpms-node .val {
    font-size: 12px;
    font-weight: 800;
    color: #34c759;
    line-height: 1;
}

.tpms-node .unit {
    font-size: 7px;
    color: #86868b;
}

.tpms-node.fl {
    top: 0;
    left: -40px;
}

.tpms-node.fr {
    top: 0;
    right: -40px;
}

.tpms-node.rl {
    bottom: 0;
    left: -40px;
}

.tpms-node.rr {
    bottom: 0;
    right: -40px;
}

.tpms-node.warning {
    border-color: rgba(255, 59, 48, 0.2);
    animation: warningPulse 1.5s infinite alternate;
}

.tpms-node.warning .val {
    color: #ff3b30;
}

@keyframes warningPulse {
    from {
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    }

    to {
        box-shadow: 0 0 15px rgba(255, 59, 48, 0.2);
        border-color: rgba(255, 59, 48, 0.4);
    }
}

/* ⭐ OBD Performance (New) */
.obd-performance {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rpm-bar-container {
    height: 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.rpm-bar-active {
    height: 100%;
    width: 65%;
    background: linear-gradient(90deg, #34c759 0%, #ffcc00 70%, #ff3b30 100%);
    animation: rpmSim 4s infinite ease-in-out;
}

@keyframes rpmSim {

    0%,
    100% {
        width: 30%;
    }

    50% {
        width: 85%;
    }
}

.obd-data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.obd-item {
    background: rgba(255, 255, 255, 0.6);
    padding: 10px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
}

.obd-label {
    font-size: 9px;
    color: #86868b;
    text-transform: uppercase;
}

.obd-value {
    font-size: 16px;
    font-weight: 700;
    color: #1d1d1f;
}

/* ⭐ Weather Station (Polished) */
.weather-station {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 25px;
    align-items: center;
}

.weather-main-display {
    text-align: center;
}

.weather-main-icon {
    font-size: 48px;
    color: #ffcc00;
    filter: drop-shadow(0 0 10px rgba(255, 204, 0, 0.3));
    margin-bottom: 5px;
    display: block;
}

.weather-temp-now {
    font-size: 24px;
    font-weight: 800;
    color: #1d1d1f;
}

.weather-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.weather-mini-stat {
    background: rgba(255, 255, 255, 0.5);
    padding: 8px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.stat-v {
    font-size: 13px;
    font-weight: 700;
    color: #1d1d1f;
    margin-top: 4px;
}

.stat-l {
    font-size: 8px;
    color: #86868b;
    text-transform: uppercase;
}

/* ⭐ Astronomy Trajectory (Redesigned) */
.astronomy-trajectory {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 5px;
}

.astronomy-view {
    width: 100%;
    height: 100px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-top: 10px;
}

.sun-path-svg {
    width: 90%;
    height: 80px;
    margin-bottom: 5px;
}

.sun-path-base {
    fill: none;
    stroke: rgba(255, 149, 0, 0.1);
    stroke-width: 2.5;
    stroke-dasharray: 4, 3;
}

.sun-path-active {
    fill: none;
    stroke: url(#sunGradient);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 180;
    stroke-dashoffset: 60;
}

.sun-dot-svg {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #ffcc00 0%, #ff9500 100%);
    border: 2.5px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(255, 149, 0, 0.5);
    left: 72%;
    bottom: 60px;
    z-index: 10;
}

.astro-times {
    width: 90%;
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.astro-time-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.astro-label {
    font-size: 8px;
    color: #86868b;
    margin-bottom: 2px;
}

.astro-val {
    font-size: 13px;
    font-weight: 700;
    color: #1d1d1f;
}

.astro-val i {
    color: #ff9500;
    font-size: 10px;
    margin-right: 2px;
}

.showcase-features-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
}

.feature-tag {
    background: rgba(0, 0, 0, 0.04);
    color: #86868b;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
}

.showcase-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .showcase-redesign-grid {
        grid-template-columns: 1fr;
    }

    .showcase-card {
        min-height: auto;
        padding: 30px;
    }
}