/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* 容器样式 - 限制内容宽度为1440px */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 全宽容器 - 用于背景图片 */
.full-width-section {
    width: 100%;
    position: relative;
}

/* 头部样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.20);
    background: rgba(0, 0, 0, 1);
    backdrop-filter: blur(6px);
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
}

.logo-img {
    width: 170px;
    height: auto;
}

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

.nav-link {
    color: #FFF1D6;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    background: var(--line, linear-gradient(152deg, #FFF1D6 8.22%, #FBCF7A 85.62%));
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

.nav-link:hover,
.nav-link.active {
    color: #1D2129;

    font-weight: 500;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--line, linear-gradient(152deg, #FFF1D6 8.22%, #FBCF7A 85.62%));
    border-radius: 1px;
}

/* 主要内容区域 */
.main {
    padding-top: 60px;
}

/* 为滚动定位添加偏移 */
.hero-section,
.feature-block {
    scroll-margin-top: 100px;
}

/* 英雄区域 - 全宽背景 */
.hero-section {
    width: 100%;
    background: url('../images/index-bg.png') no-repeat center center;
    background-size: 100% 840px;
    padding: 100px 0 100px 0;
}

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

.hero-content {
    /* padding-right: 40px; */
}

.hero-title {
    font-size: 78px;
    font-weight: 700;
    line-height: 1.2;
    background: var(--line, linear-gradient(152deg, #FFF1D6 8.22%, #FBCF7A 85.62%));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
    letter-spacing: 2.88px;
}

.qr-codes {
    display: flex;
    gap: 30px;
}

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

.qr-code {
    width: 220px;
    height: 220px;
    background: #f0f0f0;
    border-radius: 12px;
    margin-bottom: 10px;
    display: block;
}

.qr-label {
    font-size: 20px;
    font-weight: 500;
    background: var(--line, linear-gradient(152deg, #FFF1D6 8.22%, #FBCF7A 85.62%));
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

.hero-image {
    text-align: center;
    position: relative;
}

.phone-mockup {
    max-width: 90%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

/* 功能介绍区域 */
.features-section {
    /* padding: 60px 0; */
}

.features-wrapper {
    display: flex;
    flex-direction: column;
    /* gap: 120px; */
}

/* 功能块 - 全宽背景 */
.feature-block {
    width: 100%;
    padding: 80px 0;
    position: relative;
}

/* 为不同的功能块添加背景 */
.feature-block:nth-child(1) {
    background-color: #0F0E09;
    background-image: url('../images/calendar-bg.png');
    background-size: auto 650px;
    background-position: center top;
    background-repeat: no-repeat;
}

.feature-block:nth-child(2) {
    /* background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%); */
    background-color: #1C1A0F;
    background-image: url('../images/remind-bg.png');
    background-size: auto 650px;
    background-position: center top;
    background-repeat: no-repeat;
}

.feature-block:nth-child(3) {
    /* background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%); */
    background-color: #1C1A0F;
    background-image: url('../images/remind-bg.png');
    background-size: auto 650px;
    background-position: center top;
    background-repeat: no-repeat;
}

.feature-block:nth-child(4) {
    /* background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%); */
    background-color: #1C1A0F;
    background-image: url('../images/weather-bg.png');
    background-size: auto 650px;
    background-position: center top;
    background-repeat: no-repeat;
}

.feature-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.feature-block.reverse .feature-content-wrapper {
    direction: rtl;
}

.feature-block.reverse .feature-content-wrapper > * {
    direction: ltr;
}

.feature-content {
    /* padding: 0 20px; */
}

.feature-title {
    font-size: 52px;
    font-weight: 600;
    color: #1D2129;
    margin-bottom: 64px;
    line-height: 1;
    background: var(--line, linear-gradient(152deg, #FFF1D6 8.22%, #FBCF7A 85.62%));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-subtitle {
    font-size: 28px;
    color: #4E5969;
    margin-bottom: 70px;
    line-height: 1.2;
}
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 30px;
    font-weight: 600;
    /* color: #333; */
    background: var(--line, linear-gradient(152deg, #FFF1D6 8.22%, #FBCF7A 85.62%));
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.feature-text p {
    font-size: 16px;
    color: #A99D88;
    line-height: 1.5;
}

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

.feature-image .phone-mockup {
    max-width: 466px;
    height: auto;
}

/* 底部样式 */
.footer {
    /* background: #FFF; */
    color: #A99D88;
    padding: 40px 0;
    width: 100%;
    /* border-top: 1px solid #EFEFEF; */
    border-top: 1px solid rgba(255, 235, 188, 0.20);
background: #1C1A0F;
}

.footer-content {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    a{
        color: #A99D88;
    }
}

.footer-logo .logo-img {
    width: 170px;
    height: auto;
}

.copyright {
    font-size: 14px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 1480px) {
    .container {
        max-width: 1200px;
    }
}

@media (max-width: 1240px) {
    .container {
        max-width: 1000px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav {
        gap: 15px;
    }
    
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .feature-content-wrapper,
    .feature-block.reverse .feature-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        direction: ltr;
    }
    
    .feature-title {
        font-size: 28px;
        text-align: center;
    }
    
    .qr-codes {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .hero-section,
    .feature-block {
        scroll-margin-top: 80px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 40px 0 80px 0;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .feature-title {
        font-size: 24px;
    }
    
    .qr-code {
        width: 100px;
        height: 100px;
    }
    
    .features-wrapper {
        gap: 80px;
    }
    
    .feature-block {
        padding: 60px 0;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.feature-content {
    animation: fadeInUp 0.8s ease-out;
}

.phone-mockup {
    transition: transform 0.3s ease;
}

.phone-mockup:hover {
    transform: translateY(-10px);
}