body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: white;
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-size: 30px;
    font-weight: bold;
    color: #333;
}

.nav-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-buttons button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background-color: transparent;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav-buttons button:hover {
    background-color: #f5f5f5;
    color: #333;
}

.nav-buttons button.active {
    background-color: #e6f7ff;
    color: #1890ff;
}

/* 认证按钮样式 */
.auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid #eaeaea;
}

#userSection {
    display: flex;
    align-items: center;
    gap: 10px;
}

#username {
    color: #333;
    font-weight: bold;
}

.auth-buttons button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.auth-buttons button:hover {
    background-color: #45a049;
}

#authSection button:first-child {
    background-color: transparent;
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

#authSection button:first-child:hover {
    background-color: #f0f8f0;
}

.content {
    display: flex;
    padding: 20px;
    gap: 20px;
}

.form {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form label {
    font-weight: bold;
    margin-bottom: 5px;
}

.form select,
.form input[type="text"],
.form input[type="number"],
.form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
}

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

.form button {
    padding: 8px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: fit-content;
}

.form button:hover {
    background-color: #45a049;
}

.article-preview {
    flex: 2;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #eaeaea;
    padding: 0px 20px 20px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.article-content {
    height: 100%;
}

.article-content h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.article-text {
    color: #333;
    line-height: 1.6;
    font-size: 14px;
    min-height: 500px;
    white-space: pre-wrap;
}

.image-preview {
    flex: 1;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #eaeaea;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.image-preview h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.image-container {
    height: 900px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: flex-start;
    background-color: #f8f8f8;
    border-radius: 4px;
    padding: 20px;
    overflow-y: auto;
}

.image-container img {
    max-width: 90%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.placeholder {
    color: #999;
    font-size: 14px;
}

/* 调整联网搜索的样式 */
.form .search-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form input[type="checkbox"] {
    margin: 0;
}

.tags {
    margin-top: 20px;
}

.tag {
    display: inline-block;
    padding: 4px 8px;
    margin: 0 4px 4px 0;
    background-color: #e6f7ff;
    color: #1890ff;
    border-radius: 4px;
    font-size: 12px;
}

/* 认证页面样式 */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f5f5f5;
}

.auth-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: bold;
    color: #333;
}

.form-group input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.auth-form button {
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.auth-form button:hover {
    background-color: #45a049;
}

.auth-links {
    margin-top: 20px;
    text-align: center;
    color: #666;
}

.auth-links a {
    color: #1890ff;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* 个人中心样式 */
.profile-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
}

.profile-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 10px 40px 20px 40px;
    transition: all 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.profile-card h2 {
    margin: 0 0 30px 0;
    color: #333;
    font-size: 28px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.profile-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    border-radius: 2px;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #f0f2f5;
    transform: translateX(5px);
}

.info-item label {
    width: 120px;
    color: #666;
    font-size: 15px;
    font-weight: 500;
}

.info-item span {
    color: #333;
    font-size: 16px;
    flex: 1;
    font-weight: 500;
}

/* VIP 标签样式 */
.vip-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    margin-left: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.vip-active {
    background: linear-gradient(45deg, #ffd700, #ffc107);
    color: #333;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.vip-inactive {
    background: #f5f5f5;
    color: #999;
}

/* 添加用户统计卡片 */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #4CAF50;
    margin: 10px 0;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

/* 历史文章页面样式 */
.history-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

.history-container h2 {
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 140px 400px repeat(4, 180px);
    gap: 15px;
    align-items: start;
    margin-bottom: 10px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.timeline-time-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

.timeline-time {
    color: #888;
    font-size: 14px;
    margin-bottom: 0;
}

.share-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    margin-top: 20px;
    border-radius: 4px;
    padding: 5px 0px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 70%;
}

.share-button:hover {
    background-color: #45a049;
}

.timeline-content {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    height: 180px;
    display: flex;
    flex-direction: column;
}

.timeline-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

.timeline-text {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    overflow-y: auto;
    flex: 1;
    padding-right: 8px;
    white-space: pre-line;
}

/* 自定义滚动条样式 */
.timeline-text::-webkit-scrollbar {
    width: 4px;
}

.timeline-text::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.timeline-text::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.timeline-text::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.timeline-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.timeline-image:hover {
    transform: scale(1.05);
}

/* 加载更多按钮样式 */
.load-more {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 60px;
}

.load-more button {
    padding: 12px 40px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.load-more button:hover {
    background: #45a049;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* 图片预览模态框样式 */
.image-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    cursor: pointer;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.close-button {
    position: absolute;
    top: -40px;
    right: 0;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover {
    color: #bbb;
}

/* 添加鼠标样式提示可点击 */
.timeline-image {
    cursor: pointer;
}

/* 文章详情页样式 */
.article-detail-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.article-detail {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 40px;
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article-header h1 {
    font-size: 28px;
    color: #333;
    margin: 0 0 15px 0;
}

.article-meta {
    color: #666;
    font-size: 14px;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
    white-space: pre-line;
}

.article-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.article-images img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.article-images img:hover {
    transform: scale(1.02);
}

/* 风格管理页面样式 */
.styles-container {
    max-width: 1400px;
    margin: 10px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.styles-form {
    background: white;
    padding: 3px 30px 30px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.styles-form h2 {
    margin: 0 0 20px 0;
    color: #333;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.form-group textarea {
    width: 100%;
    height: 200px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: vertical;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.styles-list h2 {
    margin: 0 0 20px 0;
    color: #333;
}

.styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.style-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.style-card h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.style-card p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.style-card .content {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    max-height: 100px;
    overflow-y: auto;
    margin-bottom: 15px;
}

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

.style-card button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.style-card .edit {
    background: #4CAF50;
    color: white;
}

.style-card .delete {
    background: #f44336;
    color: white;
}

.style-card .public-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* 风格表格样式 */
.styles-table {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
}

.styles-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    min-width: 960px;
}

.styles-table th,
.styles-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.styles-table th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 500;
    font-size: 13px;
}

.styles-table td {
    color: #666;
    font-size: 12px;
}

.styles-table th:nth-child(1),
.styles-table td:nth-child(1) {
    width: 100px;
    min-width: 100px;
}

.styles-table th:nth-child(2),
.styles-table td:nth-child(2) {
    width: 200px;
    min-width: 200px;
}

.styles-table th:nth-child(3),
.styles-table td:nth-child(3) {
    width: 500px;
    min-width: 500px;
}

.styles-table th:nth-child(4),
.styles-table td:nth-child(4) {
    width: 80px;
    min-width: 80px;
}

.styles-table th:nth-child(5),
.styles-table td:nth-child(5) {
    width: 80px;
    min-width: 80px;
}

.styles-table .content-cell {
    max-width: 500px;
    max-height: 80px;
    overflow-y: auto;
    white-space: pre-wrap;
    line-height: 1.5;
    padding: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
}

.styles-table .content-cell:hover {
    display: block;
    max-height: 200px;
    overflow-y: auto;
}

.styles-table .public-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
}

.styles-table .delete-btn {
    padding: 6px 12px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.styles-table .delete-btn:hover {
    background: #d32f2f;
}

/* 自定义滚动条样式 */
.styles-table .content-cell::-webkit-scrollbar {
    width: 4px;
}

.styles-table .content-cell::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.styles-table .content-cell::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.styles-table .content-cell::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.styles-table tr:hover {
    background-color: #fafafa;
}

.styles-table thead tr {
    border-bottom: 2px solid #ccc;
}

/* 保存风格按钮样式 */
#styleForm button[type="submit"] {
    width: 100%;
    padding: 12px 0;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    margin-top: 10px;
}

#styleForm button[type="submit"]:hover {
    background: linear-gradient(45deg, #45a049, #388e3c);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    transform: translateY(-1px);
}

#styleForm button[type="submit"]:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

.error-message {
    color: #f44336;
    padding: 10px;
    background-color: #ffebee;
    border-radius: 4px;
    margin: 10px 0;
}

.loading-dots {
    color: #666;
    font-size: 14px;
}

.placeholder {
    color: #999;
    text-align: center;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 4px;
}

.login-hint {
    color: #999;
    font-size: 12px;
    margin-top: 5px;
    font-weight: normal;
}

/* 调整使用说明样式 */
.guide-content {
    padding: 0;
    color: #666;
    line-height: 1;  /* 最小行高 */
    margin: 0;
}

.guide-content h4 {
    color: #333;
    margin: 0;
    padding: 0;
    font-size: 13px;
}

.guide-content ol {
    padding-left: 15px;  /* 进一步减小缩进 */
    padding-top: 1px;
    padding-bottom: 1px;
    margin: 1px 0;
}

.guide-content li {
    margin: 0;
    padding: 0;
}

.guide-content ul {
    padding-left: 12px;
    margin: 0;
}

.guide-content ul li {
    margin: 0;
    padding: 0;
    list-style-type: disc;
}

/* 联系信息区域的样式 */
.contact-info {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-info h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
    font-size: 18px;
}

.contact-info p {
    margin-bottom: 10px;
    color: #555;
}

.contact-info .qrcode {
    max-width: 200px;
    margin: 10px auto;
    display: block;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact-info .tip {
    text-align: center;
    color: #444;  /* 更深的颜色 */
    font-size: 15px;  /* 稍大的字体 */
    font-weight: 500;  /* 稍微加粗 */
    margin-bottom: 20px;
    line-height: 1.6;  /* 增加行高 */
    padding: 0 10px;  /* 两侧添加一些内边距 */
}

.contact-info .group-tip {
    color: #0066cc;  /* 蓝色 */
    font-weight: 500;  /* 稍微加粗 */
    font-size: 15px;  /* 稍大的字体 */
}

/* 标签页样式 */
.tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: #333;
}

.tab-button.active {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 添加删除按钮样式 */
.delete-button {
    background-color: #f75c51;
    color: white;
    border: none;
    margin-top: 10px;
    border-radius: 4px;
    padding: 5px 0px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 70%;
}

.delete-button:hover {
    background-color: #d32f2f;
}