 :root {
            /* 浅色模式变量 */
            --bg-color-light: #f5f7fa;
            --card-bg-light: #ffffff;
            --text-color-light: #333333;
            --text-secondary-light: #777777;
            --shadow-light: 0 2px 8px rgba(0,0,0,0.1);
            --sidebar-bg-start-light: #4a90e2;
            --sidebar-bg-end-light: #357abd;
            --sidebar-hover-light: rgba(255, 255, 255, 0.2);
            
            /* 深色模式变量 */
            --bg-color-dark: #1a1a1a;
            --card-bg-dark: #2d2d2d;
            --text-color-dark: #e0e0e0;
            --text-secondary-dark: #aaaaaa;
            --shadow-dark: 0 2px 8px rgba(0,0,0,0.3);
            --sidebar-bg-start-dark: #2a2a3a;
            --sidebar-bg-end-dark: #1a1a2a;
            --sidebar-hover-dark: rgba(255, 255, 255, 0.1);
        }

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

        /* 隐藏滚动条 */
        ::-webkit-scrollbar {
            display: none; /* Chrome Safari */
        }
        
        ::-webkit-scrollbar-track {
            display: none;
        }
        
        ::-webkit-scrollbar-thumb {
            display: none;
        }
        
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none;  /* IE and Edge */

        body {
            font-family: 'Microsoft YaHei', sans-serif;
            background-color: var(--bg-color-dark);
            color: var(--text-color-dark);
            display: flex;
            min-height: 100vh;
            transition: background-color 0.3s ease, color 0.3s ease;
            overflow: hidden; /* 防止出现滚动条 */
        }

        /* 深色模式类 */
        body.dark-mode {
            background-color: var(--bg-color-dark);
            color: var(--text-color-dark);
        }

        /* 浅色模式类 */
        body.light-mode {
            background-color: var(--bg-color-light);
            color: var(--text-color-light);
        }

        /* 固定侧边栏 */
        .sidebar {
            width: 240px;
            background: linear-gradient(to bottom, var(--sidebar-bg-start-dark), var(--sidebar-bg-end-dark));
            color: white;
            height: 100vh;
            position: fixed;
            left: 0;
            top: 0;
            overflow-y: auto;
            z-index: 100;
            padding-top: 20px;
            transition: background 0.3s ease;
        }

        body.light-mode .sidebar {
            background: linear-gradient(to bottom, var(--sidebar-bg-start-light), var(--sidebar-bg-end-light));
        }

        .sidebar h2 {
            text-align: center;
            margin-bottom: 30px;
            font-size: 1.5rem;
        }

        .sidebar-menu {
            list-style-type: none;
            padding: 0 15px;
        }

        .menu-item {
            margin-bottom: 5px;
        }

        .menu-link {
            color: white;
            text-decoration: none;
            display: block;
            padding: 12px 15px;
            border-radius: 5px;
            transition: all 0.3s ease;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .menu-link:hover {
            background-color: var(--sidebar-hover-dark);
        }

        body.light-mode .menu-link:hover {
            background-color: var(--sidebar-hover-light);
        }

        .submenu {
            list-style-type: none;
            padding-left: 20px;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
        }

        .submenu.open {
            max-height: 500px;
        }

        .submenu-link {
            color: white;
            text-decoration: none;
            display: block;
            padding: 10px 15px;
            border-radius: 5px;
            transition: all 0.3s ease;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .submenu-link:hover {
            background-color: var(--sidebar-hover-dark);
        }

        body.light-mode .submenu-link:hover {
            background-color: var(--sidebar-hover-light);
        }

        .toggle-icon {
            transition: transform 0.3s ease;
        }

        .toggle-icon.rotated {
            transform: rotate(90deg);
        }

        /* 发布按钮样式 */
        .publish-btn {
            background-color: #2ecc71;
            color: white;
            border: none;
            border-radius: 4px;
            padding: 4px 8px;
            font-size: 0.7rem;
            cursor: pointer;
            transition: background-color 0.3s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 50px;
        }

        .publish-btn:hover {
            background-color: #27ae60;
        }

        .publish-btn i {
            margin-right: 3px;
        }

        /* 主内容区域 */
        .main-content {
            flex: 1;
            margin-left: 240px;
            padding: 20px;
            overflow-y: auto; /* 仅主内容区允许滚动 */
            height: 100vh;
        }

        /* 滚动公告栏 */
        .announcement-bar {
            background-color: var(--card-bg-dark);
            border-radius: 8px;
            padding: 12px 20px;
            box-shadow: var(--shadow-dark);
            margin-bottom: 20px;
            overflow: hidden;
            transition: background-color 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            align-items: center;
        }

        body.light-mode .announcement-bar {
            background-color: var(--card-bg-light);
            box-shadow: var(--shadow-light);
        }

        .announcement-title {
            display: inline-block;
            margin-right: 15px;
            color: #e74c3c;
            font-weight: bold;
            height: 100%;
            display: flex;
            align-items: center;
        }

        .announcement-content {
            display: inline-block;
            width: calc(100% - 100px);
            white-space: nowrap;
            overflow: hidden;
        }

        .announcement-message {
            display: inline-block;
            padding: 8px 12px;
            margin-right: 15px;
            border-radius: 20px;
            font-size: 0.9rem;
            white-space: nowrap;
        }

        .tag {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 0.8rem;
            margin-right: 5px;
        }

        .tag-notice {
            background-color: #3498db;
            color: white;
        }

        .tag-urgent {
            background-color: #e74c3c;
            color: white;
        }

        .tag-personal {
            background-color: #9b59b6;
            color: white;
        }

        .announcement-marquee {
            display: inline-block;
            animation: marquee 20s linear infinite;
            padding-left: 100%;
            cursor: pointer;
        }

        .announcement-marquee:hover {
            animation-play-state: paused;
        }

        @keyframes marquee {
            0% { transform: translateX(0); }
            100% { transform: translateX(-100%); }
        }

        /* 位置导航栏 */
        .breadcrumb {
            background-color: var(--card-bg-dark);
            border-radius: 8px;
            padding: 12px 20px;
            box-shadow: var(--shadow-dark);
            margin-bottom: 20px;
            transition: background-color 0.3s ease, box-shadow 0.3s ease;
        }

        body.light-mode .breadcrumb {
            background-color: var(--card-bg-light);
            box-shadow: var(--shadow-light);
        }

        .breadcrumb-text {
            font-size: 0.9rem;
            color: var(--text-secondary-dark);
        }

        body.light-mode .breadcrumb-text {
            color: var(--text-secondary-light);
        }

        .breadcrumb a {
            color: #3498db;
            text-decoration: none;
        }

        body.light-mode .breadcrumb a {
            color: #2980b9;
        }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

        /* 会员详情卡片 */
        .member-card {
            background-color: var(--card-bg-dark);
            border-radius: 8px;
            padding: 25px;
            box-shadow: var(--shadow-dark);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            transition: background-color 0.3s ease, box-shadow 0.3s ease;
        }

        body.light-mode .member-card {
            background-color: var(--card-bg-light);
            box-shadow: var(--shadow-light);
        }

        .avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            margin-right: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            color: #777;
            position: relative;
            overflow: visible; /* 改为visible，使徽章可以超出头像边界 */
            border: 2px solid transparent;
        }

        .avatar img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            z-index: 1;
        }

        .director-badge {
            position: absolute;
            bottom: -8px;
            right: -8px;
            background-color: #f39c12;
            color: white;
            font-size: 0.7rem;
            padding: 3px 7px;
            border-radius: 10px;
            z-index: 3; /* 提高z-index确保徽章在最上层 */
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
            border: 2px solid var(--card-bg-dark);
        }

        body.light-mode .director-badge {
            border: 2px solid var(--card-bg-light);
        }

        .member-info {
            flex: 1;
        }

        .username {
            font-size: 1.5rem;
            font-weight: bold;
            margin-bottom: 5px;
        }

        .info-row {
            display: flex;
            gap: 30px;
            margin-top: 10px;
            flex-wrap: wrap;
        }

        .info-item {
            display: flex;
            flex-direction: column;
            min-width: 120px;
        }

        .info-label {
            font-size: 0.9rem;
            color: var(--text-secondary-dark);
        }

        body.light-mode .info-label {
            color: var(--text-secondary-light);
        }

        .info-value {
            font-size: 1.2rem;
            font-weight: bold;
            color: var(--text-color-dark);
        }

        body.light-mode .info-value {
            color: var(--text-color-light);
        }

        /* 快捷入口 - 超链接形式 */
        .quick-links {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }

        .quick-link {
            background-color: var(--card-bg-dark);
            border-radius: 8px;
            padding: 15px 20px;
            box-shadow: var(--shadow-dark);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 15px;
            transition: all 0.3s ease;
            color: var(--text-color-dark);
        }

        .quick-link:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.2);
            text-decoration: none;
            color: var(--text-color-dark);
        }

        body.light-mode .quick-link {
            background-color: var(--card-bg-light);
            box-shadow: var(--shadow-light);
            color: var(--text-color-light);
        }

        body.light-mode .quick-link:hover {
            box-shadow: 0 6px 12px rgba(0,0,0,0.1);
        }

        .quick-link-icon {
            font-size: 1.5rem;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .quick-link-text {
            font-size: 1rem;
            font-weight: 500;
        }

        /* 模式切换按钮 */
        .mode-toggle {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 101;
            background: var(--card-bg-dark);
            border: none;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            cursor: pointer;
            box-shadow: var(--shadow-dark);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            color: var(--text-color-dark);
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        body.light-mode .mode-toggle {
            background: var(--card-bg-light);
            box-shadow: var(--shadow-light);
            color: var(--text-color-light);
        }

        .mode-toggle:hover {
            transform: scale(1.1);
            transition: transform 0.2s ease;
        }
        
        /* 弹窗样式 */
        .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: var(--card-bg-light);
            width: 80%;
            height: 80%;
            border-radius: 12px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        body.dark-mode .modal-content {
            background-color: var(--card-bg-dark);
        }

        .modal-header {
            padding: 15px 20px;
            background-color: var(--sidebar-bg-start-dark);
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-top-left-radius: 12px;
            border-top-right-radius: 12px;
        }

        body.light-mode .modal-header {
            background-color: var(--sidebar-bg-start-light);
        }

        .modal-title {
            font-size: 1.2rem;
            font-weight: bold;
        }

        .close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-body {
            flex: 1;
            padding: 0;
            overflow: hidden;
        }

        .modal-iframe {
            width: 100%;
            height: 100%;
            border: none;
        }
        
  /* 头像修改卡片 */
        .avatar-card {
            background-color: var(--card-bg-dark);
            border-radius: 8px;
            padding: 25px;
            box-shadow: var(--shadow-dark);
            margin-bottom: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            transition: background-color 0.3s ease, box-shadow 0.3s ease;
        }

        body.light-mode .avatar-card {
            background-color: var(--card-bg-light);
            box-shadow: var(--shadow-light);
        }

        .avatar-title {
            font-size: 1.5rem;
            font-weight: bold;
            margin-bottom: 20px;
            color: var(--text-color-dark);
        }

        .avatar-container {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            overflow: hidden;
            margin-bottom: 20px;
            border: 3px solid var(--text-secondary-dark);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .avatar-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .avatar-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 3rem;
            color: var(--text-secondary-dark);
        }

        .upload-section {
            width: 100%;
            text-align: center;
            margin-top: 20px;
        }

        .file-input {
            display: none;
        }

        .upload-btn {
            background-color: #3498db;
            color: white;
            border: none;
            border-radius: 4px;
            padding: 12px 24px;
            cursor: pointer;
            font-size: 1rem;
            transition: background-color 0.3s ease;
            margin-bottom: 15px;
            display: inline-block;
        }

        .upload-btn:hover {
            background-color: #2980b9;
        }

        .actions {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 25px;
            width: 100%;
        }

        .btn {
            padding: 12px 24px;
            border: none;
            border-radius: 4px;
            font-size: 1rem;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .btn-primary {
            background-color: #2ecc71;
            color: white;
        }

        .btn-primary:hover {
            background-color: #27ae60;
        }

        .btn-secondary {
            background-color: #95a5a6;
            color: white;
        }

        .btn-secondary:hover {
            background-color: #7f8c8d;
        }
        

  /* 发送消息按钮 */
        .send-message-btn {
            display: inline-block;
            background-color: #3498db;
            color: white;
            text-decoration: none;
            padding: 10px 20px;
            border-radius: 4px;
            margin-bottom: 20px;
            transition: background-color 0.3s ease;
        }

        .send-message-btn:hover {
            background-color: #2980b9;
            color: white;
        }

        /* 消息列表卡片 */
        .message-card {
            background-color: var(--card-bg-dark);
            border-radius: 8px;
            padding: 20px;
            box-shadow: var(--shadow-dark);
            transition: background-color 0.3s ease, box-shadow 0.3s ease;
        }

        body.light-mode .message-card {
            background-color: var(--card-bg-light);
            box-shadow: var(--shadow-light);
        }

        .message-table {
            width: 100%;
            border-collapse: collapse;
        }

        .message-table th,
        .message-table td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid var(--text-secondary-dark);
        }

        body.light-mode .message-table th,
        body.light-mode .message-table td {
            border-bottom: 1px solid var(--text-secondary-light);
        }

        .message-table th {
            background-color: rgba(52, 152, 219, 0.2);
            font-weight: bold;
            color: var(--text-color-dark);
        }

        body.light-mode .message-table th {
            color: var(--text-color-light);
        }

        .message-table tr:last-child td {
            border-bottom: none;
        }

        .message-table tbody tr {
            background-color: rgba(45, 45, 45, 0.4);
            transition: background-color 0.3s ease;
        }

        body.light-mode .message-table tbody tr {
            background-color: rgba(255, 255, 255, 0.1);
        }

        .message-table tbody tr:nth-child(even) {
            background-color: rgba(45, 45, 45, 0.6);
        }

        body.light-mode .message-table tbody tr:nth-child(even) {
            background-color: rgba(240, 240, 240, 0.3);
        }

        .message-table tr:hover {
            background-color: rgba(52, 152, 219, 0.3);
        }

        .message-checkbox {
            width: 20px;
            height: 20px;
        }

        .message-title {
            color: var(--text-color-dark);
            text-decoration: none;
            font-weight: bold;
        }

        body.light-mode .message-title {
            color: var(--text-color-light);
        }

        .message-title:hover {
            text-decoration: underline;
        }

        .message-sender {
            color: var(--text-color-dark);
            font-weight: bold;
        }

        body.light-mode .message-sender {
            color: var(--text-color-light);
        }

        .message-time {
            color: var(--text-color-dark);
            font-weight: bold;
        }

        body.light-mode .message-time {
            color: var(--text-color-light);
        }

        .message-actions {
            display: flex;
            gap: 10px;
        }

        .action-btn {
            background-color: #95a5a6;
            color: white;
            border: none;
            border-radius: 4px;
            padding: 5px 10px;
            cursor: pointer;
            transition: background-color 0.3s ease;
            font-weight: bold;
        }

        .action-btn:hover {
            background-color: #7f8c8d;
        }

        .read-status {
            display: inline-block;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            margin-right: 8px;
        }

        .read {
            background-color: #2ecc71;
        }

        .unread {
            background-color: #e74c3c;
        }

        .controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 20px;
            padding-top: 15px;
            border-top: 1px solid var(--text-secondary-dark);
        }

        body.light-mode .controls {
            border-top: 1px solid var(--text-secondary-light);
        }

        .delete-btn {
            background-color: #e74c3c;
            color: white;
            border: none;
            border-radius: 4px;
            padding: 10px 20px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .delete-btn:hover {
            background-color: #c0392b;
        }

        .legend {
            display: flex;
            gap: 20px;
            margin-top: 15px;
            color: var(--text-secondary-dark);
            font-size: 0.9rem;
        }

        body.light-mode .legend {
            color: var(--text-secondary-light);
        }

        .legend-item {
            display: flex;
            alignItems: center;
            gap: 5px;
        }

        /* 文章信息列表样式 */
        .articles-section {
            background-color: var(--card-bg-dark);
            border-radius: 8px;
            padding: 25px;
            box-shadow: var(--shadow-dark);
            margin-top: 20px;
            transition: background-color 0.3s ease, box-shadow 0.3s ease;
        }

        body.light-mode .articles-section {
            background-color: var(--card-bg-light);
            box-shadow: var(--shadow-light);
        }

        .section-title {
            font-size: 1.5rem;
            font-weight: bold;
            margin-bottom: 20px;
            color: var(--text-color-dark);
        }

        body.light-mode .section-title {
            color: var(--text-color-light);
        }

        .article-list {
            list-style-type: none;
            padding: 0;
        }

        .article-item {
            padding: 15px 20px;
            border-bottom: 1px solid var(--text-secondary-dark);
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background-color 0.3s ease;
        }

        .article-item:last-child {
            border-bottom: none;
        }

        body.light-mode .article-item {
            border-bottom: 1px solid var(--text-secondary-light);
        }

        .article-item:hover {
            background-color: rgba(52, 152, 219, 0.2);
        }

        .article-info {
            flex: 1;
        }

        .article-title {
            font-size: 1.1rem;
            font-weight: bold;
            margin-bottom: 5px;
            color: var(--text-color-dark);
        }

        body.light-mode .article-title {
            color: var(--text-color-light);
        }

        .article-meta {
            font-size: 0.9rem;
            color: var(--text-secondary-dark);
        }

        body.light-mode .article-meta {
            color: var(--text-secondary-light);
        }

        .article-actions {
            display: flex;
            gap: 10px;
        }

        .article-btn {
            padding: 8px 15px;
            border: none;
            border-radius: 4px;
            font-size: 0.9rem;
            cursor: pointer;
            transition: background-color 0.3s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .view-btn {
            background-color: #3498db;
            color: white;
        }

        .view-btn:hover {
            background-color: #2980b9;
        }

        .edit-btn {
            background-color: #f39c12;
            color: white;
        }

        .edit-btn:hover {
            background-color: #d68910;
        }

        .delete-btn-article {
            background-color: #e74c3c;
            color: white;
        }

        .delete-btn-article:hover {
            background-color: #c0392b;
        }

        /* 分页样式 */
        .pagination {
            display: flex;
            justify-content: center;
            margin-top: 25px;
            gap: 10px;
        }

        .page-btn {
            padding: 8px 15px;
            border: 1px solid var(--text-secondary-dark);
            background-color: var(--card-bg-dark);
            color: var(--text-color-dark);
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        body.light-mode .page-btn {
            border: 1px solid var(--text-secondary-light);
            background-color: var(--card-bg-light);
            color: var(--text-color-light);
        }

        .page-btn.active {
            background-color: #3498db;
            color: white;
            border-color: #3498db;
        }

        .page-btn:hover:not(.active) {
            background-color: rgba(52, 152, 219, 0.2);
        }

        /* 分页样式 */
        .pagination {
            display: flex;
            justify-content: center;
            margin-top: 25px;
            gap: 10px;
        }

        .page-btn {
            padding: 8px 15px;
            border: 1px solid var(--text-secondary-dark);
            background-color: var(--card-bg-dark);
            color: var(--text-color-dark);
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        body.light-mode .page-btn {
            border: 1px solid var(--text-secondary-light);
            background-color: var(--card-bg-light);
            color: var(--text-color-light);
        }

        .page-btn.active {
            background-color: #3498db;
            color: white;
            border-color: #3498db;
        }

        .page-btn:hover:not(.active) {
            background-color: rgba(52, 152, 219, 0.2);
        }

        /* 链接样式：保持原有颜色不变 */
        a {
            color: inherit;
            text-decoration: none;
        }
        
        a:visited {
            color: inherit;
        }
        
        a:hover {
            color: inherit;
        }
        
        a:active {
            color: inherit;
        }
        
         /* 发布表单区域 */
        .form-section {
            background-color: var(--card-bg-dark);
            border-radius: 8px;
            padding: 25px;
            box-shadow: var(--shadow-dark);
            transition: background-color 0.3s ease, box-shadow 0.3s ease;
        }

        body.light-mode .form-section {
            background-color: var(--card-bg-light);
            box-shadow: var(--shadow-light);
        }

        .section-title {
            font-size: 1.5rem;
            font-weight: bold;
            margin-bottom: 20px;
            color: var(--text-color-dark);
        }

        body.light-mode .section-title {
            color: var(--text-color-light);
        }

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

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
            color: var(--text-color-dark);
        }

        body.light-mode .form-label {
            color: var(--text-color-light);
        }

        .form-control {
            width: 100%;
            padding: 10px;
            border-radius: 4px;
            border: 1px solid var(--text-secondary-dark);
            background-color: var(--card-bg-dark);
            color: var(--text-color-dark);
            font-size: 1rem;
            transition: border-color 0.3s ease;
        }

        body.light-mode .form-control {
            background-color: var(--card-bg-light);
            border: 1px solid var(--text-secondary-light);
            color: var(--text-color-light);
        }

        .form-control:focus {
            outline: none;
            border-color: #3498db;
        }

        textarea.form-control {
            min-height: 100px;
            resize: vertical;
        }

        .checkbox-group, .radio-group {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
        }

        .checkbox-item, .radio-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .checkbox-item input[type="checkbox"], 
        .radio-item input[type="radio"] {
            width: 16px;
            height: 16px;
        }

        .image-upload {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .upload-btn {
            background-color: #3498db;
            color: white;
            border: none;
            border-radius: 4px;
            padding: 8px 15px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: background-color 0.3s ease;
        }

        .upload-btn:hover {
            background-color: #2980b9;
        }

        .form-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 30px;
        }

        .btn {
            padding: 12px 30px;
            border: none;
            border-radius: 4px;
            font-size: 1rem;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .btn-submit {
            background-color: #2ecc71;
            color: white;
        }

        .btn-submit:hover {
            background-color: #27ae60;
        }

        .btn-reset {
            background-color: #95a5a6;
            color: white;
        }

        .btn-reset:hover {
            background-color: #7f8c8d;
        }
/* 发布者和栏目并排布局 */
        .publisher-category-container {
            display: flex;
            gap: 20px;
        }

        .publisher-group, .category-group {
            flex: 1;
        }

        /* 售价和字数并排布局 */
        .price-wordcount-container {
            display: flex;
            gap: 20px;
        }

        .price-group, .wordcount-group {
            flex: 1;
        }

        /* 链接样式：保持原有颜色不变 */
        a {
            color: inherit;
            text-decoration: none;
        }
        
        a:visited {
            color: inherit;
        }
        
        a:hover {
            color: inherit;
        }
        
        a:active {
            color: inherit;
        }
/* 课程列表样式 */
        .course-list-container {
            margin-top: 20px;
            border: 1px solid var(--text-secondary-dark);
            border-radius: 4px;
            padding: 15px;
        }

        .course-list-header {
            display: grid;
            grid-template-columns: 1fr 2fr 3fr 1fr 1fr;
            gap: 10px;
            font-weight: bold;
            margin-bottom: 10px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--text-secondary-dark);
        }

        .course-item {
            display: grid;
            grid-template-columns: 1fr 2fr 3fr 1fr 1fr;
            gap: 10px;
            margin-bottom: 10px;
            align-items: center;
        }

        .course-input {
            width: 100%;
            padding: 8px;
            border-radius: 4px;
            border: 1px solid var(--text-secondary-dark);
            background-color: var(--card-bg-dark);
            color: var(--text-color-dark);
        }

        body.light-mode .course-input {
            background-color: var(--card-bg-light);
            border: 1px solid var(--text-secondary-light);
            color: var(--text-color-light);
        }

        .course-input:focus {
            outline: none;
            border-color: #3498db;
        }

        .add-course-btn {
            background-color: #3498db;
            color: white;
            border: none;
            border-radius: 4px;
            padding: 8px 15px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: background-color 0.3s ease;
            margin-top: 10px;
        }

        .add-course-btn:hover {
            background-color: #2980b9;
        }

        .remove-course-btn {
            background-color: #e74c3c;
            color: white;
            border: none;
            border-radius: 4px;
            padding: 6px 10px;
            cursor: pointer;
            font-size: 0.8rem;
            transition: background-color 0.3s ease;
        }

        .remove-course-btn:hover {
            background-color: #c0392b;
        }

/* 位置导航栏 */
        .breadcrumb {
            background-color: var(--card-bg-dark);
            border-radius: 8px;
            padding: 12px 20px;
            box-shadow: var(--shadow-dark);
            margin-bottom: 20px;
            transition: background-color 0.3s ease, box-shadow 0.3s ease;
        }

        body.light-mode .breadcrumb {
            background-color: var(--card-bg-light);
            box-shadow: var(--shadow-light);
        }

        .breadcrumb-text {
            font-size: 0.9rem;
            color: var(--text-secondary-dark);
        }

        body.light-mode .breadcrumb-text {
            color: var(--text-secondary-light);
        }

        .breadcrumb a {
            color: #3498db;
            text-decoration: none;
        }

        body.light-mode .breadcrumb a {
            color: #2980b9;
        }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

        /* 栏目选择区域 */
        .category-section {
            background-color: var(--card-bg-dark);
            border-radius: 8px;
            padding: 25px;
            box-shadow: var(--shadow-dark);
            transition: background-color 0.3s ease, box-shadow 0.3s ease;
            margin-bottom: 20px;
        }

        body.light-mode .category-section {
            background-color: var(--card-bg-light);
            box-shadow: var(--shadow-light);
        }

        .section-title {
            font-size: 1.5rem;
            font-weight: bold;
            margin-bottom: 10px;
            color: var(--text-color-dark);
        }

        body.light-mode .section-title {
            color: var(--text-color-light);
        }

        .greeting-text {
            font-size: 1.1rem;
            margin-bottom: 15px;
            color: var(--text-color-dark);
        }

        body.light-mode .greeting-text {
            color: var(--text-color-light);
        }

        .instruction {
            font-size: 0.9rem;
            color: var(--text-secondary-dark);
            margin-bottom: 15px;
        }

        body.light-mode .instruction {
            color: var(--text-secondary-light);
        }

        .category-browser {
            background-color: rgba(45, 45, 45, 0.6);
            border-radius: 8px;
            padding: 15px;
            height: 400px;
            overflow-y: auto; /* 启用垂直滚动 */
            border: 1px solid var(--text-secondary-dark);
            margin-bottom: 15px;
        }

        body.light-mode .category-browser {
            background-color: rgba(255, 255, 255, 0.2);
            border: 1px solid var(--text-secondary-light);
        }

        .category-list {
            list-style-type: none;
            padding: 0;
            margin: 0;
        }

        .category-item {
            padding: 12px 15px;
            border-bottom: 1px solid var(--text-secondary-dark);
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: background-color 0.3s ease;
        }

        .category-item:last-child {
            border-bottom: none;
        }

        body.light-mode .category-item {
            border-bottom: 1px solid var(--text-secondary-light);
        }

        .category-item:hover {
            background-color: rgba(52, 152, 219, 0.2);
        }

        .category-info {
            flex: 1;
        }

        .category-title {
            font-size: 1rem;
            font-weight: bold;
            margin-bottom: 3px;
            color: var(--text-color-dark);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        body.light-mode .category-title {
            color: var(--text-color-light);
        }

        .category-icon {
            font-size: 1rem;
            width: 25px;
            height: 25px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .category-meta {
            font-size: 0.8rem;
            color: var(--text-secondary-dark);
            display: flex;
            gap: 10px;
        }

        body.light-mode .category-meta {
            color: var(--text-secondary-light);
        }

        .category-actions {
            display: flex;
            gap: 8px;
        }

        .category-btn {
            padding: 6px 12px;
            border: none;
            border-radius: 4px;
            font-size: 0.8rem;
            cursor: pointer;
            transition: background-color 0.3s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .view-btn {
            background-color: #3498db;
            color: white;
        }

        .view-btn:hover {
            background-color: #2980b9;
        }

        .edit-btn {
            background-color: #f39c12;
            color: white;
        }

        .edit-btn:hover {
            background-color: #d68910;
        }

        .delete-btn-category {
            background-color: #e74c3c;
            color: white;
        }

        .delete-btn-category:hover {
            background-color: #c0392b;
        }

        .create-btn {
            background-color: #2ecc71;
            color: white;
        }

        .create-btn:hover {
            background-color: #27ae60;
        }

        /* 终极栏目样式 */
        .ultimate-category {
            background-color: #3498db !important;
            color: white;
        }

        .ultimate-category .category-title,
        .ultimate-category .category-meta {
            color: white !important;
        }

        .ultimate-category .category-icon {
            background: linear-gradient(135deg, #2980b9 0%, #1f618d 100%);
        }

        .add-info-container {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .add-info-btn {
            padding: 10px 20px;
            background-color: #2ecc71;
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 1rem;
            cursor: pointer;
            transition: background-color 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .add-info-btn:hover {
            background-color: #27ae60;
        }

        .note {
            font-size: 0.9rem;
            color: var(--text-secondary-dark);
        }

        body.light-mode .note {
            color: var(--text-secondary-light);
        }

        /* 广告位样式 */
        .ad-banner {
            width: 100%;
            height: 150px;
            margin: 20px 0;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: var(--shadow-dark);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-color-dark);
            font-size: 1.5rem;
            font-weight: bold;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            transition: background 0.3s ease;
        }

        body.light-mode .ad-banner {
            box-shadow: var(--shadow-light);
            color: var(--text-color-light);
        }

        .ad-container {
            margin-top: 20px;
        }