/* 康途APP下载页样式 - 移动端优先 - UI改版 v3：纯色头图+SVG图标+沉稳双色 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    background: #f5f7f6;
    color: #333;
    line-height: 1.6;
    --kt-primary: #0F6E56;
    --kt-primary-deep: #085041;
    --kt-primary-light: #E1F5EE;
}

/* ── 品牌头部：纯色沉稳 ── */
.dl-hero {
    background: var(--kt-primary);
    padding: 40px 24px 56px;
    text-align: center;
    color: #fff;
    position: relative;
}
.dl-hero-logo {
    width: 68px; height: 68px; border-radius: 18px;
    background: rgba(255,255,255,.14);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
    border: 0.5px solid rgba(255,255,255,.3);
}
.dl-hero-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 18px; }
.dl-hero h1 { font-size: 20px; font-weight: 500; letter-spacing: 1px; }
.dl-hero .sub { font-size: 12px; opacity: .75; margin-top: 4px; }

/* ── 主体卡片 ── */
.dl-main { max-width: 480px; margin: -36px auto 0; padding: 0 16px 32px; position: relative; }
.dl-card {
    background: #fff; border-radius: 16px;
    border: 0.5px solid #e8ece9;
    padding: 20px 18px; margin-bottom: 12px;
}

/* 版本信息条 */
.dl-ver {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 12px; border-bottom: 1px dashed #e8ece9; margin-bottom: 12px;
    font-size: 12.5px; color: #888;
}
.dl-ver .v { color: var(--kt-primary); font-weight: 500; }
.dl-ver .size { margin-left: 12px; }

/* 特性亮点：CSS勾选 */
.dl-features { list-style: none; margin-bottom: 6px; }
.dl-features li {
    font-size: 12.5px; color: #666; padding: 4px 0 4px 24px; position: relative;
}
.dl-features li::before {
    content: ""; position: absolute; left: 4px; top: 50%;
    width: 12px; height: 7px;
    border-left: 2px solid var(--kt-primary);
    border-bottom: 2px solid var(--kt-primary);
    transform: translateY(-70%) rotate(-45deg);
}

/* 描述 */
.dl-desc { font-size: 12.5px; color: #777; margin-bottom: 12px; }

/* 更新日志折叠 */
.dl-log-toggle {
    background: none; border: none; color: #999; font-size: 12px;
    padding: 6px 0; cursor: pointer;
}
.dl-log-toggle .arr { display: inline-block; transition: transform .2s; font-size: 11px; }
.dl-log-toggle.open .arr { transform: rotate(180deg); }
.dl-log-body {
    display: none; background: #f7faf8; border-radius: 10px;
    padding: 10px 14px; margin-top: 6px;
    font-size: 12px; color: #666; white-space: pre-wrap;
}

/* ── 分区分隔标题 ── */
.dl-sec {
    display: flex; align-items: center; gap: 10px;
    font-size: 11px; color: #999; margin: 16px 0 10px;
    letter-spacing: 1px;
}
.dl-sec::before, .dl-sec::after { content: ""; flex: 1; height: 1px; background: #e5e9e6; }

/* ── 注册表单 ── */
.dl-form .field { margin-bottom: 10px; }
.dl-input {
    width: 100%; height: 44px; border: 0.5px solid #dde3df; border-radius: 10px;
    padding: 0 12px; font-size: 14.5px; background: #fbfcfb;
    outline: none; transition: border-color .15s;
}
.dl-input:focus { border-color: var(--kt-primary); background: #fff; }
.dl-input::placeholder { color: #b8c1bb; }
/* 表单说明：弱提示，不抢手机号输入框的注意力 */
.dl-note { font-size: 11.5px; line-height: 1.6; color: #8b9b93; margin: 8px 0 12px; }
.dl-code-row { display: flex; gap: 8px; }
.dl-code-row .dl-input { flex: 1; }
.dl-btn-code {
    flex-shrink: 0; min-width: 104px; height: 44px;
    border: 0.5px solid var(--kt-primary); background: #fff; color: var(--kt-primary);
    border-radius: 10px; font-size: 13px; cursor: pointer;
}
.dl-btn-code:disabled { border-color: #c5cdc8; color: #aab3ad; background: #f5f6f5; }

/* 角色选择（服务人员页） */
.dl-roles { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-role {
    padding: 7px 14px; border-radius: 999px; font-size: 12.5px;
    border: 0.5px solid #dde3df; color: #666; background: #fbfcfb; cursor: pointer;
    min-height: 32px; display: inline-flex; align-items: center;
    transition: all .15s;
}
.dl-role.on { border-color: var(--kt-primary); color: var(--kt-primary); background: var(--kt-primary-light); font-weight: 500; }
.dl-role.on::after { content: " ✓"; }

/* ── 主按钮：实心胶囊 ── */
.dl-btn-main {
    display: block; width: 100%; height: 46px;
    background: var(--kt-primary);
    color: #fff; border: none; border-radius: 22px;
    font-size: 15px; font-weight: 500; letter-spacing: 4px;
    cursor: pointer;
    transition: opacity .15s;
}
.dl-btn-main:active { opacity: .85; }
.dl-btn-main:disabled { background: #b9d9c6; cursor: not-allowed; }

/* 次按钮：描边胶囊 */
.dl-btn-ghost {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; height: 44px;
    background: #fff; color: var(--kt-primary); border: 1.5px solid var(--kt-primary);
    border-radius: 22px; font-size: 14px; font-weight: 500;
    cursor: pointer; text-decoration: none;
}
.dl-btn-ghost:active { background: var(--kt-primary-light); }
.dl-btn-ghost svg { flex-shrink: 0; }

/* 提示条 */
.dl-tip {
    display: none; border-radius: 10px; padding: 11px 13px;
    font-size: 13px; margin-bottom: 10px; line-height: 1.6;
}
.dl-tip.ok  { display: block; background: var(--kt-primary-light); color: var(--kt-primary-deep); border: 0.5px solid #bfe6cf; }
.dl-tip.err { display: block; background: #fdf0ef; color: #b3412f; border: 0.5px solid #f2cdc7; }

/* ── 底部 ── */
.dl-footer {
    text-align: center; padding: 14px 0 30px;
    font-size: 11px; color: #aab3ad; line-height: 2;
}
.dl-footer a { color: #8aa595; text-decoration: none; }

/* ── 微信遮罩 ── */
.dl-wx-mask {
    display: none; position: fixed; inset: 0; z-index: 99;
    background: rgba(0,0,0,.82); color: #fff;
    padding: 30px 26px; text-align: right;
}
.dl-wx-mask.show { display: block; }
.dl-wx-mask .arrow { text-align: right; font-size: 52px; animation: float 1.4s ease-in-out infinite; }
.dl-wx-mask .txt { text-align: center; font-size: 16px; line-height: 2; margin-top: 24px; }
.dl-wx-mask .txt b { color: #ffd35c; font-size: 18px; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ── 导航页（入口）双卡 ── */
.dl-nav-card {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border-radius: 16px; padding: 14px;
    border: 0.5px solid #e8ece9;
    text-decoration: none; color: #333; margin-bottom: 12px;
    transition: transform .15s;
}
.dl-nav-card:active { transform: scale(.98); }
.dl-nav-icon {
    width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.dl-nav-icon.user { background: #E1F5EE; }
.dl-nav-icon.merchant { background: #FAEEDA; }
.dl-nav-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 14px; }
.dl-nav-info { flex: 1; min-width: 0; }
.dl-nav-info .n { font-size: 15px; font-weight: 500; }
.dl-nav-info .s { font-size: 11.5px; color: #999; margin-top: 2px; }
.dl-nav-go { color: #B4B2A9; font-size: 18px; }

/* iOS 敬请期待徽标 */
.dl-badge-ios {
    display: inline-block; font-size: 10.5px; color: #999;
    border: 0.5px solid #dfe4e0; border-radius: 5px; padding: 1px 6px; margin-left: 8px;
}
