:root {
    --bg: #f6f8fb;
    --surface: #ffffff;
    --surface-soft: #eef4ff;
    --text: #172033;
    --muted: #667085;
    --line: #d9e2ef;
    --primary: #1769e0;
    --primary-dark: #0f4fb0;
    --accent: #00a88f;
    --warning: #f59e0b;
    --danger: #d92d20;
    --shadow: 0 12px 30px rgba(23, 32, 51, 0.08);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.site-header {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
}
.header-inner, .page-container, .footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}
.header-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--text);
}
.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.site-nav a {
    color: var(--muted);
    font-size: 14px;
}
.site-nav .nav-cta {
    color: #fff;
    background: var(--primary);
    padding: 9px 14px;
    border-radius: 6px;
}

.page-container { padding: 34px 0 54px; }
.site-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    background: #fff;
    padding: 22px 0;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 34px;
    align-items: center;
    min-height: 520px;
}
.eyebrow {
    color: var(--accent);
    font-weight: 700;
    margin: 0 0 10px;
}
.hero h1 {
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.08;
    margin: 0 0 18px;
    letter-spacing: 0;
}
.hero p { color: var(--muted); font-size: 18px; margin: 0 0 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 0;
    border-radius: 6px;
    padding: 10px 16px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}
.button.secondary { background: #e8eef8; color: var(--text); }
button:hover, .button:hover { background: var(--primary-dark); color: #fff; }

.hero-panel, .card, .panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.hero-panel { padding: 22px; }
.pipeline-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pipeline-list li {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px;
    background: #f8fbff;
    border: 1px solid #e5edf8;
    border-radius: 8px;
}
.step-dot {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--surface-soft);
    color: var(--primary);
    font-weight: 800;
}
.pipeline-list strong { display: block; margin-bottom: 2px; }
.pipeline-list span { color: var(--muted); font-size: 14px; }

.feature-grid, .stats-grid, .card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.card, .panel { padding: 20px; }
.card h3, .panel h3 { margin-top: 0; }
.muted { color: var(--muted); }

.dashboard-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
}
.stat-card strong { display: block; font-size: 28px; line-height: 1.2; }
.stat-card span { color: var(--muted); }

.table-wrap { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
th, td {
    border-bottom: 1px solid var(--line);
    padding: 12px 10px;
    text-align: left;
    vertical-align: top;
}
th { color: var(--muted); font-weight: 700; background: #f8fbff; }

.flow-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}
.flow-step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}
.flow-step b { display: block; color: var(--primary); margin-bottom: 4px; }
.notice-success, .notice-error {
    border-radius: 8px;
    padding: 12px 14px;
    margin: 14px 0;
}
.notice-success { background: #e9fbf6; color: #04785f; border: 1px solid #bcecdf; }
.notice-error { background: #fff1f0; color: var(--danger); border: 1px solid #ffd1cc; }

input[type="text"], input[type="email"], input[type="password"], input[type="file"], textarea {
    width: 100%;
    max-width: 680px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}
textarea { resize: vertical; }
.form-panel { max-width: 760px; }

@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .feature-grid, .stats-grid, .card-grid, .flow-steps { grid-template-columns: 1fr; }
    .dashboard-head, .header-inner { align-items: flex-start; flex-direction: column; }
    .site-nav { gap: 10px; }
}


.windows-client-download-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.client-download-short {
    display: none;
}
.client-download-badge {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    line-height: 1;
}
.client-download-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}
.client-download-meta .card strong {
    display: block;
    font-size: 20px;
}
.client-download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 18px 0;
}
.client-download-disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}
.client-download-checksum {
    word-break: break-all;
    cursor: copy;
    user-select: all;
}
@media (max-width: 860px) {
    .client-download-full { display: none; }
    .client-download-short { display: inline; }
    .client-download-meta { grid-template-columns: 1fr; }
}
