@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700;900&display=swap');

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

:root {
    --china-red: #C41E3A;
    --china-red-dark: #8B0000;
    --china-red-light: #E8B4B8;
    --classic-blue: #1E3A5F;
    --classic-blue-light: #4A6FA5;
    --classic-blue-pale: #D4E4F7;
    --gold: #C9A961;
    --gold-light: #E0C98A;
    --ink-black: #2C2C2C;
    --paper: #F7F3E9;
    --paper-dark: #EDE8D8;
    --shadow: rgba(30, 58, 95, 0.1);
    --shadow-strong: rgba(30, 58, 95, 0.25);
}

body {
    font-family: 'Noto Serif SC', 'SimSun', serif;
    background: var(--paper);
    color: var(--ink-black);
    line-height: 1.8;
    min-height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a961' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.top-border {
    height: 6px;
    background: linear-gradient(90deg, var(--china-red-dark), var(--china-red), var(--gold), var(--classic-blue), var(--classic-blue-light));
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    background: linear-gradient(135deg, var(--classic-blue) 0%, var(--classic-blue-light) 100%);
    color: white;
    padding: 0 20px;
    position: fixed;
    top: 6px;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 2px 15px var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.navbar-brand {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand .brand-icon {
    width: 32px;
    height: 32px;
    background: var(--china-red);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

.navbar-menu {
    display: flex;
    gap: 5px;
    list-style: none;
    align-items: center;
}

.navbar-menu a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.navbar-menu a:hover {
    background: rgba(255,255,255,0.15);
}

.navbar-menu a.active {
    background: var(--china-red);
    border: 1px solid var(--gold);
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-badge {
    background: var(--china-red);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    border: 1px solid var(--gold);
    cursor: pointer;
    transition: all 0.3s;
}

.user-badge:hover {
    background: var(--china-red-dark);
}

#app {
    margin-top: 72px;
    min-height: calc(100vh - 72px);
    padding-bottom: 60px;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.hero-header {
    background: linear-gradient(135deg, var(--classic-blue) 0%, var(--classic-blue-light) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: -30px -20px 30px;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0 L100 50 L50 100 L0 50 Z' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='1'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: var(--china-red);
    color: white;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
    letter-spacing: 2px;
    border: 2px solid var(--gold);
}

.hero-header h1 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 4px;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    letter-spacing: 3px;
}

.hero-divider {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 25px auto;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px var(--shadow);
    border-top: 4px solid var(--china-red);
    position: relative;
}

.card::after {
    content: '';
    position: absolute;
    top: 10px; right: 10px;
    width: 30px; height: 30px;
    border-top: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
    opacity: 0.5;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--classic-blue);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--china-red-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-title .icon {
    width: 36px;
    height: 36px;
    background: var(--china-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    font-weight: 700;
}

.highlight-box {
    background: linear-gradient(135deg, var(--classic-blue-pale), var(--paper));
    border-left: 4px solid var(--classic-blue);
    padding: 18px;
    margin: 18px 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box p {
    margin-bottom: 8px;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 10px 0 10px 35px;
    position: relative;
    border-bottom: 1px dashed var(--paper-dark);
}

.feature-list li::before {
    content: '\25C6';
    position: absolute;
    left: 8px;
    color: var(--china-red);
    font-size: 13px;
}

.feature-list li:last-child {
    border-bottom: none;
}

.ornament {
    text-align: center;
    color: var(--gold);
    font-size: 22px;
    margin: 20px 0;
    letter-spacing: 10px;
}

.tag-badge {
    display: inline-block;
    background: var(--classic-blue-pale);
    color: var(--classic-blue);
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 12px;
    margin: 2px;
    border: 1px solid var(--classic-blue-light);
}

.tag-badge.red {
    background: var(--china-red-light);
    color: var(--china-red-dark);
    border-color: var(--china-red);
}

.tag-badge.gold {
    background: var(--gold-light);
    color: var(--ink-black);
    border-color: var(--gold);
}

.tag-badge.green {
    background: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.module-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 20px var(--shadow);
    border-top: 4px solid var(--china-red);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-strong);
}

.module-card.blue-border {
    border-top-color: var(--classic-blue);
}

.module-card.gold-border {
    border-top-color: var(--gold);
}

.module-card h3 {
    font-size: 24px;
    color: var(--classic-blue);
    margin-bottom: 12px;
    font-weight: 700;
}

.module-card .module-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--china-red), var(--china-red-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    border: 3px solid var(--gold);
}

.module-card.blue-border .module-icon {
    background: linear-gradient(135deg, var(--classic-blue), var(--classic-blue-light));
}

.module-card.gold-border .module-icon {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--ink-black);
}

.module-card.admin-card {
    border-top-color: #dc3545;
}

.module-card.admin-card .module-icon {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-color: var(--gold);
}

.module-card p {
    color: var(--ink-black);
    font-size: 14px;
    line-height: 1.7;
}

.module-card .module-stats {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--paper-dark);
}

.module-card .stat {
    text-align: center;
}

.module-card .stat-num {
    font-size: 24px;
    font-weight: 900;
    color: var(--china-red);
}

.module-card .stat-label {
    font-size: 12px;
    color: #666;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    font-family: inherit;
    text-decoration: none;
    text-align: center;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--china-red);
    color: white;
    border: 1px solid var(--china-red-dark);
}

.btn-primary:hover {
    background: var(--china-red-dark);
}

.btn-secondary {
    background: var(--classic-blue);
    color: white;
    border: 1px solid var(--classic-blue);
}

.btn-secondary:hover {
    background: var(--classic-blue-light);
}

.btn-gold {
    background: var(--gold);
    color: var(--ink-black);
    border: 1px solid var(--gold);
}

.btn-gold:hover {
    background: var(--gold-light);
}

.btn-outline {
    background: transparent;
    color: var(--classic-blue);
    border: 1px solid var(--classic-blue);
}

.btn-outline:hover {
    background: var(--classic-blue);
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-sm {
    padding: 5px 14px;
    font-size: 13px;
}

.court-layout {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px var(--shadow);
    border: 1px solid var(--paper-dark);
}

.court-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--china-red-light);
}

.court-header h3 {
    font-size: 22px;
    color: var(--classic-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.court-header .court-num {
    width: 36px;
    height: 36px;
    background: var(--china-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    border: 2px solid var(--gold);
}

.court-meta {
    font-size: 13px;
    color: #666;
}

.hall-card {
    background: var(--paper);
    border-radius: 8px;
    padding: 18px;
    border: 1px solid var(--paper-dark);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    border-left: 3px solid var(--gold);
}

.hall-card:hover {
    border-left-color: var(--china-red);
    box-shadow: 0 4px 15px var(--shadow);
    transform: translateX(3px);
}

.hall-card .hall-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink-black);
    margin-bottom: 6px;
    line-height: 1.5;
}

.hall-card .hall-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.hall-card .hall-num {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
    color: var(--gold);
    font-weight: 700;
}

.building-section {
    margin-bottom: 20px;
}

.building-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--china-red);
    margin-bottom: 12px;
    padding: 8px 12px;
    background: var(--china-red-light);
    border-radius: 6px;
    display: inline-block;
}

.tower-layout {
    background: linear-gradient(135deg, var(--classic-blue) 0%, var(--classic-blue-light) 100%);
    color: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px var(--shadow);
}

.tower-layout h3 {
    font-size: 22px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tower-layout .tower-meta {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.floor-section {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    border-left: 3px solid var(--gold);
}

.floor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.floor-header .floor-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold);
}

.floor-header .floor-permission {
    font-size: 12px;
    background: rgba(196,30,58,0.8);
    padding: 3px 10px;
    border-radius: 12px;
}

.hall-detail-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hall-detail-overlay.active {
    display: flex;
}

.hall-detail-modal {
    background: var(--paper);
    border-radius: 10px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    border-top: 6px solid var(--china-red);
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
}

.hall-detail-modal .modal-header {
    background: linear-gradient(135deg, var(--classic-blue), var(--classic-blue-light));
    color: white;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hall-detail-modal .modal-header h3 {
    font-size: 22px;
    font-weight: 700;
}

.hall-detail-modal .modal-close {
    background: var(--china-red);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    border: 1px solid var(--gold);
}

.hall-detail-modal .modal-body {
    padding: 30px;
}

.hall-detail-modal .info-row {
    display: flex;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--paper-dark);
}

.hall-detail-modal .info-label {
    width: 100px;
    font-weight: 700;
    color: var(--classic-blue);
    flex-shrink: 0;
}

.hall-detail-modal .info-value {
    color: var(--ink-black);
    flex: 1;
}

.hall-detail-modal .hall-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid var(--paper-dark);
    line-height: 2;
}

.permission-lock {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
}

.permission-public {
    background: #d4edda;
    color: #155724;
}

.permission-sightseeing {
    background: var(--classic-blue-pale);
    color: var(--classic-blue);
}

.permission-collection {
    background: var(--gold-light);
    color: var(--ink-black);
}

.permission-founder {
    background: var(--china-red-light);
    color: var(--china-red-dark);
}

footer {
    background: var(--classic-blue);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    position: relative;
}

.footer-divider {
    width: 80px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto 15px;
}

footer p {
    opacity: 0.8;
    font-size: 14px;
    letter-spacing: 1px;
}

.admin-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    min-height: calc(100vh - 120px);
}

.admin-sidebar {
    background: white;
    border-radius: 10px;
    padding: 20px 0;
    box-shadow: 0 4px 20px var(--shadow);
    border-top: 4px solid var(--classic-blue);
    height: fit-content;
    position: sticky;
    top: 80px;
}

.admin-sidebar h3 {
    font-size: 16px;
    color: var(--classic-blue);
    padding: 10px 20px;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--china-red-light);
}

.admin-sidebar .menu-item {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    color: var(--ink-black);
    transition: all 0.3s;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-sidebar .menu-item:hover {
    background: var(--paper);
    border-left-color: var(--gold);
}

.admin-sidebar .menu-item.active {
    background: var(--classic-blue-pale);
    border-left-color: var(--china-red);
    color: var(--classic-blue);
    font-weight: 700;
}

.admin-content {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 20px var(--shadow);
    border-top: 4px solid var(--china-red);
}

.admin-content h2 {
    font-size: 22px;
    color: var(--classic-blue);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--china-red-light);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    background: var(--classic-blue);
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
}

.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--paper-dark);
}

.data-table tr:hover {
    background: var(--paper);
}

.data-table .actions {
    display: flex;
    gap: 6px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 700;
    color: var(--classic-blue);
    margin-bottom: 6px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--paper-dark);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: var(--paper);
    color: var(--ink-black);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--china-red);
    box-shadow: 0 0 0 2px var(--china-red-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: linear-gradient(135deg, var(--classic-blue-pale), var(--paper));
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid var(--china-red);
    text-align: center;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 900;
    color: var(--china-red);
}

.stat-card .stat-name {
    font-size: 13px;
    color: var(--classic-blue);
    margin-top: 5px;
}

.stat-card.blue {
    border-left-color: var(--classic-blue);
}

.stat-card.blue .stat-value {
    color: var(--classic-blue);
}

.stat-card.gold {
    border-left-color: var(--gold);
}

.stat-card.gold .stat-value {
    color: var(--gold);
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.search-bar input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--paper-dark);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: var(--paper);
}

.search-bar select {
    padding: 10px 14px;
    border: 1px solid var(--paper-dark);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: var(--paper);
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--paper);
    border-radius: 10px;
    max-width: 550px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    border-top: 6px solid var(--china-red);
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
}

.modal-box .modal-header {
    padding: 20px 25px;
    border-bottom: 2px solid var(--china-red-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-box .modal-header h3 {
    font-size: 20px;
    color: var(--classic-blue);
}

.modal-box .modal-body {
    padding: 25px;
}

.modal-box .modal-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--paper-dark);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.toast {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--classic-blue);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--shadow-strong);
    z-index: 3000;
    transform: translateX(400px);
    transition: transform 0.3s;
    border-left: 4px solid var(--gold);
    max-width: 350px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left-color: #28a745;
}

.toast.error {
    border-left-color: #dc3545;
}

.toast.warning {
    border-left-color: var(--gold);
}

.permission-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.permission-option {
    padding: 10px 18px;
    border: 2px solid var(--paper-dark);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--paper);
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.permission-option:hover {
    border-color: var(--gold);
}

.permission-option.selected {
    border-color: var(--china-red);
    background: var(--china-red-light);
    color: var(--china-red-dark);
    font-weight: 700;
}

.login-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(30,58,95,0.85);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.login-box {
    background: var(--paper);
    border-radius: 12px;
    padding: 30px;
    max-width: 360px;
    width: 90%;
    border-top: 6px solid var(--china-red);
    box-shadow: 0 10px 50px rgba(0,0,0,0.4);
    text-align: center;
}

.login-box h2 {
    color: var(--classic-blue);
    margin-bottom: 8px;
    font-size: 22px;
}

.login-box p {
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

.login-box .role-select {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.login-box .role-btn {
    padding: 15px 10px;
    border: 2px solid var(--paper-dark);
    border-radius: 8px;
    cursor: pointer;
    background: white;
    transition: all 0.3s;
    font-family: inherit;
    font-size: 14px;
    text-align: center;
}

.login-box .role-btn:hover {
    border-color: var(--gold);
}

.login-box .role-btn.selected {
    border-color: var(--china-red);
    background: var(--china-red-light);
    color: var(--china-red-dark);
}

.login-box .role-btn .role-icon {
    font-size: 24px;
    margin-bottom: 6px;
    display: block;
}

.login-box .role-btn .role-name {
    font-weight: 700;
    font-size: 14px;
    display: block;
    margin-bottom: 2px;
}

.login-box .role-btn .role-desc {
    font-size: 11px;
    color: #888;
    display: block;
    margin-top: 2px;
    line-height: 1.4;
}

.member-dashboard {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
}

.member-sidebar {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 20px var(--shadow);
    border-top: 4px solid var(--gold);
    height: fit-content;
    position: sticky;
    top: 80px;
}

.member-sidebar .member-info {
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--china-red-light);
    margin-bottom: 15px;
}

.member-sidebar .member-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 3px solid var(--china-red);
}

.member-sidebar .member-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--classic-blue);
}

.member-sidebar .member-role {
    font-size: 12px;
    color: var(--china-red);
    margin-top: 3px;
}

.member-content {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 20px var(--shadow);
    border-top: 4px solid var(--china-red);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state .empty-icon {
    font-size: 60px;
    margin-bottom: 15px;
    color: var(--paper-dark);
}

.empty-state h3 {
    color: var(--classic-blue);
    margin-bottom: 10px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--classic-blue);
    margin-bottom: 15px;
    padding-left: 12px;
    border-left: 4px solid var(--china-red);
}

.alert-box {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-info {
    background: var(--classic-blue-pale);
    border-left: 4px solid var(--classic-blue);
    color: var(--classic-blue);
}

.alert-warning {
    background: #fff3cd;
    border-left: 4px solid var(--gold);
    color: #856404;
}

.alert-danger {
    background: #f8d7da;
    border-left: 4px solid var(--china-red);
    color: var(--china-red-dark);
}

.alert-success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

/* ========== 平板端适配 (<=1024px) ========== */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-layout {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        position: static;
    }
    .admin-sidebar .menu-item {
        display: inline-block;
        padding: 8px 16px;
    }
    .member-dashboard {
        grid-template-columns: 1fr;
    }
    .member-sidebar {
        position: static;
    }
}

/* ========== 手机端全面优化 (<=768px) ========== */
@media (max-width: 768px) {
    /* 导航栏移动端优化 */
    .navbar {
        height: 54px;
        padding: 0 12px;
    }
    .navbar-brand {
        font-size: 14px;
        letter-spacing: 1px;
        gap: 6px;
    }
    .navbar-brand .brand-icon {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
    .navbar-menu {
        display: none;
    }
    .navbar-user {
        gap: 6px;
    }
    .user-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
    .top-border {
        height: 4px;
    }
    #app {
        margin-top: 60px;
    }

    /* 移动端底部导航 - 与电脑端顶部导航栏配色完全一致 */
    .mobile-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--classic-blue) 0%, var(--classic-blue-light) 100%);
        z-index: 998;
        box-shadow: 0 -2px 15px var(--shadow);
        border-top: 2px solid var(--gold);
        align-items: center;
    }
    .mobile-nav-item {
        flex: 1;
        text-align: center;
        padding: 8px 4px 10px;
        color: white;
        text-decoration: none;
        font-size: 11px;
        transition: all 0.2s;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        letter-spacing: 1px;
    }
    .mobile-nav-item.active {
        color: white;
        background: var(--china-red);
        border: 1px solid var(--gold);
        border-radius: 6px;
        margin: 4px 6px;
        padding: 6px 4px 8px;
    }
    .mobile-nav-item:not(.active):hover {
        background: rgba(255,255,255,0.15);
        border-radius: 6px;
    }
    .mobile-nav-item .nav-icon {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        font-weight: 700;
        background: rgba(255,255,255,0.1);
        border: 2px solid rgba(255,255,255,0.3);
    }
    .mobile-nav-item.active .nav-icon {
        background: rgba(255,255,255,0.2);
        border-color: var(--gold);
    }

    /* Hero区域 */
    .hero-header {
        padding: 40px 16px 35px;
        margin: -24px -16px 20px;
    }
    .hero-header h1 {
        font-size: 24px;
        letter-spacing: 2px;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    }
    .hero-subtitle {
        font-size: 14px;
        letter-spacing: 1px;
    }
    .hero-badge {
        font-size: 11px;
        padding: 5px 14px;
        letter-spacing: 1px;
    }
    .hero-divider {
        width: 80px;
        height: 2px;
        margin: 18px auto;
    }

    /* 页面容器 */
    .page-container {
        padding: 20px 12px 80px;
    }

    /* 卡片 - 保持电脑端装饰效果 */
    .card {
        padding: 18px 14px;
        margin-bottom: 18px;
        border-radius: 8px;
        border-top-width: 4px;
        box-shadow: 0 4px 20px var(--shadow);
    }
    .card::after {
        top: 6px;
        right: 6px;
        width: 22px;
        height: 22px;
        border-top-width: 2px;
        border-right-width: 2px;
        opacity: 0.5;
    }
    .card-title {
        font-size: 18px;
        margin-bottom: 14px;
        padding-bottom: 10px;
        border-bottom-width: 2px;
        gap: 10px;
    }
    .card-title .icon {
        width: 30px;
        height: 30px;
        font-size: 13px;
        background: var(--china-red);
        border: 2px solid var(--gold);
    }

    /* 院落布局 - 保持完整装饰 */
    .court-layout {
        padding: 18px 14px;
        margin-bottom: 18px;
        border-radius: 8px;
        border: 1px solid var(--paper-dark);
        box-shadow: 0 4px 20px var(--shadow);
    }
    .court-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 14px;
        padding-bottom: 12px;
        border-bottom: 2px solid var(--china-red-light);
    }
    .court-header h3 {
        font-size: 18px;
        color: var(--classic-blue);
    }
    .court-header .court-num {
        width: 30px;
        height: 30px;
        font-size: 14px;
        background: var(--china-red);
        border: 2px solid var(--gold);
    }
    .court-meta {
        font-size: 12px;
        color: #666;
        line-height: 1.6;
    }

    /* 建筑区域 */
    .building-section {
        margin-bottom: 14px;
    }
    .building-title {
        font-size: 14px;
        padding: 6px 10px;
        margin-bottom: 10px;
        background: var(--china-red-light);
        color: var(--china-red-dark);
        border-radius: 6px;
    }

    /* 展厅卡片 - 保持金色左边框 */
    .hall-card {
        padding: 14px 12px;
        margin-bottom: 0;
        border-left-width: 3px;
        border-left-color: var(--gold);
        background: var(--paper);
        border: 1px solid var(--paper-dark);
        border-left: 3px solid var(--gold);
        border-radius: 8px;
    }
    .hall-card .hall-name {
        font-size: 13px;
        font-weight: 700;
        color: var(--ink-black);
        line-height: 1.5;
        padding-right: 40px;
        min-height: 40px;
    }
    .hall-card .hall-num {
        font-size: 10px;
        color: var(--gold);
        font-weight: 700;
    }
    .hall-card .hall-tags {
        gap: 4px;
        margin-top: 6px;
    }
    .hall-card:active {
        transform: translateX(2px);
        box-shadow: 0 2px 10px var(--shadow);
        border-left-color: var(--china-red);
    }

    /* 阁楼 - 保持蓝渐变背景 */
    .tower-layout {
        padding: 18px 14px;
        border-radius: 8px;
        background: linear-gradient(135deg, var(--classic-blue) 0%, var(--classic-blue-light) 100%);
        color: white;
        box-shadow: 0 4px 20px var(--shadow);
    }
    .tower-layout h3 {
        font-size: 18px;
        color: white;
    }
    .tower-layout h3 span {
        background: var(--china-red);
        border: 2px solid var(--gold);
    }
    .tower-meta {
        font-size: 12px;
        opacity: 0.8;
        margin-bottom: 14px;
    }

    /* 网格 */
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* 模块卡片 - 保持红金渐变装饰 */
    .module-card {
        padding: 20px 16px;
        border-radius: 8px;
        border-top-width: 4px;
        box-shadow: 0 4px 20px var(--shadow);
        overflow: hidden;
    }
    .module-card::before {
        content: '';
        position: absolute;
        top: -30px;
        right: -30px;
        width: 100px;
        height: 100px;
        border: 2px solid var(--gold);
        border-radius: 50%;
        opacity: 0.08;
    }
    .module-card h3 {
        font-size: 20px;
        color: var(--classic-blue);
    }
    .module-card p {
        font-size: 13px;
        color: var(--ink-black);
    }
    .module-card .module-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
        margin-bottom: 12px;
        border: 3px solid var(--gold);
    }
    .module-card .module-stats {
        gap: 10px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px dashed var(--paper-dark);
    }
    .module-card .stat-num {
        font-size: 20px;
        color: var(--china-red);
        font-weight: 900;
    }
    .module-card .stat-label {
        font-size: 11px;
        color: #666;
    }

    /* 统计卡片 - 保持彩色左边框 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 18px;
    }
    .stat-card {
        padding: 14px 10px;
        border-radius: 8px;
        border-left-width: 4px;
        box-shadow: 0 2px 10px var(--shadow);
    }
    .stat-card .stat-value {
        font-size: 24px;
        font-weight: 900;
        color: var(--china-red);
    }
    .stat-card .stat-name {
        font-size: 11px;
        color: var(--classic-blue);
    }
    .stat-card.blue {
        border-left-color: var(--classic-blue);
    }
    .stat-card.blue .stat-value {
        color: var(--classic-blue);
    }
    .stat-card.gold {
        border-left-color: var(--gold);
    }
    .stat-card.gold .stat-value {
        color: var(--gold);
    }

    /* 搜索栏 */
    .search-bar {
        flex-direction: column;
        gap: 8px;
    }
    .search-bar input,
    .search-bar select {
        width: 100%;
        padding: 10px 12px;
        font-size: 14px;
        font-family: inherit;
        background: var(--paper);
        color: var(--ink-black);
        border: 1px solid var(--paper-dark);
    }

    /* 表单 */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .form-group {
        margin-bottom: 14px;
    }
    .form-group label {
        font-size: 13px;
        color: var(--classic-blue);
        font-weight: 700;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-family: inherit;
        background: var(--paper);
        color: var(--ink-black);
    }

    /* 弹窗 */
    .hall-detail-overlay {
        padding: 0;
        align-items: flex-end;
        background: rgba(0,0,0,0.6);
    }
    .hall-detail-modal {
        border-radius: 16px 16px 0 0;
        max-height: 92vh;
        border-top-width: 5px;
        border-top-color: var(--china-red);
        box-shadow: 0 -5px 30px rgba(0,0,0,0.3);
    }
    .hall-detail-modal .modal-header {
        padding: 18px 20px;
        background: linear-gradient(135deg, var(--classic-blue), var(--classic-blue-light));
        color: white;
    }
    .hall-detail-modal .modal-header h3 {
        font-size: 18px;
        color: white;
    }
    .hall-detail-modal .modal-close {
        width: 30px;
        height: 30px;
        font-size: 14px;
        background: var(--china-red);
        border: 1px solid var(--gold);
    }
    .hall-detail-modal .modal-body {
        padding: 20px 16px;
    }
    .hall-detail-modal .info-row {
        flex-direction: column;
        gap: 4px;
        padding: 10px 0;
        border-bottom-style: dashed;
        border-bottom-color: var(--paper-dark);
    }
    .hall-detail-modal .info-label {
        width: auto;
        color: var(--classic-blue);
        font-weight: 700;
    }
    .hall-detail-modal .hall-content {
        padding: 16px;
        line-height: 1.8;
        background: white;
        border: 1px solid var(--paper-dark);
        border-radius: 8px;
    }
    .hall-detail-modal .hall-content ul {
        padding-left: 18px;
        font-size: 13px;
    }

    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
    .modal-box {
        border-radius: 16px 16px 0 0;
        max-height: 90vh;
        border-top-width: 5px;
        border-top-color: var(--china-red);
        box-shadow: 0 -5px 30px rgba(0,0,0,0.3);
    }
    .modal-box .modal-header {
        padding: 18px 20px;
    }
    .modal-box .modal-header h3 {
        font-size: 20px;
        color: var(--classic-blue);
    }
    .modal-box .modal-body {
        padding: 20px 16px;
    }
    .modal-box .modal-footer {
        padding: 12px 16px;
        flex-direction: column;
    }
    .modal-box .modal-footer .btn {
        width: 100%;
    }

    /* 登录 */
    .login-overlay {
        padding: 20px;
        align-items: center;
        background: rgba(30,58,95,0.85);
        backdrop-filter: blur(5px);
    }
    .login-box {
        padding: 25px 18px;
        width: 92%;
        max-width: 360px;
        border-radius: 12px;
        border-top: 5px solid var(--china-red);
        box-shadow: 0 10px 50px rgba(0,0,0,0.4);
    }
    .login-box h2 {
        font-size: 20px;
        color: var(--classic-blue);
    }
    .login-box p {
        font-size: 12px;
        margin-bottom: 16px;
    }
    .login-box .role-select {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .login-box .role-btn {
        padding: 10px 6px;
        font-size: 12px;
        border: 2px solid var(--paper-dark);
        background: white;
        color: var(--ink-black);
        font-family: inherit;
    }
    .login-box .role-btn.selected {
        border-color: var(--china-red);
        background: var(--china-red-light);
        color: var(--china-red-dark);
    }
    .login-box .role-btn .role-icon {
        font-size: 18px;
        margin-bottom: 3px;
    }
    .login-box .role-btn .role-name {
        font-size: 12px;
    }
    .login-box .role-btn .role-desc {
        font-size: 10px;
    }

    /* 标签徽章 - 颜色继承全局定义 */
    .tag-badge {
        font-size: 11px;
        padding: 2px 8px;
    }

    /* 权限标签 - 颜色继承全局定义 */
    .permission-lock {
        font-size: 11px;
        padding: 2px 6px;
    }

    /* 提示框 - 保持彩色左边框 */
    .highlight-box {
        padding: 14px;
        margin: 14px 0;
        border-radius: 0 8px 8px 0;
    }
    .highlight-box p {
        font-size: 13px;
    }

    /* 装饰 */
    .ornament {
        font-size: 18px;
        margin: 15px 0;
        color: var(--gold);
        letter-spacing: 10px;
    }

    /* 按钮 - 保持完整配色（颜色继承全局定义） */
    .btn {
        padding: 10px 18px;
        font-size: 14px;
        border-radius: 6px;
        letter-spacing: 1px;
        font-family: inherit;
    }
    .btn-sm {
        padding: 5px 10px;
        font-size: 12px;
    }

    /* 会员仪表盘 */
    .member-dashboard {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .member-sidebar {
        position: static;
        padding: 16px;
        border-top-width: 4px;
        border-top-color: var(--gold);
        box-shadow: 0 4px 20px var(--shadow);
    }
    .member-sidebar .member-avatar {
        width: 50px;
        height: 50px;
        font-size: 24px;
        background: linear-gradient(135deg, var(--gold), var(--gold-light));
        border: 3px solid var(--china-red);
    }
    .member-sidebar .member-name {
        font-size: 16px;
        font-weight: 700;
        color: var(--classic-blue);
    }
    .member-sidebar .member-role {
        font-size: 12px;
        color: var(--china-red);
    }
    .member-content {
        padding: 16px;
        border-radius: 8px;
        border-top-color: var(--china-red);
        box-shadow: 0 4px 20px var(--shadow);
    }
    .member-content h2 {
        font-size: 18px;
        color: var(--classic-blue);
        border-bottom-color: var(--china-red-light);
    }

    /* 后台布局 */
    .admin-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .admin-sidebar {
        position: static;
        padding: 12px 0;
        display: flex;
        overflow-x: auto;
        gap: 0;
        border-top-color: var(--classic-blue);
    }
    .admin-sidebar h3 {
        display: none;
    }
    .admin-sidebar .menu-item {
        display: block;
        padding: 10px 14px;
        white-space: nowrap;
        font-size: 13px;
        border-left: none;
        border-bottom: 3px solid transparent;
        flex-shrink: 0;
        color: var(--ink-black);
    }
    .admin-sidebar .menu-item.active {
        border-bottom-color: var(--china-red);
        border-left-color: transparent;
        background: var(--classic-blue-pale);
        color: var(--classic-blue);
        font-weight: 700;
    }
    .admin-content {
        padding: 16px;
        border-radius: 8px;
        border-top-color: var(--china-red);
        box-shadow: 0 4px 20px var(--shadow);
    }
    .admin-content h2 {
        font-size: 18px;
        color: var(--classic-blue);
        border-bottom-color: var(--china-red-light);
    }

    /* 数据表格 */
    .data-table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .data-table th {
        background: var(--classic-blue);
        color: white;
        font-weight: 700;
    }
    .data-table td {
        border-bottom-color: var(--paper-dark);
    }
    .data-table .actions {
        gap: 4px;
    }

    /* Toast */
    .toast {
        top: auto;
        bottom: 70px;
        right: 12px;
        left: 12px;
        max-width: none;
        font-size: 13px;
        padding: 12px 16px;
        transform: translateY(200px);
        background: var(--classic-blue);
        color: white;
        border-left-width: 4px;
        border-left-color: var(--gold);
    }
    .toast.show {
        transform: translateY(0);
    }

    /* 权限体系 */
    .grid-4 .col-card {
        padding: 14px;
        border: 1px solid var(--paper-dark);
        border-radius: 8px;
    }
    .grid-4 .col-card h4 {
        font-size: 15px;
    }

    /* 空状态 */
    .empty-state {
        padding: 40px 16px;
        color: #999;
    }
    .empty-state .empty-icon {
        font-size: 48px;
        color: var(--paper-dark);
    }
    .empty-state h3 {
        color: var(--classic-blue);
    }

    /* 页脚 - 保持深蓝背景 */
    footer {
        padding: 20px 16px;
        margin-top: 30px;
        background: var(--classic-blue);
        color: white;
    }
    footer p {
        font-size: 12px;
        opacity: 0.8;
    }
}

/* ========== 小屏手机优化 (<=400px) ========== */
@media (max-width: 400px) {
    .hero-header h1 {
        font-size: 22px;
    }
    .hero-subtitle {
        font-size: 13px;
    }
    .grid-4 {
        grid-template-columns: 1fr;
    }
    .module-card .module-stats {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .module-card .stat {
        min-width: 70px;
    }
    .login-box .role-select {
        grid-template-columns: 1fr;
    }
}

/* 移动端导航仅在手机显示 */
.mobile-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
    }
}
