/* ==========================================================
   OS SSL 视觉主题：深色浏览器窗口组件
   参考 browser-window 设计语言（标签页 / 地址栏 / 窗口按钮）
   ========================================================== */

/* 覆盖旧版浅色卡片外壳，只保留内部深色浏览器窗口 */
.connection-visual {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none !important;
}

.browser {
    width: 100%;
    min-height: 300px;
    background: #1b1f2a;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .06) inset,
        0 18px 44px rgba(15, 23, 42, .28),
        0 4px 10px rgba(15, 23, 42, .16);
    border: 1px solid rgba(255, 255, 255, .06);
}

/* ---------------- 标签栏 ---------------- */
.tabs-head {
    background-color: #2a2f3a;
    height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-left: 16px;
    flex: none;
}

.tabs { display: flex; align-items: flex-end; height: 100%; }

.tabs-head .tab-open {
    width: 168px;
    height: 36px;
    border-radius: 9px 9px 0 0;
    background-color: #3b4250;
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    position: relative;
}

.tabs-head .tab-open .close-tab {
    color: rgba(255, 255, 255, .7);
    font-size: 9px;
    line-height: 1;
    padding: 4px;
    border-radius: 50%;
    cursor: default;
    transition: background-color .15s ease, color .15s ease;
}

.tabs-head .tab-open .close-tab:hover {
    background-color: rgba(255, 255, 255, .16);
    color: #fff;
}

.tabs-head .tab-open .rounded-l,
.tabs-head .tab-open .rounded-r {
    position: absolute;
    width: 20px;
    height: 26px;
    top: 0;
    overflow: hidden;
    background-color: #3b4250;
}

.tabs-head .tab-open .rounded-l { right: 0; transform: translateX(100%); }
.tabs-head .tab-open .rounded-r { left: 0; transform: translateX(-100%); }

.tabs-head .tab-open .rounded-l .mask-round {
    width: 100%;
    height: 100%;
    background-color: #2a2f3a;
    border-radius: 0 0 0 9px;
}

.tabs-head .tab-open .rounded-r .mask-round {
    width: 100%;
    height: 100%;
    background-color: #2a2f3a;
    border-radius: 0 0 9px 0;
}

.tabs-head .tab-open span {
    color: rgba(255, 255, 255, .92);
    font-size: 12px;
    letter-spacing: .2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tabs-head .window-opt { display: flex; flex: none; }

.tabs-head .window-opt button {
    height: 32px;
    width: 34px;
    border: none;
    background-color: transparent;
    transition: background-color .1s ease-out;
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    line-height: 1;
    cursor: default;
}

.tabs-head .window-opt button:hover { background-color: rgba(255, 255, 255, .12); }
.tabs-head .window-opt .window-close:hover { background-color: #ff3b30; color: #fff; }

/* ---------------- 地址栏 ---------------- */
.head-browser {
    position: relative;
    width: 100%;
    height: 46px;
    background-color: #3b4250;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: none;
}

.head-browser input {
    background-color: #262b36;
    border: 2px solid transparent;
    height: 30px;
    border-radius: 20px;
    outline: none;
    color: #e5e7eb;
    padding: 0 14px;
    flex: 1;
    min-width: 0;
    font-size: 12px;
    font-family: inherit;
    transition: border-color .2s ease, background-color .2s ease;
}

.head-browser input:hover { background-color: #2f3542; }
.head-browser input:focus { border-color: #7dd3fc; }

.head-browser button {
    width: 28px;
    height: 28px;
    border: none;
    background-color: transparent;
    color: rgba(255, 255, 255, .82);
    border-radius: 50%;
    font-size: 13px;
    line-height: 1;
    flex: none;
    cursor: default;
    transition: background-color .18s ease;
}

.head-browser button:disabled { opacity: .35; }
.head-browser button:hover { background-color: rgba(255, 255, 255, .12); }
.head-browser button:disabled:hover { background-color: transparent; }

.head-browser .star {
    color: rgba(255, 255, 255, .75);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 2px;
}

/* ---------------- 窗口内容 ---------------- */
.browser-body {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 26px 24px 24px;
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(37, 99, 235, .22), transparent 62%),
        linear-gradient(180deg, #1b1f2a 0%, #151922 100%);
    text-align: center;
}

.browser-lock {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 12px 28px rgba(34, 197, 94, .28);
    margin-bottom: 4px;
}

.browser-lock svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.browser-secure-title {
    font-size: 15px;
    font-weight: 650;
    color: #f8fafc;
    letter-spacing: .2px;
}

.browser-secure-caption {
    font-size: 12px;
    color: #94a3b8;
    margin-top: -4px;
}

.browser-cert {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
    padding: 11px 13px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    text-align: left;
}

.browser-cert .cert-icon {
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(37, 99, 235, .18);
    color: #93c5fd;
}

.browser-cert .cert-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.browser-cert b {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
}

.browser-cert small {
    display: block;
    font-size: 10.5px;
    color: #94a3b8;
    margin-top: 1px;
}

.browser-cert .cert-chip {
    margin-left: auto;
    flex: none;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .4px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(34, 197, 94, .16);
    color: #4ade80;
}

.visual-label {
    position: static;
    display: block;
    margin: 12px 0 0;
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    letter-spacing: .3px;
}

@media (max-width: 960px) {
    .connection-visual { max-width: 400px; }
    .browser { min-height: 280px; }
}

@media (max-width: 560px) {
    .tabs-head .tab-open { width: 132px; }
    .tabs-head .window-opt button { width: 30px; }
    .browser-body { padding: 22px 18px; }
}

/* ---------- 全局细节增强（仅视觉，不改布局） ---------- */
.button-primary {
    box-shadow: 0 8px 20px rgba(23, 96, 232, .22);
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(23, 96, 232, .3);
}

.button-primary:active { transform: translateY(0); }

.application-card {
    box-shadow: 0 20px 50px rgba(20, 32, 56, .08);
}

@media (prefers-reduced-motion: reduce) {
    .button-primary,
    .button-primary:hover { transform: none; }
}
