/* CSS Variables for Theme Colors */
:root {
    --primary-color: #522e28;
    --secondary-color: #2d1c19;
    --accent-color: #7b513f;
    --light-color: #cbb2a0;
    --white: #ffffff;
    --black: #000000;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --gray-dark: #343a40;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    --shadow-light: 0 2px 10px rgba(82, 46, 40, 0.1);
    --shadow-medium: 0 4px 20px rgba(82, 46, 40, 0.15);
    --shadow-heavy: 0 8px 30px rgba(82, 46, 40, 0.2);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans SC', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--gray-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    background: var(--gradient-primary);
    color: var(--white);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: var(--white);
}

.btn:active {
    transform: translateY(0);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(82, 46, 40, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

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

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
}

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

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    color: var(--gray-dark);
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--light-color) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23522e28" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23522e28" opacity="0.05"/><circle cx="50" cy="10" r="1" fill="%23522e28" opacity="0.05"/><circle cx="10" cy="60" r="1" fill="%23522e28" opacity="0.05"/><circle cx="90" cy="40" r="1" fill="%23522e28" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 400;
    color: var(--accent-color);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray-dark);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.feature-tag i {
    color: var(--accent-color);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 16px 32px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--border-radius-lg);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
    color: var(--white);
}

.download-btn i {
    font-size: 1.2rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-medium);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title i {
    color: var(--accent-color);
    font-size: 2rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* News Section */
.news {
    background: var(--gray-light);
}

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

.news-item {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    display: flex;
    gap: 1.5rem;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.date-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 0.9rem;
    font-weight: 500;
}

.date-year {
    font-size: 0.8rem;
    opacity: 0.8;
}

.news-content {
    flex: 1;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.news-excerpt {
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 500;
    transition: var(--transition);
}

.news-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(82, 46, 40, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2rem;
    color: var(--white);
}

/* Reviews Section */
.reviews {
    background: var(--gray-light);
}

.reviews-stats {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: center;
}

.rating-overview {
    text-align: center;
}

.rating-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.score-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stars {
    display: flex;
    gap: 0.25rem;
}

.stars i {
    color: #ffc107;
    font-size: 1.5rem;
}

.rating-count {
    color: var(--gray-medium);
    font-size: 1rem;
}

.rating-tags {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.tag-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.tag-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.tag-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.tag-item span {
    font-weight: 500;
    color: var(--primary-color);
}

.reviews-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-item {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.review-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.review-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.review-stars i {
    color: #ffc107;
    font-size: 1rem;
}

.review-text {
    font-style: italic;
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.review-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-light);
}

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

.review-date {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

/* Updates Section */
.updates-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.updates-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--border-radius-lg);
    margin: 0 2rem;
    position: relative;
    z-index: 2;
}

.version {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.date {
    font-size: 0.9rem;
    opacity: 0.9;
}

.timeline-content {
    flex: 1;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.update-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.update-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--gray-light);
    border-radius: var(--border-radius);
}

.detail-item i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.detail-item span {
    font-weight: 500;
    color: var(--primary-color);
}

.update-features h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.update-features ul {
    list-style: none;
    padding-left: 0;
}

.update-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--gray-dark);
}

.update-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.update-download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-light);
    flex-wrap: wrap;
    gap: 1rem;
}

.file-size, .platforms {
    color: var(--gray-medium);
    font-size: 0.9rem;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.download-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: var(--white);
}

/* FAQ Section */
.faq {
    background: var(--gray-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-medium);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--gray-light);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.faq-question i {
    color: var(--accent-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 2rem 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    color: var(--gray-dark);
    line-height: 1.6;
    margin: 0;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

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

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--light-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--light-color);
}

.about-info p {
    color: var(--white);
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(203, 178, 160, 0.2);
    color: var(--light-color);
    opacity: 0.8;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition);
        box-shadow: var(--shadow-medium);
    }

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

    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .news-item {
        flex-direction: column;
        text-align: center;
    }

    .news-date {
        flex-direction: row;
        min-width: auto;
        width: fit-content;
        margin: 0 auto;
    }

    .reviews-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .rating-tags {
        grid-template-columns: 1fr;
    }

    .updates-timeline::before {
        left: 2rem;
    }

    .timeline-item {
        flex-direction: column !important;
        margin-left: 2rem;
    }

    .timeline-date {
        margin: 0 0 1rem 0;
        width: fit-content;
    }

    .update-download {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

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

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

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

    .timeline-item {
        margin-left: 1rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .update-details {
        grid-template-columns: 1fr;
    }

    .faq-question {
        padding: 1rem 1.5rem;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 1.5rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1rem;
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus,
.download-btn:focus,
.download-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .back-to-top {
        display: none;
    }
    
    .hero {
        padding: 20px 0;
    }
    
    section {
        padding: 20px 0;
    }
    
    .btn,
    .download-btn,
    .download-link {
        background: none !important;
        color: var(--primary-color) !important;
        border: 1px solid var(--primary-color);
    }
}
