﻿/* 全局样式重置（保留） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}
body {
    background-color: #F5F5F5; /* 灰色背景 */
    color: #000000; /* 黑色文字 */
    line-height: 1.5;
}
/* 容器（保留） */
.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}
/* 卡片样式（保留） */
.card {
    background-color: #FFFFFF; /* 白色卡片 */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}
/* 按钮样式（保留） */
.btn-orange {
    background-color: #f95b40; /* 橙色 */
    color: #FFFFFF; /* 白色文字 */
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.btn-orange:hover {
    background-color: #e84a30; /* 深橙色 hover */
}
.btn-gray {
    background-color: #999999; /* 灰色 */
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
}
.btn-gray:hover {
    background-color: #777777;
}
/* 表单样式（保留） */
.form-group { margin-bottom: 25px; }
.form-group a {
    color: #333333; /* 深灰色 */
    text-decoration: none;
}
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #000000;
}
.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #999999;
    border-radius: 4px;
    font-size: 16px;
}
.form-control:focus {
    outline: none;
    border-color: #f95b40; /* 橙色焦点 */
    box-shadow: 0 0 0 2px rgba(249, 91, 64, 0.2);
}
.text-danger {
    color: #f95b40;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}
.text-success {
    color: #28a745;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}
/* 顶部栏样式（电脑端强化） */
.nav-top {
    background-color: #FFFFFF;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px 0;
}
/* 电脑端：强制横向布局，LOGO左、导航右（彻底覆盖冲突） */
.nav-top .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important; /* 禁止换行，避免LOGO与导航错位 */
}
.logo {
    display: flex !important; /* 强制LOGO横向排列 */
    align-items: center !important;
    text-decoration: none;
}
.logo img {
    height: 40px;
    margin-right: 10px;
}
.logo-text {
    font-size: 20px;
    color: #000000;
    font-weight: bold;
}
.logo-text-extra {
    font-size: 20px;
    color: #000000;
    font-weight: bold;
    display: inline-block !important; /* 电脑端强制显示完整名称 */
}
.nav-right {
    display: flex !important; /* 强制导航横向排列 */
    gap: 20px !important;
    align-items: center !important;
}
.nav-right a {
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    display: inline-block !important; /* 电脑端强制显示导航链接 */
}
.nav-right a:hover {
    color: #f95b40; /* 橙色 hover */
}
/* 前台导航栏（电脑端核心修复） */
.front-nav {
    background-color: #FFFFFF;
    padding: 10px 0;
    border-bottom: 1px solid #F5F5F5;
}
/* 电脑端：强制横向布局，分类左、搜索右（排除任何冲突） */
.front-nav .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}
/* 手机端下拉样式（保留，不改动） */
.nav-dropdown-btn {
    background-color: #FFFFFF;
    border: 1px solid #999999;
    border-radius: 4px;
    padding: 8px 16px;
    color: #000000;
    font-size: 16px;
    width: 100%;
    text-align: left;
}
.nav-dropdown-btn:hover, .nav-dropdown-btn:focus {
    border-color: #f95b40;
    color: #f95b40;
    box-shadow: none;
}
.nav-dropdown-menu {
    width: 100%;
    border: 1px solid #F5F5F5;
    border-radius: 4px;
    margin-top: 5px;
}
.nav-dropdown-menu .dropdown-item {
    color: #000000;
    font-size: 16px;
    padding: 10px 15px;
}
.nav-dropdown-menu .dropdown-item:hover {
    background-color: #F5F5F5;
    color: #f95b40;
}
/* 电脑端横向导航（强制生效，排除隐藏） */
.nav-links {
    display: flex !important; /* 强制横向，不被隐藏 */
    gap: 25px !important;
    align-items: center !important;
    visibility: visible !important; /* 排除visibility隐藏干扰 */
    opacity: 1 !important; /* 排除透明度隐藏干扰 */
}
.nav-links a {
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    display: inline-block !important; /* 强制显示每个导航项 */
}
.nav-links a:hover {
    color: #f95b40;
}
/* 搜索栏（电脑端样式保留） */
.search-bar {
    display: flex !important;
    gap: 10px !important;
}
.search-input {
    padding: 8px 12px;
    border: 1px solid #999999;
    border-radius: 4px;
    width: 200px !important; /* 电脑端固定宽度，不被拉伸 */
}
.search-btn {
    background-color: #f95b40;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
}
/* 手机端适配（已正常，不改动） */
@media (max-width: 768px) {
    .nav-top .container {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .nav-top .nav-right {
        margin-top: 15px;
        width: 100%;
        justify-content: flex-start;
    }
    .nav-top .nav-right a {
        margin-right: 15px;
        margin-left: 0;
    }
    .front-nav .container {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }
    .nav-links {
        display: none !important;
    }
    .search-bar {
        width: 100% !important;
    }
    .search-input {
        width: auto !important;
        flex: 1 !important;
    }
    .user-nav .container > a:not(.dropdown-toggle) {
        display: none !important;
    }
    .admin-sidebar {
        width: 150px !important;
    }
    .admin-content {
        margin-left: 150px !important;
    }
}
/* 底部栏样式（保留） */
.footer {
    background-color: #FFFFFF;
    margin-top: 30px;
    padding: 20px 0;
}
.footer-img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}
.footer-copyright {
    text-align: center;
    color: #999999;
    font-size: 14px;
}
.footer-copyright a {
    color: #999999;
    text-decoration: none;
}
.footer-copyright a:hover {
    color: #f95b40;
}
/* 会员中心导航（电脑端强化） */
.user-nav {
    background-color: #FFFFFF;
    padding: 15px 0;
    margin-bottom: 20px;
}
.user-nav .container {
    display: flex !important;
    gap: 20px !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}
.user-nav a {
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block !important; /* 强制显示导航项 */
}
.user-nav a:hover, .user-nav a.active {
    background-color: #f95b40;
    color: #FFFFFF;
}
/* 管理员后台导航（电脑端强化） */
.admin-container {
    display: flex !important;
    min-height: 100vh !important;
}
.admin-sidebar {
    width: 200px !important; /* 电脑端固定宽度 */
    background-color: #F5F5F5;
    padding: 20px 0;
    position: fixed !important;
    height: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.admin-sidebar-title {
    text-align: center;
    font-size: 18px;
    color: #000000;
    font-weight: bold;
    margin-bottom: 30px;
    padding: 0 10px;
}
.admin-nav {
    list-style: none;
}
.admin-nav li {
    margin-bottom: 5px;
}
.admin-nav a {
    display: block !important; /* 强制显示导航项 */
    padding: 12px 20px;
    color: #000000;
    text-decoration: none;
    font-size: 16px;
}
.admin-nav a:hover, .admin-nav a.active {
    background-color: #f95b40;
    color: #FFFFFF;
}
.admin-logout {
    margin-top: 50px;
    text-align: center;
}
.admin-logout a {
    color: #f95b40;
    text-decoration: none;
    font-size: 16px;
}
.admin-content {
    margin-left: 200px !important; /* 电脑端固定偏移 */
    padding: 20px;
    flex: 1 !important;
}
.admin-page-title {
    font-size: 22px;
    color: #000000;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #F5F5F5;
}
/* 卡片列表（电脑端保留） */
.card-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    margin-bottom: 30px;
}
.card-item {
    flex: 1 !important;
    min-width: 200px !important;
    max-width: calc(25% - 15px) !important; /* 电脑端4列 */
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}
.card-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.card-body {
    padding: 15px;
}
.card-title {
    font-size: 16px;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-title a {
    color: #000000;
    text-decoration: none;
}
.card-title a:hover {
    color: #f95b40;
}
.card-meta {
    font-size: 14px;
    color: #999999;
    margin-bottom: 5px;
}
/* 手机端卡片适配（已正常，不改动） */
@media (max-width: 768px) {
    .card-item {
        max-width: calc(50% - 10px); /* 平板2列 */
    }
}
@media (max-width: 480px) {
    .card-item {
        max-width: 100%; /* 手机1列 */
    }
}
/* 列表表格（保留） */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #F5F5F5;
}
.data-table th {
    background-color: #F5F5F5;
    font-weight: bold;
}
.data-table tr:hover {
    background-color: #fafafa;
}
/* 审核状态标签（保留） */
.status-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}
.status-pending {
    background-color: #f95b40;
    color: #FFFFFF;
}
.status-passed {
    background-color: #28a745;
    color: #FFFFFF;
}
/* 404页面样式（保留） */
.error-404 {
    text-align: center;
    padding: 50px 0;
    background-color: #FFFFFF;
    margin: 50px auto;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.error-404 h1 {
    font-size: 48px;
    color: #f95b40;
    margin-bottom: 20px;
}
.error-404 p {
    font-size: 18px;
    color: #999999;
    margin-bottom: 30px;
}
/* ========== 新增修复代码，放在CSS末尾，提升bootstrap响应式类权重 ========== */
@media (min-width:768px) {
    .d-md-none {
        display: none !important;
    }
}
@media (max-width:767.98px) {
    .d-md-none {
        display: block !important;
    }
}
.dropdown-menu {
    display: none !important;
}
.dropdown-menu.show {
    display: block !important;
}

