/* ========================================
   CMS 全屏导航多配色主题
   ======================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-gray: #f3f4f6;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 12px rgba(0,0,0,0.1);
    
    /* 导航主题变量 - 默认白色主题 */
    --nav-bg: #ffffff;
    --nav-text: #333333;
    --nav-text-hover: #2563eb;
    --nav-border: #e5e7eb;
    --nav-search-bg: #f5f5f5;
    --nav-search-border: #e0e0e0;
    --nav-btn-login: #2563eb;
    --nav-btn-register: #10b981;
}

/* ===== 导航主题配色 ===== */

/* 白色主题 (默认) */
.nav-theme-white {
    --nav-bg: #ffffff;
    --nav-text: #333333;
    --nav-text-hover: #2563eb;
    --nav-border: #e5e7eb;
    --nav-search-bg: #f5f5f5;
    --nav-search-border: #e0e0e0;
    --nav-btn-login: #2563eb;
    --nav-btn-register: #10b981;
}

/* 深色主题 */
.nav-theme-dark {
    --nav-bg: #1f2937;
    --nav-text: #f3f4f6;
    --nav-text-hover: #60a5fa;
    --nav-border: #374151;
    --nav-search-bg: #374151;
    --nav-search-border: #4b5563;
    --nav-btn-login: #60a5fa;
    --nav-btn-register: #34d399;
    --bg: #111827;
    --bg-gray: #1f2937;
    --text: #f3f4f6;
    --text-light: #9ca3af;
}

/* 蓝色主题 */
.nav-theme-blue {
    --nav-bg: #2563eb;
    --nav-text: #ffffff;
    --nav-text-hover: #dbeafe;
    --nav-border: #3b82f6;
    --nav-search-bg: #1d4ed8;
    --nav-search-border: #60a5fa;
    --nav-btn-login: #ffffff;
    --nav-btn-register: #fbbf24;
    --bg: #1e40af;
    --bg-gray: #1d4ed8;
    --text: #ffffff;
    --text-light: #93c5fd;
}

/* 绿色主题 */
.nav-theme-green {
    --nav-bg: #10b981;
    --nav-text: #ffffff;
    --nav-text-hover: #d1fae5;
    --nav-border: #34d399;
    --nav-search-bg: #059669;
    --nav-search-border: #6ee7b7;
    --nav-btn-login: #ffffff;
    --nav-btn-register: #f59e0b;
    --bg: #047857;
    --bg-gray: #059669;
    --text: #ffffff;
    --text-light: #6ee7b7;
}

/* 红色主题 */
.nav-theme-red {
    --nav-bg: #ef4444;
    --nav-text: #ffffff;
    --nav-text-hover: #fee2e2;
    --nav-border: #f87171;
    --nav-search-bg: #dc2626;
    --nav-search-border: #fca5a5;
    --nav-btn-login: #ffffff;
    --nav-btn-register: #fbbf24;
    --bg: #b91c1c;
    --bg-gray: #dc2626;
    --text: #ffffff;
    --text-light: #fca5a5;
}

/* 紫色主题 */
.nav-theme-purple {
    --nav-bg: #8b5cf6;
    --nav-text: #ffffff;
    --nav-text-hover: #ede9fe;
    --nav-border: #a78bfa;
    --nav-search-bg: #7c3aed;
    --nav-search-border: #c4b5fd;
    --nav-btn-login: #ffffff;
    --nav-btn-register: #f472b6;
    --bg: #6d28d9;
    --bg-gray: #7c3aed;
    --text: #ffffff;
    --text-light: #c4b5fd;
}

/* 黑色主题 */
.nav-theme-black {
    --nav-bg: #000000;
    --nav-text: #ffffff;
    --nav-text-hover: #fbbf24;
    --nav-border: #333333;
    --nav-search-bg: #1a1a1a;
    --nav-search-border: #444444;
    --nav-btn-login: #fbbf24;
    --nav-btn-register: #ef4444;
    --bg: #000000;
    --bg-gray: #1a1a1a;
    --text: #ffffff;
    --text-light: #a3a3a3;
}

/* 透明导航主题 */
.nav-theme-transparent {
    --nav-bg: rgba(255, 255, 255, 0.85);
    --nav-text: #333333;
    --nav-text-hover: #2563eb;
    --nav-border: rgba(255, 255, 255, 0.3);
    --nav-search-bg: rgba(255, 255, 255, 0.9);
    --nav-search-border: rgba(0, 0, 0, 0.1);
    --nav-btn-login: #f3f4f6;
    --nav-btn-register: #2563eb;
    --nav-shadow: 0 4px 20px rgba(0,0,0,0.1);
    --bg: #f8fafc;
    --bg-gray: #f1f5f9;
    --text: #1e293b;
    --text-light: #64748b;
}

.nav-theme-transparent .header-fullwidth {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 浅蓝主题 */
.nav-theme-light-blue {
    --nav-bg: #e0f2fe;
    --nav-text: #0369a1;
    --nav-text-hover: #0284c7;
    --nav-border: #bae6fd;
    --nav-search-bg: #f0f9ff;
    --nav-search-border: #7dd3fc;
    --nav-btn-login: #0284c7;
    --nav-btn-register: #0ea5e9;
    --nav-shadow: 0 2px 8px rgba(14, 165, 233, 0.15);
    --bg: #f0f9ff;
    --bg-gray: #e0f2fe;
    --text: #0c4a6e;
    --text-light: #38bdf8;
}

/* 浅绿主题 */
.nav-theme-light-green {
    --nav-bg: #dcfce7;
    --nav-text: #15803d;
    --nav-text-hover: #16a34a;
    --nav-border: #bbf7d0;
    --nav-search-bg: #f0fdf4;
    --nav-search-border: #86efac;
    --nav-btn-login: #16a34a;
    --nav-btn-register: #22c55e;
    --nav-shadow: 0 2px 8px rgba(34, 197, 94, 0.15);
    --bg: #f0fdf4;
    --bg-gray: #dcfce7;
    --text: #14532d;
    --text-light: #4ade80;
}

/* 浅粉主题 */
.nav-theme-light-pink {
    --nav-bg: #fce7f3;
    --nav-text: #be185d;
    --nav-text-hover: #db2777;
    --nav-border: #fbcfe8;
    --nav-search-bg: #fdf2f8;
    --nav-search-border: #f9a8d4;
    --nav-btn-login: #db2777;
    --nav-btn-register: #ec4899;
    --nav-shadow: 0 2px 8px rgba(236, 72, 153, 0.15);
    --bg: #fdf2f8;
    --bg-gray: #fce7f3;
    --text: #831843;
    --text-light: #f472b6;
}

/* 浅黄主题 */
.nav-theme-light-yellow {
    --nav-bg: #fef9c3;
    --nav-text: #a16207;
    --nav-text-hover: #ca8a04;
    --nav-border: #fde047;
    --nav-search-bg: #fefce8;
    --nav-search-border: #facc15;
    --nav-btn-login: #ca8a04;
    --nav-btn-register: #eab308;
    --nav-shadow: 0 2px 8px rgba(234, 179, 8, 0.15);
    --bg: #fefce8;
    --bg-gray: #fef9c3;
    --text: #713f12;
    --text-light: #facc15;
}

/* 浅紫主题 */
.nav-theme-light-purple {
    --nav-bg: #f3e8ff;
    --nav-text: #7c3aed;
    --nav-text-hover: #8b5cf6;
    --nav-border: #e9d5ff;
    --nav-search-bg: #faf5ff;
    --nav-search-border: #c4b5fd;
    --nav-btn-login: #8b5cf6;
    --nav-btn-register: #a855f7;
    --nav-shadow: 0 2px 8px rgba(168, 85, 247, 0.15);
    --bg: #faf5ff;
    --bg-gray: #f3e8ff;
    --text: #5b21b6;
    --text-light: #c4b5fd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   全屏宽度导航样式
   ======================================== */

.header-fullwidth {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Logo区域 */
.logo-section {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    height: 45px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    margin-right: 12px;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--nav-text);
    letter-spacing: -0.5px;
}

/* 导航菜单 */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 40px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 10px 18px;
    color: var(--nav-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--nav-text-hover);
    background: rgba(255,255,255,0.1);
}

/* 下拉菜单 */
.main-nav .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: none;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 160px;
    padding: 6px 0;
    z-index: 1001;
    margin-top: 0;
}

/* 添加一个不可见的桥接区域，防止鼠标移出时菜单消失 */
.main-nav .dropdown::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

/* 移除小箭头 */
.main-nav .dropdown::before {
    display: none;
}

.main-nav .dropdown li {
    display: block;
}

.main-nav .dropdown a {
    display: block;
    padding: 8px 16px;
    white-space: nowrap;
    border-radius: 0;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.main-nav .dropdown a:hover {
    background: #f5f5f5;
    color: #000;
}

.main-nav li:hover > .dropdown {
    display: block;
    animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-nav .has-children::after {
    content: '▼';
    font-size: 0.6em;
    margin-left: 6px;
    opacity: 0.7;
}

/* 右侧功能区 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

/* 搜索框 */
.header-search {
    display: flex;
    align-items: center;
    position: relative;
}

.header-search input {
    width: 180px;
    padding: 10px 40px 10px 16px;
    border: 1px solid var(--nav-search-border);
    border-radius: 25px;
    background: var(--nav-search-bg);
    color: var(--nav-text);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
}

.header-search input::placeholder {
    color: var(--nav-text);
    opacity: 0.6;
}

.header-search input:focus {
    width: 220px;
    border-color: var(--nav-text-hover);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.header-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    font-size: 1rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.header-search button:hover {
    opacity: 1;
}

/* 用户菜单 */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-login,
.btn-register {
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-login {
    color: var(--nav-btn-login);
    border: 1px solid var(--nav-btn-login);
    background: transparent;
}

.btn-login:hover {
    background: var(--nav-btn-login);
    color: var(--nav-bg);
}

.btn-register {
    color: var(--nav-bg);
    background: var(--nav-btn-register);
    border: 1px solid var(--nav-btn-register);
}

.btn-register:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 用户下拉菜单 */
.user-dropdown {
    position: relative;
}

.user-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--nav-text);
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.25s ease;
}

.user-link:hover {
    background: rgba(255,255,255,0.1);
}

.user-name {
    font-weight: 500;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 0.7em;
    opacity: 0.7;
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--nav-bg);
    border: 1px solid var(--nav-border);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-width: 160px;
    padding: 8px 0;
    z-index: 1001;
    margin-top: 0;
    list-style: none;
}

/* 添加透明连接区域，防止鼠标移动时菜单消失 */
.user-dropdown-menu::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

.user-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: var(--nav-bg);
    border-left: 1px solid var(--nav-border);
    border-top: 1px solid var(--nav-border);
    transform: rotate(45deg);
}

.user-dropdown-menu li {
    display: block;
}

.user-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--nav-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.user-dropdown-menu a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--nav-text-hover);
}

.user-dropdown-menu .divider {
    height: 1px;
    background: var(--nav-border);
    margin: 8px 0;
}

.user-dropdown:hover .user-dropdown-menu {
    display: block;
    animation: fadeInDown 0.2s ease;
}

/* ========================================
   主要内容区域
   ======================================== */

.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 300px);
}

.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

/* Content Area */
.content-area {
    background: var(--bg);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.widget {
    background: var(--bg-gray);
    border-radius: 8px;
    padding: 20px;
}

.widget h3 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    transition: color 0.2s;
}

.widget a:hover {
    color: var(--primary);
}

/* Posts */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.post-item {
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.post-item:last-child {
    border-bottom: none;
}

.post-featured-image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-item:hover .post-featured-image img {
    transform: scale(1.02);
}

.post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-title a {
    color: var(--text);
    text-decoration: none;
}

.post-title a:hover {
    color: var(--primary);
}

.post-meta {
    display: flex;
    gap: 16px;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.post-summary {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* Post Detail */
.post-detail .post-featured-image {
    margin: 0 0 24px 0;
}

.post-detail .post-featured-image img {
    height: 400px;
}

.post-detail .post-title {
    font-size: 2rem;
    margin-bottom: 16px;
}

.post-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text);
}

.post-content p {
    margin-bottom: 1.5em;
}

/* Breadcrumb */
.breadcrumb {
    background: var(--bg-gray);
    padding: 12px 0;
    margin-bottom: 32px;
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin-left: 8px;
    opacity: 0.5;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination a {
    color: var(--text);
    background: var(--bg-gray);
}

.pagination a:hover {
    background: var(--primary);
    color: white;
}

.pagination span.current {
    background: var(--primary);
    color: white;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    background: var(--primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn:hover {
    background: var(--primary-dark);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Login */
.login-container {
    max-width: 400px;
    margin: 80px auto;
    padding: 40px;
    background: var(--bg-gray);
    border-radius: 12px;
}

.login-container h1 {
    text-align: center;
    margin-bottom: 32px;
    font-size: 1.75rem;
    font-weight: 700;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.8125rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s;
}

.tag-cloud a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Footer */
footer {
    background: var(--bg-gray);
    border-top: 1px solid var(--border);
    padding: 20px 0;
    margin-top: 60px;
}

.footer-links-row {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.footer-links-row .footer-label {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-right: 15px;
}

.footer-links-row a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    margin-right: 15px;
}

.footer-links-row a:hover {
    color: var(--primary);
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copyright {
    color: var(--text-light);
    font-size: 0.8rem;
}

.footer-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.8rem;
}

.footer-nav-links a:hover {
    color: var(--primary);
}

.footer-nav-links .divider {
    color: var(--border);
    font-size: 0.8rem;
}

.icp-number {
    margin-left: 10px;
    color: var(--text-light);
}

/* 移动端菜单按钮 - 桌面端隐藏 */
.mobile-menu-btn {
    display: none;
}

/* 移动端底部导航栏 - 桌面端隐藏 */
.mobile-bottom-nav {
    display: none;
}

/* Responsive */
@media (max-width: 1100px) {
    .header-inner {
        padding: 0 16px;
    }
    
    .main-nav {
        margin: 0 20px;
    }
    
    .main-nav a {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .header-search input {
        width: 140px;
    }
    
    .header-search input:focus {
        width: 160px;
    }
}

@media (max-width: 900px) {
    .two-column-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: 2;
    }
    
    .footer-bottom-row {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-nav-links {
        justify-content: center;
    }
    
    .header-inner {
        flex-wrap: nowrap;
        height: 60px;
        padding: 0 12px;
        justify-content: space-between;
    }
    
    .site-logo {
        flex: 0 0 auto;
        margin-right: 8px;
    }
    
    /* 隐藏桌面端导航 */
    .desktop-nav {
        display: none;
    }
    
    .header-actions {
        flex: 1;
        max-width: 220px;
        margin: 0 8px;
        order: 2;
    }
    
    .header-search {
        display: flex;
        width: 100%;
    }
    
    .header-search input {
        flex: 1;
        width: 100%;
        padding: 8px 32px 8px 12px;
        font-size: 0.85rem;
        border-radius: 20px;
    }
    
    .header-search button#pageSearchBtn {
        right: 4px;
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    /* 隐藏注册登录按钮 */
    .user-menu {
        display: none;
    }
    
    .btn-login,
    .btn-register {
        display: none;
    }
    
    /* 移动端底部导航栏 */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 56px;
        background: #fff;
        border-top: 1px solid #e0e0e0;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    }
    
    .mobile-bottom-nav .mobile-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        color: #666;
        text-decoration: none;
        font-size: 0.7rem;
        transition: color 0.2s;
    }
    
    .mobile-bottom-nav .mobile-nav-item i {
        font-size: 1.2rem;
    }
    
    .mobile-bottom-nav .mobile-nav-item.active,
    .mobile-bottom-nav .mobile-nav-item:hover {
        color: var(--nav-btn-register, #28a745);
    }
    
    /* 为底部导航栏腾出空间 */
    body {
        padding-bottom: 56px;
    }
    
    footer {
        margin-bottom: 56px;
    }

@media (max-width: 600px) {
    .header-inner {
        height: 56px;
        padding: 0 10px;
    }
    
    .site-logo {
        height: 28px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .mobile-menu-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .main-nav a {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .post-detail .post-title {
        font-size: 1.3rem;
    }
    
    .post-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    /* 软件卡片优化 */
    .software-card {
        padding: 10px;
    }
    
    .software-title {
        font-size: 0.95rem;
    }
    
    .software-desc-short {
        font-size: 0.8rem;
    }
    
    /* 分类标题优化 */
    .category-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .category-title h2 {
        font-size: 1.1rem;
    }
    
    /* 表格横向滚动 */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 表单优化 */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* 按钮全宽 */
    .btn-submit,
    .btn-primary {
        width: 100%;
    }
    
    /* 页脚优化 */
    .footer-nav-links {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    /* 内容区域边距 */
    .software-detail-container,
    .submit-container,
    .post-detail {
        padding: 20px 16px;
        margin: 20px auto;
    }
    
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}

/* Comments */
.comments-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.comment-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-author {
    font-weight: 600;
    color: var(--text);
}

.comment-date {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.comment-content {
    color: var(--text);
    line-height: 1.7;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Archive List */
.archive-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.archive-count {
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

/* Link List */
.link-list img {
    border-radius: 2px;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 8px;
}

.search-form input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.875rem;
}

.search-form button {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.search-form button:hover {
    background: var(--primary-dark);
}

/* Checkbox Group */
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

/* Button Block */
.btn-block {
    width: 100%;
    justify-content: center;
}

/* Post Actions */
.post-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Related Posts */
.related-posts h3 {
    margin-bottom: 16px;
    color: var(--text);
}

/* Slider */
.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 30px;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.slider-item {
    min-width: 100%;
    position: relative;
}

.slider-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}

.slider-content h2 {
    margin: 0 0 10px;
    font-size: 2rem;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.published {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.draft {
    background: #f3f4f6;
    color: #6b7280;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    font-weight: 600;
    color: var(--text-light);
    background: var(--bg-gray);
}

.data-table tr:hover {
    background: var(--bg-gray);
}

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-gray);
    padding: 24px;
    border-radius: 8px;
    text-align: center;
}

.stat-card h3 {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Admin Navigation */
.admin-nav {
    background: var(--bg-gray);
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.admin-nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-nav a {
    display: block;
    padding: 8px 16px;
    color: var(--text);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: var(--primary);
    color: white;
}

/* 后台设置页面样式 */
.theme-selector {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.theme-option:hover {
    border-color: var(--border);
}

.theme-option input[type="radio"] {
    display: none;
}

.theme-option input[type="radio"]:checked + .theme-preview {
    box-shadow: 0 0 0 3px var(--primary);
}

.theme-preview {
    width: 80px;
    height: 50px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.theme-white { background: #ffffff; color: #333; border: 1px solid #ddd; }
.theme-dark { background: #1f2937; color: #fff; }
.theme-blue { background: #2563eb; color: #fff; }
.theme-green { background: #10b981; color: #fff; }
.theme-red { background: #ef4444; color: #fff; }
.theme-purple { background: #8b5cf6; color: #fff; }
.theme-black { background: #000000; color: #fff; }

.logo-preview {
    max-width: 200px;
    max-height: 80px;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
}

.logo-preview img {
    max-width: 100%;
    max-height: 60px;
    display: block;
}
