:root {
    --primary-gradient: linear-gradient(135deg, #FF9400 0%, #FF1A69 50%, #7622FF 100%);
    --firefox-orange: #FF5C00;
    --firefox-red: #FF1A69;
    --firefox-purple: #7622FF;
    --bg-warm: #FFF9F5;
    --text-dark: #20123a;
    --text-muted: #5b5b66;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-warm);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Dynamic Background */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: move 20s infinite alternate;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #FF9400 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #7622FF 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation-delay: -5s;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
}

@keyframes move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 100px); }
}

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

/* Nav */
.download-nav {
    padding: 30px 0;
}

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

.back-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--firefox-orange);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 24px;
}

/* Header */
.download-header {
    text-align: center;
    padding: 60px 0 40px;
}

.version-badge {
    display: inline-block;
    padding: 6px 16px;
    background: white;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    color: var(--firefox-orange);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.download-header h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.download-header p {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.platform-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.platform-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 50px 40px;
    text-align: center;
    border: 1px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.platform-card:hover {
    transform: translateY(-12px);
    background: white;
    box-shadow: 0 30px 60px rgba(255, 92, 0, 0.1);
    border-color: rgba(255, 92, 0, 0.2);
}

.platform-card.highlight {
    background: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
}

.platform-card.highlight::after {
    content: '推荐';
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--firefox-orange);
    color: white;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 24px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.platform-card h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
}

.platform-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.card-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
    display: inline-block;
}

.card-features li {
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #444;
}

.card-features i {
    color: #00c853;
    margin-right: 10px;
}

.btn-download {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--text-dark);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 700;
    transition: all 0.3s;
}

.platform-card:hover .btn-download {
    background: var(--firefox-orange);
    box-shadow: 0 10px 20px rgba(255, 92, 0, 0.3);
}

.direct-download-info {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255,255,255,0.5);
    border-radius: 20px;
    border: 1px dashed rgba(255, 92, 0, 0.3);
}

.archive-link {
    color: var(--firefox-orange);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.archive-link:hover {
    border-bottom-color: var(--firefox-orange);
}

.archive-note {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

/* Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
}

.badge i {
    font-size: 20px;
    color: var(--firefox-orange);
}

/* Footer */
.download-footer {
    margin-top: auto;
    padding: 40px 0;
    text-align: center;
    color: #999;
    font-size: 13px;
    border-top: 1px solid rgba(0,0,0,0.03);
}

/* Responsive */
@media (max-width: 900px) {
    .platform-cards { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto 60px; }
    .download-header h1 { font-size: 36px; }
    .trust-badges { flex-direction: column; gap: 20px; align-items: center; }
}
