/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #007AFF;
    --primary-hover: #0051D5;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --bg-primary: #000000;
    --bg-secondary: #1d1d1f;
    --bg-tertiary: #000000;
    --border-color: #2d2d30;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.7);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 18px;
    color: var(--text-primary);
}

.nav-logo img {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.download-btn-nav {
    background: var(--primary-color);
    color: white !important;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-links a.download-btn-nav:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.nav-links a.download-btn-nav::after {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 80px;
    text-align: center;
    background: linear-gradient(180deg, #000000 0%, #1d1d1f 100%);
}

.hero-content {
    max-width: 800px;
    margin-bottom: 60px;
}

.hero-logo {
    margin-bottom: 30px;
}

.hero-logo img {
    width: 120px;
    height: 120px;
    animation: float 3s ease-in-out infinite;
}

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

.hero-title {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #f5f5f7 0%, #007AFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.hero-image {
    max-width: 900px;
    width: 100%;
    margin-top: 40px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    animation: slideUp 1s ease-out;
}

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

/* Fade In Animations */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay-1 {
    animation: fadeIn 1s ease-out 0.2s both;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.4s both;
}

.fade-in-delay-3 {
    animation: fadeIn 1s ease-out 0.6s both;
}

.fade-in-delay-4 {
    animation: fadeIn 1s ease-out 0.8s both;
}

.fade-in-delay-5 {
    animation: fadeIn 1s ease-out 1s both;
}

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

/* Features Section */
.features {
    padding: 120px 0;
    background: var(--bg-primary);
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.visible {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Screenshots Section */
.screenshots {
    padding: 0;
    background: var(--bg-secondary);
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
}

.screenshots .container {
    height: 100%;
    padding: 0 20px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.screenshots .section-title {
    margin-bottom: 30px;
    font-size: 36px;
}

.screenshots-carousel {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    overflow: hidden;
    width: 100%;
    height: calc(100% - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 20px 100px;
    box-sizing: border-box;
}

.screenshots-slides-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    width: 100%;
}

.screenshot-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.4s ease-in-out 0.2s;
    box-sizing: border-box;
}

.screenshot-slide.active {
    opacity: 1;
}

.slide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    align-items: center;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}

.slide-image {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.screenshot-frame {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 12px;
    box-shadow: var(--shadow-hover);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.screenshot-frame img {
    width: 100%;
    height: auto;
    max-height: 50vh;
    max-width: 100%;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.slide-text {
    padding: 20px;
}

.slide-text h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.slide-text p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    padding: 15px 0;
    z-index: 10;
    background: linear-gradient(to top, var(--bg-secondary) 70%, rgba(29, 29, 31, 0.6) 100%);
    pointer-events: none;
}

.carousel-controls > * {
    pointer-events: all;
}

.carousel-btn {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.carousel-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-dots {
    display: flex;
    gap: 12px;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    width: 32px;
    border-radius: 6px;
}

.dot:hover {
    background: var(--primary-color);
    opacity: 0.7;
}

/* About Section */
.about {
    padding: 120px 0;
    background: var(--bg-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 80px;
    align-items: start;
}

.about-text {
    max-width: 700px;
}

.about-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.8;
}

.about-features {
    margin-top: 40px;
}

.about-features h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.about-features ul {
    list-style: none;
}

.about-features li {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 8px;
}

.about-developer {
    position: sticky;
    top: 100px;
}

.developer-card {
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow);
}

.developer-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: none;
    box-shadow: none;
}

.developer-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.developer-role {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.developer-contact {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.wechat {
    font-weight: 600;
    color: var(--primary-color);
}

.developer-note {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
}

/* Download Section */
.download {
    padding: 120px 0;
    background: linear-gradient(180deg, #1d1d1f 0%, #000000 100%);
    text-align: center;
}

.download-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

.download-content {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.download-card {
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 60px 80px;
    box-shadow: var(--shadow-hover);
    max-width: 500px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.download-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 122, 255, 0.3);
    border-color: var(--primary-color);
}

.download-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.download-card h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.download-card p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary-color);
    color: white;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-download:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.download-note {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
}

.system-requirements {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 20px;
}

.system-requirements h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.system-requirements ul {
    list-style: none;
}

.system-requirements li {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.system-requirements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--bg-tertiary);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-developer {
        position: static;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .nav-links a {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-links {
        gap: 16px;
    }
    
    .nav-links a {
        font-size: 13px;
    }
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshots {
        height: auto;
        min-height: 100vh;
    }
    
    .screenshots-carousel {
        padding: 40px 15px 80px;
        max-width: 100%;
    }
    
    .slide-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 15px;
    }
    
    .screenshot-frame {
        padding: 8px;
    }
    
    .screenshot-frame img {
        max-height: 50vh;
        max-width: 100%;
    }
    
    .slide-text {
        padding: 10px;
    }
    
    .slide-text h3 {
        font-size: 24px;
    }
    
    .slide-text p {
        font-size: 14px;
    }
    
    .slide-text {
        text-align: center;
        padding: 10px;
    }
    
    .slide-text h3 {
        font-size: 24px;
    }
    
    .slide-text p {
        font-size: 16px;
    }
    
    .carousel-controls {
        bottom: 10px;
        gap: 20px;
        padding: 15px 0;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .download-card {
        padding: 40px 30px;
    }
}

/* Scroll Animations */
@media (prefers-reduced-motion: no-preference) {
    .feature-card,
    .screenshot-item {
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
}

