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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
}

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

/* Dark Magenta Theme Colors */
:root {
    --primary-color: #ff5722;
    --primary-dark: #d84315;
    --primary-light: #ff8a65;
    --secondary-color: #212121;
    --accent-color: #ff1744;
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --error-color: #f44336;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --divider-color: #333333;
    --shadow-1: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.4);
    --shadow-2: 0 3px 6px rgba(0,0,0,0.4), 0 3px 6px rgba(0,0,0,0.5);
    --shadow-3: 0 10px 20px rgba(0,0,0,0.6), 0 6px 6px rgba(0,0,0,0.5);
}

/* Header */
.header {
    background: var(--surface-color);
    box-shadow: var(--shadow-1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-icon-placeholder {
    width: 40px;
    height: 40px;
    background-image: url('./logo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: var(--shadow-1);
}

.header h1 {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-primary);
}

.nav {
    display: flex;
    gap: 24px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: var(--primary-color);
    color: var(--background-color);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-1);
}

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

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

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

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

.btn-download {
    background: var(--primary-color);
    color: white;
    width: 100%;
    justify-content: center;
}

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

.btn-disabled {
    background: var(--divider-color);
    color: var(--text-secondary);
    cursor: not-allowed;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 500;
    font-size: 16px;
    width: 100%;
    justify-content: center;
}

/* Phone Mockup */
.hero-image {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 330px;
    height: 717px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 30px;
    padding: 5px;
    box-shadow: var(--shadow-3);
    position: relative;
    margin: 0 auto;
    border: 4px solid #333;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.screenshot-placeholder {
    width: 100%;
    height: 100%;
    background-image: url('./screenshot.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.screenshot-placeholder i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.8;
    display: none;
}

.screenshot-placeholder p {
    font-size: 14px;
    opacity: 0.9;
    display: none;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--background-color);
}

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

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

.feature-card {
    background: var(--surface-color);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-1);
    transition: all 0.3s ease;
    border: 1px solid var(--divider-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
}

.feature-icon i {
    font-size: 32px;
}

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

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

/* Download Section */
.download {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--surface-color) 0%, #2a2a2a 100%);
    color: var(--text-primary);
}

.download .section-title {
    color: var(--text-primary);
}

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

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.download-card {
    background: var(--surface-color);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--divider-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-1);
}

.download-card:hover:not(.disabled) {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-2);
}

.download-card.disabled {
    opacity: 0.6;
}

.platform-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.platform-icon i {
    font-size: 40px;
}

.download-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.download-card p {
    margin-bottom: 24px;
    opacity: 0.9;
}

.download-info {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--text-primary);
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.footer-info h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-info p {
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

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

/* WeChat Browser Notice */
.wechat-notice {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    box-shadow: var(--shadow-2);
    animation: slideDown 0.3s ease;
}

.wechat-notice-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.wechat-notice-content i {
    font-size: 16px;
    flex-shrink: 0;
}

.wechat-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.wechat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-content {
        padding: 12px 0;
    }
    
    .logo-section {
        gap: 8px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .nav {
        gap: 12px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
        text-align: center;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-title {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 16px;
    }
    
    .hero-description {
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 24px;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .btn {
        min-width: 200px;
        text-align: center;
        justify-content: center;
    }
    
    .phone-mockup {
        width: 220px;
        height: 478px;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 24px;
        text-align: center;
        margin-bottom: 24px;
    }
    
    .features {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .feature-card {
        text-align: center;
        padding: 24px 20px;
    }
    
    .feature-card h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .feature-card p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .download {
        padding: 60px 0;
    }
    
    .download-content {
        text-align: center;
    }
    
    .download-description {
        margin-bottom: 32px;
        font-size: 16px;
    }
    
    .download-options {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 32px;
    }
    
    .download-card {
        text-align: center;
        padding: 24px 20px;
    }
    
    .download-card h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .download-card p {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .download-info {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        text-align: center;
    }
    
    .info-item {
        justify-content: center;
        font-size: 14px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .wechat-notice-content {
        font-size: 13px;
        padding: 0 8px;
    }
    
    .wechat-notice-content span {
        text-align: center;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-title {
        font-size: 24px;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 15px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 180px;
    }
    
    .feature-card {
        padding: 20px 16px;
    }
    
    .feature-card h3 {
        font-size: 16px;
    }
    
    .feature-card p {
        font-size: 13px;
    }
    
    .download-card {
        padding: 20px 16px;
    }
    
    .download-card h3 {
        font-size: 16px;
    }
    
    .download-card p {
        font-size: 13px;
    }
    
    .phone-mockup {
        width: 220px;
        height: 478px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .wechat-notice {
        padding: 10px 0;
    }
    
    .wechat-notice-content {
        font-size: 12px;
        gap: 8px;
    }
}

/* Bootstrap Icons Styles */
.bi {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.download-card {
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(2) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.3s;
}