/* ============================================================
   PASS-INT.CSS — 基于 GLOBAL 16阶灰阶的纯色极简深色风格
   无边框、无阴影、无模糊、无过渡动效、无悬停变换
   仅用灰度层级区分，品牌色占比 < 10%
   ============================================================ */

/* ===== 全局变量（直接取自 global.css） ===== */
:root {
    /* 核心色 */
    --color-black: #020101;
    --color-white: #fffefe;
    --color-brand: #fedc10;

    /* 16阶灰阶（来自 global.css） */
    --gray-01: #fffefe;
    --gray-02: #f3f2f2;
    --gray-03: #e6e5e5;
    --gray-04: #d8d7d7;
    --gray-05: #cbcaca;
    --gray-06: #bebdbd;
    --gray-07: #a9a8a8;
    --gray-08: #949393;
    --gray-09: #7f7e7e;
    --gray-10: #6a6969;
    --gray-11: #555454;
    --gray-12: #403f3f;
    --gray-13: #2d2c2c;
    --gray-14: #1b1a1a;
    --gray-15: #0e0d0d;
    --gray-16: #020101;

    /* 语义化颜色（深色系） */
    --bg-primary: var(--color-black);
    --bg-secondary: var(--gray-15);
    --bg-card: var(--gray-14);
    --bg-surface: var(--gray-13);
    --bg-input: var(--gray-12);
    --bg-overlay: rgba(0, 0, 0, 0.85);

    --text-primary: var(--color-white);
    --text-secondary: var(--gray-04);
    --text-muted: var(--gray-08);

    /* 功能色（危险操作） */
    --danger: #ff453a;
    --danger-bg: var(--gray-13);

    /* 尺寸 */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --gap: 20px;
    --header-h: 64px;

    /* 无阴影、边框、过渡 */
    --shadow: none;
    --transition: none;
}

/* ---------- 重置 ---------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding-bottom: 85px;
}

.app-wrapper {
    width: 100%;
    max-width: 480px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

/* ---------- 导航 (Navbar) ---------- */
.navbar {
    display: flex;
    background: var(--bg-secondary);
    border-radius: 20px;
    justify-content: space-between;
    align-items: center;
    height: var(--header-h);
    margin-top: 24px;
    padding: 0 24px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-text { display: flex; align-items: center; gap: 8px; }
.brand-text .title { 
    font-weight: 800; 
    font-size: 19px; 
    color: var(--text-primary); 
    letter-spacing: -0.5px;
}
.brand-text .badge {
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 100px;
}

.icon-btn {
    background: var(--bg-surface);
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-secondary);
    cursor: pointer;
    border: none;
    outline: none;
    box-shadow: none;
}
/* 无悬停效果 */

/* ---------- 卡片 ---------- */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 22px;
    border: none;
    box-shadow: none;
}
/* 无悬停效果 */

.card-header { margin-bottom: 16px; }
.card-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.input-wrapper { position: relative; display: flex; align-items: center; }
.input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-secondary);
    font-size: 16px;
    pointer-events: none;
}
.input-wrapper input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    background: var(--bg-input);
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    box-shadow: none;
}
/* 无 focus 变换 */
.input-wrapper input[data-default="true"] {
    color: var(--text-muted);
    font-style: italic;
}

/* ---------- 组合框与下拉菜单 ---------- */
.combo-box { position: relative; }
.combo-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
}
/* 无悬停效果 */
.combo-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    max-height: 154px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    list-style: none;
    z-index: 999;
    padding: 6px;
}
.combo-menu::-webkit-scrollbar { display: none; }
.combo-menu.open { display: block; }
.combo-menu li {
    padding: 10px 12px;
    font-size: 13px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-primary);
}
/* 悬停背景色反馈（无过渡） */
.combo-menu li:hover {
    background: var(--bg-card);
}

/* ---------- 按钮 ---------- */
.action-row { display: flex; gap: 12px; margin-top: 18px; }
.btn {
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: none;
}
.btn-primary {
    flex: 1 1 auto;
    background: var(--color-brand);
    color: var(--color-black);
    min-width: 0;
}
/* 无悬停效果 */
.btn-ghost {
    background: var(--bg-surface);
    color: var(--text-primary);
}
/* 无悬停效果 */

/* ---------- 长度控制 ---------- */
.length-control {
    display: flex;
    align-items: center;
    gap: 8px;
}
.length-control .num {
    font-size: 18px;
    font-weight: 700;
    min-width: 32px;
    text-align: center;
    color: var(--text-primary);
}
.length-control .arrow-btn {
    background: var(--bg-surface);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}
/* 无悬停效果 */

/* ---------- 占位视图 ---------- */
.placeholder-box {
    text-align: center;
    padding: 32px 12px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.placeholder-icon-wrap {
    width: 54px;
    height: 54px;
    background: var(--bg-surface);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 12px auto;
}
/* 无悬停效果 */
.placeholder-text { font-size: 13px; font-weight: 500; }

/* ---------- 结果视图 ---------- */
.result-view {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 16px;
}
/* 无悬停效果 */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.result-title { 
    font-weight: 700; 
    font-size: 13px; 
    color: var(--text-primary);
}
.result-actions { display: flex; gap: 6px; }
.action-btn {
    background: var(--bg-card);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border: none;
    box-shadow: none;
}
/* 无悬停效果 */

.result-row {
    display: grid;
    grid-template-columns: 1fr 5fr;
    align-items: baseline;
    gap: 4px 10px;
    margin-bottom: 10px;
    font-size: 13px;
}
.result-row .label {
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}
.result-row .value {
    font-weight: 600;
    font-family: monospace;
    word-break: break-all;
    white-space: normal;
    min-width: 0;
    color: var(--text-primary);
}
.result-row .value.password {
    font-size: 15px;
    color: var(--color-white);
    letter-spacing: 1px;
    font-weight: 700;
}

.strength-wrapper { margin-top: 12px; }
.strength-bar-track {
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
}
.strength-bar-fill {
    height: 100%;
    background: var(--color-brand);
}
.strength-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 6px;
}

.text-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 2px;
}
/* 无悬停效果 */

/* ---------- 历史列表 ---------- */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 4px;
}
.history-empty {
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
    padding: 16px 0;
    letter-spacing: 0.3px;
}

.history-item {
    background: var(--bg-surface);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
    cursor: pointer;
}
/* 无悬停效果 */
.h-left { display: flex; flex-direction: column; flex: 1 1 100px; }
.h-domain { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.h-identity { font-size: 11px; color: var(--text-secondary); }
.h-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}
.h-pwd {
    font-family: monospace;
    font-size: 12px;
    color: var(--text-secondary);
    word-break: break-all;
    white-space: normal;
    flex: 1 1 auto;
    min-width: 60px;
}
.h-copy-btn, .h-delete-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}
/* 无悬停效果 */

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px) scale(0.95);
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    border: none;
    box-shadow: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }

/* ---------- 底部导航 ---------- */
.footer-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    border-radius: 24px 24px 0 0;
    background: var(--bg-secondary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 480px;
    margin: 0 auto;
    z-index: 90;
    padding: 0 12px;
    border: none;
}
.footer-action {
    background: var(--bg-surface);
    padding: 8px 14px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    border: none;
    box-shadow: none;
}
/* 无悬停效果 */
.footer-action i { 
    font-size: 16px; 
    color: var(--text-secondary);
}

/* ---------- 模态框 ---------- */
body .modal-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-overlay);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
}
body .modal-backdrop.active { display: flex; opacity: 1; }

.modal-card {
    background: var(--bg-card);
    width: 100%;
    max-width: 440px;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(10px);
    border: none;
    box-shadow: none;
}
body .modal-backdrop.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.modal-header h3 { 
    font-size: 16px; 
    font-weight: 700; 
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-header h3 i {
    color: var(--color-brand);
}
.close-icon {
    background: var(--bg-surface);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: none;
}
/* 无悬停效果 */

.modal-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.sm-btn {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    background: var(--bg-surface);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: none;
}
/* 无悬停效果 */

.btn-danger {
    color: var(--danger);
    background: var(--danger-bg);
}
/* 无悬停效果 */

.btn-danger-ghost {
    color: var(--danger);
    background: transparent;
}
/* 无悬停效果 */

.modal-body { overflow-y: auto; flex: 1; padding-right: 2px; }
.date-header {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin: 14px 0 8px 0;
}

#modalHistoryList .h-pwd {
    word-break: break-all;
    white-space: normal;
    max-width: 100%;
    overflow: visible;
    text-overflow: unset;
    flex: 1 1 auto;
    min-width: 60px;
}
#modalHistoryList .history-item {
    flex-wrap: wrap;
    gap: 6px 10px;
    background: var(--bg-surface);
}