/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #64b5f6 0%, #1e88e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.1rem;
    color: #a0a0a0;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(100, 181, 246, 0.2);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #64b5f6;
}

.logo img {
    width: 40px;
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #64b5f6;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #64b5f6, #1e88e5);
    transition: width 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #64b5f6;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background:
        radial-gradient(circle at 20% 80%, rgba(100, 181, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(30, 136, 229, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    margin-bottom: 24px;
}

.title-main {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #64b5f6 0%, #1e88e5 50%, #0d47a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.title-sub {
    display: block;
    font-size: 1.4rem;
    font-weight: 400;
    color: #a0a0a0;
    margin-top: 8px;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 32px;
    color: #c0c0c0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #64b5f6, #1e88e5);
    color: white;
    box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 181, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 1px solid rgba(100, 181, 246, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(100, 181, 246, 0.2);
    border-color: #64b5f6;
    color: #fff;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a0a0a0;
    font-size: 0.9rem;
}

.hero-note a {
    color: #64b5f6;
    text-decoration: none;
}

.hero-note a:hover {
    text-decoration: underline;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* Special styling for GIF animations */
.hero-image img[src$=".gif"] {
    border: 2px solid rgba(100, 181, 246, 0.3);
    background: rgba(0, 0, 0, 0.1);
}

/* Optimize image loading */
.hero-image img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ===== DOWNLOAD SECTION ===== */
.download-section {
    padding: 100px 0;
    background:
        radial-gradient(circle at 70% 30%, rgba(100, 181, 246, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, rgba(15, 15, 35, 0.8) 0%, rgba(26, 26, 46, 0.9) 100%);
}

.download-grid {
    display: flex;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    justify-content: center;
}

.btn-download-primary,
.btn-download-featured {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 40px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    min-width: 280px;
    backdrop-filter: blur(10px);
}

.btn-download-primary {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(100, 181, 246, 0.3);
    color: #fff;
}

.btn-download-featured {
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.1), rgba(30, 136, 229, 0.15));
    border: 2px solid #64b5f6;
    color: #fff;
    position: relative;
}

.btn-download-featured::before {
    content: "推荐";
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #64b5f6, #1e88e5);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-download-primary:hover,
.btn-download-featured:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.btn-download-primary:hover {
    border-color: rgba(100, 181, 246, 0.6);
    background: rgba(100, 181, 246, 0.08);
}

.btn-download-featured:hover {
    border-color: #42a5f5;
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.15), rgba(30, 136, 229, 0.2));
}

.btn-download-primary i,
.btn-download-featured i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: #64b5f6;
}

.btn-subtitle {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: #b0b0b0;
    margin-top: 8px;
}

.badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: linear-gradient(135deg, #64b5f6, #1e88e5);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-header {
    margin-bottom: 20px;
}

.card-header h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 8px;
}

.price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #64b5f6;
}

.card-body p {
    margin-bottom: 24px;
    color: #c0c0c0;
}

.features-list {
    list-style: none;
    margin-bottom: 32px;
}

.features-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e0e0e0;
}

.features-list i {
    color: #64b5f6;
    width: 16px;
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-download {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.btn-purchase {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

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

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 100px 0;
    background:
        radial-gradient(circle at 30% 70%, rgba(30, 136, 229, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, rgba(26, 26, 46, 0.9) 0%, rgba(15, 15, 35, 0.8) 100%);
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(100, 181, 246, 0.1);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(100, 181, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #64b5f6, #1e88e5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 16px;
}

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

/* ===== SCREENSHOTS SECTION ===== */
.screenshots-section {
    padding: 100px 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(100, 181, 246, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, rgba(15, 15, 35, 0.9) 0%, rgba(26, 26, 46, 0.8) 100%);
}

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

.screenshot-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(100, 181, 246, 0.2);
    transition: all 0.3s ease;
}

.screenshot-item:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.screenshot-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.screenshot-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 24px;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.screenshot-item:hover .screenshot-overlay {
    transform: translateY(0);
}

.screenshot-overlay h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.screenshot-overlay p {
    color: #c0c0c0;
    font-size: 0.9rem;
}

/* ===== REQUIREMENTS SECTION ===== */
.requirements-section {
    padding: 100px 0;
    background:
        radial-gradient(circle at 40% 60%, rgba(30, 136, 229, 0.06) 0%, transparent 50%),
        rgba(15, 15, 35, 0.95);
}

.requirements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.req-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(100, 181, 246, 0.2);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.req-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 24px;
}

.req-card i {
    color: #64b5f6;
    font-size: 1.3rem;
}

.req-card ul {
    list-style: none;
}

.req-card li {
    padding: 8px 0;
    color: #e0e0e0;
    border-bottom: 1px solid rgba(100, 181, 246, 0.1);
}

.req-card li:last-child {
    border-bottom: none;
}

.languages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.languages span {
    background: rgba(100, 181, 246, 0.15);
    color: #e0e0e0;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(100, 181, 246, 0.2);
}

/* ===== FOOTER ===== */
.footer {
    background:
        linear-gradient(135deg, rgba(15, 15, 35, 0.95) 0%, rgba(10, 10, 25, 0.98) 100%);
    border-top: 1px solid rgba(100, 181, 246, 0.2);
    padding: 60px 0 20px;
}

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

.footer-section h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, #64b5f6, #1e88e5);
}

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

.footer-section li {
    margin-bottom: 12px;
}

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

.footer-section a:hover {
    color: #64b5f6;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(100, 181, 246, 0.1);
    border: 1px solid rgba(100, 181, 246, 0.3);
    border-radius: 50%;
    color: #64b5f6;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(100, 181, 246, 0.2);
    border-color: #64b5f6;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(100, 181, 246, 0.1);
    color: #a0a0a0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(15, 15, 35, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(100, 181, 246, 0.2);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 16px 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .title-main {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .download-grid {
        flex-direction: column;
        gap: 20px;
    }

    .btn-download-primary,
    .btn-download-featured {
        min-width: auto;
        padding: 24px 32px;
    }

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

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

    .screenshots-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .title-main {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .download-card,
    .feature-card,
    .req-card {
        padding: 24px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-image {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.feature-icon {
    animation: pulse 2s infinite;
}

/* ===== SCROLL EFFECTS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

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

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 15, 35, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #64b5f6, #1e88e5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1e88e5, #0d47a1);
}

/* ===== ENHANCED BUTTON EFFECTS ===== */
.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;
}

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

/* ===== GLOWING EFFECTS ===== */
.download-card.featured::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #64b5f6, #1e88e5, #0d47a1, #64b5f6);
    border-radius: 18px;
    z-index: -1;
    animation: glow 3s linear infinite;
    background-size: 400% 400%;
}

@keyframes glow {

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

    50% {
        background-position: 100% 50%;
    }
}

/* ===== TOOLTIP STYLES ===== */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1001;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* ===== ENHANCED MOBILE STYLES ===== */
@media (max-width: 768px) {
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero {
        padding-top: 100px;
        min-height: auto;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {

    .header,
    .hamburger,
    .btn,
    .social-links {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .hero,
    .download-section,
    .features-section {
        background: white !important;
        color: black !important;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {

    .hero-title,
    .section-header h2 {
        -webkit-text-fill-color: #ffffff;
        background: none;
    }

    .btn-primary {
        background: #000000;
        color: #ffffff;
        border: 2px solid #ffffff;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== FOCUS STYLES FOR ACCESSIBILITY ===== */
.btn:focus,
.nav-menu a:focus,
.social-link:focus {
    outline: 2px solid #64b5f6;
    outline-offset: 2px;
}

/* ===== ENHANCED CARD HOVER STATES ===== */
.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.download-card:hover .price {
    transform: scale(1.05);
    color: #ffffff;
}

/* ===== BACKGROUND PATTERNS ===== */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(100, 181, 246, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(30, 136, 229, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}