/* ============================================
   inshow 首页自定义样式（覆盖 styles.css 主题）
   品牌色：粉 #EF4FC2 → 蓝 #4F89EF
   ============================================ */

:root {
    --brand-pink: #EF4FC2;
    --brand-blue: #4F89EF;
}

body {
    overflow-x: hidden;
}

/* ---------- 导航栏 ---------- */
#mainNav {
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 4px 24px rgba(79, 60, 160, 0.08);
}

#mainNav .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.3rem;
    background-image: linear-gradient(120deg, var(--brand-pink), var(--brand-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#mainNav .navbar-brand:hover,
#mainNav .navbar-brand:active {
    color: transparent;
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    box-shadow: 0 4px 10px rgba(239, 79, 194, 0.3);
    transition: transform 0.3s ease;
}

#mainNav .navbar-brand:hover .brand-logo {
    transform: rotate(-6deg) scale(1.06);
}

/* ---------- Masthead ---------- */
.masthead {
    position: relative;
    padding-top: 8.5rem;
    padding-bottom: 6.5rem;
}

/* 装饰光斑 */
.masthead::before,
.masthead::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

.masthead::before {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -140px;
    background: rgba(255, 255, 255, 0.28);
}

.masthead::after {
    width: 360px;
    height: 360px;
    bottom: -100px;
    right: -120px;
    background: rgba(255, 255, 255, 0.18);
}

/* 标题入场动画 */
.masthead .masthead-text {
    animation: hero-in 0.7s ease both;
}

.masthead .masthead-device-mockup {
    animation: hero-in 0.7s ease 0.15s both;
}

@keyframes hero-in {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 英文副标题 */
.hero-sub-en {
    display: inline-block;
    padding: 0.3rem 0.95rem;
    font-size: 0.82rem !important;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.92) !important;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

/* ---------- 下载徽章按钮 ---------- */
.hero-badges {
    gap: 0.75rem;
}

.hero-badges > a {
    text-decoration: none;
}

.hero-badges .app-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 3.1rem;
    padding: 0 1.5rem;
    font-weight: 600;
    color: #2b2f3a;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 999px !important;
    box-shadow: 0 8px 24px rgba(46, 30, 90, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-badges .app-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(46, 30, 90, 0.28);
}

.hero-badges .app-badge:active {
    transform: translateY(-1px) scale(0.98);
}

.hero-badges .app-badge svg {
    width: 1.1rem;
    height: 1.1rem;
}

.hero-badges .app-badge .bi-apple {
    color: #1d1d1f;
}

.hero-badges .app-badge .bi-android {
    color: #3ddc84;
}

/* ---------- 手机模型 ---------- */
/* 修复窄屏 text-align:center 下外框（::after 无 top/left）水平错位 */
.device::after {
    top: 0;
    left: 0;
}

.masthead .masthead-device-mockup .device-wrapper {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 24px 48px rgba(40, 20, 80, 0.35));
}

/* 手机背后光晕 */
.masthead .masthead-device-mockup .device-wrapper::before {
    content: "";
    position: absolute;
    inset: -12% -22%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0.12) 45%,
            transparent 70%);
    filter: blur(8px);
}

/* 装饰形状换品牌色 + 浮动动画 */
.masthead .masthead-device-mockup .shape-1 {
    fill: rgba(255, 255, 255, 0.85);
    animation: float-y 4s ease-in-out infinite;
}

.masthead .masthead-device-mockup .shape-2 {
    fill: rgba(255, 255, 255, 0.6);
    animation: float-y 5s ease-in-out 1s infinite reverse;
}

@keyframes float-y {
    0%,
    100% {
        transform: translateY(0) rotate(-10deg);
    }
    50% {
        transform: translateY(-10px) rotate(-10deg);
    }
}

/* ---------- 页脚 ---------- */
footer.bg {
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

footer.bg .small {
    color: rgba(255, 255, 255, 0.85) !important;
}

footer.bg a,
footer.bg a span {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer.bg a:hover,
footer.bg a:hover span {
    color: #fff !important;
}

/* ---------- 响应式微调 ---------- */
@media (max-width: 991.98px) {
    .masthead {
        padding-top: 7rem;
        padding-bottom: 4.5rem;
        text-align: center;
    }

    .masthead .hero-badges {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .hero-badges .app-badge {
        width: 100%;
        justify-content: center;
    }
}
