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

:root {
    --brand-primary: #1677ff;
    --brand-primary-dark: #0f5fcc;
    --brand-title: #153a63;
    --brand-text: #5f6b7a;
    --brand-border: #e3ebf5;
    --brand-surface: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background:
        radial-gradient(circle at 15% 10%, rgba(66, 133, 244, 0.12) 0%, transparent 30%),
        radial-gradient(circle at 85% 0%, rgba(46, 204, 113, 0.1) 0%, transparent 28%),
        #f7f9fc;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* 头部样式 */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e8edf4;
    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: var(--brand-primary);
    letter-spacing: 0.5px;
}

.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: var(--brand-primary);
}

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

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

.btn-login {
    padding: 8px 20px;
    border: 1px solid var(--brand-primary);
    background: transparent;
    color: var(--brand-primary);
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login:hover {
    background: var(--brand-primary);
    color: white;
}

.btn-trial {
    padding: 8px 20px;
    border: none;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: white;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-trial:hover {
    filter: brightness(1.04);
}

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

.main-title {
    text-align: center;
    font-size: 40px;
    font-weight: bold;
    color: var(--brand-title);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.main-subtitle {
    text-align: center;
    color: var(--brand-text);
    font-size: 16px;
    margin-bottom: 20px;
}

.highlights {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.highlight-pill {
    background: #edf3ff;
    color: #2a5ea8;
    border: 1px solid #dce8ff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
}

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

.download-section {
    text-align: center;
    padding: 22px 16px 18px;
    position: relative;
    z-index: 1;
    min-width: 0;
    border-radius: 16px;
    background: var(--brand-surface);
    border: 1px solid var(--brand-border);
    box-shadow: 0 10px 30px rgba(18, 44, 74, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.download-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(18, 44, 74, 0.14);
    border-color: #d8e6ff;
}

.platform-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    color: #274161;
    background: #eef4ff;
    border: 1px solid #dce8fb;
}

.ios-card .platform-badge {
    background: #f2f5f9;
    border-color: #e2e9f1;
}

.android-card .platform-badge {
    background: #ebf9ef;
    border-color: #cef1d8;
}

.windows-card .platform-badge {
    background: #ecf4ff;
    border-color: #d2e6ff;
}

.mac-card .platform-badge {
    background: #f4f4f6;
    border-color: #e3e3e7;
}

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

.platform-icon {
    width: min(220px, 100%);
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: transparent;
    border: none;
    filter: drop-shadow(0 8px 16px rgba(20, 45, 75, 0.12));
}


/* 区域标题 */
.section-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--brand-title);
    margin-bottom: 10px;
}

/* 区域详情 */
.section-details {
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--brand-text);
    line-height: 1.5;
    min-height: 42px;
}

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


/* 下载按钮 */
.download-btn {
    width: 100%;
    padding: 11px 18px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    margin-bottom: 0;
    text-decoration: none;
}

.download-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.app-store {
    background: linear-gradient(135deg, #1c1f24, #000000);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.app-store:hover {
    background: linear-gradient(135deg, #2b2f36, #121212);
}

.android-btn {
    background: linear-gradient(135deg, #27b85e, #1f9a4d);
    color: white;
    box-shadow: 0 10px 20px rgba(31, 154, 77, 0.22);
}

.android-btn:hover {
    background: linear-gradient(135deg, #2bc965, #229f50);
}

.windows-btn {
    background: linear-gradient(135deg, #0a7fe0, #0d67cf);
    color: white;
    box-shadow: 0 10px 20px rgba(13, 103, 207, 0.23);
}

.windows-btn:hover {
    background: linear-gradient(135deg, #198be8, #106fda);
}

.macos-btn {
    background: linear-gradient(135deg, #20242b, #0a0c10);
    color: white;
    box-shadow: 0 10px 20px rgba(10, 12, 16, 0.2);
}

.macos-btn:hover {
    background: linear-gradient(135deg, #2b3139, #12161b);
}


/* 下拉菜单样式 */
.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: var(--brand-primary);
}

.brand-panel {
    margin-top: 42px;
    padding: 24px;
    border: 1px solid var(--brand-border);
    background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(16, 58, 101, 0.08);
}

.brand-panel-header {
    text-align: center;
    margin-bottom: 18px;
}

.brand-panel-header h2 {
    color: var(--brand-title);
    font-size: 24px;
    margin-bottom: 8px;
}

.brand-panel-header p {
    color: var(--brand-text);
    font-size: 14px;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.brand-item {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
}

.brand-item strong {
    display: block;
    color: var(--brand-primary);
    font-size: 24px;
    line-height: 1.1;
    margin-bottom: 6px;
}

.brand-item span {
    color: var(--brand-text);
    font-size: 13px;
}

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

/* 响应式设计 */
@media (max-width: 1024px) {
    .download-sections {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
    
    .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: 18px;
    }
    
    .main-title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .main-subtitle {
        font-size: 14px;
    }
    
    .main {
        padding: 40px 0;
    }

    .brand-grid {
        grid-template-columns: 1fr;
    }
}

@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;
    }
    
}
