:root {
    --primary-color: #06b6d4;
    --primary-light: #22d3ee;
    --primary-dark: #0891b2;
    --secondary-color: #8b5cf6;
    --accent-color: #f97316;
    --bg-gradient-start: #f0f9ff;
    --bg-gradient-end: #faf5ff;
    --bg-color: linear-gradient(135deg, #f0f9ff 0%, #faf5ff 50%, #fef3c7 100%);
    --card-bg: #ffffff;
    --card-bg-hover: #f8fafc;
    --text-color: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(6, 182, 212, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(6, 182, 212, 0.08), 0 2px 4px -1px rgba(6, 182, 212, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(6, 182, 212, 0.1), 0 4px 6px -2px rgba(6, 182, 212, 0.06);
    --shadow-xl: 0 20px 25px -5px rgba(6, 182, 212, 0.1), 0 8px 10px -6px rgba(6, 182, 212, 0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

[data-theme="dark"] {
    --primary-color: #06b6d4;
    --primary-light: #22d3ee;
    --primary-dark: #0891b2;
    --secondary-color: #a78bfa;
    --accent-color: #fb923c;
    --bg-gradient-start: #0f172a;
    --bg-gradient-end: #1e293b;
    --bg-color: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --card-bg: #1e293b;
    --card-bg-hover: #334155;
    --text-color: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: #334155;
    --border-light: #475569;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-color);
    background-attachment: fixed;
    color: var(--text-color);
    min-height: 100vh;
    transition: all 0.3s ease;
    padding: 0 20px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0;
    display: grid;
    grid-template-columns: 19% 60% 21%;
    gap: 20px;
    width: calc(100% - 40px);
}

/* Header Styles */
.header-card {
    max-width: 1200px;
    width: calc(100% - 40px);
    margin: 20px auto;
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 30%, #22d3ee 60%, #8b5cf6 100%);
    border-radius: var(--radius-xl);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-xl);
    color: white;
    position: relative;
    overflow: hidden;
}

.header-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.header-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.logo {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo:hover {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.header-center {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.poem-text {
    font-size: 16px;
    font-style: italic;
    opacity: 0.98;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.poem-author {
    font-size: 12px;
    opacity: 0.75;
    margin-top: 4px;
    letter-spacing: 1px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.search-box {
    position: relative;
}

.search-input {
    padding: 9px 38px 9px 15px;
    border: none;
    border-radius: var(--radius-full);
    outline: none;
    font-size: 13px;
    width: 170px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    width: 220px;
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1), 0 4px 15px rgba(0, 0, 0, 0.2);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    font-size: 15px;
    transition: color 0.2s;
}

.search-btn:hover {
    color: white;
}

.header-btn {
    padding: 9px 18px;
    border: none;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    font-size: 17px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Sidebar Left */
.sidebar-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title::before {
    content: '';
    width: 4px;
    height: 14px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-sm);
}

/* Profile Card */
.profile-card {
    text-align: center;
}

.avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.avatar::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.3;
    z-index: -1;
    transition: opacity 0.3s;
}

.avatar:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.45);
}

.avatar:hover::before {
    opacity: 0.5;
}

.author-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-color);
    letter-spacing: 0.5px;
}

.author-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 11px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0f2fe, #e9d5ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .social-link {
    background: linear-gradient(135deg, #0e7490, #4c1d95);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

/* Menu */
.menu-list {
    list-style: none;
}

.menu-item {
    margin-bottom: 4px;
}

.menu-item:last-child {
    margin-bottom: 0;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 18px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-sm);
    opacity: 0;
    transition: opacity 0.3s;
}

.menu-link:hover,
.menu-link.active {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(139, 92, 246, 0.08));
    color: var(--primary-color);
    padding-left: 18px;
}

.menu-link:hover::before,
.menu-link.active::before {
    opacity: 1;
}

.menu-link i {
    font-size: 15px;
}

/* Site Info */
.site-info {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 2;
}

.site-info i {
    margin-right: 7px;
    color: var(--primary-color);
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 20px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.category-nav a {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.category-nav a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s;
}

.category-nav a:hover,
.category-nav a.active {
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
    transform: translateY(-1px);
}

.category-nav a:hover::before,
.category-nav a.active::before {
    opacity: 1;
}

.category-nav a span {
    position: relative;
    z-index: 1;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.article-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

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

.article-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.25s;
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-meta i {
    font-size: 12px;
    color: var(--primary-color);
}

.article-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pagination {
    text-align: center;
    padding: 16px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.page-nav {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.page-nav a,
.page-nav span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 38px;
}

.page-nav a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
}

.page-nav .current {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
}

/* Sidebar Right */
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Hot Articles */
.hot-list {
    list-style: none;
}

.hot-item {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border-light);
    transition: transform 0.25s;
}

.hot-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.hot-item:hover {
    transform: translateX(4px);
}

.hot-item a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s;
}

.hot-item a:hover {
    color: var(--primary-color);
}

.hot-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.hot-meta i {
    margin-right: 5px;
    color: var(--accent-color);
}

/* Comments */
.comment-list {
    list-style: none;
}

.comment-item {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border-light);
    transition: transform 0.25s;
}

.comment-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.comment-item:hover {
    transform: translateX(4px);
}

.comment-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-author::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.comment-content {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.stat-item {
    text-align: center;
    padding: 14px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), rgba(139, 92, 246, 0.05));
    border-radius: var(--radius-md);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
}

.stat-item:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(139, 92, 246, 0.12));
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Footer */
.footer {
    max-width: 1200px;
    width: calc(100% - 40px);
    margin: 20px auto;
    padding: 16px;
    text-align: center;
}

/* Post Page */
.post-content {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.post-header {
    text-align: center;
    margin-bottom: 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border-light);
}

.post-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-color);
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta i {
    font-size: 13px;
    color: var(--primary-color);
}

.post-body {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-color);
}

.post-body h1 {
    font-size: 21px;
    font-weight: 600;
    margin: 22px 0 14px;
    color: var(--text-color);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.post-body h1::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-sm);
}

.post-body h2 {
    font-size: 19px;
    font-weight: 600;
    margin: 20px 0 12px;
    color: var(--text-color);
}

.post-body h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 18px 0 10px;
    color: var(--text-color);
}

.post-body p {
    margin: 14px 0;
}

.post-body img {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: 14px 0;
    box-shadow: var(--shadow-md);
}

.post-body code {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(139, 92, 246, 0.1));
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;
    color: var(--primary-color);
}

.post-body pre {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(139, 92, 246, 0.08));
    padding: 20px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 14px 0;
    border: 1px solid var(--border-light);
}

.post-body pre code {
    background: transparent;
    padding: 0;
    color: var(--text-color);
}

.post-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 12px 20px;
    margin: 16px 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), rgba(139, 92, 246, 0.05));
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--text-secondary);
    font-style: italic;
}

.post-tags {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.post-tags span {
    font-size: 13px;
    color: var(--text-muted);
    margin-right: 10px;
    font-weight: 500;
}

.post-tags a {
    display: inline-block;
    padding: 7px 16px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(139, 92, 246, 0.08));
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
}

.post-tags a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
}

/* Comments Section */
.comments-section {
    margin-top: 16px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.comment-form {
    margin-bottom: 22px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-bg-hover);
    color: var(--text-color);
    margin-bottom: 12px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

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

.comment-submit {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.comment-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

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

.comment-item {
    padding: 16px;
    background: var(--card-bg-hover);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.3s;
}

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

.comment-item:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), rgba(139, 92, 246, 0.05));
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-author .avatar {
    width: 32px;
    height: 32px;
    font-size: 13px;
    box-shadow: none;
}

.comment-author .avatar::before {
    display: none;
}

.comment-time {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-text {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.65;
}

/* 404 Page */
.error-404 {
    text-align: center;
    padding: 80px 20px;
}

.error-404 .error-code {
    font-size: 90px;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.error-404 .error-message {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 16px;
    font-weight: 600;
}

.error-404 .error-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.error-404 .home-link {
    display: inline-block;
    padding: 13px 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
}

.error-404 .home-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.45);
}

/* Links Page */
.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.link-item:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(139, 92, 246, 0.08));
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.link-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.link-info {
    flex: 1;
}

.link-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.link-desc {
    font-size: 12px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.empty-message {
    text-align: center;
    padding: 50px;
    color: var(--text-muted);
    font-size: 15px;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        padding: 0;
        width: calc(100% - 32px);
    }

    .header-card {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
        margin: 16px auto;
        width: calc(100% - 32px);
    }

    .header-left,
    .header-right {
        width: 100%;
        justify-content: center;
    }

    .search-input {
        width: 100%;
        max-width: 280px;
    }

    .sidebar-left,
    .sidebar-right {
        order: 2;
    }

    .main-content {
        order: 1;
    }

    .sidebar-left {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .sidebar-right {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    body {
        padding: 0 12px;
    }

    .container {
        width: calc(100% - 24px);
    }

    .header-card {
        width: calc(100% - 24px);
        margin: 12px auto;
        padding: 16px;
    }

    .header-card::before,
    .header-card::after {
        display: none;
    }

    .sidebar-left {
        grid-template-columns: 1fr;
    }

    .sidebar-right {
        grid-template-columns: 1fr;
    }

    .category-nav {
        justify-content: center;
    }

    .article-meta {
        flex-direction: column;
        gap: 6px;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .post-title {
        font-size: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .error-404 .error-code {
        font-size: 60px;
    }
}