/* ========================================
   全局样式 - 现代简约设计
   ======================================== */

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

:root {
    --primary-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #ffdde1 100%);
    --secondary-gradient: linear-gradient(135deg, #ff6b9d 0%, #fec7d7 100%);
    --hero-gradient: linear-gradient(180deg, #ffeef4 0%, #fff5f8 50%, #ffffff 100%);
    --light-bg: #ffffff;
    --soft-pink-bg: #fff5f8;
    --card-bg: #ffffff;
    --text-primary: #2d2d2d;
    --text-secondary: #666666;
    --text-light: #999999;
    --accent-color: #ff6b9d;
    --accent-hover: #ff5589;
    --pink-light: #ffeef4;
    --pink-medium: #ffccd5;
    --shadow-lg: 0 20px 60px rgba(255, 107, 157, 0.15);
    --shadow-md: 0 10px 30px rgba(255, 107, 157, 0.12);
    --shadow-sm: 0 5px 15px rgba(255, 107, 157, 0.08);
    --shadow-colored: 0 15px 40px rgba(255, 154, 158, 0.25);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--light-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.8;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ========================================
   Hero Section - 渐变背景头部
   ======================================== */

.hero-section {
    background: var(--hero-gradient);
    min-height: 90vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ff9a9e' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(180deg, transparent 0%, var(--light-bg) 100%);
    pointer-events: none;
}

/* 导航栏 */
.navbar-custom {
    background: transparent;
    border: none;
    padding: 20px 0;
    margin-bottom: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-custom.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 30px rgba(255, 107, 157, 0.15);
    padding: 15px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary) !important;
    padding: 0;
    height: auto;
    line-height: 1;
}

.navbar-brand .app-icon {
    height: 45px;
    width: 45px;
    border-radius: 11px;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.25);
    transition: transform 0.3s ease;
}

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

.brand-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

/* Hero 内容 */
.hero-content {
    text-align: center;
    padding: 100px 20px 80px;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -1px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
    background: linear-gradient(135deg, #ff6b9d 0%, #ff9a9e 50%, #fecfef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 50px;
    font-weight: 400;
    letter-spacing: 0.5px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* 下载按钮 */
.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.5s ease;
}

.btn-download:hover::before {
    left: 100%;
}

.btn-ios {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
    color: #ffffff;
    border: none;
}

.btn-android {
    background: #ffffff;
    color: #ff6b9d;
    border: 2px solid #ff6b9d;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-colored);
}

.btn-ios:hover {
    background: linear-gradient(135deg, #ff5589 0%, #ff7a99 100%);
    color: #ffffff;
}

.btn-android:hover {
    background: var(--pink-light);
    border-color: #ff5589;
    color: #ff5589;
}

.download-icon {
    width: 24px;
    height: 24px;
}

/* ========================================
   滚动提示指示器
   ======================================== */

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    transform: translateX(-50%) translateY(-5px);
}

.scroll-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.scroll-arrow {
    color: var(--accent-color);
    animation: bounce 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-arrow svg {
    width: 28px;
    height: 28px;
}

/* 滚动动画 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    40% {
        transform: translateY(-10px);
        opacity: 0.8;
    }
    60% {
        transform: translateY(-5px);
        opacity: 0.9;
    }
}

/* 用户滚动后隐藏提示 */
body.scrolled .scroll-indicator {
    opacity: 0;
    pointer-events: none;
}

/* iOS 按钮的图标保持白色 */
.btn-ios .download-icon {
    filter: brightness(0) invert(1);
}

/* Android 按钮的图标显示为粉色 */
.btn-android .download-icon {
    filter: brightness(0) saturate(100%) invert(45%) sepia(89%) saturate(2532%) hue-rotate(315deg) brightness(101%) contrast(101%);
}

/* ========================================
   Screenshot Preview Section
   ======================================== */

.preview-section {
    background: var(--light-bg);
    padding: 80px 20px;
    position: relative;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -1px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.screenshot-wrapper {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    perspective: 1000px;
}

.screenshot-img {
    width: 280px;
    max-width: 90%;
    border-radius: 30px;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-lg);
}

.screenshot-img:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(255, 107, 157, 0.4);
}

/* 中间的截图稍微大一点并突出显示 */
.screenshot-center {
    width: 300px;
    transform: scale(1.1);
    position: relative;
    z-index: 2;
}

.screenshot-center:hover {
    transform: translateY(-10px) scale(1.12);
}

/* ========================================
   Features Section - 功能介绍
   ======================================== */

.features-section {
    background: var(--soft-pink-bg);
    padding: 100px 20px;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 30px;
    padding: 60px;
    margin-bottom: 60px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 154, 158, 0.15);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--secondary-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-colored);
    border-color: rgba(255, 107, 157, 0.3);
}

.feature-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.feature-card-reverse .feature-content {
    align-items: flex-start;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 15px rgba(255, 107, 157, 0.3));
}

.feature-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.feature-divider {
    width: 80px;
    height: 4px;
    background: var(--secondary-gradient);
    border-radius: 2px;
    margin-bottom: 24px;
}

.feature-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 500px;
}

.feature-image {
    text-align: center;
    padding: 20px;
}

.feature-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s ease;
}

.feature-image img:hover {
    transform: scale(1.05);
}

/* ========================================
   Footer Section
   ======================================== */

.footer-section {
    background: #fafafa;
    padding: 40px 20px;
    border-top: 1px solid rgba(255, 107, 157, 0.1);
}

.footer-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.footer-text {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.footer-link:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-color);
}

.separator {
    margin: 0 10px;
    color: rgba(0, 0, 0, 0.2);
}

/* ========================================
   动画效果
   ======================================== */

/* 页面加载动画 */
body.loaded .hero-title,
body.loaded .hero-subtitle,
body.loaded .download-buttons {
    animation-play-state: running;
}

/* 滚动触发动画 */
.animate-ready {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 关键帧动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* 渐变文字动画 */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ========================================
   响应式设计
   ======================================== */

@media (max-width: 768px) {
    .hero-section {
        min-height: 85vh;
    }

    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 40px;
    }
    
    .hero-content {
        padding: 60px 20px 40px;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-download {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .scroll-indicator {
        bottom: 30px;
    }

    .scroll-text {
        font-size: 12px;
    }

    .scroll-arrow svg {
        width: 24px;
        height: 24px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .screenshot-img {
        width: 220px;
    }
    
    .screenshot-center {
        width: 240px;
    }
    
    .feature-card {
        padding: 40px 30px;
        margin-bottom: 40px;
    }
    
    .feature-title {
        font-size: 24px;
    }
    
    .feature-description {
        font-size: 16px;
    }
    
    .feature-icon {
        font-size: 40px;
    }
    
    .brand-text {
        font-size: 20px;
    }
    
    .navbar-brand .app-icon {
        height: 40px;
        width: 40px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .screenshot-img {
        width: 240px;
    }
    
    .screenshot-center {
        width: 260px;
    }
    
    .feature-card {
        padding: 50px 40px;
    }
}

@media (min-width: 1025px) {
    .feature-card .row {
        display: flex;
        align-items: center;
    }
}

/* ========================================
   优化工具类
   ======================================== */

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.shadow-md {
    box-shadow: var(--shadow-md) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.text-center {
    text-align: center;
}

.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   滚动条美化
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-gradient);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff5589 0%, #feb0c7 100%);
}

/* ========================================
   优化选中文本样式
   ======================================== */

::selection {
    background: rgba(255, 107, 157, 0.25);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(255, 107, 157, 0.25);
    color: var(--text-primary);
}