/* 阿豹云客户端下载中心样式表 */

/* 隐藏系统图标字体预加载 */
body:before {
    display: none;
    content: '🖥️ 🪟 📱 🍎 🐧';
    visibility: hidden;
    position: absolute;
    height: 0;
    width: 0;
    overflow: hidden;
    z-index: -1;
}

/* Material Icons 字体 */
@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    /* 添加实际字体文件路径 */
    src: url(https://fonts.gstatic.com/s/materialicons/v140/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2');
    font-style: normal;
    font-weight: 400;
    src: local('Material Icons'),
         local('MaterialIcons-Regular');
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* 颜色变量 */
:root {
    --primary-color: #4285F4;
    --primary-gradient: linear-gradient(135deg, #4285F4, #34A853);
    --secondary-gradient: linear-gradient(135deg, #FBBC05, #EA4335);
    --windows-color: #0078D7;
    --macos-color: #000000;
    --linux-color: #FCC624;
    --android-color: #3DDC84;
    --background: #F8F9FA;
    --card-bg: #FFFFFF;
    --text-primary: #202124;
    --text-secondary: #5F6368;
    --divider: #DADCE0;
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 100% 100%, rgba(66, 133, 244, 0.05) 0%, transparent 400px),
        radial-gradient(circle at 0% 0%, rgba(52, 168, 83, 0.05) 0%, transparent 400px);
    background-attachment: fixed;
    overflow-x: hidden; /* 防止水平滚动条 */
}

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

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 48px;
    padding-top: 48px;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.logo {
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
    border-radius: 20px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(66, 133, 244, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(66, 133, 244, 0.25);
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.version {
    display: inline-block;
    padding: 8px 20px;
    background-color: white;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    margin-top: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
    border: 1px solid rgba(66, 133, 244, 0.2);
}

/* 内容区域样式 */
.section {
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease forwards;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }

.section-title {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-primary);
    position: relative;
    padding-left: 16px;
    text-align: left;
    max-width: 1070px;
    margin-left: auto;
    margin-right: auto;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    border-radius: 2px;
}

.section[data-system="windows"] .section-title::before {
    background-color: var(--windows-color);
}

.section[data-system="macos"] .section-title::before {
    background-color: var(--macos-color);
}

.section[data-system="linux"] .section-title::before {
    background-color: var(--linux-color);
}

.section[data-system="android"] .section-title::before {
    background-color: var(--android-color);
}

/* 卡片样式 */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    z-index: 1;
}

.section[data-system="windows"] .card::before {
    background-color: var(--windows-color);
}

.section[data-system="macos"] .card::before {
    background-color: var(--macos-color);
}

.section[data-system="linux"] .card::before {
    background-color: var(--linux-color);
}

.section[data-system="android"] .card::before {
    background-color: var(--android-color);
}

.card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.card-header {
    padding: 24px;
    border-bottom: 1px solid var(--divider);
    display: flex;
    align-items: center;
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-right: 16px;
    font-size: 24px;
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.section[data-system="windows"] .card-icon {
    background-color: rgba(0, 120, 215, 0.1);
    color: var(--windows-color);
}

.section[data-system="macos"] .card-icon {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--macos-color);
}

.section[data-system="linux"] .card-icon {
    background-color: rgba(252, 198, 36, 0.1);
    color: var(--linux-color);
}

.section[data-system="android"] .card-icon {
    background-color: rgba(61, 220, 132, 0.1);
    color: var(--android-color);
}

.card-info {
    flex: 1;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.card-content {
    padding: 24px;
}

/* 下载按钮容器 */
.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 下载按钮样式 */
.download-btn {
    display: inline-block;
    width: 100%;
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: none;
    outline: none;
}

/* 主下载按钮样式 */
.section[data-system="windows"] .download-btn.primary {
    background-color: var(--windows-color);
    color: white;
}

.section[data-system="macos"] .download-btn.primary {
    background-color: var(--macos-color);
    color: white;
}

.section[data-system="linux"] .download-btn.primary {
    background-color: white;
    color: var(--text-primary);
    border: 2px solid var(--linux-color);
}

.section[data-system="android"] .download-btn.primary {
    background-color: var(--android-color);
    color: white;
}

/* 备用下载按钮样式 */
.section[data-system="windows"] .download-btn.backup {
    background-color: white;
    color: var(--windows-color);
    border: 1px solid var(--windows-color);
}

.section[data-system="macos"] .download-btn.backup {
    background-color: white;
    color: var(--macos-color);
    border: 1px solid var(--macos-color);
}

.section[data-system="linux"] .download-btn.backup {
    background-color: white;
    color: var(--text-primary);
    border: 1px solid var(--text-secondary);
}

.section[data-system="android"] .download-btn.backup {
    background-color: white;
    color: var(--android-color);
    border: 1px solid var(--android-color);
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
    z-index: -1;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* 主下载按钮 hover 效果 */
.section[data-system="windows"] .download-btn.primary:hover {
    background-color: #0067B8;
}

.section[data-system="macos"] .download-btn.primary:hover {
    background-color: #333333;
}

.section[data-system="linux"] .download-btn.primary:hover {
    background-color: var(--linux-color);
    color: var(--text-primary);
}

.section[data-system="android"] .download-btn.primary:hover {
    background-color: #32BE6E;
}

/* 备用下载按钮 hover 效果 */
.section[data-system="windows"] .download-btn.backup:hover {
    background-color: rgba(0, 120, 215, 0.05);
}

.section[data-system="macos"] .download-btn.backup:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.section[data-system="linux"] .download-btn.backup:hover {
    background-color: rgba(252, 198, 36, 0.05);
}

.section[data-system="android"] .download-btn.backup:hover {
    background-color: rgba(61, 220, 132, 0.05);
}

/* 系统选择选项卡 */
.system-tabs {
    display: flex;
    justify-content: center;
    margin: 20px 0 30px;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 5px;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.system-tab {
    padding: 16px 24px;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
    border-radius: 12px;
    margin: 5px;
    z-index: 2;
    color: var(--text-secondary);
}

.system-tab:hover {
    color: var(--text-primary);
    background-color: rgba(0, 0, 0, 0.02);
}

.system-tab.active {
    color: var(--primary-color);
    font-weight: 600;
    background-color: rgba(66, 133, 244, 0.05);
}

.system-icon {
    display: block;
    margin: 0 auto 10px;
    font-size: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.system-tab:hover .system-icon {
    transform: scale(1.1);
}

/* 系统部分的显示与隐藏 */
.system-section {
    display: none;
    animation: fadeInSection 0.5s ease forwards;
}

@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.system-section.active {
    display: block;
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid var(--divider);
    color: var(--text-secondary);
    font-size: 14px;
    background-color: white;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.03);
}

.footer p:first-child {
    margin-bottom: 8px;
}

/* 系统提示样式 */
.system-hint {
    text-align: center;
    margin: 0 auto 40px;
    padding: 16px 24px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    font-size: 16px;
    max-width: 800px;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.6s ease 0.3s forwards;
    border-left: 4px solid var(--primary-color);
}

.system-hint.windows {
    border-left-color: var(--windows-color);
}

.system-hint.macos {
    border-left-color: var(--macos-color);
}

.system-hint.linux {
    border-left-color: var(--linux-color);
}

.system-hint.android {
    border-left-color: var(--android-color);
}

.system-hint-icon {
    display: inline-block;
    margin-right: 10px;
    font-size: 20px;
    vertical-align: middle;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cards {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .container {
        padding: 16px;
    }
    
    .header {
        margin-bottom: 32px;
        padding-top: 32px;
    }
    
    .system-tabs {
        flex-wrap: wrap;
    }
    
    .system-tab {
        min-width: 110px;
        padding: 12px 16px;
    }
    
    h1 {
        font-size: 32px;
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 24px;
        max-width: 320px;
    }
    
    .system-hint {
        margin-bottom: 30px;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .nav-container {
        flex-direction: column;
    }
    
    .nav-tabs {
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-tab {
        padding: 12px 8px;
        font-size: 14px;
    }
    
    @media (max-width: 768px) {
        /* 在现有媒体查询中添加 */
        .download-btn {
            padding: 16px 24px; /* 增大点击区域 */
            min-height: 48px; /* 符合Material Design标准 */
        }
        
        .system-tab {
            touch-action: manipulation; /* 禁用双击缩放 */
        }
    }
}

/* 自定义模态框样式 */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.modal-mask {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.modal-container {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    padding: 24px;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.modal-content {
    text-align: center;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.modal-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.modal-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.modal-btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.modal-btn.confirm {
    background-color: var(--primary-color);
    color: white;
}

.modal-btn.cancel {
    background-color: var(--divider);
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .modal-container {
        width: 90%;
        padding: 16px;
    }
}