:root {
    --miho-blue: #1a9fff;
    --miho-dark-blue: #0d7acc;
    --miho-light-blue: #e6f4ff;
    --miho-bg: #f5f9ff;
    --miho-card: #ffffff;
    --miho-text: #333;
    --miho-text-light: #666;
    --miho-border: #d9e6f2;
    --miho-font: 'MiHoYo', 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

/* 自定义字体定义 */
@font-face {
    font-family: 'MiHoYo';
    src: url('mihoyo.ttf') format('truetype'),
        url('mihoyo.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* 优化加载时的字体渲染行为 */
    }
@font-face {
    font-family: 'MiHoYo';
    src: url('mihoyo.ttf') format('truetype'),
        url('mihoyo.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
    }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    font-family: var(--miho-font);

}

body {
    background-color: var(--miho-bg);
    color: var(--miho-text);
    overflow-x: hidden;
    font-family: var(--miho-font);
}

.container {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
    width: 220px;
    background: linear-gradient(135deg, var(--miho-blue), var(--miho-dark-blue));
    color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.logo {
    text-align: center;
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
    padding: 30px 32px 18px 16px;
}

.logo h2 {
    font-size: 20px;
    font-weight: 500;
    margin-top: 10px;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 20px;
}

.nav-link {
    display: block;
    padding: 20px 25px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    font-size: 20px;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
}

.nav-link.active {
    font-weight: bold;
}

.nav-link i {
    margin-right: 10px;
    font-size: 16px;
}

.submenu {
    list-style: none;
    padding-left: 20px;
    display: none;
}

.submenu.show {
    display: block;
}

.submenu .nav-link {
    padding: 16px 25px;
    font-size: 16px;
}

/* 主内容区样式 */
.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--miho-border);
}

.header h1 {
    font-size: 24px;
    color: var(--miho-blue);
    font-weight: 500;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-right: 20px;
    background-color: var(--miho-light-blue);
}

.user-name {
    margin-right: 15px;
    font-weight: 500;
    color: #4ea4dc;
}

.logout-btn {
    background-color: var(--miho-blue);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: var(--miho-dark-blue);
}

/* 卡片样式 */
.card {
    background-color: var(--miho-card);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    padding: 20px;
    position: relative;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--miho-border);
}

.card-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--miho-blue);
}

.card-tool {
    position: relative;
}

.help-icon {
    color: #fff;
    cursor: help;
    font-size: 18px;
    margin-left: 10px;
    background-color: var(--miho-blue);
    width: 30px;
    height: 30px;
    display: block;
    border-radius: 50px;
    text-align: center;
    line-height: 30px;
}

.tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    width: 250px;
    font-size: 13px;
    display: none;
}

.help-icon:hover + .tooltip {
    display: block;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--miho-border);
    text-align: center;
}

.data-table th {
    background-color: var(--miho-light-blue);
    color: var(--miho-blue);
    font-weight: 500;
}

.data-table tr:hover {
    background-color: var(--miho-light-blue);
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--miho-blue);
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

/* 图表容器 */
.chart-container {
    width: 100%;
    height: 400px;
    margin-top: 30px;
}

/* 地图容器 */
.map-container {
    width: 100%;
    position: relative;
}

.map-notice {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 评分系统样式 */
.rating-item {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 6px;
    background-color: var(--miho-light-blue);
}

.rating-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.rating-title {
    font-weight: 500;
    color: var(--miho-blue);
}

.rating-stars {
    color: #ffc107;
    font-size: 16px;
}

.rating-comments {
    margin-top: 15px;
    display: flex;
    gap: 1%;
    flex-wrap: wrap;
}

.comment-item {
    padding: 12px;
    margin-bottom: 20px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    min-width: 24%;
    max-width: 24%;
}

.comment-item.pinned {
    border-left: 3px solid var(--miho-blue);
}

.comment-content {
    margin-bottom: 8px;
    line-height: 1.5;
    height: 106px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--miho-text-light);
}

.comment-likes {
    color: var(--miho-blue);
    font-weight: 500;
}

.comment-actions {
    position: absolute;
    top: 10px;
    right: 10px;
}

.comment-btn {
    background: none;
    border: none;
    color:rgb(231, 66, 66);
    cursor: pointer;
    margin-left: 8px;
    font-size: 12px;
    font-size: 16px;
}

.comment-btn:hover {
    color: var(--miho-blue);
}

.add-comment {
    margin-top: 20px;
}

.comment-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--miho-border);
    border-radius: 4px;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 10px;
}

.comment-submit {
    background-color: var(--miho-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    float: right;
}

.comment-submit:hover {
    background-color: var(--miho-dark-blue);
}

/* 标签页样式 */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--miho-border);
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    color: var(--miho-text-light);
    position: relative;
}

.tab.active {
    color: var(--miho-blue);
    font-weight: 500;
}

.tab.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--miho-blue);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 登录页面样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(90deg, #158edd, #cbebff);
}

.login-box {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 400px;
    text-align: center;
}

.login-logo {
    margin-bottom: 30px;
}

.logo img{
    width: 80%;
}

.login-title {
    font-size: 24px;
    color: #4ea4dc;
    margin-bottom: 20px;
    font-weight: 800;
}

.login-input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid var(--miho-border);
    border-radius: 4px;
    font-size: 14px;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--miho-blue);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.login-btn:hover {
    background-color: var(--miho-dark-blue);
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .sidebar {
        width: 180px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.page-item {
    margin: 0 5px;
}

.page-link {
    display: block;
    padding: 6px 12px;
    border: 1px solid var(--miho-border);
    border-radius: 4px;
    color: var(--miho-text);
    text-decoration: none;
}

.page-link:hover,
.page-link.active {
    background-color: var(--miho-blue);
    color: white;
    border-color: var(--miho-blue);
}

/* 新增评分系统样式 */
.pv-selector {
    margin-bottom: 20px;
  }
  
  .pv-selector select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--miho-border);
    border-radius: 4px;
    font-size: 16px;
  }
  
  .rating-display {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .big-stars {
    font-size: 24px;
    color: #ffc107;
    margin-right: 10px;
  }
  
  .rating-score {
    font-size: 30px;
    font-weight: bold;
  }
  
  .rating-count {
    font-size: 16px;
    color: var(--miho-text-light);
  }
  
  .admin-badge {
    background-color: var(--miho-blue);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 8px;
  }
  
  /* 评论弹幕样式 */
  .comment-barrage {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
    pointer-events: none;
    z-index: 100;
  }
  
  .comment-bubble {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    white-space: nowrap;
    pointer-events: auto;
    transition: transform 0.5s linear;
    max-width: 400px;
  }
  
  .comment-bubble.pinned {
    background-color: rgba(26, 159, 255, 0.9);
    color: white;
  }
  
  .barrage-likes {
    margin-left: 8px;
    color: #ff6b6b;
  }
  /* 新增到<style>标签中 */

/* 官方评论标识 */
.official-comment {
    border-left: 3px solid var(--miho-blue);
    background-color: #f0f8ff;
}
.official-tag {
    background: var(--miho-blue);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 10px;
}

/* 评分系统优化 */
.large-stars {
    font-size: 24px;
    color: #ffc107;
}
.stats {
    margin: 15px 0;
    font-size: 16px;
    color: var(--miho-text-light);
}

/* 表格编辑样式 */
.editable input {
    border: 1px solid var(--miho-blue);
    border-radius: 4px;
    padding: 5px;
    width: 120px;
    text-align: center;
}

/* 新增到<style>标签末尾 */
/* 按钮样式 */
.btn-primary {
    background: var(--miho-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}
.btn-secondary {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

/* 评分系统优化 */
.rating-header {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}
.rating-meta {
    display: flex;
    gap: 15px;
    font-size: 16px;
}
.star-large {
    font-size: 24px;
    color: #ffc107;
}

/* 官方评论标识 */
.comment-official {
    position: relative;
    border-left: 3px solid var(--miho-blue);
}
.comment-official::before {
    content: "官方";
    background: var(--miho-blue);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 10px;
    position: absolute;
    top:-12px;
}

/* 移除所有关于stage-content的CSS样式 */
/* 保留以下基本样式即可 */

.tabs {
    display: flex;
    border-bottom: 1px solid var(--miho-border);
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    color: var(--miho-text-light);
    position: relative;
}

.tab.active {
    color: var(--miho-blue);
    font-weight: 500;
}

.tab.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--miho-blue);
}

    /* 修改卡片容器为 Flex 布局，并允许换行 */
    .stage-container {
        display: flex;
        flex-direction: column; /* 垂直排列 */
    }
    
    /* 默认隐藏所有卡片 */
    .stage-content {
        display: none;
        order: 2; /* 默认顺序 */
    }
    
    /* 当前激活的卡片置顶 */
    .stage-content.active {
        display: block;
        order: 1; /* 强制置顶 */
    }

.card {
    background-color: var(--miho-card);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    padding: 20px;
}

.login-logo-img img{
    width: 66%;
    padding: 20px 0;
}

.login-box p{
    font-size: 14px;
margin-top: 20px;    
}

.form-input{
    border: none;
    font-size: 16px;
}

.form-select{
    font-size: 26px;
    /* border: 1px solid rgba(102,102,102,.2); */
    border: none;
    margin-right: 20px;
    padding: 0 20px;
}

.comment-user {
    color: #666;
    padding: 6px 0 10px 0;
    font-size: 16px;
}

.comment-content{
    font-size: 20px;
    padding: 14px 0 14px 0;
}

.comment-time{
    font-size: 16px;
    color: #9a9a9a;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
}

.close-modal {
    font-size: 24px;
    cursor: pointer;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.text-muted {
    color: #999;
    opacity: 0.9;
}

.btn-delete{
    border: none;
    font-size: 16px;
    color: rgb(125, 125, 125);
    background-color: #fff;
    cursor: pointer;
}

.btn-delete-banzhu{
    color: rgb(236, 58, 58) !important;
}

.region-count {
    border: none !important;
    text-align: center !important;
}

.province-name {
    border: none !important;
    text-align: center !important;
}