/* CSS Variables */
:root {
    --primary-color: #8B5E3C;    /* 温暖的咖啡色 */
    --secondary-color: #F5E6D3;   /* 奶咖色 */
    --accent-color: #D4A373;      /* 焦糖色 */
    --text-color: #2C1810;        /* 深咖啡色 */
    --background-color: #FFF9F0;  /* 米白色 */
    --max-width: 1200px;
    --spacing-unit: 1rem;
    --header-height: 80px;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Header Styles */
.header {
    background-color: var(--secondary-color);
    height: var(--header-height);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(44, 24, 16, 0.1);
}

.header__container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo__image {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

.logo__text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

/* Hero Section */
.hero {
    margin-top: var(--header-height);
    background: linear-gradient(to bottom, var(--secondary-color), var(--background-color));
    padding: 4rem 1rem;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
}

.hero__container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero__content {
    padding-right: 2rem;
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero__subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.button {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 200px;
}

.button i {
    font-size: 1.8rem;
}

.button__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.button__small {
    font-size: 0.7rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.button--primary {
    background-color: var(--accent-color);
    color: white;
    border: none;
}

.button--apple {
    background-color: #000000;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

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

.hero__image {
    position: relative;
}

.hero__gameplay {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__content {
        padding-right: 0;
        order: 1;
    }

    .hero__image {
        order: 0;
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
        justify-content: center;
    }

    .hero__title {
        font-size: 2rem;
    }
}

/* Video Section */
.video-section {
    padding: 6rem 1rem;
    background-color: var(--background-color);
}

.video-section__container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.video-section__title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

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

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 宽高比 */
    background-color: var(--secondary-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Video Section Responsive */
@media (max-width: 768px) {
    .video-section__grid {
        grid-template-columns: 1fr;
    }

    .video-section {
        padding: 4rem 1rem;
    }

    .video-section__title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

/* Features Section */
.features {
    padding: 6rem 1rem;
    background: linear-gradient(to bottom, var(--background-color), var(--secondary-color) 10%, var(--background-color) 90%);
}

.features__container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.features__title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 4rem;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: center;
}

.feature-row:nth-child(odd) {
    direction: rtl;
}

.feature-row:nth-child(odd) .feature-content {
    direction: ltr;
}

.feature-content {
    padding: 2rem;
}

.feature-content h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.feature-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

.feature-list li::before {
    content: "☕";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.feature-image {
    position: relative;
}

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

.feature-image img:hover {
    transform: translateY(-10px);
}

/* Features Responsive */
@media (max-width: 968px) {
    .feature-row {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .feature-row:nth-child(odd) {
        direction: ltr;
    }

    .feature-content {
        padding: 1rem;
        text-align: center;
    }

    .feature-list li {
        padding-left: 0;
        padding-top: 2rem;
    }

    .feature-list li::before {
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .features__title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .feature-content h3 {
        font-size: 1.75rem;
    }
}

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

    .feature-content h3 {
        font-size: 1.5rem;
    }

    .feature-content p,
    .feature-list li {
        font-size: 1rem;
    }
}

/* Content Section */
.content {
    padding: 6rem 1rem;
    background-color: var(--background-color);
}

.content__container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.content__section {
    margin-bottom: 4rem;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.content__title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    line-height: 1.3;
}

.content__section h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.content__section h4 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin: 1.5rem 0 1rem;
}

.content__section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.content__list {
    list-style: none;
    margin: 1.5rem 0;
}

.content__list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.content__list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.content__subsection {
    margin: 2rem 0;
    padding-left: 1.5rem;
    border-left: 3px solid var(--accent-color);
}

.content__quote {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--secondary-color);
    border-radius: 10px;
    position: relative;
}

.content__quote blockquote {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--primary-color);
    line-height: 1.8;
}

.content__quote::before {
    content: "“";
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 5rem;
    color: var(--accent-color);
    opacity: 0.2;
}

/* FAQ Styles */
.faq {
    margin-top: 2rem;
}

.faq__item {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--secondary-color);
}

.faq__item:last-child {
    border-bottom: none;
}

.faq__item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq__item h4:hover {
    color: var(--accent-color);
}

/* Content Responsive */
@media (max-width: 768px) {
    .content {
        padding: 4rem 1rem;
    }

    .content__section {
        padding: 1.5rem;
        margin-bottom: 3rem;
    }

    .content__title {
        font-size: 2rem;
    }

    .content__section h3 {
        font-size: 1.5rem;
    }

    .content__section h4 {
        font-size: 1.2rem;
    }

    .content__section p,
    .content__list li {
        font-size: 1rem;
    }

    .content__quote blockquote {
        font-size: 1.1rem;
    }
}

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

    .content__title {
        font-size: 1.75rem;
    }

    .content__subsection {
        padding-left: 1rem;
    }

    .content__quote {
        padding: 1.5rem;
    }
}
