* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    scrollbar-width: none;
    -webkit-tap-highlight-color: transparent;
}

html {
    width: 100%;
    height: 100%;
}

body {
    background: linear-gradient(135deg, #ff6b9d 0%, #c967a2 25%, #ff8b9e 50%, #ffb6d9 75%, #ff6f91 100%);
    background-attachment: fixed;
    color: #ffffff;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 192, 203, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body>* {
    position: relative;
    z-index: 1;
}

.app-body {
    width: 100%;
    max-width: 480px;
    /* Mobile optimized width */
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

/* Header & Logo Section */
.logo-top {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-top: 12px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 44px;
    opacity: 0.9;
    filter: brightness(0) invert(1);
}

/* Features */
.features {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0;
    flex: 1;
    margin-left: 12px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.feature {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    white-space: nowrap;
    padding: 0 8px;
    position: relative;
}

/* 竖线分隔符 */
.feature + .feature::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 10px;
    width: 1px;
    background: rgba(255, 255, 255, 0.4);
}



/* App Info Section */
.app-download {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.app-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.app-icon img {
    width: 80px;
    border-radius: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.app-icon img:hover {
    transform: scale(1.05);
}

.app-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.app-description {
    font-size: 13px;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 0;
}

/* Download Cards Layout */
.download-cards {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.download-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.download-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 网页版独特炫酷特效 */
.web-card-special {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)) padding-box,
        linear-gradient(135deg, #f6d365, #ff9a9e, #fecfef, #f6d365) border-box;
    box-shadow: 0 0 20px rgba(246, 211, 101, 0.4), inset 0 0 15px rgba(255, 154, 158, 0.2);
    animation: borderGlow 4s linear infinite;
    transform: scale(1.02);
    /* 默认稍微放大一点点突出显示 */
}

.web-card-special:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 0 30px rgba(246, 211, 101, 0.6), inset 0 0 20px rgba(255, 154, 158, 0.3);
}

@keyframes borderGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.web-card-special .card-header {
    background: linear-gradient(90deg, rgba(246, 211, 101, 0.15), rgba(253, 160, 133, 0.15));
    border-bottom: 1px solid rgba(253, 160, 133, 0.3);
}

.web-card-special .card-icon {
    color: #ffffff;
    /* 给SVG图标上色 */
    filter: drop-shadow(0 0 5px rgba(253, 160, 133, 0.5));
}

.web-card-special h3 {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    font-weight: 800;
}

.card-header {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    object-fit: contain;
}

.card-header h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.card-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    text-decoration: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.2s;
    text-align: center;
}

.card-btn.primary {
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-btn.primary:active {
    transform: scale(0.98);
}

.ios-btn {
    background: linear-gradient(90deg, #414aff, #2ba4ff);
}

.android-btn {
    background: linear-gradient(90deg, #11998e, #38ef7d);
}

.web-btn {
    background: linear-gradient(90deg, #f6d365, #fda085);
}

/* Custom Breathing Web Button */
.web-btn-breath {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #e8a838, #e05e30);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(224, 94, 48, 0.45);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    z-index: 1;
}

.web-btn-breath span {
    position: relative;
    z-index: 10;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
    color: #fff;
    letter-spacing: 0.5px;
}

/* 呼吸光晕特效 (Breathing Outer Glow) */
.web-btn-breath::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #f6d365, #ff9a9e, #fecfef, #fda085);
    background-size: 400% 400%;
    z-index: -1;
    border-radius: 16px;
    animation: glowingPulse 3s ease-in-out infinite alternate;
    opacity: 0.8;
    filter: blur(8px);
}

/* 内部流光呼吸渐变 */
.web-btn-breath::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.05) 100%);
    background-size: 200% 200%;
    animation: shineBreath 4s infinite linear;
    z-index: 1;
    pointer-events: none;
}

.web-btn-breath:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(253, 160, 133, 0.6);
}

.web-btn-breath:hover::before {
    opacity: 1;
    filter: blur(12px);
    animation-duration: 2s;
    /* 悬浮时呼吸加快 */
}

@keyframes glowingPulse {
    0% {
        opacity: 0.4;
        filter: blur(4px);
        background-position: 0% 50%;
    }

    50% {
        opacity: 0.8;
        filter: blur(10px);
        background-position: 100% 50%;
    }

    100% {
        opacity: 0.4;
        filter: blur(4px);
        background-position: 0% 50%;
    }
}

@keyframes shineBreath {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.card-sub-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.card-sub-btns .full-width {
    grid-column: 1 / -1;
}

.card-btn.secondary {
    padding: 10px;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.card-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

.card-btn.secondary.outline {
    background: rgba(0, 0, 0, 0.2);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.card-btn.secondary.outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-icon-small {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

/* Modal Styling */
.modal.show {
    display: block;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: 10% auto 50px auto;
    width: 90%;
    max-width: 500px;
    background-color: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalScaleIn 0.3s ease-out;
}

@keyframes modalScaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 36px;
    height: 36px;
    background-color: #fff;
    color: #333;
    border-radius: 50%;
    font-size: 24px;
    line-height: 36px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    transition: all 0.2s;
}

.close-btn:hover {
    background-color: #f1f1f1;
    transform: scale(1.1);
}

/* Preview Section - 截图移至图标下方 */
.preview-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.preview-image {
    width: 100%;
    max-width: 360px;
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    opacity: 0.95;
    border-radius: 16px;
}

/* ============================
   入场动画 (Entrance Animations)
   顺序：顶部↓ (0s) → 截图↑ (0.4s) → 按钮↑ (1.0s)
   ============================ */
@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.anim-fade-down {
    opacity: 0;
    animation: fadeSlideDown 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.anim-fade-up {
    opacity: 0;
    animation: fadeSlideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* 延迟阶梯 */
.anim-delay-1 { animation-delay: 0.15s; }
.anim-delay-2 { animation-delay: 0.4s; }
.anim-delay-3 { animation-delay: 1.0s; }

/* 气泡纹理背景 */
.bubble-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.bubble {
    position: absolute;
    bottom: -100px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    opacity: 0.6;
    box-shadow: inset -2px -2px 5px rgba(0, 0, 0, 0.2);
    animation: floatBubble linear infinite;
}

.bubble:nth-child(2n) {
    width: 40px;
    height: 40px;
    opacity: 0.5;
}

.bubble:nth-child(3n) {
    width: 80px;
    height: 80px;
    opacity: 0.4;
}

@keyframes floatBubble {
    0% {
        bottom: -100px;
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        bottom: 110vh;
        opacity: 0;
        transform: translateX(100px);
    }
}

/* Responsive adjustments */
@media (max-width: 360px) {
    .app-title {
        font-size: 20px;
    }

    .download-button {
        padding: 14px;
        font-size: 15px;
    }

    .bubble {
        width: 40px;
        height: 40px;
    }

    .bubble:nth-child(2n) {
        width: 30px;
        height: 30px;
    }

    .bubble:nth-child(3n) {
        width: 50px;
        height: 50px;
    }
}

/* ============================
   底部滚动提示 (Scroll Hint)
   ============================ */
.scroll-hint {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 100;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 1;
}

.scroll-hint.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
}

.scroll-hint span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.scroll-hint-arrow {
    width: 60px;
    height: 20px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    animation: scrollBounce 1.4s ease-in-out infinite;
}

.scroll-hint-arrow svg {
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.9);
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(4px);
    }
}