/* Base Styles */
:root {
    --primary-color: #4a148c;
    --secondary-color: #6a1b9a;
    --accent-color: #9c27b0;
    --dark-color: #1a1a1a;
    --light-color: #f5f5f5;
    --text-color: #333;
    --light-text: #fff;
    --gold: #d4af37;
    --red: #c53030;
}

* {
    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: var(--text-color);
    background-color: var(--light-color);
    background-image: url('images/paper_texture.jpg');
    background-size: cover;
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 1001;
    display: flex;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.language-selector button {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.language-selector button:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.language-selector button.active {
    background-color: var(--primary-color);
    color: var(--light-text);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 5% 0 5%;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

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

nav {
    margin-right: 150px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

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

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.8), rgba(74, 20, 140, 0.9));
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/chinese_pattern.png');
    background-size: 200px;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    max-width: 50%;
    z-index: 2;
    color: var(--light-text);
}

.animated-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    background: linear-gradient(to right, #fff, var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--gold);
    color: var(--dark-color);
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: var(--dark-color);
}

.hero-animation {
    position: relative;
    width: 40%;
    height: 400px;
    z-index: 2;
}

.bagua-wheel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background-image: url('images/bagua.png');
    background-size: contain;
    background-repeat: no-repeat;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Sections */
section {
    padding: 100px 10%;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Features Section */
.features {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon svg {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

/* Download Section */
.download {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(245, 245, 245, 0.95));
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.download-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.platform-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(74, 20, 140, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.platform-logo svg {
    width: 36px;
    height: 36px;
    transition: all 0.3s ease;
}

.download-card:hover .platform-logo {
    background-color: rgba(74, 20, 140, 0.1);
    transform: scale(1.05);
}

.download-card:hover .platform-logo svg {
    transform: scale(1.1);
}

.download-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.download-card p {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.4;
}

.download-button {
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
}

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

.download-button.coming-soon {
    background-color: #95a5a6;
    cursor: not-allowed;
    opacity: 0.7;
}

.download-button.coming-soon:hover {
    transform: none;
    background-color: #95a5a6;
    color: white;
}

/* Support Section */
.support {
    background-color: rgba(255, 255, 255, 0.9);
}

.support-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

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

.support-text p {
    margin-bottom: 30px;
    line-height: 1.7;
}

.contact-info {
    margin-top: 30px;
}

.contact-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-label {
    font-weight: 600;
    margin-right: 10px;
    color: var(--secondary-color);
}

.faq {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.accordion-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
}

.accordion-header h4 {
    font-size: 18px;
    font-weight: 500;
    color: var(--dark-color);
}

.accordion-icon {
    font-size: 20px;
    transition: all 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 300px;
    padding-bottom: 15px;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 10% 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-small {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.footer-links a {
    color: #ccc;
}

.footer-links a:hover {
    color: white;
}

.footer-contact a {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #999;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 150px 5% 100px;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 50px;
    }
    
    .animated-title {
        font-size: 36px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .hero-animation {
        width: 100%;
    }
    
    .support-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    nav {
        margin-right: 0;
    }
    
    .download-options {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .download-card {
        padding: 20px;
    }
    
    .download-card h3 {
        font-size: 16px;
    }
    
    .download-card p {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 20px;
        padding-top: 70px;
    }
    
    .language-selector {
        top: 10px;
        right: 50%;
        transform: translateX(50%);
        width: fit-content;
    }
    
    nav {
        margin-top: 20px;
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
    }
    
    .download-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .download-card {
        padding: 20px;
        margin: 0 20px;
    }
}

@media (max-width: 480px) {
    .download-options {
        grid-template-columns: 1fr;
    }
    
    .download-card {
        margin: 0 10px;
    }
    
    .platform-logo {
        width: 50px;
        height: 50px;
    }
    
    .download-card h3 {
        font-size: 16px;
    }
    
    .download-button {
        padding: 10px 15px;
        font-size: 13px;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
} 