/*
 * 岁勋堂OA办公系统 - 轻量协作风格主题
 * 仅覆盖视觉层，保留既有组件结构和交互。
 */
:root {
    --sxt-primary: #87520f;
    --sxt-primary-hover: #6f4109;
    --sxt-primary-light: #f7eee1;
    --sxt-success: #34c724;
    --sxt-warning: #ff8800;
    --sxt-danger: #f54a45;
    --sxt-text: #1f2329;
    --sxt-text-secondary: #646a73;
    --sxt-text-tertiary: #8f959e;
    --sxt-border: #dee0e3;
    --sxt-border-light: #e9eaec;
    --sxt-bg: #f5f6f7;
    --sxt-surface: #ffffff;
    --sxt-sidebar-width: 232px;
    --sxt-radius: 8px;
    --sxt-shadow: 0 4px 16px rgba(31, 35, 41, .08);
}

html,
body {
    color: var(--sxt-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.gray-bg,
body.feishu-content-page {
    background: var(--sxt-bg);
}

a {
    color: var(--sxt-primary);
}

a:hover,
a:focus {
    color: var(--sxt-primary-hover);
    text-decoration: none;
}

/* 登录页 */
body.feishu-login-page {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: #f8f6f2;
}

.feishu-login-shell {
    display: flex;
    min-height: 100vh;
}

.feishu-login-intro {
    position: relative;
    display: flex;
    flex: 1 1 54%;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 72px 8vw;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, #563006 0%, #85500d 52%, #aa741f 100%);
}

.feishu-login-intro::before,
.feishu-login-intro::after {
    position: absolute;
    content: "";
    border-radius: 50%;
    pointer-events: none;
}

.feishu-login-intro::before {
    top: -190px;
    right: -130px;
    width: 480px;
    height: 480px;
    border: 90px solid rgba(255, 255, 255, .08);
}

.feishu-login-intro::after {
    bottom: -240px;
    left: -160px;
    width: 520px;
    height: 520px;
    background: rgba(255, 255, 255, .06);
}

.feishu-login-intro-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
}

.feishu-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.suixuntang-brand-logo {
    display: block;
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(45, 24, 2, .2));
}

.feishu-brand-mark {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    border-radius: 12px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -2px;
    background: var(--sxt-primary);
    box-shadow: 0 8px 20px rgba(51, 112, 255, .24);
}

.feishu-login-intro .feishu-brand-mark {
    color: var(--sxt-primary);
    background: #fff;
    box-shadow: 0 10px 30px rgba(21, 55, 139, .22);
}

.feishu-brand-name {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: .02em;
}

.feishu-login-intro h1 {
    max-width: 520px;
    margin: 62px 0 18px;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: .01em;
}

.feishu-login-intro p {
    max-width: 490px;
    margin: 0;
    color: rgba(255, 255, 255, .84);
    font-size: 17px;
    line-height: 1.9;
}

.feishu-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 42px;
    padding: 0;
    list-style: none;
}

.feishu-feature-list li {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 18px;
    color: rgba(255, 255, 255, .92);
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(4px);
}

.feishu-feature-list .fa {
    margin-right: 7px;
    font-size: 13px;
}

.feishu-login-panel {
    display: flex;
    flex: 0 0 46%;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 48px 6vw;
    background: #fff;
}

.feishu-login-card {
    width: 100%;
    max-width: 400px;
}

.feishu-login-mobile-brand {
    display: none;
    margin-bottom: 42px;
    color: var(--sxt-text);
}

.feishu-login-heading {
    margin: 0 0 10px;
    color: var(--sxt-text);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.4;
}

.feishu-login-subheading {
    margin: 0 0 34px;
    color: var(--sxt-text-secondary);
    font-size: 15px;
}

.feishu-field {
    margin-bottom: 20px;
}

.feishu-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--sxt-text);
    font-size: 14px;
    font-weight: 500;
}

.feishu-field-control {
    position: relative;
}

.feishu-field-control > .fa {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 2;
    color: #8f959e;
    font-size: 15px;
    transform: translateY(-50%);
}

.feishu-field .form-control {
    width: 100%;
    height: 46px;
    padding: 10px 14px 10px 42px;
    border: 1px solid var(--sxt-border);
    border-radius: var(--sxt-radius);
    color: var(--sxt-text);
    font-size: 15px;
    background: #fff;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.feishu-field .form-control:hover {
    border-color: #c8a776;
}

.feishu-field .form-control:focus {
    border-color: var(--sxt-primary);
    box-shadow: 0 0 0 3px rgba(135, 82, 15, .12);
}

.feishu-captcha-row {
    display: flex;
    gap: 12px;
}

.feishu-captcha-input {
    min-width: 0;
    flex: 1 1 auto;
}

.feishu-captcha-image {
    display: flex;
    width: 132px;
    height: 46px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--sxt-border);
    border-radius: var(--sxt-radius);
    background: #f7f8fa;
}

.feishu-captcha-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feishu-login-button.btn {
    width: 100%;
    height: 46px;
    margin-top: 10px;
    border: 0;
    border-radius: var(--sxt-radius);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    background: var(--sxt-primary);
    box-shadow: 0 7px 16px rgba(135, 82, 15, .2);
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.feishu-login-button.btn:hover,
.feishu-login-button.btn:focus {
    color: #fff;
    background: var(--sxt-primary-hover);
    box-shadow: 0 8px 18px rgba(135, 82, 15, .28);
}

.feishu-login-button.btn:active {
    transform: translateY(1px);
}

.feishu-login-help {
    margin-top: 24px;
    color: var(--sxt-text-tertiary);
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

body.feishu-login-page label.error {
    display: block;
    margin-top: 6px;
    color: var(--sxt-danger);
    font-size: 13px;
}

/* 主框架 */
body.feishu-shell {
    color: var(--sxt-text);
    background: var(--sxt-bg) !important;
}

.feishu-shell .navbar-static-side {
    width: var(--sxt-sidebar-width);
    border-right: 1px solid var(--sxt-border-light);
    background: #fff !important;
    box-shadow: none;
}

.feishu-shell .logo {
    display: block;
    width: 100%;
    height: 64px;
    padding: 0 20px;
    border-bottom: 1px solid var(--sxt-border-light);
    background: #fff !important;
}

.feishu-shell .sidebar-brand {
    display: flex;
    height: 64px;
    align-items: center;
    color: var(--sxt-text);
}

.feishu-shell .sidebar-brand .feishu-brand-mark {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 9px;
    font-size: 17px;
    box-shadow: none;
}

.feishu-shell .sidebar-brand-logo {
    display: block;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    object-fit: contain;
}

.feishu-shell .sidebar-brand-copy {
    min-width: 0;
    margin-left: 10px;
}

.feishu-shell .sidebar-brand-title {
    display: block;
    overflow: hidden;
    color: var(--sxt-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feishu-shell .sidebar-brand-subtitle {
    display: block;
    overflow: hidden;
    color: var(--sxt-text-tertiary);
    font-size: 11px;
    line-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feishu-shell .sidebar-collapse {
    padding: 12px 10px 28px;
}

.feishu-shell .user-panel {
    min-height: 62px;
    margin: 0 2px 10px;
    padding: 10px;
    border: 1px solid var(--sxt-border-light);
    border-radius: var(--sxt-radius);
    background: #fafbfc;
}

.feishu-shell .user-panel .image img {
    width: 36px;
    height: 36px;
    border: 1px solid #fff;
    box-shadow: none;
}

.feishu-shell .user-panel > .info {
    left: 55px;
    padding-top: 2px;
}

.feishu-shell .user-panel > .info > p {
    margin-bottom: 2px;
    color: var(--sxt-text);
    font-size: 13px;
    font-weight: 500;
}

.feishu-shell .user-panel > .info > a {
    color: var(--sxt-text-tertiary);
    font-size: 11px;
}

.feishu-shell .navbar-default .nav > li > a,
.feishu-shell .nav > li > a.menu-content {
    min-height: 42px;
    margin: 2px 0;
    padding: 11px 12px;
    border: 0 !important;
    border-radius: 7px;
    color: var(--sxt-text-secondary) !important;
    font-size: 14px;
    font-weight: 400;
    background: transparent !important;
    transition: color .16s ease, background .16s ease;
}

.feishu-shell .navbar-default .nav > li > a:hover,
.feishu-shell .navbar-default .nav > li > a:focus,
.feishu-shell .nav > li > a.menu-content:hover {
    color: var(--sxt-text) !important;
    background: #f2f3f5 !important;
}

.feishu-shell .nav > li.active,
.feishu-shell .nav > li.selected {
    border-left: 0 !important;
    background: transparent !important;
}

.feishu-shell .nav > li.active > a,
.feishu-shell .nav > li.selected > a,
.feishu-shell .nav > li > a.active {
    color: var(--sxt-primary) !important;
    font-weight: 500;
    background: var(--sxt-primary-light) !important;
}

.feishu-shell .nav > li > a .fa,
.feishu-shell .nav > li > a .glyphicon {
    width: 20px;
    margin-right: 8px;
    color: inherit;
    font-size: 15px;
    text-align: center;
}

.feishu-shell .nav .arrow {
    margin-top: 4px;
    color: #a2a7ae;
}

.feishu-shell .nav-second-level,
.feishu-shell .nav-third-level,
.feishu-shell .nav-four-level {
    padding: 2px 0 4px 18px;
    background: #fff !important;
}

.feishu-shell .nav-second-level li a,
.feishu-shell .nav-third-level li a,
.feishu-shell .nav-four-level li a {
    min-height: 38px;
    margin: 1px 0;
    padding: 9px 12px 9px 18px;
    border-radius: 7px;
    color: var(--sxt-text-secondary) !important;
    font-size: 13px;
    background: transparent !important;
}

.feishu-shell .nav-second-level li a:hover,
.feishu-shell .nav-third-level li a:hover,
.feishu-shell .nav-four-level li a:hover,
.feishu-shell .nav-second-level li.selected > a {
    color: var(--sxt-primary) !important;
    background: var(--sxt-primary-light) !important;
}

.feishu-shell #page-wrapper {
    margin-left: var(--sxt-sidebar-width);
    background: var(--sxt-bg) !important;
}

.feishu-shell.mini-navbar .navbar-static-side {
    width: 70px;
}

.feishu-shell.mini-navbar #page-wrapper {
    margin-left: 70px;
}

.feishu-shell.mini-navbar .logo {
    padding: 0 17px;
}

.feishu-shell.mini-navbar .sidebar-brand-copy,
.feishu-shell.mini-navbar .user-panel {
    display: none;
}

.feishu-shell.mini-navbar .sidebar-collapse {
    padding-right: 8px;
    padding-left: 8px;
}

.feishu-shell.mini-navbar .navbar-default .nav > li > a {
    padding-right: 12px;
    padding-left: 12px;
    text-align: center;
}

.feishu-shell.mini-navbar .navbar-default .nav > li > a .fa {
    margin-right: 0;
}

.feishu-shell .navbar-static-top {
    height: 64px;
    min-height: 64px;
    border-bottom: 1px solid var(--sxt-border-light);
    background: #fff !important;
    box-shadow: none;
}

.feishu-shell .navbar-header {
    height: 64px;
}

.feishu-shell .minimalize-styl-2 {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    margin: 14px 0 0 18px;
    padding: 0;
    border-radius: 7px;
    color: var(--sxt-text-secondary) !important;
    background: #f5f6f7;
}

.feishu-shell .minimalize-styl-2:hover {
    color: var(--sxt-primary) !important;
    background: var(--sxt-primary-light);
}

.feishu-shell .topbar-product-name {
    display: inline-flex;
    height: 64px;
    align-items: center;
    margin-left: 15px;
    color: var(--sxt-text);
    font-size: 15px;
    font-weight: 500;
}

.feishu-shell .navbar-top-links {
    height: 64px;
    margin-right: 16px;
}

.feishu-shell .navbar-top-links > li,
.feishu-shell .navbar-top-links > li > a {
    height: 64px;
}

.feishu-shell .navbar-top-links > li > a {
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: var(--sxt-text-secondary);
    font-size: 14px;
}

.feishu-shell .navbar-top-links > li > a:hover,
.feishu-shell .navbar-top-links > li > a:focus {
    color: var(--sxt-text);
    background: #f7f8fa;
}

.feishu-shell .navbar-top-links .user-image {
    width: 30px;
    height: 30px;
    margin-right: 8px;
    border: 1px solid var(--sxt-border-light);
}

.feishu-shell .dropdown-menu {
    min-width: 160px;
    padding: 6px;
    border: 1px solid var(--sxt-border-light);
    border-radius: var(--sxt-radius);
    box-shadow: var(--sxt-shadow);
}

.feishu-shell .dropdown-menu > li > a {
    padding: 9px 12px;
    border-radius: 6px;
    color: var(--sxt-text-secondary);
}

.feishu-shell .dropdown-menu > li > a:hover {
    color: var(--sxt-text);
    background: #f2f3f5;
}

.feishu-shell .content-tabs {
    height: 44px;
    border: 0;
    border-bottom: 1px solid var(--sxt-border-light);
    background: #fff;
    box-shadow: none;
}

.feishu-shell .content-tabs .roll-nav,
.feishu-shell .page-tabs a {
    height: 44px;
    border: 0;
    color: var(--sxt-text-secondary);
    line-height: 44px;
    background: #fff;
}

.feishu-shell .content-tabs .roll-nav {
    width: 42px;
}

.feishu-shell .content-tabs .roll-nav:hover,
.feishu-shell .page-tabs a:hover {
    color: var(--sxt-primary);
    background: #f7f8fa;
}

.feishu-shell .page-tabs a.active {
    color: var(--sxt-primary);
    font-weight: 500;
    background: #fff;
}

.feishu-shell .page-tabs a.active::after {
    position: absolute;
    right: 16px;
    bottom: 0;
    left: 16px;
    height: 2px;
    content: "";
    border-radius: 2px 2px 0 0;
    background: var(--sxt-primary);
}

.feishu-shell .mainContent {
    background: var(--sxt-bg);
}

.feishu-shell .footer {
    border-top: 1px solid var(--sxt-border-light);
    color: var(--sxt-text-tertiary);
    background: #fff;
}

/* 顶部菜单模式 */
.feishu-shell .navbar-toolbar {
    height: 64px;
    border: 0;
}

.feishu-shell .navbar-toolbar > li > a {
    height: 64px;
    padding: 0 16px;
    border: 0 !important;
    color: var(--sxt-text-secondary);
    line-height: 64px;
    background: transparent !important;
}

.feishu-shell .navbar-toolbar > li.active > a,
.feishu-shell .navbar-toolbar > li > a:hover {
    color: var(--sxt-primary) !important;
}

/* 通用业务页面 */
.container-div,
.container-fluid,
.wrapper-content {
    color: var(--sxt-text);
}

.container-div {
    padding: 16px;
}

.ibox,
.panel,
.card,
.ibox-content,
.panel-body {
    border-color: var(--sxt-border-light);
    background: var(--sxt-surface);
    box-shadow: none;
}

.ibox {
    margin-bottom: 16px;
    border: 1px solid var(--sxt-border-light);
    border-radius: var(--sxt-radius);
    overflow: visible;
}

.ibox-title {
    min-height: 52px;
    padding: 16px 18px 12px;
    border-color: var(--sxt-border-light);
    color: var(--sxt-text);
    background: #fff;
}

.ibox-content {
    padding: 18px;
    border-radius: var(--sxt-radius);
}

.select-list {
    margin-bottom: 14px;
    padding: 14px 16px 2px;
    border: 1px solid var(--sxt-border-light);
    border-radius: var(--sxt-radius);
    background: #fff;
    box-shadow: none;
}

.select-list li {
    color: var(--sxt-text-secondary);
}

.form-control,
.select2-container--bootstrap .select2-selection,
.bootstrap-select > .dropdown-toggle,
.input-group-addon {
    min-height: 34px;
    border-color: var(--sxt-border);
    border-radius: 6px;
    color: var(--sxt-text);
    background-color: #fff;
    box-shadow: none !important;
}

.form-control:hover,
.select2-container--bootstrap .select2-selection:hover,
.bootstrap-select > .dropdown-toggle:hover {
    border-color: #a8c0ff;
}

.form-control:focus,
.select2-container--bootstrap.select2-container--focus .select2-selection,
.bootstrap-select.open > .dropdown-toggle {
    border-color: var(--sxt-primary) !important;
    box-shadow: 0 0 0 3px rgba(51, 112, 255, .1) !important;
}

.control-label,
.form-group label {
    color: var(--sxt-text-secondary);
    font-weight: 400;
}

.btn {
    border-radius: 6px;
    font-weight: 400;
    box-shadow: none !important;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.btn-primary,
.btn-info {
    border-color: var(--sxt-primary);
    color: #fff;
    background: var(--sxt-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-info:hover,
.btn-info:focus,
.btn-info:active {
    border-color: var(--sxt-primary-hover) !important;
    color: #fff !important;
    background: var(--sxt-primary-hover) !important;
}

.btn-success {
    border-color: #2ca61f;
    background: #2ca61f;
}

.btn-warning {
    border-color: var(--sxt-warning);
    background: var(--sxt-warning);
}

.btn-danger {
    border-color: var(--sxt-danger);
    background: var(--sxt-danger);
}

.btn-default {
    border-color: var(--sxt-border);
    color: var(--sxt-text-secondary);
    background: #fff;
}

.btn-default:hover,
.btn-default:focus {
    border-color: #a8c0ff;
    color: var(--sxt-primary);
    background: #f7f9ff;
}

.table,
.bootstrap-table .table {
    color: var(--sxt-text-secondary);
    background: #fff;
}

.table > thead > tr > th,
.bootstrap-table .table > thead > tr > th {
    height: 44px;
    border-color: var(--sxt-border-light) !important;
    color: var(--sxt-text);
    font-weight: 500;
    background: #f7f8fa;
}

.table > tbody > tr > td,
.bootstrap-table .table > tbody > tr > td {
    height: 44px;
    border-color: var(--sxt-border-light);
    vertical-align: middle;
}

.table-hover > tbody > tr:hover,
.bootstrap-table .table-hover > tbody > tr:hover {
    background: #f7f9ff;
}

.fixed-table-container,
.bootstrap-table {
    border-color: var(--sxt-border-light);
    border-radius: var(--sxt-radius);
}

.fixed-table-toolbar .columns-right,
.fixed-table-toolbar .search,
.fixed-table-toolbar .columns {
    margin-top: 10px;
    margin-bottom: 10px;
}

.pagination > li > a,
.pagination > li > span {
    margin: 0 2px;
    border: 1px solid var(--sxt-border-light);
    border-radius: 6px;
    color: var(--sxt-text-secondary);
    background: #fff;
}

.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > span {
    border-color: var(--sxt-primary);
    background: var(--sxt-primary);
}

.modal-content,
.layui-layer {
    overflow: hidden;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: 0 12px 40px rgba(31, 35, 41, .16) !important;
}

.modal-header,
.layui-layer-title {
    min-height: 52px;
    border-bottom: 1px solid var(--sxt-border-light) !important;
    color: var(--sxt-text) !important;
    font-size: 16px !important;
    font-weight: 500;
    line-height: 52px !important;
    background: #fff !important;
}

.modal-footer,
.layui-layer-btn {
    border-top: 1px solid var(--sxt-border-light) !important;
    background: #fff !important;
}

.layui-layer-btn .layui-layer-btn0 {
    border-color: var(--sxt-primary) !important;
    border-radius: 6px !important;
    background: var(--sxt-primary) !important;
}

.layui-layer-btn a {
    border-radius: 6px !important;
}

.label-primary,
.badge-primary {
    background: var(--sxt-primary);
}

/* 首页工作台 */
body.feishu-workbench {
    min-height: 100vh;
    margin: 0;
    padding: 24px;
    color: var(--sxt-text);
    background: var(--sxt-bg);
}

.workbench-wrap {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
}

.workbench-hero {
    position: relative;
    display: flex;
    min-height: 170px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 30px 36px;
    overflow: hidden;
    border: 1px solid #dce5ff;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff 0%, #f3f7ff 70%, #e8f0ff 100%);
}

.workbench-hero::after {
    position: absolute;
    right: -40px;
    bottom: -92px;
    width: 260px;
    height: 260px;
    content: "";
    border: 52px solid rgba(51, 112, 255, .07);
    border-radius: 50%;
}

.workbench-eyebrow {
    margin-bottom: 9px;
    color: var(--sxt-primary);
    font-size: 13px;
    font-weight: 500;
}

.workbench-hero h1 {
    margin: 0 0 10px;
    color: var(--sxt-text);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.4;
}

.workbench-hero p {
    margin: 0;
    color: var(--sxt-text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.workbench-hero-mark {
    position: relative;
    z-index: 1;
    display: flex;
    width: 82px;
    height: 82px;
    align-items: center;
    justify-content: center;
    flex: 0 0 82px;
    margin-left: 32px;
    border-radius: 22px;
    color: #fff;
    font-size: 34px;
    background: var(--sxt-primary);
    box-shadow: 0 12px 28px rgba(51, 112, 255, .22);
}

.workbench-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
}

.workbench-card {
    grid-column: span 6;
    padding: 22px;
    border: 1px solid var(--sxt-border-light);
    border-radius: 10px;
    background: #fff;
}

.workbench-card-wide {
    grid-column: span 8;
}

.workbench-card-narrow {
    grid-column: span 4;
}

.workbench-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.workbench-card-title {
    margin: 0;
    color: var(--sxt-text);
    font-size: 16px;
    font-weight: 600;
}

.workbench-card-meta {
    color: var(--sxt-text-tertiary);
    font-size: 12px;
}

.workbench-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.workbench-action {
    display: flex;
    min-height: 78px;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--sxt-border-light);
    border-radius: var(--sxt-radius);
    color: var(--sxt-text);
    background: #fff;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.workbench-action:hover,
.workbench-action:focus {
    border-color: #b7c9ff;
    color: var(--sxt-text);
    background: #f7f9ff;
    transform: translateY(-1px);
}

.workbench-action-icon {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    margin-right: 12px;
    border-radius: 10px;
    color: var(--sxt-primary);
    font-size: 18px;
    background: var(--sxt-primary-light);
}

.workbench-action-copy strong,
.workbench-action-copy span {
    display: block;
}

.workbench-action-copy strong {
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 500;
}

.workbench-action-copy span {
    color: var(--sxt-text-tertiary);
    font-size: 12px;
}

.workbench-guide {
    padding: 0;
    margin: 0;
    list-style: none;
}

.workbench-guide li {
    position: relative;
    min-height: 52px;
    padding: 0 0 18px 32px;
    color: var(--sxt-text-secondary);
    line-height: 1.65;
}

.workbench-guide li::before {
    position: absolute;
    top: 2px;
    left: 0;
    display: flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--sxt-primary);
    content: attr(data-step);
    font-size: 11px;
    font-weight: 600;
    background: var(--sxt-primary-light);
}

.workbench-guide li:not(:last-child)::after {
    position: absolute;
    top: 27px;
    bottom: 3px;
    left: 10px;
    width: 1px;
    content: "";
    background: #dce5ff;
}

.workbench-guide strong {
    display: block;
    margin-bottom: 2px;
    color: var(--sxt-text);
    font-weight: 500;
}

.workbench-security {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border-radius: var(--sxt-radius);
    color: #31537f;
    line-height: 1.7;
    background: #f2f6ff;
}

.workbench-security .fa {
    margin: 3px 10px 0 0;
    color: var(--sxt-primary);
    font-size: 16px;
}

/* 极简首页 */
body.suixuntang-home {
    min-height: 100vh;
    margin: 0;
    color: var(--sxt-text);
    background: #faf9f7;
}

.suixuntang-home-shell {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px 24px;
    text-align: center;
}

.suixuntang-home-logo {
    display: block;
    width: 188px;
    height: 188px;
    margin-bottom: 28px;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(83, 47, 4, .12));
}

.suixuntang-home h1 {
    margin: 0;
    color: #49301a;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: .08em;
}

@media (max-width: 991px) {
    .feishu-login-intro {
        flex-basis: 44%;
        padding: 60px 5vw;
    }

    .feishu-login-panel {
        flex-basis: 56%;
        padding: 46px 7vw;
    }

    .feishu-login-intro h1 {
        font-size: 34px;
    }

    .workbench-card,
    .workbench-card-wide,
    .workbench-card-narrow {
        grid-column: span 12;
    }
}

@media (max-width: 767px) {
    .feishu-login-shell {
        display: block;
    }

    .feishu-login-intro {
        display: none;
    }

    .feishu-login-panel {
        min-height: 100vh;
        padding: 40px 24px;
    }

    .feishu-login-mobile-brand {
        display: flex;
    }

    .feishu-login-mobile-brand .suixuntang-brand-logo {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
        filter: none;
    }

    .feishu-login-heading {
        font-size: 26px;
    }

    .feishu-shell .navbar-static-side {
        width: 220px;
    }

    .feishu-shell #page-wrapper {
        margin-left: 0;
    }

    .feishu-shell .topbar-product-name {
        display: none;
    }

    body.feishu-workbench {
        padding: 14px;
    }

    .suixuntang-home-logo {
        width: 146px;
        height: 146px;
        margin-bottom: 22px;
    }

    .suixuntang-home h1 {
        font-size: 26px;
        letter-spacing: .04em;
    }

    .workbench-hero {
        min-height: 0;
        padding: 24px;
    }

    .workbench-hero h1 {
        font-size: 23px;
    }

    .workbench-hero-mark {
        display: none;
    }

    .workbench-grid {
        gap: 14px;
    }

    .workbench-card {
        padding: 18px;
    }

    .workbench-actions {
        grid-template-columns: 1fr;
    }

    .container-div {
        padding: 10px;
    }
}

@media (max-width: 420px) {
    .feishu-captcha-row {
        display: block;
    }

    .feishu-captcha-image {
        width: 100%;
        margin-top: 10px;
    }
}
