/* 基础变量设置 */
:root {
    --primary-color: #4A90E2;    /* 湖水蓝 */
    --secondary-color: #2ECC71;  /* 森林绿 */
    --accent-color: #F1C40F;     /* 阳光黄 */
    --text-color: #2C3E50;       /* 深色文字 */
    --forest-green: #2D5A27;     /* 深森林绿 */
    --lake-blue: #75CFF0;        /* 浅湖水蓝 */
    --grass-green: #4CAF50;      /* 草地绿 */
    --wood-brown: #795548;       /* 木材棕 */
}

/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(
        to bottom,
        #E8F5E9,  /* 浅森林背景 */
        #E3F2FD   /* 浅湖水背景 */
    );
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
    width: 100%;
    box-sizing: border-box;
}

/* Header 样式 */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.header__logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    height: 40px;
    width: auto;
}

.logo-text-wrapper {
    display: flex;
    align-items: baseline;
}

.logo-text {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
}

.logo-domain {
    color: var(--secondary-color);
    font-size: 2rem;
    font-weight: 700;
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__nav {
    display: flex;
    align-items: center;
}

.header__nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.header__nav-link:hover {
    background: var(--grass-green);
    color: white;
    transform: translateY(-2px);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .header__content {
        padding: 0.5rem 0;
    }

    .header__logo {
        font-size: 0.9rem;
    }

    .logo-image {
        height: 30px;
    }

    .logo-text, 
    .logo-domain {
        font-size: 1.5rem;
    }

    .header__nav-link {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .header__content {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }

    .header__nav {
        margin-top: 0.5rem;
    }
}

/* Hero Section 样式 */
.hero {
    background: linear-gradient(
        135deg,
        rgba(45, 90, 39, 0.05),
        rgba(117, 207, 240, 0.1)
    );
    padding: 4rem 0;
}

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

.hero__text {
    padding-right: 2rem;
}

.hero__title {
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero__button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--grass-green);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.hero__button:hover {
    transform: translateY(-2px);
    background: var(--forest-green);
}

.hero__image {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero__gif {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    object-fit: cover;
}

/* Features Section 样式 */
.features {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.7),
        rgba(227, 242, 253, 0.7)
    );
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(
        to bottom,
        rgba(45, 90, 39, 0.1),
        transparent
    );
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.feature-row:not(.reverse) {
    grid-template-areas: "content media";
}

.feature-row.reverse {
    grid-template-areas: "media content";
}

.feature-text {
    grid-area: content;
    padding: 2rem;
}

.feature-text h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 800;
    position: relative;
}

.feature-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--grass-green);
    border-radius: 2px;
}

.feature-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #546E7A;
}

.feature-media {
    grid-area: media;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    background: rgba(255, 255, 255, 0.9);
}

.feature-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.feature-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #f5f5f5;
}

.feature-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
}

/* FAQ Section 样式 */
.faq {
    background: linear-gradient(
        to bottom,
        rgba(227, 242, 253, 0.7),
        rgba(232, 245, 233, 0.7)
    );
    padding: 6rem 0;
    position: relative;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(
        to bottom,
        rgba(117, 207, 240, 0.1),
        transparent
    );
}

.faq__title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    position: relative;
}

.faq__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--lake-blue);
    border-radius: 2px;
}

.faq__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.faq__item {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.faq__item:hover {
    transform: translateY(-5px);
}

.faq__item h3 {
    color: var(--forest-green);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.faq__item p {
    color: #546E7A;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* SEO Section 样式 */
.seo {
    background: linear-gradient(
        to bottom,
        rgba(232, 245, 233, 0.7),
        rgba(227, 242, 253, 0.7)
    );
    padding: 6rem 0;
}

.seo__content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.seo__content h2 {
    color: var(--forest-green);
    font-size: 2rem;
    margin: 2.5rem 0 1.5rem;
    position: relative;
}

.seo__content h2:first-child {
    margin-top: 0;
}

.seo__content h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.seo__content h4 {
    color: var(--lake-blue);
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
}

.seo__content p {
    color: #546E7A;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

@media (max-width: 968px) {
    .feature-row, 
    .feature-row.reverse {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "content"
            "media";
        gap: 2rem;
    }

    .feature-text {
        padding: 1rem;
        text-align: center;
        margin: 0 auto;
        max-width: 90%;
    }

    .feature-text h2 {
        text-align: center;
    }

    .feature-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .feature-media {
        width: 90%;
        margin: 0 auto;
        padding: 0;
        overflow: visible;
    }

    .feature-image,
    .feature-video {
        width: 100%;
        margin: 0 auto;
    }

    .feature-video {
        padding-bottom: 56.25%;
        background: #f5f5f5;
    }

    .feature-video iframe {
        border-radius: 20px;
    }

    .faq__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-row:first-child {
        /* 修复第一个feature的特殊情况 */
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .feature-row:first-child .feature-text {
        width: 90%;
        margin: 0 auto;
        padding: 1rem;
        order: 1; /* 确保文字在上方 */
    }

    .feature-row:first-child .feature-media {
        width: 90%;
        margin: 2rem auto;
        order: 2; /* 确保图片在下方 */
    }

    /* 特别处理第三个 feature */
    .feature-row:nth-child(3) {
        display: flex;
        flex-direction: column;
    }

    .feature-row:nth-child(3) .feature-media {
        width: 90%;
        margin: 2rem auto;
    }

    .feature-row:nth-child(3) .feature-video {
        position: relative;
        width: 100%;
        padding-bottom: 56.25%;
        height: 0;
        overflow: hidden;
    }

    .feature-row:nth-child(3) .feature-video iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 20px;
    }

    /* 确保所有视频容器都有正确的基础样式 */
    .feature-video {
        position: relative;
        width: 100%;
        padding-bottom: 56.25%;
        height: 0;
        overflow: hidden;
        background: #f5f5f5;
    }

    .feature-video iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 20px;
    }
}


@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero__text {
        padding-right: 0;
        text-align: center;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .logo-image {
        height: 35px;
    }

    .seo {
        padding: 4rem 0;
    }

    .seo__content {
        padding: 1.5rem;
    }

    .seo__content h2 {
        font-size: 1.75rem;
    }

    .seo__content h3 {
        font-size: 1.35rem;
    }

    .seo__content h4 {
        font-size: 1.15rem;
    }
}

/* 添加更小屏幕的优化 */
@media (max-width: 480px) {
    .feature-text h2 {
        font-size: 1.75rem;
    }

    .feature-text p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .feature-media {
        width: 100%;
    }
}