/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "SimSun", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #E8F0E0;
    min-height: 100vh;
}

a {
    color: #0066CC;
    text-decoration: none;
}

a:hover {
    color: #FF6600;
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px;
}

/* ==================== 顶部横幅 ==================== */
.header {
    background: #8FBF7E;
    border: 2px solid #6B9F5A;
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.site-title {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.site-title a {
    color: #fff;
    text-decoration: none;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    justify-content: center;
    max-width: 500px;
}

.search-box input {
    width: 300px;
    padding: 10px 15px;
    border: 2px solid #5A8F4A;
    border-radius: 4px;
    font-size: 15px;
    outline: none;
    line-height: 1.4;
}

.search-box input:focus {
    border-color: #4A7F3A;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #6B9F5A;
    background: #A4D48E;
    color: #2D5016;
    cursor: pointer;
    border-radius: 4px;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1.4;
}

.btn:hover {
    background: #8FC878;
    text-decoration: none;
}

.btn-primary {
    background: #5A8F4A;
    color: #fff;
    border-color: #4A7F3A;
}

.btn-primary:hover {
    background: #4A7F3A;
}

.btn-danger {
    background: #D9534F;
    color: #fff;
    border-color: #C9302C;
}

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

.btn-small {
    padding: 6px 14px;
    font-size: 14px;
}

/* ==================== 主体布局 ==================== */
.main-wrapper {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sidebar {
    width: 220px;
    flex-shrink: 0;
}

.main-content {
    flex: 1;
    min-width: 0;
}

/* ==================== 面板样式 ==================== */
.panel {
    background: #fff;
    border: 1px solid #B8D4A8;
    border-radius: 3px;
    margin-bottom: 8px;
    overflow: hidden;
}

.panel-header {
    background: #C8E0B8;
    padding: 6px 12px;
    font-weight: bold;
    color: #2D5016;
    border-bottom: 1px solid #B8D4A8;
    font-size: 13px;
}

.panel-body {
    padding: 10px 12px;
}

/* ==================== 管理登录区 ==================== */
.admin-login input[type="password"] {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 2px;
    margin-bottom: 6px;
    font-size: 13px;
}

.admin-login .btn {
    width: 100%;
    text-align: center;
}

/* ==================== 目录列表 ==================== */
.dir-header {
    background: #8FBF7E;
    color: #fff;
    padding: 6px 12px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #6B9F5A;
    border-radius: 3px 3px 0 0;
}

.dir-list {
    background: #fff;
    border: 1px solid #B8D4A8;
    border-top: none;
    border-radius: 0 0 3px 3px;
}

.dir-item {
    padding: 8px 12px;
    border-bottom: 1px solid #E8F0E0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s;
}

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

.dir-item:hover {
    background: #F0F8E8;
}

.dir-item .fa-folder {
    color: #E6C040;
    font-size: 16px;
}

.dir-item .fa-folder-open {
    color: #E6C040;
    font-size: 16px;
}

.dir-item .fa-link {
    color: #5A8F4A;
    font-size: 14px;
}

.dir-item .fa-lock {
    color: #D9534F;
    font-size: 14px;
}

.dir-item .fa-star {
    color: #FF9900;
    font-size: 14px;
}

.dir-item-name {
    flex: 1;
    min-width: 0;
}

.dir-item-desc {
    color: #888;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.dir-item-count {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
}

/* 分类分组 */
.category-group {
    margin-bottom: 12px;
}

.category-title {
    background: #D4E8C8;
    padding: 6px 12px;
    font-weight: bold;
    color: #2D5016;
    border: 1px solid #B8D4A8;
    border-bottom: none;
    border-radius: 3px 3px 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-title .fa {
    color: #E6C040;
}

.category-links {
    background: #fff;
    border: 1px solid #B8D4A8;
    border-top: none;
    border-radius: 0 0 3px 3px;
}

/* ==================== 底部信息 ==================== */
.footer-bar {
    background: #F5F9F0;
    border: 1px solid #B8D4A8;
    padding: 6px 12px;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px;
}

.footer-info {
    text-align: center;
    padding: 15px;
    color: #888;
    font-size: 12px;
}

/* ==================== 链接详情页 ==================== */
.link-detail {
    background: #fff;
    border: 1px solid #B8D4A8;
    border-radius: 3px;
    padding: 20px;
}

.link-detail-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #E8F0E0;
}

.link-logo {
    width: 64px;
    height: 64px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    flex-shrink: 0;
}

.link-logo img {
    max-width: 48px;
    max-height: 48px;
}

.link-logo .fa {
    font-size: 32px;
    color: #ccc;
}

.link-info h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 5px;
}

.link-meta {
    color: #888;
    font-size: 13px;
}

.link-meta span {
    margin-right: 15px;
}

.link-description {
    padding: 15px;
    background: #F9FBF7;
    border: 1px solid #E0E8D8;
    border-radius: 3px;
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

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

.link-actions .btn {
    padding: 10px 30px;
    font-size: 15px;
}

/* 密码输入弹窗 */
.password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.password-modal.show {
    display: flex;
}

.password-box {
    background: #fff;
    padding: 25px;
    border-radius: 5px;
    width: 350px;
    max-width: 90%;
}

.password-box h3 {
    margin-bottom: 15px;
    color: #333;
}

.password-box input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.4;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.password-box input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
    outline: none;
}

.password-box .password-hint {
    margin-bottom: 15px;
    color: #D9534F;
    font-size: 13px;
    line-height: 1.5;
}

.password-box .btn-group {
    display: flex;
    gap: 10px;
}

.password-box .btn {
    flex: 1;
    text-align: center;
}

/* ==================== 申请页面 ==================== */
.apply-form {
    background: #fff;
    border: 1px solid #B8D4A8;
    border-radius: 3px;
    padding: 25px;
    max-width: 600px;
    margin: 0 auto;
}

.apply-form h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #2D5016;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
    font-size: 15px;
}

.form-group label .required {
    color: #D9534F;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.5;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #6B9F5A;
    box-shadow: 0 0 0 3px rgba(107, 159, 90, 0.15);
    outline: none;
}

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

.form-group .hint {
    font-size: 13px;
    color: #999;
    margin-top: 5px;
}

.captcha-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.captcha-row input {
    flex: 1;
    min-height: 46px;
}

.captcha-question {
    background: #F0F8E8;
    border: 1px solid #B8D4A8;
    padding: 12px 18px;
    border-radius: 6px;
    font-weight: bold;
    color: #2D5016;
    white-space: nowrap;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.5;
}

/* ==================== 消息提示 ==================== */
.msg {
    padding: 10px 15px;
    border-radius: 3px;
    margin-bottom: 15px;
}

.msg-success {
    background: #D4EDDA;
    border: 1px solid #C3E6CB;
    color: #155724;
}

.msg-error {
    background: #F8D7DA;
    border: 1px solid #F5C6CB;
    color: #721C24;
}

.msg-info {
    background: #D1ECF1;
    border: 1px solid #BEE5EB;
    color: #0C5460;
}

/* ==================== 分页 ==================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border: 1px solid #B8D4A8;
    background: #fff;
    color: #0066CC;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #E8F0E0;
}

.pagination .current {
    background: #5A8F4A;
    color: #fff;
    border-color: #4A7F3A;
}

.pagination .disabled {
    color: #999;
    cursor: not-allowed;
}

/* ==================== 搜索页 ==================== */
.search-header {
    background: #8FBF7E;
    color: #fff;
    padding: 10px 15px;
    font-weight: bold;
    border: 1px solid #6B9F5A;
    border-radius: 3px 3px 0 0;
}

.no-result {
    text-align: center;
    padding: 40px;
    color: #888;
    background: #fff;
    border: 1px solid #B8D4A8;
    border-top: none;
    border-radius: 0 0 3px 3px;
}

/* ==================== 快捷导航 ==================== */
.quick-nav {
    display: flex;
    gap: 5px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.quick-nav .btn {
    font-size: 12px;
    padding: 4px 10px;
}

/* ==================== 统计信息 ==================== */
.stats-bar {
    background: #F5F9F0;
    border: 1px solid #B8D4A8;
    padding: 8px 12px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #666;
}

.stats-bar span {
    margin-right: 15px;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .main-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .header {
        flex-direction: column;
        text-align: center;
    }

    .search-box {
        width: 100%;
        max-width: none;
    }

    .search-box input {
        width: 100%;
        flex: 1;
    }

    .dir-item-desc {
        display: none;
    }

    .link-detail-header {
        flex-direction: column;
        text-align: center;
    }

    .container {
        padding: 5px;
    }
}

/* ==================== 后台样式 ==================== */
.admin-body {
    background: #f0f2f5;
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.admin-sidebar {
    width: 220px;
    background: #2c3e50;
    color: #fff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.admin-logo {
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 1px solid #34495e;
    text-align: center;
}

.admin-menu {
    flex: 1;
    overflow-y: auto;
}

.admin-menu ul {
    list-style: none;
}

.admin-menu li a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #bdc3c7;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    font-size: 15px;
    gap: 10px;
}

.admin-menu li a:hover,
.admin-menu li a.active {
    background: #34495e;
    color: #fff;
    border-left-color: #3498db;
}

.admin-menu li a .fa {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.admin-menu .menu-group {
    padding: 8px 20px;
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.admin-sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid #34495e;
    font-size: 12px;
    color: #7f8c8d;
}

/* 主内容区 */
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-header {
    background: #fff;
    padding: 15px 25px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    font-size: 20px;
    color: #333;
    font-weight: normal;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-header-right a {
    color: #666;
    font-size: 14px;
}

.admin-header-right a:hover {
    color: #3498db;
}

.admin-content {
    flex: 1;
    padding: 20px 25px;
    overflow-y: auto;
}

/* 分类管理添加表单 */
#addCatForm {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

#addCatForm > div {
    display: flex;
    flex-direction: column;
}

#addCatForm label {
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
    font-weight: 600;
}

#addCatForm input,
#addCatForm select {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#addCatForm input:focus,
#addCatForm select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
    outline: none;
}

/* 后台卡片 */
.admin-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 24px;
    border: 1px solid #e8e8e8;
}

.admin-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid #eee;
    font-size: 17px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-card-header .fa {
    color: #3498db;
}

.admin-card-body {
    padding: 24px;
}

/* 后台表格 */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th,
.admin-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.admin-table td input,
.admin-table td select {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    background: #fff;
    transition: border-color 0.2s;
}

.admin-table td input:focus,
.admin-table td select:focus {
    border-color: #3498db;
    outline: none;
}

.admin-table td .switch {
    vertical-align: middle;
    display: inline-block;
}

.admin-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.admin-table tbody tr:hover {
    background: #f8f9fa;
}

.admin-table .actions {
    white-space: nowrap;
}

.admin-table .actions a {
    margin-right: 8px;
    color: #3498db;
}

.admin-table .actions a:hover {
    color: #2980b9;
}

.admin-table .actions a.danger {
    color: #e74c3c;
}

/* 后台表单 */
.admin-form {
    max-width: 700px;
}

.admin-form .form-group {
    margin-bottom: 24px;
}

.admin-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 15px;
}

.admin-form .form-group input,
.admin-form .form-group select,
.admin-form .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.5;
    min-height: 46px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.admin-form .form-group input:focus,
.admin-form .form-group select:focus,
.admin-form .form-group textarea:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
    outline: none;
}

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

.admin-form .form-group input[type="checkbox"] {
    width: auto;
    min-height: auto;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #3498db;
}

.admin-form .form-group input[type="file"] {
    padding: 8px 0;
    border: none;
    min-height: auto;
    font-size: 14px;
}

.logo-preview {
    margin: 10px 0;
    min-height: 40px;
}

.logo-preview img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px;
    background: #fff;
}

.admin-form .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.admin-form .form-actions .btn {
    padding: 12px 28px;
    font-size: 15px;
}

/* 状态标签 */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: normal;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* 统计卡片 */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid #e8e8e8;
}

.stat-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}

.stat-card-icon.blue { background: #3498db; }
.stat-card-icon.green { background: #2ecc71; }
.stat-card-icon.orange { background: #f39c12; }
.stat-card-icon.red { background: #e74c3c; }
.stat-card-icon.purple { background: #9b59b6; }
.stat-card-icon.cyan { background: #1abc9c; }

.stat-card-info h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 4px;
}

.stat-card-info p {
    color: #888;
    font-size: 14px;
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar input,
.filter-bar select {
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    min-height: 42px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
    outline: none;
}

/* 后台登录页 */
.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #2c3e50;
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 5px;
    width: 380px;
    max-width: 90%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
}

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

.login-box .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.5;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-box .form-group input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
    outline: none;
}

.login-box .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.login-box .btn:hover {
    background: #2980b9;
}

/* 复选框 */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: normal;
    color: #555;
    padding: 8px 0;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #3498db;
    flex-shrink: 0;
}

/* 开关 */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 22px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: #2ecc71;
}

.switch input:checked + .slider:before {
    transform: translateX(18px);
}

/* 分类管理内联表单 */
.admin-table td form {
    display: contents;
}

.admin-table td input[type="text"],
.admin-table td input[type="number"] {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    background: #fff;
    transition: border-color 0.2s;
}

.admin-table td input[type="text"]:focus,
.admin-table td input[type="number"]:focus {
    border-color: #3498db;
    outline: none;
}

/* ==================== 会员推广栏 ==================== */
.vip-bar {
    background: #2A2D3E;
    border-radius: 12px;
    margin: 15px 0;
    padding: 22px 28px;
    color: #fff;
}

.vip-bar-title {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 18px;
    letter-spacing: 2px;
}

.vip-bar-plans {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
}

.vip-plan {
    flex: 1;
    border-radius: 10px;
    padding: 14px 16px;
    text-align: center;
}

.vip-plan-lifetime {
    background: #3D4050;
    color: #F5A623;
    border: 1px solid #F5A623;
}

.vip-plan-year {
    background: #F5A623;
    color: #2A2D3E;
}

.vip-plan-rebate {
    background: #E8660B;
    color: #fff;
    max-width: 60%;
    margin: 0 auto 18px;
    border: none;
}

.vip-plan-rebate .vip-plan-name {
    font-size: 24px;
    margin-bottom: 4px;
}

.vip-plan-rebate .vip-plan-desc {
    font-size: 16px;
    font-weight: bold;
    color: #FFD700;
}

.vip-plan-name {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 6px;
}

.vip-plan-desc {
    font-size: 13px;
    opacity: 0.9;
}

.vip-bar-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    color: #ccc;
    flex-wrap: wrap;
}

.vip-wx-id {
    color: #FFD700;
    font-weight: bold;
}

.vip-bar-remark {
    color: #999;
}

.vip-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border: 1px solid #FFD700;
    background: transparent;
    color: #FFD700;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.vip-copy-btn:hover {
    background: #FFD700;
    color: #2A2D3E;
}

@media (max-width: 640px) {
    .vip-bar {
        padding: 16px 14px;
    }
    .vip-bar-title {
        font-size: 18px;
    }
    .vip-bar-plans {
        flex-direction: column;
    }
    .vip-plan-name {
        font-size: 18px;
    }
    .vip-plan-rebate {
        max-width: 100%;
    }
    .vip-plan-rebate .vip-plan-name {
        font-size: 20px;
    }
    .vip-bar-contact {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ==================== 树形文件夹 ==================== */
.tree-folder {
    border-bottom: 1px solid #E8F0E0;
}

.tree-folder-header {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
}

.tree-folder-header:hover {
    background: #F0F8E8;
}

.folder-toggle {
    width: 14px;
    text-align: center;
    color: #888;
    font-size: 14px;
    transition: transform 0.2s;
    cursor: pointer;
}

.folder-toggle.open {
    transform: rotate(90deg);
}

.folder-toggle-placeholder {
    display: inline-block;
    width: 14px;
}

.folder-name {
    flex: 1;
    font-weight: bold;
    color: #2D5016;
}

.folder-name a {
    color: #2D5016;
}

.folder-name a:hover {
    color: #FF6600;
}

.folder-count {
    color: #999;
    font-size: 12px;
    font-weight: normal;
}

.tree-folder-content {
    padding-left: 20px;
}

.tree-folder-content .tree-folder {
    border-bottom: none;
}

.tree-folder-content .tree-folder-header {
    padding: 6px 12px;
}

.tree-folder-content .tree-folder-header .fa-folder {
    font-size: 14px;
}

.tree-link {
    padding: 6px 12px 6px 32px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px dotted #E8F0E0;
}

.tree-link:last-child {
    border-bottom: none;
}

.tree-link:hover {
    background: #F9FBF7;
}

.link-name {
    flex: 1;
    min-width: 0;
}

.link-name a {
    color: #0066CC;
}

.link-name a:hover {
    color: #FF6600;
}

.link-desc {
    color: #888;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.link-count {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
}
