/* ============================================
   FlameXC Theme - 酷炫现代化 Typecho 主题
   主色调: #ff6f00 (Amber Flame)
   ============================================ */

/* ========== CSS Variables ========== */
:root {
    --primary: #ff6f00;
    --primary-light: #ff9100;
    --primary-dark: #e65100;
    --primary-glow: rgba(255, 111, 0, 0.4);
    --primary-glow-soft: rgba(255, 111, 0, 0.15);
    --accent: #00e5ff;
    --accent-glow: rgba(0, 229, 255, 0.2);
    --bg-body: #07070c;
    --bg-card: #0e0e16;
    --bg-card-hover: #15151f;
    --bg-sidebar: #0c0c14;
    --bg-input: #14141e;
    --bg-code: #12121c;
    --text-primary: #e8e8ed;
    --text-secondary: #9898a8;
    --text-muted: #5a5a70;
    --border-color: rgba(255, 111, 0, 0.15);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px rgba(255, 111, 0, 0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1280px;
    --sidebar-width: 300px;
    --navbar-height: 64px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 噪点纹理层 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

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

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

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

::selection {
    background: var(--primary);
    color: #fff;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ========== Background Decoration ========== */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

/* 网格纹理 */
.bg-decoration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 111, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 111, 0, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 70%);
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.045;
    animation: blobFloat 25s ease-in-out infinite;
}

.bg-blob-1 {
    width: 700px;
    height: 700px;
    background: var(--primary);
    top: -300px;
    right: -150px;
    animation-delay: 0s;
}

.bg-blob-2 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    bottom: -200px;
    left: -150px;
    animation-delay: -8s;
}

.bg-blob-3 {
    width: 350px;
    height: 350px;
    background: #ffc107;
    top: 50%;
    left: 50%;
    animation-delay: -16s;
}

/* 鼠标跟随光效容器 */
.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 111, 0, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: left 0.5s ease-out, top 0.5s ease-out;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 40px) scale(0.95); }
    75% { transform: translate(30px, 20px) scale(1.08); }
}

/* ========== Navbar ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    z-index: 1000;
    background: rgba(7, 7, 12, 0.6);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    transition: all var(--transition);
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
    opacity: 0.3;
    transition: opacity var(--transition);
}

.navbar.scrolled {
    background: rgba(7, 7, 12, 0.92);
}

.navbar.scrolled::after {
    opacity: 0.6;
}

.navbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
}

.navbar-brand {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 36px;
    width: auto;
    border-radius: 6px;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-text:hover {
    color: var(--text-primary);
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary), #ff3d00);
    border-radius: 7px;
    color: #fff;
    font-size: 13px;
    box-shadow: 0 0 12px rgba(255, 61, 0, 0.3);
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    z-index: -1;
    opacity: 0.3;
    filter: blur(4px);
}

.navbar-search {
    flex: 1;
    max-width: 360px;
    margin: 0 auto;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 10px 44px 10px 40px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all var(--transition);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow-soft);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    position: absolute;
    right: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    transition: all var(--transition);
}

.search-btn:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 7px 14px;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transform: translateX(-50%);
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 16px;
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    width: 16px;
    background: var(--primary);
}

.navbar-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.navbar-social a:hover {
    color: var(--primary);
    background: var(--primary-glow-soft);
    transform: translateY(-2px);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.navbar-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== Mobile Sidebar ========== */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: var(--bg-card);
    z-index: 1200;
    transition: right var(--transition);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
    font-weight: 600;
}

.mobile-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
}

.mobile-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.mobile-link:hover,
.mobile-link.active {
    color: var(--primary);
    background: var(--primary-glow-soft);
}

.mobile-sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-subtle);
}

.mobile-search {
    display: flex;
    gap: 8px;
}

.mobile-search input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    outline: none;
}

.mobile-search button {
    padding: 10px 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* ========== Main Container ========== */
.main-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: calc(var(--navbar-height) + 32px) 24px 0;
    min-height: calc(100vh - 200px);
}

/* ========== Content Wrapper ========== */
.content-wrapper {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

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

/* ========== Banner Carousel ========== */
.banner-section {
    margin-bottom: 28px;
}

.banner-carousel {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 60px rgba(255, 111, 0, 0.06);
    border: 1px solid var(--border-subtle);
}

.banner-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide {
    flex: 0 0 100%;
}

.banner-card {
    display: block;
    position: relative;
    height: 360px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-card);
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 48px 36px 36px;
    background: linear-gradient(transparent, rgba(7, 7, 12, 0.9));
}

.banner-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(255, 111, 0, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--primary);
    border: 1px solid rgba(255, 111, 0, 0.25);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
}

.banner-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.4;
}

.banner-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
}

.banner-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.banner-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition);
}

.banner-dots .dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--primary);
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: all var(--transition);
    backdrop-filter: blur(10px);
}

.banner-arrow:hover {
    background: var(--primary);
}

.banner-prev { left: 16px; }
.banner-next { right: 16px; }

/* ========== Post Card ========== */
.post-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    margin-bottom: 24px;
    transition: all var(--transition);
    animation: fadeInUp 0.5s ease forwards;
    position: relative;
}

/* 左侧彩色竖线 */
.post-card::before {
    content: '';
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transition: opacity var(--transition);
}

.post-card:hover {
    border-color: rgba(255, 111, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
}

.post-card:hover::before {
    opacity: 1;
}

.post-card-cover {
    display: block;
    position: relative;
    height: 200px;
    overflow: hidden;
}

.post-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
}

.post-card:hover .post-card-cover img {
    transform: scale(1.08);
}

/* 封面底部扫描线效果 */
.post-card-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 60%,
        rgba(7, 7, 12, 0.4) 80%,
        var(--bg-card) 100%
    );
    pointer-events: none;
}

.post-card-body {
    padding: 24px;
}

.post-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 13px;
}

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

.post-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 12px;
}

.post-card-title a {
    color: var(--text-primary);
    transition: color var(--transition);
}

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

.post-card-excerpt {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition);
    padding: 4px 0;
    border-bottom: 1px solid transparent;
}

.read-more:hover {
    gap: 10px;
    border-bottom-color: var(--primary);
}

.post-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.post-card-tags a {
    padding: 2px 10px;
    background: var(--primary-glow-soft);
    color: var(--primary);
    border-radius: 100px;
    font-size: 12px;
    transition: all var(--transition);
}

.post-card-tags a:hover {
    background: var(--primary);
    color: #fff;
}

/* ========== Post Full (Single) ========== */
.post-full {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    position: relative;
}

/* 文章顶部装饰线 */
.post-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    background-size: 200% 100%;
    animation: gradientShift 4s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

.post-full-cover {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.post-full-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-full-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(transparent, var(--bg-card));
    pointer-events: none;
}

.post-full-header {
    padding: 32px 40px 0;
}

.post-full-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 16px;
}

.post-full-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.page-full .post-full-title {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.post-full-content {
    padding: 32px 40px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
}

.post-full-content h1,
.post-full-content h2,
.post-full-content h3,
.post-full-content h4,
.post-full-content h5,
.post-full-content h6 {
    color: var(--text-primary);
    font-weight: 700;
    margin: 1.5em 0 0.8em;
    line-height: 1.4;
}

.post-full-content h2 {
    font-size: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

.post-full-content h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.post-full-content h3 {
    font-size: 1.25rem;
}

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

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

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

.post-full-content blockquote {
    margin: 1.5em 0;
    padding: 16px 20px;
    border-left: 4px solid var(--primary);
    background: var(--primary-glow-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
}

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

.post-full-content pre {
    margin: 1.5em 0;
    padding: 20px;
    background: var(--bg-code);
    border-radius: var(--radius-sm);
    overflow-x: auto;
    border: 1px solid var(--border-subtle);
}

.post-full-content code {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.9em;
}

.post-full-content :not(pre) > code {
    padding: 2px 8px;
    background: var(--primary-glow-soft);
    color: var(--primary-light);
    border-radius: 4px;
}

.post-full-content img {
    border-radius: var(--radius-sm);
    margin: 1em 0;
    box-shadow: var(--shadow-md);
}

.post-full-content a {
    color: var(--primary);
    border-bottom: 1px solid var(--primary-glow-soft);
    transition: all var(--transition);
}

.post-full-content a:hover {
    border-bottom-color: var(--primary);
}

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

.post-full-content th,
.post-full-content td {
    padding: 12px 16px;
    border: 1px solid var(--border-subtle);
    text-align: left;
}

.post-full-content th {
    background: var(--primary-glow-soft);
    font-weight: 600;
    color: var(--primary);
}

.post-full-content hr {
    border: none;
    height: 1px;
    background: var(--border-subtle);
    margin: 2em 0;
}

.post-full-tags {
    padding: 0 40px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.post-full-tags i {
    color: var(--primary);
}

.post-full-tags a {
    padding: 4px 14px;
    background: var(--primary-glow-soft);
    color: var(--primary);
    border-radius: 100px;
    font-size: 13px;
    transition: all var(--transition);
}

.post-full-tags a:hover {
    background: var(--primary);
    color: #fff;
}

.post-full-nav {
    display: flex;
    justify-content: space-between;
    padding: 24px 40px;
    border-top: 1px solid var(--border-subtle);
    gap: 16px;
}

.post-full-nav > div {
    flex: 1;
}

.nav-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.post-full-nav a {
    color: var(--text-primary);
    font-weight: 500;
    transition: color var(--transition);
}

.post-full-nav a:hover {
    color: var(--primary);
}

/* ========== Archive Header ========== */
.archive-header {
    margin-bottom: 24px;
}

.archive-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    color: var(--primary);
    padding: 16px 24px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.archive-title i {
    font-size: 1.1rem;
}

/* ========== Comments ========== */
.comments-section {
    padding: 32px 40px 24px;
}

.comments-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.comments-title i {
    color: var(--primary);
}

.comments-list {
    margin-bottom: 32px;
}

.comments-list ol,
.comments-list ul {
    list-style: none;
    padding: 0;
}

.comments-list li {
    padding: 20px;
    margin-bottom: 16px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    transition: border-color var(--transition);
}

.comments-list li:hover {
    border-color: var(--primary-glow-soft);
}

.comments-list .comment-author {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.comments-list .comment-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.comments-list .comment-content {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.comments-list .comment-content p {
    margin-bottom: 0.5em;
}

.comments-list .reply {
    margin-top: 8px;
}

.comments-list .reply a {
    color: var(--primary);
    font-size: 13px;
}

.comments-list .children {
    padding-left: 24px;
    margin-top: 16px;
    border-left: 2px solid var(--primary-glow-soft);
}

.cancel-comment-reply a {
    color: var(--text-muted);
    font-size: 13px;
}

.respond-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.respond-title i {
    color: var(--primary);
}

.comment-form {
    margin-top: 20px;
}

.comment-logged-in {
    padding: 12px 16px;
    background: var(--primary-glow-soft);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.comment-logged-in a {
    color: var(--primary);
}

.logout-link {
    margin-left: 8px;
    font-size: 13px;
}

.comment-form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.comment-form-field {
    margin-bottom: 0;
}

.comment-form-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.comment-form-field label i {
    color: var(--primary);
    font-size: 12px;
}

.comment-form-field label.required::after {
    content: '*';
    color: #f44336;
    margin-left: 2px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all var(--transition);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow-soft);
}

.form-textarea {
    width: 100%;
    padding: 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    outline: none;
    resize: vertical;
    transition: all var(--transition);
    font-family: inherit;
}

.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow-soft);
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    transition: left var(--transition);
    z-index: -1;
}

.submit-btn:hover {
    color: #fff;
    border-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--primary-glow);
}

.submit-btn:hover::before {
    left: 0;
}

.comments-closed {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.comments-closed i {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

/* ========== Sidebar ========== */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--navbar-height) + 32px);
}

.widget {
    background: rgba(14, 14, 22, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    padding: 20px;
    margin-bottom: 16px;
    transition: all var(--transition);
}

.widget:hover {
    border-color: rgba(255, 111, 0, 0.1);
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.widget-title i {
    color: var(--primary);
}

.widget-list {
    list-style: none;
    padding: 0;
}

.widget-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
}

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

.widget-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all var(--transition);
}

.widget-list li a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.widget-list li a i {
    color: var(--primary);
    font-size: 12px;
}

.post-dot,
.archive-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Author Card Widget */
.author-card {
    text-align: center;
    padding: 28px 20px;
    position: relative;
    overflow: hidden;
}

/* 作者卡片底部装饰 */
.author-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.author-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 111, 0, 0.3);
    box-shadow: 0 0 24px rgba(255, 111, 0, 0.15);
    animation: avatarGlow 3s ease-in-out infinite alternate;
}

@keyframes avatarGlow {
    0% { box-shadow: 0 0 24px rgba(255, 111, 0, 0.15); border-color: rgba(255, 111, 0, 0.3); }
    100% { box-shadow: 0 0 36px rgba(255, 111, 0, 0.25); border-color: rgba(255, 111, 0, 0.5); }
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-size: 28px;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

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

.author-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

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

.author-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Tag Cloud Widget */
.widget-tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-glow-soft);
    color: var(--primary);
    border-radius: 100px;
    font-size: 13px;
    transition: all var(--transition);
}

.tag-item:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Category widget styling */
.widget-categories li {
    padding: 6px 0;
}

.widget-categories li a {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

/* ========== Pagination ========== */
.pagination {
    margin: 32px 0;
    text-align: center;
}

.pagination ol {
    list-style: none;
    display: inline-flex;
    gap: 6px;
    padding: 0;
}

.pagination li {
    display: inline-block;
}

.pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    transition: all var(--transition);
}

.pagination li a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-glow-soft);
}

.pagination li.current a {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination li.next a,
.pagination li.prev a {
    font-weight: 600;
}

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

.error-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 5rem;
    margin-bottom: 24px;
}

.error-code {
    font-weight: 900;
    color: var(--text-primary);
}

.error-zero {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 0 40px var(--primary-glow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 40px var(--primary-glow); }
    50% { box-shadow: 0 0 60px rgba(255, 111, 0, 0.5); }
}

.error-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.error-desc {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.error-search {
    max-width: 400px;
    margin: 0 auto 24px;
}

.error-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-glow-soft);
    color: var(--primary);
    border-radius: 100px;
    font-weight: 600;
    transition: all var(--transition);
}

.error-home:hover {
    background: var(--primary);
    color: #fff;
}

/* ========== No Results ========== */
.no-results {
    text-align: center;
    padding: 80px 24px;
}

.no-results-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.no-results h2 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.no-results p {
    color: var(--text-muted);
}

/* ========== Back to Top ========== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 14, 22, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--primary);
    border: 1px solid rgba(255, 111, 0, 0.2);
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px var(--primary-glow);
}

/* ========== Footer ========== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    padding: 40px 24px;
    margin-top: 60px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), var(--primary), transparent);
    opacity: 0.4;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.footer-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-glow-soft);
    color: var(--primary);
    font-size: 16px;
    transition: all var(--transition);
}

.footer-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-sep {
    margin: 0 6px;
    opacity: 0.4;
}

.footer-friends {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-friends-title {
    color: var(--text-secondary);
    font-weight: 600;
    margin-right: 4px;
}

.footer-friends a {
    color: var(--text-muted);
    transition: color var(--transition);
}

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

.footer-friends .friend-sep {
    opacity: 0.25;
}

.beian-icon {
    width: 12px;
    height: 12px;
    vertical-align: -1px;
    margin-right: 2px;
    opacity: 0.7;
}

/* ========== Ajax Loader ========== */
.ajax-loader {
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
}

.loader-spinner {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    animation: dotBounce 1.4s infinite ease-in-out both;
}

.dot-1 { animation-delay: -0.32s; }
.dot-2 { animation-delay: -0.16s; }

@keyframes dotBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

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

/* 文字选中效果 */
::selection {
    background: var(--primary);
    color: #fff;
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 111, 0, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .sidebar .widget {
        margin-bottom: 0;
    }

    .author-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 60px;
    }

    .navbar-search,
    .navbar-menu,
    .navbar-social {
        display: none;
    }

    .navbar-toggle {
        display: flex;
    }

    .main-container {
        padding: calc(var(--navbar-height) + 20px) 16px 0;
    }

    .banner-card {
        height: 240px;
    }

    .banner-title {
        font-size: 1.2rem;
    }

    .post-full-header {
        padding: 24px 20px 0;
    }

    .post-full-content {
        padding: 24px 20px;
    }

    .post-full-title {
        font-size: 1.5rem;
    }

    .post-full-nav {
        flex-direction: column;
        padding: 20px;
    }

    .nav-next {
        text-align: left;
    }

    .comments-section {
        padding: 24px 20px;
    }

    .comment-form-row {
        grid-template-columns: 1fr;
    }

    .post-full-cover {
        height: 240px;
    }

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

    .error-icon {
        font-size: 3.5rem;
    }

    .error-zero {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .footer {
        padding: 32px 16px;
    }
}

@media (max-width: 480px) {
    .post-card-cover {
        height: 180px;
    }

    .post-card-body {
        padding: 16px;
    }

    .post-card-title {
        font-size: 1.1rem;
    }

    .post-card-meta {
        gap: 10px;
    }

    .meta-item {
        font-size: 12px;
    }
}

/* ========== Typecho Comment List Override ========== */
#comments ol.page-navigator {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 20px 0;
}

#comments ol.page-navigator li {
    display: inline-block;
    padding: 0;
    margin: 0;
    border: none;
    background: none;
}

#comments ol.page-navigator li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
}

#comments ol.page-navigator li a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

#comments ol.page-navigator li.current a {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
