/* ============================================
   ZRL Blog - 全局样式
   ============================================ */

:root {
    --bg-color: #f0f4f8;
    --text-color: #1a202c;
    --text-muted: #718096;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-bg-hover: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.6);
    --primary-color: #3182ce;
    --primary-hover: #2b6cb0;
    --accent-color: #667eea;
    --secondary-color: #718096;
    --card-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 12px 40px -8px rgba(0, 0, 0, 0.12);
    --accent-glow: rgba(49, 130, 206, 0.08);
    --accent-glow-strong: rgba(49, 130, 206, 0.15);
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --tag-bg: #ebf4ff;
    --tag-color: #3182ce;
    --badge-bg: #fed7d7;
    --badge-color: #c53030;
    --success-color: #38a169;
    --warning-color: #d69e2e;
    --danger-color: #e53e3e;
    --border-radius: 16px;
    --border-radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-color: #0f1419;
    --text-color: #e2e8f0;
    --text-muted: #8899aa;
    --glass-bg: rgba(20, 29, 38, 0.82);
    --glass-bg-hover: rgba(30, 41, 55, 0.9);
    --glass-border: rgba(255, 255, 255, 0.06);
    --primary-color: #63b3ed;
    --primary-hover: #90cdf4;
    --accent-color: #7f9cf5;
    --secondary-color: #8899aa;
    --card-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 12px 40px -8px rgba(0, 0, 0, 0.5);
    --accent-glow: rgba(99, 179, 237, 0.1);
    --accent-glow-strong: rgba(99, 179, 237, 0.18);
    --tag-bg: rgba(99, 179, 237, 0.15);
    --tag-color: #90cdf4;
    --badge-bg: rgba(245, 101, 101, 0.15);
    --badge-color: #fc8181;
}

/* ============================================
   Reset & Base
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.75;
    transition: background-color var(--transition), color var(--transition);
    background-image:
        radial-gradient(ellipse 80% 60% at 20% 0%, var(--accent-glow) 0%, transparent 50%),
        radial-gradient(ellipse 60% 80% at 80% 100%, var(--accent-glow-strong) 0%, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */
.glass-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    padding: 0;
}

.glass-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--gradient-bg);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 10px;
    transition: all var(--transition);
    font-size: 15px;
}

.nav-links li a:hover {
    background: var(--accent-glow);
    color: var(--primary-color);
}

/* Theme Toggle Button */
.glass-btn {
    background: var(--accent-glow);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.glass-btn:hover {
    background: var(--accent-glow-strong);
    transform: translateY(-1px);
}

#theme-toggle {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--secondary-color);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-size: 16px;
}

#theme-toggle:hover {
    background: var(--accent-glow);
    color: var(--primary-color);
}

/* ============================================
   Glassmorphism Card
   ============================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 28px;
    box-shadow: var(--card-shadow);
    transition: all var(--transition);
}

.glass-card:hover {
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   Hero Section (首页)
   ============================================ */
.hero-section {
    text-align: center;
    padding: 80px 0 50px;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--secondary-color);
    max-width: 500px;
    margin: 0 auto;
    opacity: 0.85;
}

.hero-dots {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.hero-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.25;
    transition: all var(--transition);
}

.hero-dots span:nth-child(2) {
    opacity: 0.7;
    width: 24px;
    border-radius: 10px;
}

/* ============================================
   Content Grid (首页 / 分类页)
   ============================================ */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    margin-top: 10px;
    padding-bottom: 40px;
}

.main-content {
    min-width: 0;
}

/* ============================================
   Article Item (列表中的文章卡片)
   ============================================ */
.article-item {
    margin-bottom: 20px;
}

.article-item:hover {
    transform: translateY(-4px);
}

.article-header {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.article-item h2 {
    margin: 0 0 10px;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.4;
}

.article-item h2 a {
    color: var(--text-color);
}

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

.meta {
    font-size: 13px;
    color: var(--secondary-color);
    margin-bottom: 14px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

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

.summary {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* Badge & Tag */
.badge {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.top-badge {
    background: var(--badge-bg);
    color: var(--badge-color);
}

.category-tag {
    font-size: 12px;
    color: var(--tag-color);
    background: var(--tag-bg);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Read More */
.article-footer {
    margin-top: 18px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all var(--transition);
}

.read-more-btn:hover {
    gap: 10px;
}

.read-more-btn i {
    transition: transform var(--transition);
    font-size: 12px;
}

.read-more-btn:hover i {
    transform: translateX(3px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--secondary-color);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.4;
    display: block;
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar .glass-card {
    margin-bottom: 20px;
    padding: 24px;
}

.sidebar h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-glow);
}

/* Search Box */
.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-form input {
    width: 100%;
    padding: 12px 44px 12px 14px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid transparent;
    border-radius: var(--border-radius-sm);
    color: var(--text-color);
    font-size: 14px;
    transition: all var(--transition);
}

[data-theme="dark"] .search-form input {
    background: rgba(255, 255, 255, 0.04);
}

.search-form input:focus {
    border-color: var(--primary-color);
    outline: none;
    background: transparent;
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-form button {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    transition: color var(--transition);
}

.search-form button:hover {
    color: var(--primary-color);
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    transition: all var(--transition);
}

.category-list li a:hover {
    background: var(--accent-glow);
    transform: translateX(4px);
    color: var(--primary-color);
}

.category-list li a i {
    font-size: 12px;
    color: var(--secondary-color);
    transition: transform var(--transition);
}

.category-list li a:hover i {
    transform: translateX(3px);
}

/* Profile Widget */
.profile-widget {
    text-align: center;
}

.profile-header {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
}

.profile-header img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    border: 3px solid var(--glass-border);
    object-fit: cover;
}

.avatar-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    filter: blur(18px);
    opacity: 0.3;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.profile-widget h4 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
}

.profile-widget p {
    color: var(--secondary-color);
    font-size: 14px;
    margin: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
}

.social-links a {
    color: var(--secondary-color);
    font-size: 18px;
    transition: all var(--transition);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-glow);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    background: var(--accent-glow-strong);
}

/* ============================================
   Post Detail (文章详情页)
   ============================================ */
.post-detail {
    max-width: 820px;
    margin: 30px auto;
}

.post-header {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--glass-border);
}

.post-header h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0 0 14px;
    line-height: 1.3;
}

.post-header .meta {
    margin-bottom: 0;
}

.post-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Markdown 渲染后的内容样式 */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 1.8em;
    margin-bottom: 0.6em;
    font-weight: 700;
    line-height: 1.4;
}

.post-content h1 { font-size: 1.8rem; }
.post-content h2 { font-size: 1.5rem; padding-bottom: 8px; border-bottom: 1px solid var(--glass-border); }
.post-content h3 { font-size: 1.25rem; }
.post-content h4 { font-size: 1.1rem; }

.post-content p {
    margin: 0 0 1.2em;
}

.post-content ul,
.post-content ol {
    padding-left: 1.5em;
    margin: 0 0 1.2em;
}

.post-content li {
    margin-bottom: 0.4em;
}

.post-content blockquote {
    margin: 1.2em 0;
    padding: 12px 20px;
    border-left: 4px solid var(--primary-color);
    background: var(--accent-glow);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    color: var(--text-muted);
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-content code {
    background: var(--accent-glow);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: "SF Mono", "Fira Code", "Consolas", monospace;
}

.post-content pre {
    background: var(--accent-glow);
    padding: 20px;
    border-radius: var(--border-radius-sm);
    overflow-x: auto;
    margin: 1.2em 0;
    border: 1px solid var(--glass-border);
}

.post-content pre code {
    background: none;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
}

.post-content img {
    max-width: 100%;
    border-radius: var(--border-radius-sm);
    margin: 1em 0;
}

.post-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
}

.post-content table th,
.post-content table td {
    padding: 10px 14px;
    border: 1px solid var(--glass-border);
    text-align: left;
}

.post-content table th {
    background: var(--accent-glow);
    font-weight: 600;
}

.post-content hr {
    border: none;
    border-top: 1px solid var(--glass-border);
    margin: 2em 0;
}

/* Comment Section */
.comment-section {
    max-width: 820px;
    margin: 0 auto 40px;
}

.comment-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 12px;
}

/* ============================================
   Repository List (仓库列表页)
   ============================================ */
.repo-header {
    text-align: center;
    padding: 50px 0 30px;
}

.repo-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0 0 8px;
}

.repo-header p {
    color: var(--secondary-color);
    font-size: 1.05rem;
}

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

.repo-item {
    transition: all var(--transition);
}

.repo-item:hover {
    transform: translateY(-4px);
}

.repo-item h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 700;
}

.repo-item h3 a {
    color: var(--text-color);
}

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

.repo-item h3 i {
    color: var(--secondary-color);
    font-size: 0.95em;
}

.repo-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.repo-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--secondary-color);
    flex-wrap: wrap;
}

.repo-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   Repository Detail (仓库详情页)
   ============================================ */
.repo-detail-header {
    margin: 30px 0 20px;
}

.repo-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.repo-title h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.repo-title h1 i {
    color: var(--secondary-color);
}

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

.repo-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: 0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--text-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-btn .count {
    background: var(--accent-glow);
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 12px;
}

.tab-content {
    animation: fadeIn 0.3s ease-out;
}

/* README Box */
.readme-box .card-header {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 20px;
}

.readme-box .card-body {
    font-size: 15px;
    line-height: 1.8;
    word-wrap: break-word;
}

.readme-box .card-body h1,
.readme-box .card-body h2,
.readme-box .card-body h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.readme-box .card-body h1 { font-size: 1.6rem; }
.readme-box .card-body h2 { font-size: 1.3rem; padding-bottom: 6px; border-bottom: 1px solid var(--glass-border); }
.readme-box .card-body h3 { font-size: 1.1rem; }

.readme-box .card-body code {
    background: var(--accent-glow);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.readme-box .card-body pre {
    background: var(--accent-glow);
    padding: 16px;
    border-radius: var(--border-radius-sm);
    overflow-x: auto;
    border: 1px solid var(--glass-border);
}

.readme-box .card-body pre code {
    background: none;
    padding: 0;
}

.readme-box .card-body blockquote {
    border-left: 3px solid var(--primary-color);
    padding: 8px 16px;
    margin: 1em 0;
    background: var(--accent-glow);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

/* Card Header (Issues / Releases) */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 16px;
    font-weight: 700;
    font-size: 16px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 8px;
}

/* Issue List */
.issue-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.issue-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--glass-border);
}

.issue-item:last-child {
    border-bottom: none;
}

.issue-item .fa-dot-circle {
    margin-top: 4px;
    font-size: 14px;
    flex-shrink: 0;
}

.issue-item .fa-dot-circle.open {
    color: var(--success-color);
}

.issue-item .fa-dot-circle.closed {
    color: var(--danger-color);
}

.issue-main {
    min-width: 0;
}

.issue-main a {
    font-weight: 600;
    color: var(--text-color);
    display: block;
    margin-bottom: 4px;
}

.issue-main a:hover {
    color: var(--primary-color);
}

.issue-meta {
    font-size: 12px;
    color: var(--secondary-color);
}

/* Release Item */
.release-item {
    margin-bottom: 20px;
}

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

.release-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.tag {
    background: var(--accent-glow);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    font-family: "SF Mono", "Consolas", monospace;
}

.release-body {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.release-footer {
    padding-top: 14px;
    border-top: 1px solid var(--glass-border);
}

.release-footer a {
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
}

/* ============================================
   Archive Page (归档页)
   ============================================ */
.archive-header {
    text-align: center;
    padding: 50px 0 30px;
}

.archive-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0 0 8px;
}

.archive-header p {
    color: var(--secondary-color);
    font-size: 1.05rem;
}

.archive-list {
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.archive-year h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 36px 0 16px;
    color: var(--primary-color);
}

.archive-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-list li {
    padding: 14px 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    gap: 20px;
    align-items: center;
}

.archive-list li:last-child {
    border-bottom: none;
}

.archive-list .date {
    color: var(--secondary-color);
    font-family: "SF Mono", "Consolas", monospace;
    font-size: 14px;
    flex-shrink: 0;
}

.archive-list a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 15px;
}

.archive-list a:hover {
    color: var(--primary-color);
}

/* ============================================
   Category Page (分类页)
   ============================================ */
.category-header {
    text-align: center;
    padding: 50px 0 30px;
}

.category-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0 0 8px;
}

.category-header p {
    color: var(--secondary-color);
    font-size: 1.05rem;
}

/* ============================================
   Search Page (搜索页)
   ============================================ */
.search-header {
    text-align: center;
    padding: 50px 0 30px;
}

.search-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0 0 8px;
}

.search-header p {
    color: var(--secondary-color);
    font-size: 1.05rem;
}

/* ============================================
   Issue Detail (Issue 详情页)
   ============================================ */
.issue-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 20px;
}

.issue-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 10px;
}

.issue-number {
    color: var(--secondary-color);
    font-weight: 300;
}

.issue-meta-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--secondary-color);
}

.issue-meta-bar .meta-text {
    color: var(--text-muted);
}

.badge.status-open {
    background: var(--success-color);
    color: #fff;
}

.badge.status-closed {
    background: var(--danger-color);
    color: #fff;
}

.issue-timeline {
    max-width: 820px;
    margin: 0 auto 40px;
}

.comment-item {
    padding: 0;
    overflow: hidden;
    margin-bottom: 16px;
}

.comment-header {
    background: var(--accent-glow);
    padding: 12px 20px;
    border-bottom: 1px solid var(--glass-border);
    font-size: 14px;
    color: var(--text-muted);
}

.comment-body {
    padding: 20px;
    font-size: 15px;
    line-height: 1.8;
}

.admin-comment {
    border-color: var(--primary-color);
}

.admin-badge {
    background: var(--primary-color);
    color: #fff;
    font-size: 10px;
    margin-left: 5px;
}

.reply-box {
    margin-top: 40px;
}

.reply-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 16px;
}

/* Form Styles */
.form-box {
    max-width: 600px;
    margin: 40px auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.glass-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-color);
    font-size: 14px;
    box-sizing: border-box;
    transition: all var(--transition);
}

.glass-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea.glass-input {
    resize: vertical;
}

/* ============================================
   About Page (关于页)
   ============================================ */
.about-box {
    max-width: 760px;
    margin: 40px auto;
}

.about-box h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 20px;
}

.about-content {
    line-height: 2;
    font-size: 16px;
}

.about-content h3 {
    margin-top: 30px;
    font-size: 1.2rem;
    font-weight: 700;
}

.about-content ul {
    padding-left: 1.5em;
}

.about-content ul li {
    margin-bottom: 8px;
}

/* ============================================
   Footer
   ============================================ */
.glass-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--glass-border);
    padding: 24px 0;
    text-align: center;
    margin-top: auto;
}

.glass-footer p {
    margin: 0;
    color: var(--secondary-color);
    font-size: 14px;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes pulse {
    0%   { transform: scale(0.95); opacity: 0.3; }
    50%  { transform: scale(1.05); opacity: 0.5; }
    100% { transform: scale(0.95); opacity: 0.3; }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
    }

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

    .hero-section h1 {
        font-size: 2rem;
    }

    .post-header h1 {
        font-size: 1.6rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .glass-nav .container {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 16px;
        gap: 10px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 2px;
    }

    .nav-links li a {
        padding: 6px 10px;
        font-size: 13px;
    }

    .hero-section {
        padding: 50px 0 30px;
    }

    .hero-section h1 {
        font-size: 1.6rem;
    }

    .glass-card {
        padding: 20px;
    }

    .repo-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .repo-tabs {
        overflow-x: auto;
    }

    .tab-btn {
        padding: 8px 14px;
        font-size: 13px;
        white-space: nowrap;
    }
}