/* 额外的样式优化 */

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* App Showcase */
.app-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    align-items: start;
}

.app-info h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.app-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.features-list .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(76, 175, 80, 0.1);
}

.features-list .feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.features-list .feature-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    color: white;
}

.features-list .feature-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.features-list .feature-item p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Screenshots Grid */
.app-screenshots {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.1);
}

.app-screenshots h4 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.4rem;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.screenshot-item {
    text-align: center;
    transition: all 0.3s ease;
}

.screenshot-item:hover {
    transform: scale(1.05);
}

.screenshot-item img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 2px solid rgba(76, 175, 80, 0.2);
}

.screenshot-item img:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.screenshot-item span {
    display: block;
    margin-top: 0.8rem;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* 应用动画 */
.feature-card {
    animation: fadeInUp 0.6s ease-out;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(76, 175, 80, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

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

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.screenshot {
    animation: fadeIn 0.8s ease-out;
}

.info-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Download Section */
.download-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.apps-download {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.app-download-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.app-download-section:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.app-download-section h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: white;
}

.app-download-section > p {
    margin-bottom: 2rem;
    opacity: 0.9;
    font-size: 1.1rem;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.download-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}

.platform-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.download-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: white;
}

.download-card p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.download-btn {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-btn:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

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

.qr-code {
    margin-top: 2rem;
}

.qr-code h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
}

.qr-placeholder {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 250px;
    margin: 0 auto;
}

.qr-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.qr-placeholder p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* 响应式图片 */
.screenshot-img {
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.screenshot-img::before {
    content: '📱';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    opacity: 0.3;
}

/* 滚动指示器 */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    z-index: 1000;
    transition: width 0.3s ease;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #45a049;
    transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* App Showcase 响应式 */
    .app-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .app-info {
        order: 1;
    }
    
    .app-screenshots {
        order: 2;
        padding: 1.5rem;
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .screenshot-item img {
        max-width: 150px;
    }
    
    .features-list .feature-item {
        padding: 1rem;
    }
    
    .features-list .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .features-list .feature-item h4 {
        font-size: 1.1rem;
    }
    
    .features-list .feature-item p {
        font-size: 0.9rem;
    }
}

/* 移动端优化 */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 40px 0;
    }
    
    .app-icon {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .screenshot-img {
        width: 150px;
        height: 300px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshot-item img {
        max-width: 200px;
    }
    
    .app-screenshots {
        padding: 1rem;
    }
    
    .features-list .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .features-list .feature-icon {
        align-self: center;
    }
    
    .apps-download {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .app-download-section {
        padding: 1.5rem;
    }
    
    .download-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .qr-placeholder {
        max-width: 200px;
        padding: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .app-links {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .app-link {
        flex: 1;
        min-width: 140px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .nav {
        background: #2d2d2d;
    }
    
    .nav a {
        color: #e0e0e0;
    }
    
    .feature-card,
    .info-card {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .screenshots {
        background: #2d2d2d;
    }
    
    .app-info {
        background: #1a1a1a;
    }
    
    .screenshot-img {
        background: #3d3d3d;
        color: #999;
        border-color: #555;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #3498db;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-section h4 {
    color: #ecf0f1;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    opacity: 0.9;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.app-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.app-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

.app-link span {
    font-size: 1.5rem;
}

.app-link strong {
    display: block;
    color: #ecf0f1;
    font-size: 1rem;
}

.app-link small {
    display: block;
    color: #bdc3c7;
    font-size: 0.85rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* 打印样式 */
@media print {
    .nav,
    .download,
    .back-to-top {
        display: none;
    }
    
    .section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    .feature-card,
    .info-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}