/* ===========================================================
 *  实验室智能插座安全管理 - H5 公共样式
 *  =========================================================== */
:root {
    --primary: #1e6df0;
    --primary-dark: #1655c4;
    --primary-light: #eaf1ff;
    --accent: #00b894;
    --warn: #ff7a45;
    --danger: #ff4d4f;
    --bg: #f4f6fb;
    --card: #ffffff;
    --text: #1f2937;
    --text-2: #4b5563;
    --text-3: #9ca3af;
    --border: #e5e7eb;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);
    --radius: 12px;
    --radius-sm: 8px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
}

/* ===========================================================
 *  登录页
 *  =========================================================== */
.login-page {
    background: linear-gradient(160deg, #1e6df0 0%, #4ea0ff 60%, #82c4ff 100%);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 20px 24px;
}

.login-wrap {
    width: 100%;
    max-width: 420px;
}

.login-header {
    text-align: center;
    color: #fff;
    margin-bottom: 28px;
}

.brand-icon {
    display: inline-flex;
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.15);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.system-name {
    margin: 18px 0 4px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;
}

.system-sub {
    margin: 0;
    font-size: 12px;
    opacity: 0.85;
    letter-spacing: 0.5px;
}

.alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.4;
}

.alert-error {
    background: rgba(255, 77, 79, 0.12);
    border: 1px solid rgba(255, 77, 79, 0.3);
    color: #ffd1d2;
}

.alert-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff4d4f;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.login-form {
    background: var(--card);
    border-radius: var(--radius);
    padding: 22px 20px 18px;
    box-shadow: var(--shadow-md);
}

.field {
    margin-bottom: 14px;
}

.field-label {
    display: block;
    font-size: 13px;
    color: var(--text-2);
    margin-bottom: 6px;
    font-weight: 500;
}

.field-input {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fafbfc;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.field-input:focus-within {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30, 109, 240, 0.12);
}

.field-icon {
    padding: 0 10px;
    color: var(--text-3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.field-input input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 12px 4px;
    font-size: 15px;
    color: var(--text);
    outline: none;
    min-width: 0;
}

.field-input input::placeholder {
    color: #b6bcc7;
}

.toggle-pwd {
    background: transparent;
    border: 0;
    color: var(--text-3);
    padding: 0 12px;
    cursor: pointer;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.toggle-pwd:active {
    color: var(--primary);
}

.field-captcha input {
    padding-right: 96px;
}

.captcha-img {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    height: 36px;
    width: 90px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--border);
}

.form-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 2px 16px;
    font-size: 13px;
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-2);
    cursor: pointer;
    user-select: none;
}

.check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.link {
    color: var(--primary);
    font-size: 13px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.05s, background 0.18s, opacity 0.18s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    font-weight: 500;
    letter-spacing: 4px;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-primary:active {
    transform: scale(0.99);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-block {
    width: 100%;
}

.login-footer {
    margin: 22px 0 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.3px;
}

/* ===========================================================
 *  主页（topbar + main + tabbar）
 *  =========================================================== */
.home-page {
    background: var(--bg);
    padding-bottom: 76px;
    min-height: 100vh;
}

.topbar {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #1e6df0, #4ea0ff);
    color: #fff;
    box-shadow: 0 2px 10px rgba(30, 109, 240, 0.18);
    z-index: 5;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    max-width: 720px;
    margin: 0 auto;
}

.topbar-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.user-greet {
    background: rgba(255, 255, 255, 0.18);
    padding: 4px 10px;
    border-radius: 999px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-logout {
    color: #fff;
    background: rgba(0, 0, 0, 0.1);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.topbar-logout:active {
    background: rgba(0, 0, 0, 0.2);
}

.home-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 16px;
}

.welcome-card {
    background: linear-gradient(135deg, #ffffff, #f0f5ff);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    border: 1px solid #e3edff;
}

.welcome-card h2 {
    margin: 0 0 6px;
    font-size: 18px;
    color: var(--text);
}

.welcome-sub {
    margin: 0;
    color: var(--text-2);
    font-size: 13px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.feature-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    color: var(--text);
    transition: transform 0.15s, box-shadow 0.15s;
}

.feature-card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.feature-icon-blue { background: #1e6df0; }
.feature-icon-green { background: #00b894; }
.feature-icon-orange { background: #ff7a45; }
.feature-icon-purple { background: #8b5cf6; }

.feature-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.feature-desc {
    font-size: 12px;
    color: var(--text-3);
}

.tip-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
}

.tip-card h3 {
    margin: 0 0 6px;
    font-size: 15px;
    color: var(--text);
}

.tip-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-2);
}

/* 底部 tabbar */
.tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
    z-index: 5;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: var(--text-3);
    padding: 4px 6px;
    flex: 1;
}

.tab-item .tab-icon {
    margin-bottom: 2px;
    display: inline-flex;
}

.tab-item.active {
    color: var(--primary);
}

/* ===========================================================
 *  响应式
 *  =========================================================== */
@media (max-width: 360px) {
    .system-name { font-size: 19px; }
    .login-form { padding: 18px 16px; }
    .success-icon { width: 70px; height: 70px; }
}

@media (min-width: 600px) {
    .login-wrap { max-width: 460px; }
    .feature-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===========================================================
 *  扫码预约 / 我的预约 / 预约成功 公共部分
 *  =========================================================== */
.scan-page, .my-page, .success-page {
    background: #f4f6fa;
}

.scan-main, .my-main, .success-main {
    padding: 12px 14px 90px;
}

.topbar-back {
    color: #fff;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background .2s;
}
.topbar-back:active { background: rgba(255,255,255,.15); }

.topbar-user {
    min-width: 64px;
    text-align: right;
    color: #fff;
    font-size: 13px;
}
.user-greet {
    background: rgba(255,255,255,.18);
    padding: 4px 10px;
    border-radius: 999px;
}
.topbar-logout {
    color: #fff;
    background: rgba(255,255,255,.18);
    padding: 4px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
}
.alert-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
}
.alert-error {
    background: #fff1f0;
    color: #c9362c;
    border: 1px solid #ffd7d2;
}
.alert-error .alert-icon { background: #ff4d4f; color: #fff; }
.alert-success {
    background: #f0fff5;
    color: #207a48;
    border: 1px solid #c6f1d7;
}
.alert-success .alert-icon { background: #16a34a; color: #fff; }

/* 设备卡片 */
.device-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    margin-bottom: 12px;
}
.device-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eef0f4;
}
.device-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #5b8def, #2563eb);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.device-head-info {
    flex: 1;
    min-width: 0;
}
.device-name {
    font-size: 17px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.device-no {
    font-size: 12px;
    color: #6b7280;
}
.device-info-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}
.device-info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: #4b5563;
}
.device-info-list li:not(:last-child) { border-bottom: 1px solid #f3f4f6; }
.device-info-list li b {
    font-weight: 500;
    color: #111827;
    max-width: 60%;
    text-align: right;
    word-break: break-all;
}

/* 权限判断卡 */
.access-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.access-ok {
    background: #f0fff5;
    border: 1px solid #c6f1d7;
}
.access-no {
    background: #fff5f5;
    border: 1px solid #ffd7d2;
}
.access-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.access-ok .access-icon { background: #16a34a; color: #fff; }
.access-no .access-icon { background: #ff4d4f; color: #fff; }
.access-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}
.access-sub {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}
.access-ok .access-title { color: #166534; }
.access-no .access-title { color: #991b1b; }

/* 预约卡 */
.reserve-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    margin-bottom: 12px;
}

.field {
    margin-bottom: 14px;
}
.field-label {
    display: block;
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 6px;
    font-weight: 500;
}
.req { color: #ff4d4f; margin-left: 2px; }
.field-input-raw {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 15px;
    color: #111827;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    outline: none;
    transition: border-color .2s, background .2s;
    -webkit-appearance: none;
    appearance: none;
}
.field-input-raw:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.field-static {
    padding: 10px 12px;
    background: #f3f4f6;
    border-radius: 8px;
    color: #4b5563;
    font-size: 14px;
}

/* 我的预约 */
.user-card {
    background: linear-gradient(135deg, #5b8def, #2563eb);
    color: #fff;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(37,99,235,.18);
}
.user-card-name {
    font-size: 18px;
    font-weight: 600;
}
.user-card-sub {
    font-size: 12px;
    opacity: .85;
    margin-top: 2px;
}
.user-card-stat {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.18);
}
.stat-item {
    text-align: center;
}
.stat-num {
    font-size: 22px;
    font-weight: 700;
}
.stat-label {
    font-size: 11px;
    opacity: .85;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    margin: 16px 4px 10px;
}

.reservation-list { padding-bottom: 16px; }
.reservation-item {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,.04);
    border-left: 4px solid #e5e7eb;
}
.reservation-item.status-0 { border-left-color: #2563eb; }
.reservation-item.status-1 { border-left-color: #16a34a; }
.reservation-item.status-2 { border-left-color: #9ca3af; }
.reservation-item.status-3 { border-left-color: #ff4d4f; }

.reservation-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eef0f4;
}
.reservation-device {
    min-width: 0;
}
.reservation-device-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}
.reservation-device-no {
    font-size: 12px;
    color: #6b7280;
}
.reservation-status {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    flex: 0 0 auto;
}
.status-tag-0 { background: #e0ecff; color: #2563eb; }
.status-tag-1 { background: #d1fadf; color: #166534; }
.status-tag-2 { background: #f1f5f9; color: #475569; }
.status-tag-3 { background: #fee2e2; color: #b91c1c; }

.reservation-info {
    list-style: none;
    margin: 0;
    padding: 0;
}
.reservation-info li {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #4b5563;
    padding: 4px 0;
}
.reservation-info li span { color: #6b7280; }
.reservation-info li b {
    color: #1f2937;
    font-weight: 500;
    text-align: right;
    word-break: break-all;
    margin-left: 12px;
}

.reservation-cancel-form {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eef0f4;
    text-align: right;
}

/* 空状态 */
.empty-state {
    background: #fff;
    border-radius: 14px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.empty-icon, .device-empty-icon {
    color: #cbd5e1;
    margin-bottom: 12px;
}
.empty-text, .device-empty-title {
    font-size: 15px;
    color: #4b5563;
    font-weight: 500;
    margin-bottom: 4px;
}
.empty-sub, .device-empty-sub {
    font-size: 12px;
    color: #94a3b8;
}

.device-empty {
    text-align: center;
    padding: 20px 10px;
}

/* 预约成功页 */
.success-main {
    text-align: center;
    padding-top: 30px;
}
.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34d399, #16a34a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(22,163,74,.25);
}
.success-title {
    font-size: 22px;
    color: #1f2937;
    margin-bottom: 6px;
}
.success-sub {
    color: #6b7280;
    font-size: 13px;
    margin: 0 0 22px;
}
.success-detail {
    background: #fff;
    border-radius: 14px;
    padding: 16px 18px;
    margin: 0 0 20px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

@media (max-width: 360px) {
    .system-name { font-size: 19px; }
    .login-form { padding: 18px 16px; }
    .success-icon { width: 70px; height: 70px; }
}

/* ===========================================================
 *  个人中心 / 修改密码
 *  =========================================================== */

/* 单项底部菜单（居中放大） */
.tabbar-single {
    justify-content: center;
}
.tabbar-single .tab-item {
    flex: 0 0 auto;
    padding: 4px 28px;
}
.tabbar-single .tab-icon svg {
    width: 24px;
    height: 24px;
}

/* 用户卡（个人中心） */
.profile-card {
    background: linear-gradient(135deg, #5b8def, #2563eb);
    color: #fff;
    border-radius: 14px;
    padding: 18px 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(37,99,235,.18);
    display: flex;
    align-items: center;
    gap: 14px;
}
.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,.22);
    border: 2px solid rgba(255,255,255,.45);
    overflow: hidden;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.profile-avatar-text {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    line-height: 1;
}
.profile-info { flex: 1; min-width: 0; }
.profile-name {
    font-size: 18px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-phone {
    font-size: 12px;
    opacity: .85;
    margin-top: 4px;
}

/* 操作入口 */
.profile-actions {
    background: #fff;
    border-radius: 14px;
    padding: 4px 0;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    overflow: hidden;
}
.profile-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px;
    color: var(--text);
    text-decoration: none;
    transition: background .15s;
    position: relative;
}
button.profile-action, label.profile-action {
    background: transparent;
    border: 0;
    width: 100%;
    text-align: left;
    font: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}
/* 透明 file input 覆盖整个按钮：点击直接命中 input，调起系统相机 */
.scan-camera-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
/* 扫码弹窗：实时扫码 + 拍照兑底 */
.scan-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: stretch;
    justify-content: center;
}
.scan-modal[hidden] { display: none; }
.scan-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .72);
}
.scan-modal-body {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: #0b0d12;
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.scan-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.scan-modal-title {
    font-size: 16px;
    font-weight: 600;
}
.scan-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 0;
    color: #fff;
    font-size: 22px;
    line-height: 28px;
    cursor: pointer;
}
.scan-modal-stage {
    position: relative;
    flex: 1;
    min-height: 320px;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
#scan-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.scan-modal-frame {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 70vw;
    max-width: 260px;
    aspect-ratio: 1 / 1;
    pointer-events: none;
}
.scan-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border: 3px solid #00d26a;
}
.scan-corner-tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.scan-corner-tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.scan-corner-bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.scan-corner-br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.scan-modal-laser {
    position: absolute;
    left: 6%;
    right: 6%;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d26a, transparent);
    box-shadow: 0 0 8px #00d26a;
    animation: scanLaser 1.8s linear infinite;
}
@keyframes scanLaser {
    0%   { top: 0; }
    50%  { top: calc(100% - 2px); }
    100% { top: 0; }
}
.scan-modal-hint {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255,255,255,.75);
    font-size: 13px;
    text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.scan-modal-error {
    background: #ff4d4f;
    color: #fff;
    padding: 10px 14px;
    font-size: 13px;
    text-align: center;
}
.scan-modal-error[hidden] { display: none; }
.scan-modal-footer {
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    background: #0b0d12;
    border-top: 1px solid rgba(255,255,255,.08);
}
.scan-modal-footer .btn {
    background: rgba(255,255,255,.1);
    color: #fff;
}
.scan-modal-footer .btn:active { background: rgba(255,255,255,.2); }
.scan-tip {
    margin: 0;
    padding: 8px 14px 14px;
    font-size: 12px;
    color: #999;
}
.profile-action:active { background: #f4f6fb; }
.profile-action:not(:last-child) {
    border-bottom: 1px solid #f1f3f6;
}
.profile-action-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.profile-action-icon-blue { background: #2563eb; }
.profile-action-icon-green { background: #16a34a; }
.profile-action-icon-orange { background: #ff7a45; }
.profile-action-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}
.profile-action-arrow {
    color: #c4c9d2;
    font-size: 20px;
    line-height: 1;
}

/* 修改密码卡 */
.pwd-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.pwd-tip {
    background: #f3f6fb;
    color: #4b5563;
    font-size: 13px;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 16px;
}
