/* 网址导航系统样式 */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.logo-link:hover {
    text-decoration: none;
    color: inherit;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo h1 {
    font-size: 24px;
    color: #333;
    font-weight: bold !important;
    margin: 0;
    font-family: 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
}

.user-actions {
    display: flex;
    gap: 10px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn:hover {
    background: #0056b3;
}

.btn-primary {
    background: #007bff;
}

.btn-secondary {
    background: #6c757d;
}

.btn-success {
    background: #28a745;
}

.btn-danger {
    background: #dc3545;
}

/* 公告区域 */
.announcement {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    margin: 2px 0;
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: #856404;
}

.announcement-icon {
    font-size: 18px;
}

/* 导航区域 */
.navigation-section {
    background: white;
    margin: 2px 0;
    border-radius: 6px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    padding: 8px 0;
}

.navigation-section h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
    font-weight: 600;
    padding: 0 15px;
}

.navigation-section h3 {
    font-size: 14px;
    margin: 8px 0 8px;
    color: #333;
    padding: 6px 15px;
    font-weight: bold !important;
    background-color: #e3f2fd;
    border-radius: 4px;
}

.nav-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0 8px;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: bold !important;
    text-align: center;
    transition: all 0.3s;
    white-space: nowrap;
    min-height: 36px;
    line-height: 1.2;
    flex-shrink: 0;
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-item:hover {
    background: #007bff;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* 广告区域 */
.ad-section {
    margin: 2px 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.ad-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0 30px;
}

.ad-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: white;
    border-radius: 8px;
    padding: 10px 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    min-height: 60px;
    min-width: 120px;
    flex: 1;
    max-width: 200px;
}

.ad-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.ad-item img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.ad-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    max-height: 80px;
    object-fit: contain;
}

.ad-text {
    font-size: 16px;
    font-weight: bold;
    color: #ff0000;
    text-align: center;
    padding: 5px;
}

/* 站长推荐区域（替换分享区） */
.recommended-articles-section {
    background: white;
    margin: 2px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 8px 0;
}

.recommended-articles-section h2 {
    font-size: 11px;
    margin-bottom: 10px;
    color: #000;
    text-align: left;
    font-weight: 700;
    padding: 0 30px;
    margin: 0;
    background: none;
}

/* 用户文章区域样式（站长推荐使用） */
.user-articles-section {
    background: white;
    margin: 2px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 8px 0;
}

.user-articles-section .section-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 15px;
    padding: 0 15px;
}

.user-articles-section .section-title {
    font-size: 14px;
    font-weight: normal;
    color: #ff0000;
    background: none;
    padding: 0;
    margin: 0;
    display: block;
}

.user-articles-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 15px;
}

.user-articles-list .article-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.user-articles-list .article-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.1);
}

.user-articles-list .article-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    justify-content: flex-start;
}

/* 用户文章区域样式（站长推荐使用） */
.user-articles-section {
    background: white;
    margin: 2px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 8px 0;
}

.user-articles-section .section-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 15px;
    padding: 0 15px;
}

.user-articles-section .section-title {
    font-size: 14px;
    font-weight: normal;
    color: #ff0000;
    background: none;
    padding: 0;
    margin: 0;
    display: block;
}

.user-articles-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 15px;
}

.user-articles-list .article-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.user-articles-list .article-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.1);
}

.user-articles-list .article-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.1;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    justify-content: flex-start;
}

/* 文章列表样式 */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 30px;
}

.article-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.article-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.1);
}

.article-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.article-header:hover {
    background: rgba(0,123,255,0.05);
}

.article-title {
    font-size: 18px;
    margin: 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.title-icon {
    font-size: 20px;
}

.expand-icon {
    font-size: 20px;
    font-weight: bold;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.article-item.expanded .expand-icon {
    transform: rotate(45deg);
}

.article-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #6c757d;
}

.article-date {
    font-weight: 500;
}

.article-expiry {
    color: #dc3545;
    font-weight: 500;
}

.article-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.article-content.expanded {
    max-height: 500px; /* 可根据内容调整 */
}

.content-wrapper {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    line-height: 1.6;
    color: #555;
}

.content-wrapper p {
    margin-bottom: 10px;
}

.content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
}

.content-wrapper video {
    max-width: 100%;
    border-radius: 4px;
    margin: 10px 0;
}

/* 页脚 */
.footer {
    background: #343a40;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.footer p {
    margin: 5px 0;
}

.footer p:first-child {
    font-weight: bold;
    font-size: 18px;
}

/* 表单样式 */
.form-group {
    background: white;
    padding: 20px;
    margin: 8px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group h3 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0,123,255,0.3);
}

/* 错误和成功消息 */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
    border: 1px solid #f5c6cb;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
    border: 1px solid #c3e6cb;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
}

.table tr:hover {
    background: #f8f9fa;
}

/* 安装页面样式 */
.install-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.install-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 600px;
    margin: 20px;
    overflow: hidden;
}

.install-header {
    background: #007bff;
    color: white;
    padding: 30px;
    text-align: center;
}

.install-header h1 {
    margin: 0;
    font-size: 28px;
}

.install-header p {
    margin: 10px 0 0;
    opacity: 0.9;
}

.install-form {
    padding: 30px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-grid {
        gap: 4px;
        padding: 0 8px;
        justify-content: flex-start;
    }
    
    .nav-item {
        padding: 6px 8px;
        font-size: 12px;
        font-weight: bold !important;
        min-height: 32px;
        line-height: 1.2;
        border-radius: 3px;
        min-width: auto;
        max-width: 100%;
        flex: none;
        width: fit-content;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .navigation-section h2 {
        font-size: 16px;
        margin-bottom: 12px;
        padding: 0 10px;
    }
    
    .navigation-section h3 {
        font-size: 12px;
        margin: 6px 0 6px;
        padding: 5px 10px;
        font-weight: bold !important;
        background-color: #e3f2fd;
        border-radius: 3px;
    }
    
    .user-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .recommended-articles-section {
        padding: 15px 0;
        margin: 2px 0;
    }
    
    .recommended-articles-section h2 {
        font-size: 16px;
        padding: 0 15px;
        margin-bottom: 12px;
    }
    
    .articles-list {
        padding: 0 15px;
        gap: 10px;
    }
    
    .article-header {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .article-title {
        font-size: 16px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .article-meta {
        width: 100%;
        justify-content: space-between;
        font-size: 12px;
    }
    
    .content-wrapper {
        padding: 12px;
        font-size: 14px;
    }
    
    .article-content.expanded {
        max-height: 400px;
    }
    
    .user-articles-section {
        padding: 15px 0;
        margin: 2px 0;
    }
    
    .user-articles-section .section-header {
        padding: 0 15px;
        margin-bottom: 10px;
    }
    
    .user-articles-section .section-title {
        font-size: 16px;
        font-weight: 600;
        color: #ff0000;
        background: none;
        padding: 0;
        margin: 0;
        display: block;
    }
    
    .user-articles-list {
        padding: 0 15px;
        gap: 5px;
    }
    
    .user-articles-list .article-item {
        padding: 12px;
    }
    
    .user-articles-list .article-title {
        font-size: 16px;
        width: 100%;
        justify-content: flex-start;
        align-items: flex-start;
        flex-direction: row;
    }
    
    .ad-grid {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 8px;
    }
    
    .ad-item {
        min-width: 150px;
        min-height: 50px;
        padding: 8px 12px;
        font-size: 14px;
        max-width: 100%;
    }
    
    .ad-text {
        font-size: 14px;
        padding: 3px;
    }
    
    .friend-links-section {
        padding: 15px 0;
        margin: 2px 0;
    }
    
    .friend-links-section h2 {
        font-size: 14px;
        margin-bottom: 8px;
        padding: 0 15px;
        padding-bottom: 4px;
        font-weight: normal;
    }
    
    .friend-links-grid {
        padding: 0 15px;
        gap: 4px;
    }
    
    .friend-link {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .memos-section {
        padding: 15px 0;
        margin: 2px 0;
    }
    
    .memos-section h2 {
        font-size: 16px;
        margin-bottom: 12px;
        padding: 0 15px;
    }
    
    .memos-list {
        padding: 0 15px;
        gap: 10px;
        grid-template-columns: 1fr;
    }
    
    .memo-item {
        padding: 10px;
    }
    
    .memo-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .memo-title strong {
        font-size: 16px;
    }
    
    .memo-content {
        font-size: 14px;
    }
    
    .section-header {
        padding: 0 15px;
        margin-bottom: 12px;
    }
    
    .section-title {
        font-size: 16px;
        font-weight: 600;
        color: #ff0000;
        background: none;
        padding: 0;
        margin: 0;
        display: block;
    }
}

@media (max-width: 480px) {
    .nav-grid {
        gap: 2px;
        padding: 0 4px;
        justify-content: flex-start;
    }
    
    .nav-item {
        font-size: 10px;
        min-height: 26px;
        padding: 4px 6px;
        border-radius: 2px;
        min-width: auto;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: bold !important;
        flex: none;
        width: fit-content;
        white-space: nowrap;
    }
    
    .install-form {
        padding: 20px;
    }
    
    .install-header {
        padding: 20px;
    }
}

/* 工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }

.hidden { display: none; }
.visible { display: block; }

.flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 友情链接样式 */
.friend-links-section {
    background: white;
    margin: 2px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 8px 0;
}

.friend-links-section h2 {
    font-size: 14px;
    color: #333;
    font-weight: normal;
    display: inline;
    margin: 0;
    padding: 0;
}

.friend-links-grid {
    display: inline;
    padding: 0;
    margin: 0;
}

.friend-link {
    display: inline;
    padding: 0;
    border: none;
    border-radius: 0;
    text-decoration: none;
    font-size: 14px;
    font-weight: normal;
    background: none;
    color: #333;
    margin: 0;
}

.friend-link:hover {
    color: #007bff;
    text-decoration: underline;
}

/* 响应式友情链接 */
@media (max-width: 768px) {
    .friend-links-section {
        padding: 15px 0;
        margin: 2px 0;
    }
    
    .friend-links-section h2 {
        font-size: 14px;
        margin-bottom: 8px;
        padding: 0 15px;
        padding-bottom: 4px;
        font-weight: normal;
    }
    
    .friend-links-grid {
        padding: 0 15px;
        gap: 4px;
    }
    
    .friend-link {
        padding: 4px 8px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .friend-links-grid {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .friend-link {
        flex-shrink: 0;
    }
}

/* 备忘录区域样式 */
.memos-section {
    background: white;
    margin: 2px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0;
}

.memos-section h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid #17a2b8;
    padding-bottom: 10px;
    display: inline-block;
    margin-left: 50%;
    transform: translateX(-50%);
}

.memos-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0;
    padding: 0;
}

.memo-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 6px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.memo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: #17a2b8;
}

.memo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #17a2b8;
}

.memo-header {
    margin-bottom: 8px;
}

.memo-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.memo-content {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

/* 用户中心备忘录样式 */
.memo-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 6px;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.memo-item:hover {
    border-color: #17a2b8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.memo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.memo-title {
    flex: 1;
    margin-right: 15px;
}

.memo-title strong {
    font-size: 16px;
    color: #333;
}

.sort-order {
    font-size: 12px;
    color: #6c757d;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 10px;
}

.memo-actions {
    display: flex;
    gap: 5px;
}

.memo-actions .btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

.memo-content {
    color: #555;
    line-height: 1.5;
    font-size: 14px;
    margin-bottom: 10px;
}

.memo-meta {
    font-size: 12px;
    color: #6c757d;
    border-top: 1px solid #e9ecef;
    padding-top: 8px;
}

/* 响应式备忘录样式 */
@media (max-width: 768px) {
    .memos-section {
        padding: 20px 0;
        margin: 2px 0;
    }
    
    .memos-section h2 {
        font-size: 20px;
        margin-bottom: 20px;
        padding-bottom: 8px;
    }
    
    .memos-list {
        padding: 0 10px;
        gap: 10px;
        grid-template-columns: 1fr;
    }
    
    .memo-item {
        padding: 10px;
    }
    
    .memo-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .memo-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .memos-list {
        padding: 0 10px;
    }
    
    .memo-item {
        padding: 12px;
    }
    
    .memo-title strong {
        font-size: 14px;
    }
}

/* 备忘录拖拽排序样式 */
.memo-item[draggable="true"] {
    cursor: move;
    user-select: none;
}

.memo-item.drag-over {
    border: 2px dashed #17a2b8;
    background-color: rgba(23, 162, 184, 0.05);
}

.memo-item.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.memo-item::after {
    content: '↕';
    position: absolute;
    right: 10px;
    top: 10px;
    color: #6c757d;
    font-size: 16px;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.memo-item:hover::after {
    opacity: 1;
}

/* 拖拽排序提示 */
.memo-sort-hint {
    font-size: 12px;
    color: #6c757d;
    text-align: center;
    margin-bottom: 10px;
    font-style: italic;
}

/* 文章管理样式 */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.article-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.article-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.1);
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.article-title {
    flex: 1;
    margin-right: 15px;
}

.article-title strong {
    font-size: 18px;
    color: #333;
}

.title-icon {
    font-size: 20px;
    margin-right: 8px;
}

.sort-order {
    font-size: 12px;
    color: #6c757d;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 10px;
}

.article-actions {
    display: flex;
    gap: 5px;
}

.article-actions .btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

.article-content {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 10px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.article-meta {
    font-size: 12px;
    color: #6c757d;
    border-top: 1px solid #e9ecef;
    padding-top: 8px;
}

/* 警告消息样式 */
.warning-message {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
    border: 1px solid #ffeaa7;
}

/* 响应式文章管理样式 */
@media (max-width: 768px) {
    .article-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .article-title strong {
        font-size: 16px;
    }
}

/* 整合复选框样式 */
.checkbox-label-container {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
}

.checkbox-label-container:hover {
    border-color: #007bff;
    background: #e3f2fd;
}

.checkbox-label-container input[type="checkbox"] {
    margin: 0;
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.checkbox-label-container input[type="checkbox"]:checked + .checkbox-text {
    color: #007bff;
    font-weight: 600;
}

.checkbox-label-container input[type="checkbox"]:checked {
    accent-color: #007bff;
}

/* 响应式整合复选框样式 */
@media (max-width: 768px) {
    .checkbox-label-container {
        min-width: 100px;
        padding: 6px 10px;
    }
    
    .checkbox-text {
        font-size: 13px;
    }
}

/* 站长推荐区域标题样式 */
.section-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 15px;
    padding: 0 30px;
    width: 100%;
}

.section-title {
    font-size: 18px;
    font-weight: normal;
    color: #ff0000;
    background: none;
    padding: 0;
    margin: 0;
    display: block;
    box-shadow: none;
    border-radius: 0;
}

/* 响应式标题样式 */
@media (max-width: 768px) {
    .section-header {
        padding: 0 15px;
        margin-bottom: 12px;
    }
    
    .section-title {
        font-size: 12px;
        font-weight: normal;
        color: #ff0000;
        background: none;
        padding: 0;
        margin: 0;
        display: block;
        box-shadow: none;
        border-radius: 0;
    }
    
    /* 移动端广告响应式样式 */
    .ad-grid {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 8px;
    }
    
    .ad-item {
        min-width: 150px;
        min-height: 50px;
        padding: 8px 12px;
        font-size: 14px;
        max-width: 100%;
    }
    
    .ad-text {
        font-size: 14px;
        padding: 3px;
    }
}

/* 备忘录拖拽排序样式 */
.memo-item[draggable="true"] {
    cursor: move;
    user-select: none;
}

.memo-item.drag-over {
    border: 2px dashed #17a2b8;
    background-color: rgba(23, 162, 184, 0.05);
}

.memo-item.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.memo-item::after {
    content: '↕';
    position: absolute;
    right: 10px;
    top: 10px;
    color: #6c757d;
    font-size: 16px;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.memo-item:hover::after {
    opacity: 1;
}

/* 拖拽排序提示 */
.memo-sort-hint {
    font-size: 12px;
    color: #6c757d;
    text-align: center;
    margin-bottom: 10px;
    font-style: italic;
}

/* 文章管理样式 */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.article-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.article-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.1);
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.article-title {
    flex: 1;
    margin-right: 15px;
}

.article-title strong {
    font-size: 18px;
    color: #333;
}

.title-icon {
    font-size: 20px;
    margin-right: 8px;
}

.sort-order {
    font-size: 12px;
    color: #6c757d;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 10px;
}

.article-actions {
    display: flex;
    gap: 5px;
}

.article-actions .btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

.article-content {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 10px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.article-meta {
    font-size: 12px;
    color: #6c757d;
    border-top: 1px solid #e9ecef;
    padding-top: 8px;
}

/* 警告消息样式 */
.warning-message {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
    border: 1px solid #ffeaa7;
}

/* 响应式文章管理样式 */
@media (max-width: 768px) {
    .article-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .article-title strong {
        font-size: 16px;
    }
}

/* 整合复选框样式 */
.checkbox-label-container {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
}

.checkbox-label-container:hover {
    border-color: #007bff;
    background: #e3f2fd;
}

.checkbox-label-container input[type="checkbox"] {
    margin: 0;
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.checkbox-label-container input[type="checkbox"]:checked + .checkbox-text {
    color: #007bff;
    font-weight: 600;
}

.checkbox-label-container input[type="checkbox"]:checked {
    accent-color: #007bff;
}

/* 响应式整合复选框样式 */
@media (max-width: 768px) {
    .checkbox-label-container {
        min-width: 100px;
        padding: 6px 10px;
    }
    
    .checkbox-text {
        font-size: 13px;
    }
}

/* 站长推荐区域标题样式 */
.section-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 15px;
    padding: 0 30px;
    width: 100%;
}

.section-title {
    font-size: 18px;
    font-weight: normal;
    color: #ff0000;
    background: none;
    padding: 0;
    margin: 0;
    display: block;
    box-shadow: none;
    border-radius: 0;
}

/* 响应式标题样式 */
@media (max-width: 768px) {
    .section-header {
        padding: 0 15px;
        margin-bottom: 12px;
    }
    
    .section-title {
        font-size: 12px;
        font-weight: normal;
        color: #ff0000;
        background: none;
        padding: 0;
        margin: 0;
        display: block;
        box-shadow: none;
        border-radius: 0;
    }
    
    /* 移动端广告响应式样式 */
    .ad-grid {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 8px;
    }
    
    .ad-item {
        min-width: 150px;
        min-height: 50px;
        padding: 8px 12px;
        font-size: 14px;
        max-width: 100%;
    }
    
    .ad-text {
        font-size: 14px;
        padding: 3px;
    }
}