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

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

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

/* 头部样式 */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #007bff;
}

.dropdown-arrow {
    font-size: 10px;
    color: #666;
}

.header-buttons {
    display: flex;
    gap: 15px;
}

.btn-login {
    padding: 8px 20px;
    border: 1px solid #007bff;
    background: transparent;
    color: #007bff;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login:hover {
    background: #007bff;
    color: white;
}

.btn-trial {
    padding: 8px 20px;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-trial:hover {
    background: #0056b3;
}

/* 主要内容 */
.main {
    padding: 60px 0;
}

.main-title {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    color: #1a365d;
    margin-bottom: 60px;
}

.download-sections {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.download-section {
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 平台图标样式 */
.phone-image,
.desktop-image {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.platform-icon {
    width: 240px;
    height: 240px;
    object-fit: contain;
    background: transparent;
    border: none;
}

.phone-frame {
    width: 120px;
    height: 200px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.phone-frame.iphone {
    background: #1a1a1a;
    border: 2px solid #333;
    position: relative;
    border-radius: 25px;
}

.phone-frame.iphone::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 25px;
    background: #000;
    border-radius: 12px;
    z-index: 2;
}

.phone-frame.iphone::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #333;
    border-radius: 50%;
    z-index: 3;
}

.phone-frame.android {
    background: #2c2c2c;
    border: 2px solid #444;
    position: relative;
}

.phone-frame.android::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #000;
    border-radius: 50%;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 17px;
    overflow: hidden;
    position: relative;
}

.phone-screen.iphone {
    border-radius: 23px;
}

.phone-wallpaper {
    width: 100%;
    height: 100%;
    position: relative;
}

.iphone-wallpaper {
    background: linear-gradient(135deg, #ff6b6b, #ffa500, #ff69b4);
}

.android-wallpaper {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
}

.new-tag {
    position: absolute;
    top: 35px;
    right: 8px;
    background: #28a745;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    z-index: 4;
}

/* 桌面图片样式 */
.desktop-image {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.monitor-frame {
    width: 150px;
    height: 100px;
    background: #1a1a1a;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid #333;
}

.monitor-frame::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 15px;
    background: #2a2a2a;
    border-radius: 0 0 3px 3px;
    z-index: -1;
}

.monitor-frame::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 10px;
    background: #333;
    border-radius: 0 0 6px 6px;
    z-index: -1;
}

.monitor-screen {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    background: #0078d4;
}

.windows-wallpaper {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0078d4, #106ebe);
    position: relative;
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.windows-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: white;
}

.imac-frame {
    width: 160px;
    height: 100px;
    background: #f5f5f5;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid #e0e0e0;
}

.imac-frame::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 12px;
    background: #d0d0d0;
    border-radius: 0 0 6px 6px;
    z-index: -1;
}

.imac-frame::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 6px;
    background: #c0c0c0;
    border-radius: 0 0 3px 3px;
    z-index: -1;
}

.imac-screen {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.macos-wallpaper {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #87ceeb, #98fb98, #f0e68c);
    position: relative;
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        linear-gradient(45deg, rgba(135, 206, 235, 0.8) 0%, rgba(152, 251, 152, 0.8) 50%, rgba(240, 230, 140, 0.8) 100%);
}

/* 区域标题 */
.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #1a365d;
    margin-bottom: 15px;
}

/* 区域详情 */
.section-details {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.section-details p {
    margin-bottom: 5px;
}

.links {
    margin-top: 10px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.detail-link {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.detail-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.additional-links {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* 下载按钮 */
.download-btn {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.app-store {
    background: #000;
    color: white;
}

.app-store:hover {
    background: #333;
}

.android-btn {
    background: #28a745;
    color: white;
}

.android-btn:hover {
    background: #218838;
}

.windows-btn {
    background: #0078d4;
    color: white;
}

.windows-btn:hover {
    background: #106ebe;
}

.macos-btn {
    background: #000;
    color: white;
}

.macos-btn:hover {
    background: #333;
}

.btn-icon {
    font-size: 16px;
}

/* 二维码文本 */
.qr-text {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    cursor: pointer;
    transition: color 0.3s;
}

.qr-text:hover {
    color: #007bff;
}

/* 悬停切换图片效果 - 由JavaScript处理 */

/* 下拉菜单样式 */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    min-width: 120px;
    display: none;
    z-index: 1000;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: #007bff;
}

.dropdown.show .dropdown-menu {
    display: block;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .download-sections {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .main-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .download-sections {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .main-title {
        font-size: 24px;
        margin-bottom: 40px;
    }
    
    .main {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-list {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 13px;
    }
    
    .header-buttons {
        gap: 10px;
    }
    
    .btn-login,
    .btn-trial {
        padding: 6px 15px;
        font-size: 13px;
    }
    
    .main-title {
        font-size: 20px;
    }
    
    .download-section {
        padding: 15px;
    }
    
    .phone-frame {
        width: 100px;
        height: 170px;
    }
    
    .monitor-frame {
        width: 120px;
        height: 80px;
    }
    
    .imac-frame {
        width: 130px;
        height: 80px;
    }
}
