/* Kole UI Mobile · Link 样式 — 对齐 .design_library/kole-ui-mobile/spec/移动端规格.md §21 文字链接:默认**不下划线**(移动端正文里满屏下划线噪声大),靠颜色区分; 需要「明确是链接」的场景(正文段落内、条款页)再加下划线。 与桌面端的差别:没有 hover,按下反馈用 :active 变色,不做透明度位移。 */ .kole-m-link { display: inline-flex; align-items: center; gap: var(--kole-space-4); box-sizing: border-box; min-height: var(--kole-m-touch-target); padding: 0 var(--kole-space-4); border: 0; border-radius: var(--kole-radius-small); background: transparent; color: var(--kole-color-brand); font-family: inherit; font-size: var(--kole-m-font-size-body); line-height: 1.4; text-align: start; text-decoration: none; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; transition: color var(--kole-duration-fast) var(--kole-ease-standard), background-color var(--kole-duration-fast) var(--kole-ease-standard); } /* 变体 tone:默认品牌色(可点);default 继承父级文字色(次要链接);danger 用于破坏性操作 */ .kole-m-link--default { color: inherit; } .kole-m-link--danger { color: var(--kole-color-error); } .kole-m-link--success { color: var(--kole-color-success); } /* 变体 underline=true:常驻下划线(正文段落内 / 条款页里必须能一眼分辨) */ .kole-m-link--underline { text-decoration: underline; text-underline-offset: 3px; } /* 按下反馈:变色 + 极浅底色;不做位移缩放 */ .kole-m-link:active { color: var(--kole-color-brand-active); background: var(--kole-color-brand-bg); } .kole-m-link--danger:active { background: var(--kole-color-disabled-bg); } .kole-m-link__label { white-space: nowrap; } /* 变体 tone=block:撑满容器(列表里整行都可点) */ .kole-m-link.is-block { display: flex; width: 100%; justify-content: flex-start; padding: 0 var(--kole-m-gutter); } /* 状态 disabled:置灰且不响应;保留 tabindex=-1 以便读屏跳过 */ .kole-m-link.is-disabled, .kole-m-link:disabled { color: var(--kole-color-text-disabled); text-decoration-color: var(--kole-color-text-disabled); cursor: not-allowed; } .kole-m-link.is-disabled:active, .kole-m-link:disabled:active { background: transparent; } .kole-m-link:focus-visible { outline: 2px solid var(--kole-color-focus-ring); outline-offset: 2px; }