.article-detail {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F8 100%);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid #C0C0C0;
    margin-bottom: 30px;
}

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

.article-detail .article-title {
    margin: 0 0 20px 0;
    font-size: 2.2em;
    color: #3D5A6C;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.article-header .article-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.9em;
    color: #6A6A6A;
}

.article-header .article-meta span {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #F0F0F0 0%, #E8E8E8 100%);
    padding: 5px 12px;
    border-radius: 15px;
    border: 1px solid #D0D0D0;
}

.article-content {
    font-size: 1.1em;
    line-height: 1.8;
    color: #3D3D3D;
    margin-bottom: 30px;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content h2 {
    color: #3D5A6C;
    margin: 25px 0 15px 0;
    font-size: 1.5em;
}

.article-content h3 {
    color: #4A6A8A;
    margin: 20px 0 10px 0;
    font-size: 1.3em;
}

.article-footer {
    padding-top: 20px;
    border-top: 2px solid #E0E0E0;
}

.article-tags {
    margin-bottom: 20px;
}

.tags-label {
    font-weight: bold;
    color: #3D5A6C;
    margin-right: 10px;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    margin-right: 8px;
    margin-bottom: 8px;
    background: linear-gradient(180deg, #6A8AAA 0%, #5A7A9A 100%);
    color: white;
    border-radius: 15px;
    font-size: 0.85em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(180deg, #7A9ABA 0%, #6A8AAA 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

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

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(180deg, #6A8AAA 0%, #5A7A9A 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.action-btn:hover {
    background: linear-gradient(180deg, #7A9ABA 0%, #6A8AAA 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.2em;
}

.btn-text {
    font-weight: 500;
}

.btn-count {
    font-size: 0.85em;
    opacity: 0.9;
}

.comments-section {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F8 100%);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid #C0C0C0;
    margin-bottom: 30px;
}

.comments-section h2 {
    color: #3D5A6C;
    margin-bottom: 25px;
    font-size: 1.8em;
    border-bottom: 2px solid #E0E0E0;
    padding-bottom: 15px;
}

.comment-form {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #F8F8F8 0%, #F0F0F0 100%);
    border-radius: 8px;
    border: 1px solid #D0D0D0;
}

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

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

.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #C0C0C0;
    border-radius: 5px;
    font-size: 1em;
    font-family: inherit;
    resize: vertical;
    background: white;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group textarea:focus {
    outline: none;
    border-color: #5A7A9A;
    box-shadow: 0 0 0 3px rgba(90, 122, 154, 0.2);
}

.submit-btn {
    padding: 10px 25px;
    background: linear-gradient(180deg, #6A8AAA 0%, #5A7A9A 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.submit-btn:hover {
    background: linear-gradient(180deg, #7A9ABA 0%, #6A8AAA 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.login-prompt {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #F8F8F8 0%, #F0F0F0 100%);
    border-radius: 8px;
    border: 1px solid #D0D0D0;
}

.login-prompt p {
    color: #6A6A6A;
    font-size: 1.1em;
}

.login-prompt a {
    color: #5A7A9A;
    text-decoration: none;
    font-weight: bold;
}

.login-prompt a:hover {
    text-decoration: underline;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #D0D0D0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E8E8E8;
}

.comment-author {
    font-weight: bold;
    color: #3D5A6C;
}

.comment-date {
    font-size: 0.85em;
    color: #9A9A9A;
}

.comment-content {
    color: #4A4A4A;
    line-height: 1.6;
}

.no-comments {
    text-align: center;
    padding: 30px;
    color: #9A9A9A;
    font-size: 1.1em;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
}

.nav-link {
    flex: 1;
    padding: 20px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F8F8 100%);
    border-radius: 10px;
    border: 1px solid #C0C0C0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-color: #5A7A9A;
}

.nav-label {
    font-size: 0.85em;
    color: #6A6A6A;
    font-weight: 500;
}

.nav-title {
    font-size: 1.1em;
    color: #3D5A6C;
    font-weight: 500;
}

.prev-link {
    text-align: left;
}

.next-link {
    text-align: right;
}

#cherry-preview {
    background: white;
    color: #3D3D3D;
    line-height: 1.8;
}

#cherry-preview h1,
#cherry-preview h2,
#cherry-preview h3,
#cherry-preview h4,
#cherry-preview h5,
#cherry-preview h6 {
    color: #3D5A6C;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: 600;
}

#cherry-preview h1 {
    font-size: 2em;
    border-bottom: 2px solid #E0E0E0;
    padding-bottom: 0.3em;
}

#cherry-preview h2 {
    font-size: 1.5em;
    border-bottom: 1px solid #E8E8E8;
    padding-bottom: 0.3em;
}

#cherry-preview h3 {
    font-size: 1.25em;
}

#cherry-preview p {
    margin-bottom: 1em;
}

#cherry-preview a {
    color: #5A7A9A;
    text-decoration: none;
    border-bottom: 1px dotted #5A7A9A;
    transition: all 0.2s ease;
}

#cherry-preview a:hover {
    color: #7A9ABA;
    border-bottom-style: solid;
}

#cherry-preview code {
    background: #F5F5F5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #D63384;
}

#cherry-preview pre {
    background: #F8F8F8;
    border: 1px solid #E0E0E0;
    border-radius: 5px;
    padding: 15px;
    overflow-x: auto;
    margin-bottom: 1em;
}

#cherry-preview pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    color: #3D3D3D;
}

#cherry-preview blockquote {
    border-left: 4px solid #5A7A9A;
    margin: 1em 0;
    padding-left: 1em;
    color: #6A6A6A;
    background: #F8F8F8;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
}

#cherry-preview ul,
#cherry-preview ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

#cherry-preview li {
    margin-bottom: 0.5em;
}

#cherry-preview table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
}

#cherry-preview th,
#cherry-preview td {
    border: 1px solid #E0E0E0;
    padding: 8px 12px;
    text-align: left;
}

#cherry-preview th {
    background: linear-gradient(180deg, #F5F5F5 0%, #E8E8E8 100%);
    font-weight: 600;
    color: #3D5A6C;
}

#cherry-preview tr:nth-child(even) {
    background: #FAFAFA;
}

#cherry-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 1em 0;
}

#cherry-preview hr {
    border: none;
    border-top: 2px solid #E0E0E0;
    margin: 2em 0;
}

@media (max-width: 768px) {
    .article-detail {
        padding: 20px;
    }
    
    .article-detail .article-title {
        font-size: 1.8em;
    }
    
    .article-header .article-meta {
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-content {
        font-size: 1em;
        line-height: 1.7;
    }
    
    .article-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-btn {
        justify-content: center;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .comments-section {
        padding: 20px;
    }
    
    .comments-section h2 {
        font-size: 1.5em;
    }
    
    .comment-form {
        padding: 15px;
    }
    
    .form-group textarea {
        min-height: 120px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-submit,
    .btn-cancel {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .article-detail {
        padding: 15px;
    }
    
    .article-detail .article-title {
        font-size: 1.5em;
    }
    
    .article-header .article-meta span {
        font-size: 0.85em;
        padding: 4px 10px;
    }
    
    .article-content {
        font-size: 0.95em;
    }
    
    .article-content h2 {
        font-size: 1.3em;
    }
    
    .article-content h3 {
        font-size: 1.1em;
    }
    
    .article-tags {
        margin-bottom: 15px;
    }
    
    .tag {
        font-size: 0.75em;
        padding: 4px 10px;
    }
    
    .action-btn {
        padding: 8px 15px;
        font-size: 0.85em;
    }
    
    .comments-section {
        padding: 15px;
    }
    
    .comment-item {
        padding: 15px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .article-navigation {
        margin-top: 20px;
    }
    
    .nav-link {
        padding: 15px;
    }
    
    .nav-title {
        font-size: 1em;
    }
}
