/*
 * -----------------------------------------------------------
 * 可爱风下载页面样式
 * -----------------------------------------------------------
 */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
    --theme-primary: #D97706;
    --theme-secondary: #F59E0B;
    --theme-accent: #FBBF24;
    --theme-background: #FFF7ED;
    --theme-surface: #FFFFFF;
    --theme-text: #292524;
    --theme-text-muted: #78716C;
    --theme-border: #FED7AA;
    --theme-font-family: 'Nunito', 'Noto Sans SC', sans-serif;
    --theme-heading-weight: 700;
    --theme-body-weight: 500;
    --theme-letter-spacing: 0.01em;
    --theme-section-padding: 80px 0;
    --theme-card-padding: 40px 32px;
    --theme-gap: 20px;
    --theme-radius-small: 16px;
    --theme-radius-medium: 24px;
    --theme-radius-large: 32px;
    --theme-shadow: 0 8px 24px rgba(217, 119, 6, 0.15);
    --theme-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--theme-font-family);
    background-color: var(--theme-background);
    color: var(--theme-text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Cute Decorations */
.cute-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 8s ease-in-out infinite;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #F59E0B, #FED7AA);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #FBBF24, #FFF7ED);
    bottom: -80px;
    left: -80px;
    animation-delay: 2s;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #D97706, #F59E0B);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

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

.dots {
    position: absolute;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, #FED7AA 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.6;
}

.dots-1 {
    top: 20%;
    left: 5%;
}

.dots-2 {
    bottom: 15%;
    right: 8%;
}

/* Header */
header {
    padding: 60px 20px 50px;
    text-align: center;
    background: linear-gradient(180deg, var(--theme-surface) 0%, transparent 100%);
    position: relative;
    z-index: 1;
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: 28px;
    margin-bottom: 24px;
    object-fit: cover;
    box-shadow: var(--theme-shadow);
    animation: bounce 2s ease-in-out infinite;
}

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

header h1 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--theme-text);
    text-shadow: 2px 2px 0 #FED7AA;
}

header p {
    font-size: 17px;
    color: var(--theme-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content */
main {
    flex: 1;
    padding: var(--theme-section-padding);
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Section */
section {
    margin-bottom: 50px;
}

section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--theme-text);
    text-align: center;
    position: relative;
}

section h2::after {
    content: '🧡';
    margin-left: 8px;
}

/* Download Section */
.download-section {
    background-color: var(--theme-surface);
    border-radius: var(--theme-radius-large);
    padding: var(--theme-card-padding);
    box-shadow: var(--theme-shadow);
    border: 3px solid var(--theme-border);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}

.download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px;
    background: linear-gradient(135deg, #FFFFFF, #FFF7ED);
    border-radius: var(--theme-radius-medium);
    border: 2px solid var(--theme-border);
    text-decoration: none;
    color: var(--theme-text);
    transition: all var(--theme-transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(217, 119, 6, 0.1));
    opacity: 0;
    transition: opacity var(--theme-transition);
}

.download-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(217, 119, 6, 0.25);
    border-color: var(--theme-primary);
}

.download-card:hover::before {
    opacity: 1;
}

.download-card-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.download-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--theme-text);
    position: relative;
    z-index: 1;
}

.download-card-badge {
    margin-top: 10px;
    padding: 5px 14px;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    color: white;
    font-size: 11px;
    border-radius: 20px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

/* Screenshots Section */
.screenshots-section {
    background-color: var(--theme-surface);
    border-radius: var(--theme-radius-large);
    padding: var(--theme-card-padding);
    box-shadow: var(--theme-shadow);
    border: 3px solid var(--theme-border);
    text-align: center;
}

.screenshots-section h2::after {
    content: '📸';
}

.screenshots-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.screenshots-container::-webkit-scrollbar {
    height: 8px;
}

.screenshots-container::-webkit-scrollbar-track {
    background: #FFF7ED;
    border-radius: 10px;
}

.screenshots-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    border-radius: 10px;
}

.screenshots-container::-webkit-scrollbar-thumb:hover {
    background: var(--theme-primary);
}

.screenshot {
    flex: 0 0 auto;
    width: 280px;
    height: auto;
    border-radius: var(--theme-radius-medium);
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.2);
    border: 3px solid var(--theme-border);
    transition: transform var(--theme-transition), box-shadow var(--theme-transition);
    scroll-snap-align: center;
}

.screenshot:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 16px 40px rgba(217, 119, 6, 0.3);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 32px 24px;
    background-color: var(--theme-surface);
    border-radius: var(--theme-radius-medium);
    box-shadow: var(--theme-shadow);
    border: 2px solid var(--theme-border);
    text-align: center;
    transition: all var(--theme-transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(217, 119, 6, 0.2);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    color: var(--theme-primary);
    background: linear-gradient(135deg, #FFF7ED, #FED7AA);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--theme-text);
}

.feature-card p {
    font-size: 14px;
    color: var(--theme-text-muted);
    line-height: 1.7;
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.review-card {
    padding: 28px;
    background: linear-gradient(135deg, var(--theme-surface), #FFF7ED);
    border-radius: var(--theme-radius-medium);
    box-shadow: var(--theme-shadow);
    border: 2px solid var(--theme-border);
    position: relative;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    left: 20px;
    font-size: 48px;
    color: var(--theme-secondary);
    opacity: 0.5;
    font-family: Georgia, serif;
    line-height: 1;
}

.review-text {
    font-size: 15px;
    color: var(--theme-text);
    line-height: 1.8;
    margin-bottom: 16px;
    padding-top: 20px;
}

.review-author {
    font-size: 13px;
    color: var(--theme-text-muted);
    text-align: right;
    font-weight: 600;
}

.review-author::before {
    content: '—— ';
}

/* Contact Section */
.contact-section {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--theme-surface), #FFF7ED);
    border-radius: var(--theme-radius-large);
    box-shadow: var(--theme-shadow);
    border: 2px solid var(--theme-border);
}

.contact-section h2 {
    margin-bottom: 20px;
}

.contact-section p {
    font-size: 15px;
    color: var(--theme-text-muted);
    margin: 10px 0;
}

.contact-section a {
    color: var(--theme-primary);
    text-decoration: none;
    font-weight: 700;
    transition: all var(--theme-transition);
    position: relative;
}

.contact-section a:hover {
    color: var(--theme-secondary);
}

.contact-section a::after {
    content: '🐭';
    margin-left: 4px;
    font-size: 12px;
}

/* Footer */
footer {
    padding: 32px 20px;
    text-align: center;
    background: linear-gradient(180deg, transparent, var(--theme-surface));
    position: relative;
    z-index: 1;
}

footer p {
    font-size: 13px;
    color: var(--theme-text-muted);
}

footer p::before {
    content: '🧀 ';
}

/* Back Button */
.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--theme-surface), #FFF7ED);
    border: 2px solid var(--theme-border);
    border-radius: 50px;
    color: var(--theme-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    box-shadow: var(--theme-shadow);
    transition: all var(--theme-transition);
    z-index: 100;
}

.back-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.3);
    border-color: var(--theme-primary);
}

.back-button::before {
    content: '←';
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 50px 20px 40px;
    }

    header h1 {
        font-size: 30px;
    }

    .logo {
        width: 80px;
        height: 80px;
    }

    main {
        padding: 50px 20px;
    }

    section h2 {
        font-size: 22px;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .back-button {
        top: 10px;
        left: 10px;
        padding: 10px 16px;
        font-size: 13px;
    }

    .blob {
        opacity: 0.3;
    }

    /* Screenshots responsive */
    .screenshots-section {
        padding: 30px 20px;
    }

    .screenshot {
        width: 240px;
    }
}
