/* ==================== 现代极简主题样式 ==================== */
/* 主题色：优雅的深色主题，琥珀金点缀 */

:root {
    --primary-bg: #0a0a0f;
    --secondary-bg: #12121a;
    --card-bg: #1a1a25;
    --card-hover: #222230;
    --accent-color: #f59e0b;
    --accent-secondary: #ec4899;
    --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: #27273a;
    --border-hover: #3f3f5f;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(245, 158, 11, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-primary);
    background: var(--primary-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
a:hover { color: #fbbf24; text-shadow: 0 0 20px rgba(245, 158, 11, 0.4); }
ol, ul { list-style: none; }
img { max-width: 100%; height: auto; border-radius: 8px; display: block; }

/* 布局 */
#divAll { max-width: 1280px; margin: 0 auto; padding: 24px; }
#divPage { background: var(--secondary-bg); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--border-color); }
#divMiddle { display: grid; grid-template-columns: 1fr 340px; gap: 40px; padding: 40px; }
@media (max-width: 1024px) { #divMiddle { grid-template-columns: 1fr; gap: 32px; padding: 24px; } }

/* 头部 */
#divTop { background: var(--primary-bg); padding: 80px 40px 60px; text-align: center; position: relative; overflow: hidden; border-bottom: 1px solid var(--border-color); }
#divTop::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 600px; height: 300px; background: radial-gradient(ellipse, rgba(245, 158, 11, 0.15) 0%, transparent 70%); pointer-events: none; }
#BlogTitle { font-size: 3.5rem; font-weight: 800; margin-bottom: 16px; position: relative; z-index: 1; letter-spacing: -0.02em; }
#BlogTitle a { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; position: relative; }
#BlogTitle a::after { content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background: var(--accent-gradient); border-radius: 2px; }
#BlogSubTitle { font-size: 1.125rem; color: var(--text-secondary); font-weight: 400; position: relative; z-index: 1; max-width: 600px; margin: 0 auto; line-height: 1.6; }

/* 导航 */
#divNavBar { background: var(--card-bg); padding: 0; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(10px); }
#divNavBar ul { display: flex; justify-content: center; flex-wrap: wrap; padding: 0; max-width: 1200px; margin: 0 auto; }
#divNavBar li { margin: 0; }
#divNavBar a { display: block; padding: 20px 28px; color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; position: relative; transition: all 0.25s ease; }
#divNavBar a::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background: var(--accent-gradient); transition: all 0.25s ease; transform: translateX(-50%); }
#divNavBar a:hover, #divNavBar a.on { color: var(--text-primary); background: rgba(245, 158, 11, 0.05); }
#divNavBar a:hover::after, #divNavBar a.on::after { width: 30px; }

/* 主内容 */
#divMain { min-width: 0; }

/* 文章卡片 */
.post { background: var(--card-bg); border-radius: 16px; padding: 32px; margin-bottom: 24px; border: 1px solid var(--border-color); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; }
.post:hover { transform: translateY(-4px); background: var(--card-hover); border-color: var(--border-hover); box-shadow: var(--shadow-lg), var(--shadow-glow); }
.post.multi { cursor: pointer; }
.post.single { background: var(--secondary-bg); border: 1px solid var(--border-color); }
.post-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 16px; line-height: 1.3; letter-spacing: -0.01em; }
.post-title a { color: var(--text-primary); display: inline; background-image: linear-gradient(90deg, var(--accent-color), var(--accent-color)); background-size: 0% 2px; background-position: 0 100%; background-repeat: no-repeat; transition: all 0.3s ease; }
.post-title a:hover { color: var(--accent-color); background-size: 100% 2px; }
.post-date { display: inline-flex; align-items: center; gap: 8px; background: rgba(245, 158, 11, 0.1); color: var(--accent-color); padding: 8px 16px; border-radius: 20px; font-size: 0.875rem; margin-bottom: 16px; font-weight: 500; border: 1px solid rgba(245, 158, 11, 0.2); }
.post-body { color: var(--text-secondary); line-height: 1.9; margin-bottom: 20px; }
.post-body p { margin-bottom: 16px; }
.post-footer { color: var(--text-muted); font-size: 0.875rem; display: flex; align-items: center; gap: 20px; padding-top: 20px; border-top: 1px solid var(--border-color); }

/* 分页 */
.pagebar { display: flex; justify-content: center; gap: 8px; margin: 40px 0; flex-wrap: wrap; }
.page { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 10px; color: var(--text-secondary); font-weight: 500; font-size: 0.875rem; transition: all 0.2s ease; }
.page:hover { background: var(--card-hover); border-color: var(--accent-color); color: var(--accent-color); transform: translateY(-2px); }
.now-page { background: var(--accent-gradient); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3); }
.now-page:hover { color: #fff; }

/* 侧边栏 */
#divSidebar { width: 340px; }
@media (max-width: 1024px) { #divSidebar { width: 100%; } }

.function { background: var(--card-bg); border-radius: 16px; padding: 24px; margin-bottom: 24px; border: 1px solid var(--border-color); transition: all 0.3s ease; }
.function:hover { border-color: var(--border-hover); box-shadow: var(--shadow-md); }
.function_t { font-size: 1.125rem; font-weight: 600; color: var(--text-primary); padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; gap: 10px; }
.function_t::before { content: ''; width: 4px; height: 18px; background: var(--accent-gradient); border-radius: 2px; }
.function_c ul { padding: 0; }
.function_c li { padding: 10px 0; border-bottom: 1px solid var(--border-color); position: relative; padding-left: 16px; transition: all 0.2s ease; }
.function_c li::before { content: '›'; position: absolute; left: 0; color: var(--accent-color); font-size: 1.1rem; transition: all 0.2s ease; }
.function_c li:hover { padding-left: 20px; }
.function_c li:hover::before { content: '»'; }
.function_c li:last-child { border-bottom: none; }
.function_c a { color: var(--text-secondary); display: block; font-size: 0.9375rem; }
.function_c a:hover { color: var(--accent-color); }

/* 评论 */
#divCommentPost { background: var(--card-bg); border-radius: 16px; padding: 28px; margin-top: 32px; border: 1px solid var(--border-color); }
#divCommentPost p:first-child { font-size: 1.125rem; font-weight: 600; color: var(--text-primary); margin-bottom: 20px; }
#txaArticle { width: 100%; min-height: 120px; background: var(--secondary-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; color: var(--text-primary); font-size: 0.9375rem; resize: vertical; transition: all 0.2s ease; font-family: inherit; }
#txaArticle:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1); }
.button { background: var(--accent-gradient); color: #fff; border: none; padding: 14px 32px; border-radius: 10px; font-size: 0.9375rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; margin-top: 16px; }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3); }

/* 评论列表 */
ul.msg { margin-top: 32px; }
li.msgname { background: var(--card-bg); border-radius: 12px; padding: 20px; margin-bottom: 16px; border: 1px solid var(--border-color); }
li.msgarticle { color: var(--text-secondary); margin-top: 12px; padding-left: 16px; border-left: 3px solid var(--accent-color); }

/* 底部 */
#divBottom { background: var(--primary-bg); padding: 40px 30px; text-align: center; border-top: 1px solid var(--border-color); }
#BlogCopyRight { color: var(--text-muted); font-size: 0.875rem; line-height: 1.8; }
#BlogCopyRight a { color: var(--accent-color); }
#BlogCopyRight a:hover { color: #fbbf24; }

/* 动画 */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.post { animation: fadeInUp 0.5s ease forwards; }
.post:nth-child(1) { animation-delay: 0.05s; }
.post:nth-child(2) { animation-delay: 0.1s; }
.post:nth-child(3) { animation-delay: 0.15s; }
.post:nth-child(4) { animation-delay: 0.2s; }
.post:nth-child(5) { animation-delay: 0.25s; }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--primary-bg); }
::-webkit-scrollbar-thumb { background: var(--card-bg); border-radius: 4px; border: 2px solid var(--primary-bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-color); }
::selection { background: var(--accent-color); color: #fff; }

/* 清除浮动 */
.clear { clear: both; }
