/* ============================================================================
   ★产品下载页 + 找回密码页样式层（类名统一 wd- 前缀）
   ----------------------------------------------------------------------------
   设计口径：
     1) 下载页为深色页，挂在首页同款 .wh 容器内，直接复用 wh-hero / wh-section /
        wh-btn / wh-shell 等既有组件类，本文件只补"下载页特有"的结构样式；
     2) 颜色一律引用 wtorg-tokens.css 令牌；品牌蓝 #2563EB 按任务规范用于主按钮渐变
        （与夜间强调色 #4C8DFF 同族，深底可读、浅底沉稳）；
     3) 动效只做 transform / box-shadow / border-color，120~220ms，
        并遵守全站 prefers-reduced-motion 令牌降级；
     4) 断点 1024 / 768 / 430，与全站响应式口径一致，不产生横向滚动。
   ============================================================================ */

/* ---------------------------------------------------------------------------
   一、Hero（居中版：产品名 + 一句话价值 + 主下载按钮）
   --------------------------------------------------------------------------- */
.wd-hero {
    padding-top: calc(var(--wh-nav-h) + 72px);
}

.wd-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
    padding: 56px 0 88px;
    text-align: center;
}

.wd-hero__inner .wh-eyebrow {
    margin-bottom: 26px;
}

.wd-hero__title {
    font-size: clamp(34px, 5.2vw, 52px);
}

.wd-hero__lead {
    max-width: 620px;
    margin: 0 auto;
}

.wd-hero__actions {
    justify-content: center;
}

.wd-hero__inner .wh-micro {
    text-align: center;
}

.wd-hero__inner .wh-micro br {
    margin-top: 4px;
}

/* ★主下载按钮：品牌蓝渐变（任务规范色 #2563EB），与 wh-btn--primary 同尺寸不同色阶 */
.wd-btn--brand {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: #fff;
    box-shadow: 0 12px 32px -12px rgba(37, 99, 235, .75), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.wd-btn--brand:hover {
    color: #fff;
    transform: translateY(-1px);
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    box-shadow: 0 18px 44px -14px rgba(37, 99, 235, .85), inset 0 1px 0 rgba(255, 255, 255, .26);
}

.wd-btn--brand:active {
    transform: translateY(0);
}

.wd-btn--block {
    width: 100%;
}

/* ---------------------------------------------------------------------------
   二、环境要求（四卡网格）
   --------------------------------------------------------------------------- */
.wd-req-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.wd-req-card {
    padding: 26px 22px;
    border: 1px solid var(--wh-line);
    border-radius: var(--wh-r-lg);
    background: linear-gradient(180deg, rgba(14, 26, 43, .72), rgba(10, 18, 32, .55));
    transition: transform var(--w-dur) var(--w-ease),
        border-color var(--w-dur) var(--w-ease),
        box-shadow var(--w-dur) var(--w-ease);
}

.wd-req-card:hover {
    transform: translateY(-3px);
    border-color: rgba(76, 141, 255, .45);
    box-shadow: 0 18px 40px -20px rgba(2, 8, 20, .9);
}

.wd-req-card__ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    border: 1px solid rgba(76, 141, 255, .35);
    border-radius: 12px;
    background: rgba(76, 141, 255, .12);
    color: var(--w-accent);
    font-size: 17px;
}

.wd-req-card .wh-sub {
    font-size: var(--w-fs-13);
    line-height: 1.75;
}

/* ---------------------------------------------------------------------------
   三、下载卡片（版本 / 大小 / 时间 / 按钮）
   --------------------------------------------------------------------------- */
.wd-dl-card {
    display: flex;
    align-items: stretch;
    gap: 40px;
    max-width: 980px;
    margin: 0 auto 44px;
    padding: 34px 38px;
    position: relative;
    border: 1px solid var(--wh-line);
    border-radius: var(--wh-r-lg);
    background: linear-gradient(180deg, rgba(14, 26, 43, .85), rgba(10, 18, 32, .65));
    box-shadow: 0 24px 60px -28px rgba(2, 8, 20, .9);
    overflow: hidden;
}

/* 顶部品牌光带：一条渐变细线，呼应 hero 的"通电"质感 */
.wd-dl-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2563EB 30%, #4C8DFF 60%, transparent);
    opacity: .9;
}

.wd-dl-card__left {
    flex: 1 1 auto;
    min-width: 0;
}

.wd-dl-card__icon {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.wd-dl-card__icon > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    flex: none;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, .22), rgba(37, 99, 235, .10));
    border: 1px solid rgba(76, 141, 255, .4);
    color: var(--w-accent);
    font-size: 24px;
}

.wd-dl-card__icon strong {
    display: block;
    font-size: var(--w-fs-20);
    font-weight: var(--w-fw-bold);
    color: var(--wh-text-1);
    letter-spacing: var(--w-ls-tight);
}

.wd-dl-card__icon span {
    display: block;
    margin-top: 2px;
    font-size: var(--w-fs-12);
    color: var(--wh-text-3);
}

/* 元信息行：标签-值两列，发丝线分隔 */
.wd-dl-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 28px;
}

.wd-dl-meta li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(148, 175, 220, .12);
    font-size: var(--w-fs-13);
}

.wd-dl-meta li span {
    color: var(--wh-text-3);
    flex: none;
}

.wd-dl-meta li strong {
    color: var(--wh-text-1);
    font-weight: var(--w-fw-medium);
    word-break: break-all;
    text-align: right;
}

.wd-dl-card__right {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.wd-dl-card__hint {
    margin: 0;
    font-size: var(--w-fs-12);
    line-height: 1.7;
    color: var(--wh-text-3);
}

.wd-dl-card__hint i {
    color: var(--w-accent-2);
    margin-right: 5px;
}

/* ---------------------------------------------------------------------------
   四、更新日志（后台富文本 + 默认时间线）
   --------------------------------------------------------------------------- */
.wd-notes {
    max-width: 980px;
    margin: 0 auto;
}

.wd-notes__title {
    margin-bottom: 18px;
    color: var(--wh-text-1);
}

.wd-notes__title i {
    color: var(--w-accent);
    margin-right: 8px;
    font-size: var(--w-fs-16);
}

/* ★后台富文本容器：只约束排版，不干预内容；颜色统一到夜间令牌 */
.wd-notes__body {
    padding: 26px 30px;
    border: 1px solid var(--wh-line);
    border-radius: var(--wh-r-lg);
    background: rgba(10, 18, 32, .55);
    color: var(--wh-text-2);
    font-size: var(--w-fs-14);
    line-height: 1.85;
}

.wd-notes__body h1, .wd-notes__body h2, .wd-notes__body h3,
.wd-notes__body h4, .wd-notes__body h5 {
    margin: 14px 0 8px;
    color: var(--wh-text-1);
    font-size: var(--w-fs-15);
}

.wd-notes__body a {
    color: var(--w-accent);
}

.wd-notes__body ul, .wd-notes__body ol {
    padding-left: 22px;
    margin: 8px 0;
}

.wd-notes__body table {
    width: 100%;
    border-collapse: collapse;
}

.wd-notes__body th, .wd-notes__body td {
    padding: 8px 10px;
    border: 1px solid var(--wh-line);
    text-align: left;
}

/* 默认时间线（未配置更新日志时） */
.wd-timeline {
    position: relative;
    padding-left: 26px;
}

.wd-timeline::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(180deg, rgba(76, 141, 255, .55), rgba(148, 175, 220, .12));
}

.wd-timeline__item {
    position: relative;
    padding-bottom: 22px;
}

.wd-timeline__item:last-child {
    padding-bottom: 0;
}

.wd-timeline__dot {
    position: absolute;
    left: -26px;
    top: 6px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--w-night-1);
    border: 2px solid #2563EB;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .18);
}

.wd-timeline__meta {
    margin: 0 0 4px;
    font-family: var(--w-font-mono);
    font-size: var(--w-fs-12);
    color: var(--wh-text-3);
}

.wd-timeline__body h4 {
    margin: 0 0 8px;
    font-size: var(--w-fs-16);
    color: var(--wh-text-1);
}

.wd-timeline__body ul {
    margin: 0;
    padding-left: 18px;
    color: var(--wh-text-2);
    font-size: var(--w-fs-13);
    line-height: 1.9;
}

/* ---------------------------------------------------------------------------
   五、安装三步
   --------------------------------------------------------------------------- */
.wd-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.wd-step {
    position: relative;
    padding: 30px 24px 26px;
    border: 1px solid var(--wh-line);
    border-radius: var(--wh-r-lg);
    background: rgba(10, 18, 32, .5);
    transition: transform var(--w-dur) var(--w-ease), border-color var(--w-dur) var(--w-ease);
}

.wd-step:hover {
    transform: translateY(-3px);
    border-color: rgba(76, 141, 255, .4);
}

.wd-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: #fff;
    font-size: var(--w-fs-18);
    font-weight: var(--w-fw-bold);
    box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .8);
}

.wd-step .wh-sub {
    font-size: var(--w-fs-13);
    line-height: 1.8;
}

.wd-step code {
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(76, 141, 255, .12);
    border: 1px solid rgba(76, 141, 255, .25);
    color: var(--w-accent);
    font-family: var(--w-font-mono);
    font-size: var(--w-fs-12);
}

.wd-steps__foot {
    margin: 28px 0 0;
    text-align: center;
    font-size: var(--w-fs-13);
    color: var(--wh-text-3);
}

.wd-steps__foot i {
    color: var(--w-accent);
    margin-right: 6px;
}

.wd-steps__foot a {
    color: var(--w-accent);
    text-decoration: none;
}

.wd-steps__foot a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------------------------
   六、找回密码页（浅色业务页，三步向导）
   --------------------------------------------------------------------------- */
.wd-fp-wrap {
    min-height: calc(100vh - var(--wh-nav-h));
    padding: calc(var(--wh-nav-h) + 48px) 24px 64px;
    background:
        radial-gradient(720px 320px at 50% -80px, rgba(37, 99, 235, .08), transparent 62%),
        var(--w-page-bg);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.wd-fp-card {
    width: 100%;
    max-width: 460px;
    padding: 34px 34px 28px;
    border: 1px solid var(--w-line);
    border-radius: var(--w-r-5);
    background: var(--w-surface);
    box-shadow: var(--w-shadow-2);
}

.wd-fp-card h2 {
    margin: 0 0 6px;
    font-size: var(--w-fs-20);
    font-weight: var(--w-fw-semibold);
    color: var(--w-ink-1);
    letter-spacing: var(--w-ls-tight);
}

.wd-fp-card__sub {
    margin: 0 0 22px;
    font-size: var(--w-fs-13);
    color: var(--w-ink-3);
    line-height: 1.7;
}

/* 步骤指示器：三枚圆点 + 连接线，状态由 data 属性驱动 */
.wd-fp-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 26px;
}

.wd-fp-steps__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--w-fs-12);
    color: var(--w-ink-4);
    font-weight: var(--w-fw-medium);
}

.wd-fp-steps__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--w-line-strong);
    background: var(--w-surface-2);
    color: var(--w-ink-3);
    font-size: var(--w-fs-12);
    font-weight: var(--w-fw-semibold);
    transition: background var(--w-dur) var(--w-ease),
        border-color var(--w-dur) var(--w-ease),
        color var(--w-dur) var(--w-ease);
}

.wd-fp-steps__line {
    width: 34px;
    height: 1px;
    margin: 0 10px;
    background: var(--w-line);
}

.wd-fp-steps__item[data-wtorg-state="active"] .wd-fp-steps__num {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px -4px rgba(37, 99, 235, .55);
}

.wd-fp-steps__item[data-wtorg-state="active"] {
    color: var(--w-ink-1);
}

.wd-fp-steps__item[data-wtorg-state="done"] .wd-fp-steps__num {
    background: var(--w-success-soft);
    border-color: rgba(18, 133, 90, .35);
    color: var(--w-success);
}

.wd-fp-panel {
    display: none;
}

.wd-fp-panel.is-active {
    display: block;
    animation: wd-fp-in var(--w-dur-slow) var(--w-ease);
}

@keyframes wd-fp-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

/* 验证码行：输入框 + 可点击图片 */
.wd-fp-captcha {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.wd-fp-captcha input {
    flex: 1;
    min-width: 0;
}

.wd-fp-captcha img {
    height: 40px;
    width: 120px;
    flex: none;
    cursor: pointer;
    border: 1px solid var(--w-line);
    border-radius: var(--w-r-2);
    background: #fff;
    object-fit: contain;
}

/* 验证码发送行：输入框 + 60s 倒计时按钮 */
.wd-fp-sendrow {
    display: flex;
    gap: 10px;
}

.wd-fp-sendrow input {
    flex: 1;
    min-width: 0;
}

.wd-fp-sendrow button {
    white-space: nowrap;
    min-width: 120px;
}

/* 提示条：错误 / 成功 / 信息三种语义色 */
.wd-fp-alert {
    display: none;
    margin: 0 0 16px;
    padding: 10px 14px;
    border-radius: var(--w-r-2);
    font-size: var(--w-fs-13);
    line-height: 1.7;
    border: 1px solid transparent;
}

.wd-fp-alert.is-error {
    display: block;
    color: var(--w-danger-ink);
    background: var(--w-danger-soft);
    border-color: var(--w-danger-line);
}

.wd-fp-alert.is-success {
    display: block;
    color: #0B5E40;
    background: var(--w-success-soft);
    border-color: rgba(18, 133, 90, .3);
}

.wd-fp-alert.is-info {
    display: block;
    color: #0A5A7D;
    background: var(--w-info-soft);
    border-color: rgba(11, 110, 153, .25);
}

.wd-fp-foot {
    margin: 20px 0 0;
    text-align: center;
    font-size: var(--w-fs-13);
    color: var(--w-ink-3);
}

.wd-fp-foot a {
    color: #2563EB;
    text-decoration: none;
    font-weight: var(--w-fw-medium);
}

.wd-fp-foot a:hover {
    text-decoration: underline;
}

.wd-fp-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.wd-fp-actions .btn {
    flex: 1;
}

/* ---------------------------------------------------------------------------
   七、响应式（1024 / 768 / 430）
   --------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .wd-req-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .wd-hero {
        padding-top: calc(var(--wh-nav-h) + 40px);
    }

    .wd-hero__inner {
        padding: 36px 0 60px;
    }

    .wd-dl-card {
        flex-direction: column;
        gap: 26px;
        padding: 26px 22px;
    }

    .wd-dl-card__right {
        flex: none;
    }

    .wd-dl-meta {
        grid-template-columns: minmax(0, 1fr);
    }

    .wd-steps {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 430px) {
    .wd-req-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .wd-fp-card {
        padding: 26px 20px 22px;
    }

    .wd-fp-steps__line {
        width: 18px;
        margin: 0 6px;
    }

    /* 小屏隐藏步骤文字，只保留数字圆点，避免换行挤压 */
    .wd-fp-steps__item span:not(.wd-fp-steps__num) {
        display: none;
    }
}
