body {
    display: flex;
    flex-direction: column;
    height: 100vh;
}
.main-wrapper {
    margin-top: 64px;
    display: flex;
    flex: 1;
    height: 0;
}
.main-content {
    flex: 1;
    width: 0;
    height: 100%;
    padding: 24px;
    overflow-y: auto;
    overflow-x: hidden;
}
.main-content::-webkit-scrollbar,
.sidebar::-webkit-scrollbar {
    width: 6px;
}
.main-content::-webkit-scrollbar-track,
.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
.main-content::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}
.main-content::-webkit-scrollbar-thumb:hover,
.sidebar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
.sidebar::-webkit-scrollbar-button {
    display: none;
}
@supports not selector(::-webkit-scrollbar) {
    .sidebar {
        scrollbar-width: thin;
        scrollbar-color: #c1c1c1 #f1f1f1;
    }
}
.page-title {
    font-size: 16px;
    color: #333;
}
.sidebar {
    width: 224px;
    padding: 34px 0;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
}

/* ====== Admin Page Styles ====== */
.admin-page {
    flex-direction: column;
}

.admin-grid-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.admin-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 20px 24px;
}

.admin-card.full-width {
    width: 100%;
}

.admin-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 20px 0;
}

/* 账户信息行 */
.admin-info-row {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    font-size: 13px;
}
.admin-info-row:last-child {
    margin-bottom: 0;
}
.info-label {
    color: #6b7280;
    min-width: 72px;
}
.info-value {
    color: #111827;
    margin-right: 12px;
}
.info-bound {
    color: #10b981;
}
.info-link {
    color: #3b82f6;
    text-decoration: none;
    cursor: pointer;
}

/* 版本信息 */
.version-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}
.version-label {
    color: #6b7280;
    min-width: 72px;
}
.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #374151;
}
.btn-upgrade {
    padding: 4px 16px;
    border: 1px solid #3b82f6;
    border-radius: 999px;
    color: #3b82f6;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}
.btn-upgrade:hover {
    background-color: #eff6ff;
}

/* 微信通知订阅 */
.subscribe-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.btn-subscribe {
    padding: 4px 16px;
    border: 1px solid #3b82f6;
    border-radius: 999px;
    color: #3b82f6;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-subscribe:hover {
    background-color: #eff6ff;
}
.subscribe-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.subscribe-item {
    /* empty container for layout */
}
.subscribe-name {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 4px;
}
.subscribe-detail {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.5;
}

/* ====== Admin Modal ====== */
.admin-modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}
.admin-modal-mask.show {
    opacity: 1;
    visibility: visible;
}
.admin-modal-box {
    background: #fff;
    border-radius: 12px;
    width: 420px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s ease;
}
.admin-modal-mask.show .admin-modal-box {
    transform: translateY(0) scale(1);
}
.admin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
}
.admin-modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}
.admin-modal-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    cursor: pointer;
    color: #9ca3af;
    border-radius: 6px;
    transition: all 0.2s;
}
.admin-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}
.admin-modal-close svg {
    width: 16px;
    height: 16px;
}
.admin-modal-body {
    padding: 24px;
}
.admin-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
}
.admin-btn-cancel {
    width: 104px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.admin-btn-cancel:hover {
    background: #f9fafb;
}
.admin-btn-primary {
    width: 104px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: linear-gradient(268.5deg, rgba(38, 111, 255, 1) 1.98%, rgba(70, 179, 240, 1) 98.71%);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.admin-btn-primary:hover {
    opacity: 0.9;
}

/* ====== Admin Form ====== */
.admin-form-group {
    margin-bottom: 18px;
}
.admin-form-group:last-child {
    margin-bottom: 0;
}
.admin-form-label {
    display: block;
    font-size: 13px;
    color: #374151;
    margin-bottom: 6px;
    font-weight: 500;
}
.admin-form-input {
    width: 100%;
    height: 40px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
    color: #111827;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.admin-form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.admin-form-input::placeholder {
    color: #9ca3af;
}
.admin-form-row {
    display: flex;
    gap: 10px;
}
.admin-form-row .admin-form-input {
    flex: 1;
}
.admin-form-sms-btn {
    flex-shrink: 0;
    padding: 0 16px;
    height: 40px;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    background: #fff;
    color: #3b82f6;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.admin-form-sms-btn:hover:not(:disabled) {
    background: #eff6ff;
}
.admin-form-sms-btn:disabled {
    border-color: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
}
.admin-form-eye-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}
.admin-form-eye-btn:hover {
    background: #f9fafb;
}

/* ====== Wechat Modal ====== */
.wechat-modal-box {
    background: #fff;
    border-radius: 12px;
    width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s ease;
    position: relative;
    padding: 20px;
}
.wechat-modal-mask.show .wechat-modal-box {
    transform: translateY(0) scale(1);
}
.wechat-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    cursor: pointer;
    color: #9ca3af;
    border-radius: 6px;
    transition: all 0.2s;
}
.wechat-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}
.wechat-modal-close svg {
    width: 16px;
    height: 16px;
}
.wechat-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 16px;
}
.wechat-qr-img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 16px;
}
.wechat-modal-tip {
    font-size: 14px;
    color: #6b7280;
    text-align: center;
    line-height: 1.6;
    margin: 0 0 20px 0;
}
.wechat-modal-tip span {
    color: #111827;
}
.wechat-modal-btn {
    width: 120px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #266fff;
    border-radius: 8px;
    background: #fff;
    color: #266fff;
    cursor: pointer;
    transition: all 0.2s;
}
.wechat-modal-btn:hover {
    background: #eff6ff;
}

/* ====== Bind Wechat ====== */
.wx-bind-container {
    width: 300px;
    height: 300px;
    overflow: hidden;
}
.wx-bind-container iframe {
    width: 300px;
    border: none;
}
.bind-expired-tip {
    font-size: 13px;
    color: #ef4444;
    text-align: center;
    margin: 8px 0 0;
}
.wechat-qr-wrap{
    text-align: center;
}
