:root {
    --primary: #0078D7;
    --primary-dark: #005A9E;
    --accent: #00B294;
    --accent-dark: #009B80;
    --text: #1A1A2E;
    --text-light: #555;
    --bg: #FAFBFC;
    --card-bg: #FFFFFF;
    --border: #E1E4E8;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
}

header {
    position: relative;
    background: linear-gradient(135deg, #0078D7 0%, #005A9E 100%);
    color: white;
    padding: 64px 24px 56px;
    text-align: center;
}
.logo-link { display: inline-block; }

/* install.html has no nav bar, so the switch floats in the header corner. */
.lang-switch {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    transition: color 0.2s, border-color 0.2s;
}

.lang-switch:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.75);
}
.header-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    display: block;
    background: #fff;
    border-radius: 50%;
    padding: 12px;
    box-sizing: content-box;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}
header h1 {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 8px;
}
header p.tagline {
    font-size: 1.05rem;
    opacity: 0.92;
    max-width: 540px;
    margin: 0 auto;
}

.download-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}
.download-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 16px 28px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    min-width: 240px;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 6px 20px rgba(0, 178, 148, 0.35);
}
.download-button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.download-button .label { display: inline-flex; align-items: center; gap: 10px; }
.download-button .label svg { width: 20px; height: 20px; }

.download-meta {
    display: block;
    margin-top: 18px;
    font-size: 0.9rem;
    opacity: 0.88;
}
.download-meta a {
    color: white;
    text-decoration: underline;
}

main {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 24px 56px;
}
main h2 {
    font-size: 1.3rem;
    margin-top: 32px;
    margin-bottom: 14px;
    color: var(--primary-dark);
}
main h2:first-child { margin-top: 0; }
main p { margin-bottom: 12px; color: var(--text); }
main a { color: var(--primary); text-decoration: none; }
main a:hover { text-decoration: underline; }
main code {
    background: #F0F0F0;
    padding: 2px 7px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.9em;
}

.install-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}
.install-table th, .install-table td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
}
.install-table thead th {
    background: #F4F6F8;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}
.install-table tbody tr + tr td { border-top: 1px solid var(--border); }
.install-table td.ver { font-weight: 600; white-space: nowrap; }
.install-table td code { font-size: 0.86em; }

.note {
    background: #EAF3FB;
    border-left: 4px solid var(--primary);
    padding: 14px 18px;
    margin: 20px 0;
    border-radius: 4px;
}
.note.warning {
    background: #FFF9E6;
    border-left-color: #D4A900;
}
.note p { margin-bottom: 0; color: var(--text); }

.next-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: max-content;
    margin: 16px auto 0;
    padding: 14px 28px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.next-link .arrow { transition: transform 0.15s; display: inline-block; }
.next-link:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.next-link:hover .arrow { transform: translateX(4px); }

footer {
    background: var(--text);
    color: #AAA;
    padding: 32px 24px;
    text-align: center;
    font-size: 0.85rem;
}
footer a { color: #CCC; text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 600px) {
    header h1 { font-size: 1.5rem; }
    .download-button { min-width: 0; width: 100%; }
}
