/* 新版index2.php样式文件 - 参考404.htm的设计风格 */

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

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
    position: relative;
}

/* 背景动画粒子 */
.particles {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

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

/* 浮动形状 */
.floating-shapes {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: floatShape 8s ease-in-out infinite;
}

.shape-1 {
    top: 10%;
    left: 10%;
    width: 100px;
    height: 100px;
    background: #ff6b6b;
    border-radius: 50%;
    animation-delay: 0s;
}

.shape-2 {
    top: 20%;
    right: 15%;
    width: 80px;
    height: 80px;
    background: #feca57;
    transform: rotate(45deg);
    animation-delay: 2s;
}

.shape-3 {
    bottom: 15%;
    left: 20%;
    width: 60px;
    height: 60px;
    background: #48dbfb;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation-delay: 4s;
}

@keyframes floatShape {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(15px) rotate(240deg); }
}

/* 容器 */
.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* Header样式 - 来自index.php */
header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(45deg, #ff6b6b, #a30646);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.language-switcher a {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.language-switcher a.active,
.language-switcher a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.header-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-download-btn {
    background: linear-gradient(45deg, #ff6b6b, #c70a57);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.nav-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: 100%;
    margin-top: 1rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* 原header区域样式 */
.hero-header {
    padding: 2rem 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-header .header-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ed16db, #b6004d, #48dbfb, #ff9ff3);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 3s ease infinite;
    position: relative;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* 添加阴影跟随效果 */
.hero-header .header-text h1::before,
.hero-header .header-text h1::after {
    content: '早报中文网';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    font-size: 3.5rem;
    font-weight: 800;
    opacity: 0.8;
    animation: glitch 2s infinite;
    pointer-events: none;
}

.hero-header .header-text h1::before {
    color: #ff006e;
    z-index: -1;
    animation-delay: 0.1s;
}

.hero-header .header-text h1::after {
    color: #00f5ff;
    z-index: -2;
    animation-delay: 0.2s;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-header .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideUp 1s ease 0.5s forwards;
}

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

.hero-header .header-download {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    margin: 1.5rem auto;
    max-width: 350px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-qr {
    text-align: center;
    margin-bottom: 1rem;
}

.header-qr img {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.header-qr {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.4;
}

.header-qr strong {
    color: white;
    font-weight: 600;
}

.header-qr small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.header-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

.header-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.4);
}

.version-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* 主要内容区域 */
.main-content {
    position: relative;
    z-index: 10;
    padding: 2rem 0;
}

.section {
    margin: 1rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 玻璃效果 */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

/* 截图展示 */
.screenshots-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.screenshot-card {
    padding: 1rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.screenshot-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.screenshot-card img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

/* 版本信息卡片 */
.version-card {
    padding: 2rem;
    margin: 2rem 0;
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.version-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.version-date {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

.version-features {
    list-style: none;
}

.version-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.version-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #feca57;
    font-weight: bold;
}

/* 功能特色网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-description {
    opacity: 0.9;
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
    position: relative;
    z-index: 10;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    /* 第一行：语言切换和菜单按钮 */
    .language-switcher {
        order: 1;
        align-self: flex-start;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: 2;
        align-self: flex-start;
        margin-left: auto;
        margin-top: -2.5rem; /* 与语言切换同一行 */
    }
    
    /* 第二行：Logo */
    .logo {
        order: 3;
        align-self: flex-start;
        margin-top: 0.5rem;
        font-size: 1.2rem;
    }
    
    .header-nav {
        display: none;
        order: 4;
    }
    
    .mobile-nav.active {
        display: block;
        order: 5;
    }
    
    /* 减少hero-header的padding */
    .hero-header {
        padding: 1rem 0;
    }
    
    .hero-header .header-text h1 {
        font-size: 2.5rem;
    }
    
    /* 减少界面预览部分的间距 */
    .section {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .screenshots-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem 0;
    }
    
    /* 优化图片加载显示 */
    .screenshot-card img {
        width: 100%;
        height: auto;
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.1);
        min-height: 200px;
        object-fit: cover;
        loading: eager; /* 立即加载 */
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .version-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* 按钮涟漪效果 */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 页面加载动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body {
    animation: fadeIn 1s ease-in-out;
}