/* 清新绿色主题 - 三区域布局设计 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 25%, #bbf7d0 50%, #86efac 75%, #4ade80 100%);
    min-height: 100vh;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Android Emoji', 'EmojiSymbols', sans-serif;
    line-height: 1.6;
    color: #166534;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 25%, #bbf7d0 50%, #86efac 75%, #4ade80 100%);
    min-height: 100vh;
    position: relative;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(187, 247, 208, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(134, 239, 172, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(74, 222, 128, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2vw;
    background: transparent;
}

/* Banner 区域 - 头部导航 */
header {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 25px rgba(5, 150, 105, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 2px solid rgba(5, 150, 105, 0.2);
}

nav {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.logo:hover {
    color: #e8f5e8;
}

.nav-links {
    display: flex;
    gap: clamp(1rem, 2vw, 2rem);
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: clamp(0.9rem, 2vw, 1rem);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-links a.user-link {
    color: #ffffff;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
}

.nav-links a.user-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}



.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* Content 区域 - 主要内容区 */
main {
    width: 100%;
    max-width: 100%;
    margin: 2rem auto;
    padding: 0 2vw;
    background: transparent;
    flex: 1;
}

.layout-split {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: clamp(1rem, 2vw, 1.5rem);
    min-height: calc(100vh - 200px);
}

/* 文章列表区域 - 清新绿色设计 */
.sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: clamp(15px, 2vw, 20px);
    padding: clamp(1rem, 2vw, 1.5rem);
    box-shadow: 0 8px 32px rgba(5, 150, 105, 0.08);
    height: fit-content;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    border: 1px solid rgba(5, 150, 105, 0.08);
    position: relative;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(5, 150, 105, 0.3), transparent);
}

/* 文章内容区域 - 清新绿色设计 */
.content-area {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: clamp(15px, 2vw, 20px);
    padding: clamp(1.5rem, 3vw, 2rem);
    box-shadow: 0 8px 32px rgba(5, 150, 105, 0.08);
    min-height: calc(100vh - 200px);
    border: 1px solid rgba(5, 150, 105, 0.08);
    position: relative;
}

.content-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(5, 150, 105, 0.3), transparent);
}

.card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: clamp(15px, 2vw, 20px);
    padding: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: clamp(1rem, 2vw, 2rem);
    box-shadow: 0 8px 32px rgba(5, 150, 105, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(5, 150, 105, 0.08);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(5, 150, 105, 0.25), transparent);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(5, 150, 105, 0.12);
    background: rgba(255, 255, 255, 0.98);
}

.article-actions-top {
    position: absolute;
    top: clamp(1rem, 2vw, 1.5rem);
    right: clamp(1rem, 2vw, 1.5rem);
    display: flex;
    gap: 0.1rem;
    align-items: center;
    z-index: 10;
}

.article-actions-top a {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.action-separator {
    color: #666;
    font-size: 0.9rem;
    margin: 0 0.3rem;
    opacity: 0.5;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-link {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-left: 0;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.action-link.edit {
    color: #4a7c59;
    background: transparent;
    border: none;
}

.action-link.edit:hover {
    background: transparent;
    color: #2d5a2d;
    transform: translateY(-1px);
    box-shadow: none;
    text-decoration: underline;
}

.action-link.delete {
    color: #d97706;
    background: transparent;
    border: none;
}

.action-link.delete:hover {
    background: transparent;
    color: #b45309;
    transform: translateY(-1px);
    box-shadow: none;
    text-decoration: underline;
}

.action-link.delete svg {
    transition: color 0.2s, stroke 0.2s;
    color: #888;
    stroke: #888;
    vertical-align: middle;
}
.action-link.delete:hover svg {
    color: #e74c3c;
    stroke: #e74c3c;
}

/* Style for button elements with action-link class */
button.action-link {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin-left: 0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

button.action-link.edit {
    color: #4a7c59;
    background: transparent;
    border: none;
}

button.action-link.edit:hover {
    background: transparent;
    color: #2d5a2d;
    transform: translateY(-1px);
    box-shadow: none;
    text-decoration: underline;
}

.action-link.publish {
    color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
}

.action-link.publish:hover {
    background: rgba(76, 175, 80, 0.2);
    color: #2e7d32;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

h1, h2, h3 {
    color: #2e7d32;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #2e7d32;
    text-align: center;
    margin-bottom: 2rem;
}

h2 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 600;
    color: #2e7d32;
}

.article-list {
    list-style: none;
}

.article-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.article-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #8bc34a, #4caf50);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.article-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-item:hover::before {
    transform: scaleY(1);
}

.article-item.active {
    background: rgba(139, 195, 74, 0.1);
    border-left: 4px solid #4caf50;
    transform: translateX(5px);
}

.article-item.active .article-title {
    color: #2e7d32;
    font-weight: 600;
}

.article-item.active .article-meta {
    color: #4caf50;
}

.article-title {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.article-meta {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.article-meta.right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 0.9rem;
    color: #4a7c59;
    gap: 1rem;
    margin-top: 2rem;
}

.article-meta.right .meta-info {
    color: #4a7c59;
    font-size: 0.9rem;
}

.article-meta.right .date {
    color: #666;
    font-style: italic;
    font-size: 0.85rem;
}

.article-content {
    max-width: 1000px;
    min-width: 0;
    margin: 0 auto;
    line-height: 1.8;
    color: #333;
    background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 100%) !important;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(139, 195, 74, 0.05);
    border: 1px solid #c5e1a5;
    backdrop-filter: blur(10px);
    white-space: pre-wrap;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Android Emoji', 'EmojiSymbols', sans-serif;
}

.article-content p {
    margin-bottom: 1.2rem;
    white-space: normal;
    line-height: 1.8;
}

.article-content p,
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6,
.article-content ul,
.article-content ol,
.article-content pre,
.article-content blockquote {
    padding: 0.5em 1em;
    margin-bottom: 1.2em;
    box-sizing: border-box;
}

.article-content pre {
    padding: 1em;
}

.article-content blockquote {
    padding: 1em 1.5em;
    border-left: 4px solid #4caf50;
    font-style: italic;
    color: #555;
}

.article-content p {
    margin-bottom: 1.2rem;
    white-space: normal;
    line-height: 1.8;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: #2e7d32;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content h1 {
    font-size: 1.8rem;
    border-bottom: 2px solid rgba(139, 195, 74, 0.3);
    padding-bottom: 0.5rem;
}

.article-content h2 {
    font-size: 1.5rem;
    color: #4caf50;
}

.article-content h3 {
    font-size: 1.3rem;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content code {
    background: rgba(139, 195, 74, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #2e7d32;
}

.article-content pre {
    background: rgba(0, 0, 0, 0.05);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.article-content pre code {
    background: none;
    padding: 0;
    color: #333;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-content a {
    color: #4caf50;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.article-content a:hover {
    color: #2e7d32;
    border-bottom-color: #4caf50;
}

.article-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Override margin-left for action-link in article-actions container */
.article-actions .action-link {
    margin-left: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid rgba(139, 195, 74, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.form-control:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.1);
    background: rgba(255, 255, 255, 1);
}

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

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.25);
    text-decoration: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.3);
    text-decoration: none;
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
    text-decoration: none;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
    text-decoration: none;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    text-decoration: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    text-decoration: none;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.message.error {
    background: rgba(244, 67, 54, 0.1);
    color: #d32f2f;
    border: 1px solid rgba(244, 67, 54, 0.2);
}

.message.success {
    background: rgba(5, 150, 105, 0.08);
    color: #047857;
    border: 1px solid rgba(5, 150, 105, 0.15);
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #999;
}

/* Footer 区域 - 草绿色底部 */
footer {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
    backdrop-filter: blur(20px);
    box-shadow: 0 -4px 25px rgba(5, 150, 105, 0.12);
    padding: 1rem 0;
    margin-top: auto;
    border-top: 2px solid rgba(5, 150, 105, 0.15);
}

.footer-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2vw;
}

.footer-links {
    text-align: center;
    color: #d1fae5;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links a {
    color: #6ee7b7;
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0 0.5rem;
}

.footer-links a:hover {
    color: #a7f3d0;
    text-decoration: underline;
}

.footer-links .contact {
    color: #a7f3d0;
    margin-left: 0.5rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(5, 150, 105, 0.15);
    color: #6ee7b7;
    font-size: 0.85rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .layout-split {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .container, nav, main {
        padding: 0 3vw;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .footer-links {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .layout-split {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sidebar {
        max-height: 300px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .nav-links a {
        text-align: center;
        padding: 0.8rem 1rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .article-item {
        padding: 0.8rem;
    }
    
    .content-area {
        padding: 1rem;
    }
    
    .container, nav, main {
        padding: 0 4vw;
    }
    
    .article-actions-top {
        position: relative;
        top: auto;
        right: auto;
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .article-content {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .article-content p {
        text-indent: 1.5em;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    footer {
        padding: 1.5rem 0 1rem;
    }
}

@media (max-width: 600px) {
  .card .article-meta.right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5em;
  }
}

@media (max-width: 480px) {
    .container, nav, main {
        padding: 0 5vw;
    }
    
    .nav-links {
        gap: 0.3rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }
    
    .card {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .article-item {
        padding: 0.6rem;
        margin-bottom: 0.6rem;
    }
    
    .content-area {
        padding: 0.8rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .footer-links {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        margin-top: 1.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 320px) {
    .container, nav, main {
        padding: 0 6vw;
    }
    
    .nav-links a {
        font-size: 0.8rem;
        padding: 0.5rem 0.6rem;
    }
    
    .card {
        padding: 0.6rem;
        margin-bottom: 0.8rem;
    }
    
    .article-item {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .content-area {
        padding: 0.6rem;
    }
    
    .footer-links {
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        margin-top: 1rem;
        font-size: 0.75rem;
    }
}

@media (orientation: landscape) and (max-height: 600px) {
    .sidebar {
        max-height: 200px;
    }
    
    .content-area {
        min-height: 400px;
    }
    
    .layout-split {
        min-height: 400px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-item {
    animation: fadeIn 0.5s ease-out;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(139, 195, 74, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 195, 74, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 195, 74, 0.5);
}

/* 分页样式 */
.pagination {
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
}

.pagination-info {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 5px 0;
}

.pagination-btn, .page-link {
    display: inline-block;
    padding: 6px 10px;
    margin: 0;
    background: transparent;
    color: #059669; /* 主题绿色 */
    text-decoration: none;
    border: none;
    border-radius: 0;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: auto;
    text-align: center;
    white-space: nowrap;
}

.pagination-btn:hover, .page-link:hover {
    color: #047857; /* 深主题色 */
    text-decoration: underline;
    background: transparent;
}

.page-link.active, .pagination-btn.current {
    color: #059669;
    font-weight: bold;
    border-bottom: none;
    background: transparent;
    text-decoration: none;
    border-radius: 0;
}

.pagination-btn.current:hover, .page-link.active:hover {
    color: #047857;
    border-bottom: 2px solid #047857;
    background: transparent;
}

.article-group-title {
    font-weight: bold;
    color: #4a7c59;
    margin-top: 18px;
    margin-bottom: 6px;
    font-size: 15px;
    border-left: 3px solid #4a7c59;
    padding-left: 8px;
    background: #f6fef8;
}

/* 评论区域样式 */
.comments-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.comments-section h3 {
    color: #4a7c59;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.comment-form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid rgba(5, 150, 105, 0.1);
    box-shadow: 
        0 8px 32px rgba(5, 150, 105, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.comment-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #059669, #10b981, #34d399);
}

.comment-form:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(5, 150, 105, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.06);
}

.comment-form .form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.comment-form .form-group:last-child {
    margin-bottom: 0;
}

.comment-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(5, 150, 105, 0.1);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 100px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    line-height: 1.6;
    color: #166534;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 
        0 0 0 3px rgba(5, 150, 105, 0.1),
        0 4px 12px rgba(5, 150, 105, 0.08);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.comment-form textarea::placeholder {
    color: #6b7280;
    font-style: italic;
}

.comment-form input[type="text"] {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid rgba(5, 150, 105, 0.1);
    border-radius: 10px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: #166534;
}

.comment-form input[type="text"]:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 
        0 0 0 3px rgba(5, 150, 105, 0.1),
        0 2px 8px rgba(5, 150, 105, 0.06);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.comment-form input[type="text"]::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.comment-form .btn {
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.comment-form .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.comment-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
}

.comment-form .btn:hover::before {
    left: 100%;
}

.comment-form .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.comment-form .btn.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.comment-form .btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

.comment-form .btn.loading span {
    opacity: 0;
}

.anonymous-section {
    margin-top: 0.5rem;
}

.comments-list {
    margin-top: 1rem;
}

.comment {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(5, 150, 105, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 
        0 4px 16px rgba(5, 150, 105, 0.06),
        0 1px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.comment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, #10b981, #34d399);
}

.comment:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 24px rgba(5, 150, 105, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.04);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.comment-author {
    font-weight: 600;
    color: #4a7c59;
    font-size: 0.9rem;
}

.comment-time {
    color: #6c757d;
    font-size: 0.8rem;
}

.comment-content {
    color: #333;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    word-wrap: break-word;
}

.comment-actions {
    display: flex;
    gap: 0.5rem;
}

.reply-btn, .delete-btn {
    background: none;
    border: none;
    color: #059669;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.reply-btn:hover {
    background: rgba(5, 150, 105, 0.1);
    color: #047857;
}

.delete-btn {
    color: #dc3545;
}

.delete-btn:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #c82333;
}

.reply-form {
    margin-top: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.95) 100%);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    border: 1px solid rgba(5, 150, 105, 0.08);
    box-shadow: 
        0 4px 16px rgba(5, 150, 105, 0.06),
        0 1px 4px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.reply-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, #10b981, #34d399);
}

.reply-form:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 20px rgba(5, 150, 105, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.03);
}

.reply-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(5, 150, 105, 0.08);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 70px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    line-height: 1.5;
    color: #166534;
}

.reply-form textarea:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 
        0 0 0 3px rgba(5, 150, 105, 0.08),
        0 2px 8px rgba(5, 150, 105, 0.06);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.reply-form textarea::placeholder {
    color: #6b7280;
    font-style: italic;
}

.reply-form input[type="text"] {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 2px solid rgba(5, 150, 105, 0.08);
    border-radius: 8px;
    font-size: 0.85rem;
    margin-top: 0.75rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: #166534;
}

.reply-form input[type="text"]:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 
        0 0 0 3px rgba(5, 150, 105, 0.08),
        0 2px 6px rgba(5, 150, 105, 0.04);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.reply-form input[type="text"]::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.reply-form .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.75rem;
    margin-top: 0.75rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.reply-form .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.reply-form .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
}

.reply-form .btn:hover::before {
    left: 100%;
}

.reply-form .btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(5, 150, 105, 0.25);
}

.reply-form .btn.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.reply-form .btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border: 2px solid transparent;
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

.reply-form .btn.loading span {
    opacity: 0;
}

.replies {
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 2px solid #e9ecef;
}

.reply {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(5, 150, 105, 0.06);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    margin-left: 0.75rem;
    box-shadow: 
        0 2px 8px rgba(5, 150, 105, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reply::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, #34d399, #6ee7b7);
}

.reply:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 12px rgba(5, 150, 105, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.03);
}

.reply .comment-header {
    margin-bottom: 0.4rem;
}

.reply .comment-author {
    font-size: 0.85rem;
}

.reply .comment-time {
    font-size: 0.75rem;
}

.reply .comment-content {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.loading {
    text-align: center;
    color: #059669;
    padding: 2rem;
    font-weight: 500;
    position: relative;
}

.loading::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(5, 150, 105, 0.2);
    border-radius: 50%;
    border-top-color: #059669;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.comment-form.success {
    animation: successPulse 0.6s ease-in-out;
    border-color: #10b981;
    box-shadow: 
        0 8px 32px rgba(16, 185, 129, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.04);
}

.comment-form.success::before {
    background: linear-gradient(90deg, #10b981, #34d399, #6ee7b7);
}

/* 模态弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.modal-show {
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 
        0 20px 60px rgba(5, 150, 105, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modal-overlay.modal-show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #059669, #10b981, #34d399);
}

.modal-header {
    padding: 1.5rem 1.5rem 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(5, 150, 105, 0.1);
}

.modal-header h3 {
    margin: 0;
    color: #166534;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
    transform: scale(1.1);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    margin: 0;
    color: #374151;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
}

.modal-footer {
    padding: 0.5rem 1.5rem 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.modal-footer .btn {
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.modal-footer .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.modal-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
}

.modal-footer .btn:hover::before {
    left: 100%;
}

.modal-footer .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

/* 响应式模态弹窗 */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1rem 1rem 0.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 0.5rem 1rem 1rem;
    }
}

.error {
    text-align: center;
    color: #dc2626;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.95) 0%, rgba(254, 226, 226, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.08);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.error::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

.no-comments {
    text-align: center;
    color: #6c757d;
    padding: 2rem;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #dee2e6;
}

/* 响应式评论样式 */
@media (max-width: 768px) {
    .comment-form {
        padding: 1rem;
    }
    
    .comment {
        padding: 0.75rem;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .replies {
        padding-left: 0.5rem;
    }
    
    .reply {
        margin-left: 0.25rem;
        padding: 0.5rem;
    }
    
    .reply-form {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .comments-section {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .comment-form {
        padding: 0.75rem;
    }
    
    .comment {
        padding: 0.5rem;
    }
    
    .reply {
        padding: 0.4rem;
    }
    
    .reply-form {
        padding: 0.5rem;
    }
}

/* 全新的文章统计和操作区域设计 */
.article-stats-container {
    margin: 1rem 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

.article-stats-grid {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0;
    background: none;
    border: none;
    transition: none;
    cursor: default;
}

.stat-card:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.stat-icon-large {
    font-size: 0.9rem;
    margin-bottom: 0;
    filter: none;
}

.stat-number {
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0;
}

.stat-label {
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

/* 全新的点赞按钮设计 */
.like-section {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.like-button-new {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 15px;
    color: #374151;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}



.like-button-new:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.like-button-new:active {
    transform: scale(0.95);
}

.like-button-new.liked {
    background: #fef2f2;
    border-color: #f87171;
    color: #dc2626;
}

.like-button-new.liked:hover {
    background: #fee2e2;
    border-color: #ef4444;
}

.like-icon-new {
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.like-button-new.liked .like-icon-new {
    animation: heartPulse 0.6s ease-in-out;
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.like-text-new {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 迷你统计信息 - 文章列表中使用 */
.article-stats-mini-new {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
    padding: 0.5rem 0;
}

.stat-mini-new {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    font-size: 0.75rem;
    color: #3b82f6;
    font-weight: 500;
    transition: all 0.2s ease;
}

.stat-mini-new:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.05);
}

.stat-mini-new .stat-icon-mini {
    font-size: 0.875rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-stats-container {
        margin: 0.8rem 0;
        padding: 0;
    }
    
    .article-stats-grid {
        gap: 1rem;
    }
    
    .stat-card {
        padding: 0;
    }
    
    .stat-icon-large {
        font-size: 0.8rem;
    }
    
    .stat-number {
        font-size: 0.75rem;
    }
    
    .like-button-new {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .article-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .like-button-new {
        padding: 0.2rem 0.4rem;
        font-size: 0.65rem;
    }
    
    .article-stats-mini-new {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}


