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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #1d1d1f;
    background-color: #fff;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: #06c;
}

ul {
    list-style: none;
}

/* 导航栏 */
header {
    background-color: rgba(0, 0, 0, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 44px;
}

.logo {
    font-size: 21px;
    font-weight: 600;
    color: #f5f5f7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin: 0 10px;
}

.nav-links a {
    color: #f5f5f7;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 1;
}

/* 主要内容 */
main {
    margin-bottom: 40px;
}

/* 英雄区 */
.hero {
    background-color: #000;
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.5));
    padding: 120px 20px;
    text-align: center;
    margin-bottom: 10px;
    min-height: 580px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: 1;
}

/* 如果没有背景图片，使用渐变替代 */
.no-bg-image .hero::before {
    background-image: linear-gradient(135deg, #000 0%, #222 100%);
    opacity: 1;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
    /* background-color: rgba(0, 0, 0, 0.4); */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: 56px;
    font-weight: 600;
    letter-spacing: -0.005em;
    margin-bottom: 6px;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hero h2 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 14px;
    color: #f5f5f7;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 17px;
    margin-bottom: 20px;
    color: #f5f5f7;
}

/* 按钮和链接 */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.button {
    background-color: #0071e3;
    color: white;
    border-radius: 980px;
    padding: 8px 16px;
    font-size: 17px;
    transition: all 0.3s ease;
    display: inline-block;
}

.button:hover {
    background-color: #0077ed;
    transform: scale(1.02);
}

.link {
    color: #2997ff;
    font-size: 17px;
    display: inline-block;
}

.link:hover {
    text-decoration: underline;
}

/* 产品展示区 */
.product-showcase {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.product {
    display: flex;
    margin-bottom: 20px;
    background-color: #f5f5f7;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.product.reverse {
    flex-direction: row-reverse;
}

.product-content {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.product-image {
    flex: 1;
    min-height: 500px;
    background-color: #f5f5f7;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

#pro-case-image {
    background-image: url('../images/pro-case.jpg');
}

#lite-case-image {
    background-image: url('../images/lite-case.jpg');
}

#color-case-image {
    background-image: url('../images/color-case.jpg');
}

/* 无图片时的占位符样式 */
.placeholder-image {
    background-color: #111;
    position: relative;
    overflow: hidden;
}

.placeholder-image::after {
    content: 'REETLE';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 10px;
}

.product h2 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 5px;
}

.product h3 {
    font-size: 21px;
    font-weight: 400;
    margin-bottom: 10px;
    color: #86868b;
}

.product p {
    font-size: 17px;
    margin-bottom: 15px;
}

/* 特性区域 */
.features-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.section-title {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    background-color: #f5f5f7;
    border-radius: 18px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    position: relative;
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.1);
    mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
}

.wallpaper-icon::after {
    mask-image: url('../images/features/wallpaper-icon.svg');
    -webkit-mask-image: url('../images/features/wallpaper-icon.svg');
}

.recording-icon::after {
    mask-image: url('../images/features/recording-icon.svg');
    -webkit-mask-image: url('../images/features/recording-icon.svg');
}

.battery-icon::after {
    mask-image: url('../images/features/battery-icon.svg');
    -webkit-mask-image: url('../images/features/battery-icon.svg');
}

.notification-icon::after {
    mask-image: url('../images/features/notification-icon.svg');
    -webkit-mask-image: url('../images/features/notification-icon.svg');
}

.feature-item h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 16px;
    color: #86868b;
}

/* 应用区域 */
.app-section {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    background-color: #f5f5f7;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.app-content {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-content h2 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 10px;
}

.app-content h3 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #86868b;
}

.app-content p {
    font-size: 17px;
    margin-bottom: 30px;
    max-width: 500px;
}

.app-image {
    flex: 1;
    background-image: url('../images/app-screenshot.jpg');
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.app-image.placeholder-image::after {
    content: 'REETLE APP';
}

/* 网格展示区 */
.grid-showcase {
    max-width: 1200px;
    margin: 10px auto 40px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-item {
    background-color: #f5f5f7;
    border-radius: 18px;
    padding: 40px;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.grid-content h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 5px;
}

.grid-content h3 {
    font-size: 19px;
    font-weight: 400;
    margin-bottom: 15px;
    color: #86868b;
}

/* 页脚 */
footer {
    background-color: #f5f5f7;
    padding: 40px 20px;
    font-size: 12px;
    color: #6e6e73;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #d2d2d7;
}

.footer-column h3 {
    font-size: 12px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #6e6e73;
    font-size: 12px;
}

.footer-column a:hover {
    text-decoration: underline;
}

.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0;
    font-size: 12px;
}

/* 响应式设计 - 增强版 */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .app-section {
        flex-direction: column;
    }
    
    .app-image {
        min-height: 300px;
    }
    
    .hero h1 {
        font-size: 48px;
    }
    
    .hero h2 {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 20px;
    }
    
    .hero h1 {
        font-size: 40px;
    }
    
    .hero h2 {
        font-size: 22px;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .product {
        flex-direction: column;
    }
    
    .product.reverse {
        flex-direction: column;
    }
    
    .product-content {
        padding: 30px;
    }
    
    .product-image {
        min-height: 350px;
    }
    
    .product h2 {
        font-size: 32px;
    }
    
    .grid-showcase {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 44px;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        padding: 10px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        z-index: 101;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    .nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 12px 0;
        font-size: 16px;
        opacity: 1;
    }
    
    .nav-links a:hover {
        background-color: rgba(255,255,255,0.1);
    }
    
    .nav-container::after {
        content: '☰';
        color: #fff;
        font-size: 24px;
        cursor: pointer;
        display: block;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 15px;
        min-height: 450px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero h2 {
        font-size: 18px;
    }
    
    .hero p {
        font-size: 15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-item {
        padding: 20px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .product h2 {
        font-size: 28px;
    }
    
    .product h3 {
        font-size: 18px;
    }
    
    .app-content {
        padding: 30px;
    }
    
    .app-content h2 {
        font-size: 28px;
    }
    
    .app-content h3 {
        font-size: 18px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .cta-buttons .button,
    .cta-buttons .link {
        width: 100%;
        text-align: center;
    }
} 