/* ============================================================
   酒店房价系统 - 样式表
   现代简洁设计，参考 Ant Design 配色
   ============================================================ */

:root {
    --primary:        #1677ff;
    --primary-hover:  #4096ff;
    --primary-active: #0958d9;
    --success:        #52c41a;
    --error:          #ff4d4f;
    --warning:        #faad14;
    --text:           rgba(0,0,0,0.88);
    --text-secondary: rgba(0,0,0,0.65);
    --text-tertiary:  rgba(0,0,0,0.45);
    --border:         #d9d9d9;
    --border-light:   #f0f0f0;
    --bg:             #f0f7ff;
    --bg-component:   #ffffff;
    --stripe-bg:      rgba(22,119,255,0.08);
    --header-bg:      #0c3d7c;
    --table-header-bg: #0c3d7c;
    --header-gradient: linear-gradient(135deg, #001529 0%, #0c3d7c 100%);
    --tel:            #ffba6b;
    --carousel-bg:    #0c3d7c;
    --dot-active:     #60a5fa;
    --dot-inactive:   rgba(255,255,255,0.4);
    --radius:          8px;
    --radius-sm:       6px;
    --shadow:         0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg:      0 8px 24px rgba(0,0,0,0.15);
    --sidebar-w:      256px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 14px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

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

/* ============================================================
   按钮
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 16px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-component);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn:hover { color: var(--primary); border-color: var(--primary); }
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
}
.btn-secondary {
    background: #fff;
    border-color: #d9d9d9;
    color: rgba(0,0,0,0.65);
}
.btn-secondary:hover {
    background: #f5f5f5;
    border-color: var(--primary);
    color: var(--primary);
}
.btn-danger {
    background: var(--error);
    border-color: var(--error);
    color: #fff;
}
.btn-danger:hover {
    background: #ff7875;
    border-color: #ff7875;
    color: #fff;
}
.btn-success {
    background: #39a106;
    border-color: #39a106;
    color: #fff;
}
.btn-success:hover {
    background: #73d13d;
    border-color: #73d13d;
    color: #fff;
}
.btn-sm { padding: 2px 8px; font-size: 13px; }
.btn-icon-only {
    padding: 2px 6px;
    min-width: 32px;
    text-align: center;
}
.btn-icon-only .btn-text {
    display: none;
}
.btn-lg { padding: 8px 24px; font-size: 16px; }
.btn-block { width: 100%; }

/* 禁用状态 */
.btn:disabled,
.btn:disabled:hover {
    opacity: 0.5;
    cursor: not-allowed;
    background: #bfbfbf;
    border-color: #bfbfbf;
    color: #fff;
}
.btn-danger:disabled,
.btn-danger:disabled:hover {
    background: #bfbfbf;
    border-color: #bfbfbf;
    color: #fff;
}

/* ============================================================
   表单
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text);
}
.form-group label .required-mark {
    color: var(--error);
    margin-left: 2px;
}
.form-control {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg-component);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(22,119,255,0.1);
}
.form-control::placeholder { color: var(--text-tertiary); }
textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control { cursor: pointer; }

.form-error {
    color: var(--error);
    font-size: 13px;
    margin-top: 4px;
}

/* ============================================================
   登录页面
   ============================================================ */
.login-page {
    min-height: 100vh;
    display: table;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #001529 0%, #0c3d7c 100%);
    background: var(--header-gradient, linear-gradient(135deg, #001529 0%, #0c3d7c 100%));
    padding: 0;
}
.login-page.admin-login {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e3a5f 100%);
    background: var(--header-gradient, linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e3a5f 100%));
}
.login-page .login-wrapper {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    padding: 40px 20px;
}
.login-page .login-card {
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 8px;
    border-radius: var(--radius, 8px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    box-shadow: var(--shadow-lg, 0 4px 20px rgba(0,0,0,0.15));
    padding: 36px 32px;
    text-align: left;
}
.login-page .site-footer {
    width: 100%;
    max-width: 400px;
    margin: 24px auto 0;
    text-align: center;
    padding: 12px 20px;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.8;
}
.login-page .site-footer a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}
.login-page .site-footer a:hover {
    color: #fff;
}
.login-page .site-footer .sep {
    margin: 0 6px;
    opacity: 0.5;
}
.login-page .site-footer .footer-brand {
    font-size: 13px;
    margin-bottom: 2px;
}
.login-page .site-footer .version {
    background: rgba(255,255,255,0.15);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
}
.login-page .site-footer .footer-beian {
    font-size: 11px;
    opacity: 0.8;
}
.login-page .site-footer .footer-beian a {
    text-decoration: none !important;
    border-bottom: none;
}
.login-card h2 {
    text-align: center;
    margin-bottom: 4px;
    font-size: 22px;
}
.login-card .subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 14px;
}
.login-card .hint {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-tertiary);
}
.login-card .links {
    text-align: center;
    margin-top: 12px;
}
.login-alert {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: var(--error);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 13px;
}

/* ============================================================
   站点头部
   ============================================================ */
.site-header {
    background: var(--header-bg);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .logo {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}
.site-header nav {
    display: flex;
    gap: 8px;
    align-items: center;
}
.site-header nav a,
.site-header nav button {
    color: rgba(255,255,255,0.85);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.site-header nav a:hover,
.site-header nav button:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* ============================================================
   内容容器
   ============================================================ */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
}
.page-title {
    margin-bottom: 24px;
}
.page-title h1 {
    font-size: 24px;
    margin-bottom: 4px;
}
.page-title .desc {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================================================
   Card grid (room list)
   ============================================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.room-card {
    background: var(--bg-component);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.room-card:hover { box-shadow: var(--shadow-lg); }
.room-card .card-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.room-card .card-head h3 {
    font-size: 16px;
    margin: 0;
}
.room-card .card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.room-card .card-desc {
    color: var(--text-secondary);
    font-size: 13px;
    min-height: 44px;
    margin-bottom: 12px;
}
.room-card .card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}
.room-card .card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.room-card .card-price {
    margin-top: auto;
    margin-bottom: 12px;
}
.room-card .card-price .label {
    font-size: 12px;
    color: var(--text-tertiary);
}
.room-card .card-price .amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--error);
}
.room-card .card-price .unit {
    font-size: 14px;
    color: var(--text-tertiary);
}
.room-card .card-price .no-price {
    color: var(--text-tertiary);
    font-size: 14px;
}

/* ============================================================
   标签 / 徽章
   ============================================================ */
.tag {
    display: inline-block;
    padding: 1px 8px;
    font-size: 12px;
    line-height: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid;
}
.tag-success { color: var(--success); border-color: var(--success); background: #f6ffed; }
.tag-error   { color: var(--error);   border-color: var(--error);   background: #fff2f0; }
.tag-warning { color: var(--warning); border-color: var(--warning); background: #fffbe6; }
.tag-info    { color: var(--primary); border-color: var(--primary); background: #e6f4ff; }
.tag-default { color: #8c8c8c;        border-color: #d9d9d9;        background: #fafafa; }

/* 满房红色文字（门市价/会员价位置提示） */
.full-badge { color: var(--error, #e74c3c); font-weight: 600; }

/* ============================================================
   后台布局
   ============================================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: var(--sidebar-w);
    background: var(--header-bg);
    color: #fff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 200;
}
.admin-sidebar .sidebar-header {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-sidebar .sidebar-header h2 {
    font-size: 16px;
    color: #fff;
    margin: 0;
}
.admin-sidebar .sidebar-nav {
    flex: 1;
    padding: 8px 0;
}
.admin-sidebar .sidebar-nav a {
    display: block;
    color: rgba(255,255,255,0.65);
    padding: 12px 24px;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.admin-sidebar .sidebar-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}
.admin-sidebar .sidebar-nav a.active {
    color: #fff;
    background: var(--primary);
    border-left-color: #fff;
}
.admin-sidebar .sidebar-footer {
    padding: 12px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
}
.admin-sidebar .sidebar-footer a {
    color: rgba(255,255,255,0.65);
}
.admin-sidebar .sidebar-footer a:hover {
    color: #fff;
}
.admin-main {
    flex: 1;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
}
.admin-topbar {
    background: #fff;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.admin-topbar .breadcrumb {
    font-size: 14px;
    color: var(--text-secondary);
}
.admin-topbar .user-info {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.admin-topbar .user-info a {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
}
.admin-topbar .user-info a:hover {
    color: #fff;
}
.admin-topbar .user-info .view-frontend {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
}
.admin-topbar .user-info .view-frontend:hover {
    color: #fff;
}

/* 管理员下拉框 */
.admin-topbar .user-dropdown {
    position: relative;
    display: inline-block;
}
.admin-topbar .user-dropdown-trigger {
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius);
    transition: background 0.2s;
    user-select: none;
}
.admin-topbar .user-dropdown-trigger:hover {
    background: var(--bg-hover);
}
.admin-topbar .user-dropdown-trigger .arrow {
    display: inline-block;
    margin-left: 4px;
    font-size: 10px;
    transition: transform 0.2s;
}
.admin-topbar .user-dropdown.open .user-dropdown-trigger .arrow {
    transform: rotate(180deg);
}
.admin-topbar .user-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 300;
    overflow: hidden;
}
.admin-topbar .user-dropdown.open .user-dropdown-menu {
    display: block;
}
.admin-topbar .user-dropdown-menu .dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
    color: var(--text);
}
.admin-topbar .user-dropdown-menu .dropdown-header strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
    color: var(--text);
}
.admin-topbar .user-dropdown-menu .dropdown-header small {
    color: var(--text-secondary);
    font-size: 12px;
}
.admin-topbar .user-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s;
}
.admin-topbar .user-dropdown-menu a:last-child {
    border-bottom: none;
}
.admin-topbar .user-dropdown-menu a:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

.admin-content {
    padding: 24px;
    flex: 1;
}

/* 移动端侧边栏切换 */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
}

/* ============================================================
   表格
   ============================================================ */
.table-wrap {
    background: var(--bg-component);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: visible;
}
.table-toolbar {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.table-toolbar .title {
    font-size: 16px;
    font-weight: 600;
}
.table-toolbar .actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.table-search {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.table-search select,
.table-search input {
    padding: 5px 10px;
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
}
.table-search select:focus,
.table-search input:focus {
    border-color: var(--primary);
}
table.data-table {
    width: 100%;
    border-collapse: collapse;
}
table.data-table th,
table.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}
table.data-table th {
    background: #fafafa;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tr:hover td { background: #fafafa; }
table.data-table .actions-cell {
    white-space: nowrap;
}
table.data-table .actions-cell a {
    margin-right: 8px;
    font-size: 13px;
}
table.data-table .actions-cell .delete-link {
    color: var(--error);
}
table.data-table .actions-cell .action-buttons {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}
.table-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-tertiary);
}
.table-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
}
.pagination {
    display: flex;
    gap: 4px;
    align-items: center;
}
.pagination a {
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 13px;
}
.pagination a:hover,
.pagination a.current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ============================================================
   Modal (CSS-only, uses :target or JS toggle)
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.show {
    display: flex;
}
.modal {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-head {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-head h3 { font-size: 16px; margin: 0; }
.modal-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-tertiary);
    line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-body { padding: 24px; }
.modal-footer {
    padding: 12px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    box-sizing: border-box;
}

/* ============================================================
   提示 / 闪现消息
   ============================================================ */
.alert {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
    border: 1px solid;
}
.alert-success { color: var(--success); border-color: #b7eb8f; background: #f6ffed; }
.alert-error   { color: var(--error);   border-color: #ffccc7; background: #fff2f0; }
.alert-warning { color: var(--warning); border-color: #ffe58f; background: #fffbe6; }

/* ---- 浮动提示 (toast) ---- */
.toast {
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 3000;
    padding: 10px 20px;
    border-radius: var(--radius, 8px);
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    max-width: 90%;
    width: auto;
    min-width: 200px;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: all 0.4s ease;
    margin-bottom: 0;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    transition: all 0.3s ease;
}
.toast-success {
    background: #f6ffed;
    color: #389e0d;
    border: 1px solid #b7eb8f;
}
.toast-error {
    background: #fff2f0;
    color: #cf1322;
    border: 1px solid #ffccc7;
}
.toast-info {
    background: #e6f7ff;
    color: #096dd9;
    border: 1px solid #91d5ff;
}

/* ============================================================
   骨架屏加载
   ============================================================ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 768px) {
    :root { --sidebar-w: 0px; }
    
    /* ---- 侧边栏汉堡菜单 ---- */
    .admin-sidebar {
        position: fixed;
        top: 0; bottom: 0; left: 0;
        width: 256px;
        transform: translateX(-100%);
        transition: transform 0.3s;
        z-index: 300;
    }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .sidebar-toggle { display: block; }
    
    /* ---- 卡片网格单列 ---- */
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    /* ---- 表格转卡片（移动端） ---- */
    .table-wrap { overflow-x: visible; }
    table.data-table,
    table.data-table thead,
    table.data-table tbody,
    table.data-table th,
    table.data-table td,
    table.data-table tr {
        display: block;
        width: 100%;
    }
    table.data-table thead { display: none; }
    table.data-table tbody tr {
        margin-bottom: 12px;
        background: var(--bg-component);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        padding: 12px 16px;
        border: 1px solid var(--border-light);
    }
    table.data-table tbody tr:last-child { margin-bottom: 0; }
    table.data-table td {
        border: none;
        padding: 8px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 14px;
        border-bottom: 1px solid var(--border-light);
    }
    table.data-table td:last-child { border-bottom: none; }
    table.data-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 13px;
        margin-right: 12px;
        flex-shrink: 0;
    }
    /* 操作列特殊处理 */
    /* 操作列按钮 — 统一外观 */
    table.data-table td.actions-cell::before { display: none; }
    table.data-table td.actions-cell {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 0 4px;
        border-top: 1px solid var(--border-light);
        border-bottom: none;
    }
    /* 操作按钮容器 — 水平居中排列 */
    table.data-table td.actions-cell .action-buttons {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: 8px;
        width: 100%;
    }
    /* 确保 form 元素也在 flex 流中 */
    table.data-table td.actions-cell .action-buttons form {
        display: inline-flex;
        margin: 0;
    }
    /* 操作按钮统一样式 — 实心彩色按钮 */
    table.data-table td.actions-cell .action-buttons {
        gap: 6px;
    }
    table.data-table td.actions-cell .action-buttons .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 6px 10px;
        font-size: 13px;
        min-height: 32px;
        line-height: 1.2;
        border-radius: var(--radius-sm);
        white-space: nowrap;
        border: none;
        cursor: pointer;
        text-decoration: none;
    }
    /* 图标按钮更窄小 */
    table.data-table td.actions-cell .action-buttons .btn-icon-only {
        padding: 4px 6px;
        min-width: 28px;
    }
    /* 实心蓝色按钮 */
    table.data-table td.actions-cell .action-buttons .btn-primary {
        background: var(--primary);
        color: #fff;
    }
    table.data-table td.actions-cell .action-buttons .btn-primary:active {
        background: var(--primary-active);
    }
    /* 实心红色按钮 */
    table.data-table td.actions-cell .action-buttons .btn-danger {
        background: var(--error);
        color: #fff;
    }
    table.data-table td.actions-cell .action-buttons .btn-danger:active {
        background: #ff7875;
    }
    /* 实心绿色按钮 */
    table.data-table td.actions-cell .action-buttons .btn-success {
        background: #39a106;
        border-color: #39a106;
        color: #fff;
    }
    table.data-table td.actions-cell .action-buttons .btn-success:active {
        background: #389e0d;
        border-color: #389e0d;
    }
    /* 禁用状态（覆盖 primary/danger 的背景色） */
    table.data-table td.actions-cell .action-buttons .btn:disabled,
    table.data-table td.actions-cell .action-buttons .btn:disabled:hover,
    table.data-table td.actions-cell .action-buttons .btn:disabled:active {
        opacity: 0.35;
        cursor: not-allowed;
        background: var(--primary) !important;
        border-color: var(--primary) !important;
        color: #fff !important;
        box-shadow: none !important;
    }
    table.data-table td.actions-cell .action-buttons .btn-danger:disabled,
    table.data-table td.actions-cell .action-buttons .btn-danger:disabled:hover,
    table.data-table td.actions-cell .action-buttons .btn-danger:disabled:active {
        background: var(--error) !important;
        border-color: var(--error) !important;
    }
    /* 轮播图片预览在卡片中适当缩小 */
    table.data-table td img {
        max-width: 120px;
        max-height: 80px;
        object-fit: cover;
        border-radius: 4px;
    }
    
    /* ---- 顶部栏紧凑 ---- */
    .site-header { padding: 0 12px; }
    .site-header .logo { font-size: 16px; }
    
    /* ---- 内容区紧凑 ---- */
    .content,
    .admin-content { padding: 16px 12px; }
    
    /* ---- 工具栏垂直堆叠 ---- */
    .table-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px 16px;
    }
    .table-search {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .table-search select,
    .table-search input,
    .table-search .btn { width: 100%; }
    
    /* ---- 登录页面 ---- */
    .login-page .login-wrapper { padding: 24px 16px; }
    .login-page .login-card {
        padding: 28px 20px;
        max-width: 100%;
    }
    .login-page .site-footer {
        max-width: 100%;
        font-size: 11px;
        padding: 10px 16px;
    }
    .login-page .site-footer .sep { display: none; }
    .login-page .site-footer .footer-beian {
        display: block;
        margin-top: 4px;
    }
    
    /* ---- 表单控件触摸优化 ---- */
    .form-group { margin-bottom: 16px; }
    .form-control {
        padding: 10px 14px;
        font-size: 16px; /* 防止 iOS 自动缩放 */
        min-height: 44px;
    }
    textarea.form-control { min-height: 100px; }
    select.form-control {
        padding-right: 30px;
        background-size: 16px;
    }
    .form-actions {
        flex-direction: column;
        gap: 8px;
    }
    .form-actions .btn { width: 100%; }
    
    /* ---- 按钮触摸优化 ---- */
    .btn {
        padding: 10px 16px;
        font-size: 15px;
        min-height: 44px;
    }
    .btn-sm {
        padding: 6px 12px;
        font-size: 13px;
        min-height: 36px;
    }
    .btn-lg {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    /* ---- 管理页面顶部栏 ---- */
    .admin-topbar {
        padding: 0 12px;
        height: auto;
        min-height: 48px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .admin-topbar .breadcrumb { font-size: 14px; }
    .admin-topbar .user-info { font-size: 13px; }
    
    /* ---- 面板紧凑 ---- */
    .panel-header {
        padding: 14px 16px;
        flex-wrap: wrap;
        gap: 10px;
    }
    .panel-body { padding: 16px; }
    
    /* ---- 分页触摸优化 ---- */
    .pagination a {
        padding: 8px 14px;
        font-size: 14px;
        min-width: 40px;
        text-align: center;
    }
    
    /* ---- 模态框全屏适配 ---- */
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    .modal {
        max-width: 100%;
        width: 100%;
        border-radius: 12px 12px 0 0;
        max-height: 92vh;
    }
    .modal-head { padding: 14px 16px; }
    .modal-body { padding: 16px; }
    .modal-footer {
        padding: 12px 16px;
        flex-direction: column;
        gap: 8px;
    }
    .modal-footer .btn { width: 100%; }
    
    /* ---- 表格操作列 ---- */
    table.data-table .actions-cell > div,
    table.data-table .actions-cell {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    table.data-table .actions-cell a,
    table.data-table .actions-cell button,
    table.data-table .actions-cell form {
        margin: 0 !important;
    }
    
    /* ---- 图片预览适配 ---- */
    .uploaded-images-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* 删除确认对话框 */
.confirm-dialog-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.confirm-dialog-overlay.show {
    display: flex;
}
.confirm-dialog {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 420px;
    width: 100%;
    animation: dialogSlideIn 0.3s ease;
    overflow: hidden;
}
@keyframes dialogSlideIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.confirm-dialog-header {
    padding: 20px 24px 0;
    text-align: center;
}
.confirm-dialog-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    background: #fff2f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--error);
}
.confirm-dialog-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 8px;
}
.confirm-dialog-body {
    padding: 8px 24px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}
.confirm-dialog-footer {
    padding: 0 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
}
.confirm-dialog-footer .btn {
    flex: 1;
    max-width: 120px;
    padding: 10px 20px;
    font-size: 15px;
    min-height: 44px;
}
@media (max-width: 768px) {
    .confirm-dialog-overlay { padding: 16px; }
    .confirm-dialog { max-width: 100%; }
    .confirm-dialog-footer { flex-direction: column; }
    .confirm-dialog-footer .btn { max-width: none; width: 100%; }
}
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 250;
}
.sidebar-overlay.show { display: block; }

/* ---- 用户头像 ---- */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    border: 2px solid #e8e8e8;
}
.user-avatar-default {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1677ff;
    background: var(--primary, #1677ff);
    color: #fff;
    display: inline-block;
    line-height: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    vertical-align: middle;
}
.avatar-preview {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e8e8e8;
    vertical-align: middle;
}
.avatar-upload-hint {
    font-size: 12px;
    color: rgba(0,0,0,0.45);
    margin-top: 4px;
}
.user-avatar-clickable {
    cursor: pointer;
    transition: opacity 0.2s;
    position: relative;
}
.user-avatar-clickable:hover {
    opacity: 0.7;
}
.user-avatar-clickable:hover::after {
    content: '📷';
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 12px;
    background: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e8e8e8;
}
.user-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    color: #fff;
}
.avatar-col {
    text-align: center;
}

/* ---- 日志页面 ---- */
.log-tabs {
    display: inline-block;
    margin-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}
.log-tab {
    display: inline-block;
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(0,0,0,0.65);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    text-decoration: none;
    transition: all 0.2s;
}
.log-tab:hover {
    color: #1677ff;
    color: var(--primary, #1677ff);
}
.log-tab.active {
    color: #1677ff;
    color: var(--primary, #1677ff);
    border-bottom-color: #1677ff;
    border-bottom-color: var(--primary, #1677ff);
}
.log-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}
.log-type-operation {
    background: #e6f4ff;
    color: #1677ff;
}
.log-type-login {
    background: #f6ffed;
    color: #52c41a;
}
.log-ip {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    color: rgba(0,0,0,0.65);
}
.log-detail-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(0,0,0,0.65);
    font-size: 13px;
}
.log-detail-cell:hover {
    white-space: normal;
}
.log-pagination {
    display: inline-block;
    margin-top: 16px;
}
.log-pagination a, .log-pagination span {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    color: rgba(0,0,0,0.65);
}
.log-pagination a:hover {
    border-color: #1677ff;
    border-color: var(--primary, #1677ff);
    color: #1677ff;
    color: var(--primary, #1677ff);
}
.log-pagination .current {
    background: #1677ff;
    background: var(--primary, #1677ff);
    color: #fff;
    border-color: #1677ff;
    border-color: var(--primary, #1677ff);
}
.log-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.log-toolbar .log-search {
    display: inline-block;
}
.log-toolbar .log-search input {
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    outline: none;
    width: 200px;
}
.log-toolbar .log-search input:focus {
    border-color: #1677ff;
    border-color: var(--primary, #1677ff);
}
@media (max-width: 768px) {
    .log-toolbar { flex-direction: column; align-items: flex-start; gap: 8px; }
    .log-toolbar .log-search input { width: 100%; }
}

/* ===== 房价牌设置页样式（原 price-board.php 内联） ===== */
.settings-section {
    margin-bottom: 32px;
}
.settings-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}
.settings-section-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.style-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s;
    background: var(--bg-component);
}
.style-card:hover { border-color: var(--primary); }
.style-card.active { border-color: var(--primary); background: rgba(22,119,255,0.05); }
.style-card input { display: none; }
.style-preview {
    width: 80px;
    height: 60px;
    margin-bottom: 8px;
    border-radius: 4px;
    overflow: hidden;
}
.preview-mini {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg);
    display: flex;
    flex-direction: column;
}
.preview-mini-header { height: 10px; background: var(--header-bg); }
.preview-mini-body { flex: 1; display: flex; align-items: center; justify-content: center; }
.preview-mini-price { height: 10px; background: var(--primary); opacity: .5; }
.style-name { font-size: 13px; color: var(--text-secondary); }
.style-card.active .style-name { color: var(--primary); font-weight: 600; }

.preview-mini-hotel {
    width: 100%;
    height: 100%;
    display: flex;
    gap: 2px;
    background: var(--bg);
    padding: 2px;
}
.preview-mini-hotel-table {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-component);
    border-radius: 2px;
}
.preview-mini-hotel-table .preview-mini-row {
    flex: 1;
    border-bottom: 1px solid var(--border);
}
.preview-mini-hotel-carousel {
    width: 30px;
    background: var(--border);
    border-radius: 2px;
}

.settings-actions {
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ===== 导航图标样式（V12 SPA 框架） ===== */
.nav-icon {
    display: inline-block;
    margin-right: 8px;
    font-size: 16px;
    line-height: 1;
}
.nav-label {
    display: inline-block;
}

/* ===== 通用 hint 提示文字 ===== */
.form-group .hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    margin-bottom: 0;
}

/* ===== 复选框表单 ===== */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.form-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.form-checkbox span {
    font-size: 14px;
    color: var(--text);
}

/* ===== 面板标题 ===== */
.panel-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}
