:root {
    /* 主色调 - 柔和蓝灰色系 */
    --primary: #5B8DB8;
    --primary-light: #7BA7CC;
    --primary-dark: #4A7A9E;
    --primary-gradient: linear-gradient(135deg, #5B8DB8 0%, #7BA7CC 100%);
    --primary-gradient-hover: linear-gradient(135deg, #4A7A9E 0%, #5B8DB8 100%);
    
    /* 辅助暖色调 */
    --accent-amber: #E8A838;
    --accent-coral: #E07A5F;
    --accent-success: #52B788;
    
    /* 背景色 */
    --bg: #F7F5F2;
    --bg-warm: #FAF8F5;
    --card-bg: #FFFFFF;
    
    /* 文字色 */
    --text: #2D3436;
    --text-secondary: #555B6E;
    --text-muted: #8892A0;
    
    /* 边框与分割线 */
    --border: #E8E4DF;
    --border-light: #F0EDE8;
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(45, 52, 54, 0.06);
    --shadow-md: 0 4px 16px rgba(45, 52, 54, 0.08);
    --shadow-lg: 0 8px 32px rgba(45, 52, 54, 0.12);
    --shadow-hover: 0 12px 40px rgba(45, 52, 54, 0.15);
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    /* 过渡 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* 5列布局 */
.col-lg-2-5 {
    flex: 0 0 auto;
    width: 20%;
}
@media (max-width: 991.98px) {
    .col-lg-2-5 {
        width: 25%;
    }
}
@media (max-width: 767.98px) {
    .col-lg-2-5 {
        width: 50%;
    }
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 背景纹理 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(91, 141, 184, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(224, 122, 95, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Navbar */
.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-light);
}
.navbar-custom .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text) !important;
    letter-spacing: -0.5px;
}
.navbar-custom .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all var(--transition-normal);
    border-radius: var(--radius-sm);
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--primary) !important;
    background: rgba(91, 141, 184, 0.08);
}
.search-box {
    width: 280px;
}
.search-box .form-control {
    border-radius: 20px 0 0 20px;
    border: 1px solid var(--border);
    padding: 0.6rem 1rem;
    background: var(--bg-warm);
    transition: all var(--transition-fast);
}
.search-box .form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(91, 141, 184, 0.1);
}
.search-box .btn {
    border-radius: 0 20px 20px 0;
    background: var(--primary-gradient);
    border: none;
    transition: all var(--transition-fast);
}
.search-box .btn:hover {
    background: var(--primary-gradient-hover);
}

/* Hero Banner */
.hero-banner {
    background: var(--card-bg);
    padding: 3rem 0;
    color: var(--text);
    border-bottom: 1px solid var(--border-light);
}
.hero-banner h1 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
    letter-spacing: -0.3px;
}
.hero-banner .lead {
    color: var(--text-muted);
}
.hero-search {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}
.hero-search .form-control {
    border-radius: 30px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 1px solid var(--border);
    background: var(--bg-warm);
    transition: all var(--transition-fast);
}
.hero-search .form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(91, 141, 184, 0.1);
}
.hero-search .btn {
    border-radius: 30px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    background: var(--primary-gradient);
    border: none;
    margin-left: -40px;
    z-index: 1;
    white-space: nowrap;
    min-width: 80px;
    flex-shrink: 0;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px rgba(91, 141, 184, 0.25);
}
.hero-search .btn:hover {
    background: var(--primary-gradient-hover);
    box-shadow: 0 6px 16px rgba(91, 141, 184, 0.35);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    padding: 1.5rem 0;
}
.category-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    border-radius: var(--radius-md);
    color: white;
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}
.category-block:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: white;
}
.category-block i {
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
}
.category-block span {
    font-weight: 500;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    .category-block {
        padding: 1.2rem 0.5rem;
    }
    .category-block i {
        font-size: 1.5rem;
    }
    .category-block span {
        font-size: 0.85rem;
    }
}

/* Software Card */
.software-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}
.software-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
    background: var(--card-bg);
}
.software-card .logo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: var(--bg-warm);
    box-shadow: var(--shadow-sm);
}
.software-card .name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 0.3rem;
    color: var(--text);
}
.software-card .version {
    color: var(--primary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.software-card .intro {
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

/* 推荐软件红色斜带 */
.software-card.recommended {
    position: relative;
    overflow: hidden;
}
.software-card.recommended::before {
    content: '推荐';
    position: absolute;
    top: 12px;
    right: -30px;
    background: #ff4757;
    color: white;
    padding: 2px 35px;
    font-size: 12px;
    transform: rotate(45deg);
    z-index: 1;
    font-weight: 500;
}

/* 卡片标签 */
.software-card .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.software-card .card-tags .badge {
    font-size: 0.7rem;
    font-weight: 400;
    padding: 3px 8px;
}

/* Section */
.section-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
    letter-spacing: -0.3px;
}
.section-title .more {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}
.section-title .more:hover {
    color: var(--primary);
}

/* Footer */
.footer {
    background: var(--card-bg);
    color: var(--text-muted);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.02);
}
.footer h5 {
    color: var(--text);
    margin-bottom: 1rem;
    font-weight: 600;
}
.footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.footer a:hover {
    color: var(--primary);
}

/* Tags */
.tag-badge {
    background: var(--bg-warm);
    color: var(--text-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-light);
}
.tag-badge:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}
.tag-badge.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

/* Software Detail */
.software-header {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid #dee2e6;
}
.software-header .logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
    background: #f0f0f0;
}
.software-header .name {
    font-size: 1.8rem;
    font-weight: 700;
}
.software-header .version {
    color: var(--primary);
}

/* Software Hero (详情页头部) */
.software-hero {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

/* 装饰几何图形 */
.software-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(91, 141, 184, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.software-hero::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(224, 122, 95, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.software-hero-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: var(--bg-warm);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal);
}

.software-hero-logo:hover {
    transform: scale(1.05);
}

.software-hero-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.software-hero-version {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(91, 141, 184, 0.1);
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
}

.software-hero-meta {
    border-top: 1px solid var(--border-light);
    font-size: 0.9rem;
    padding-top: 1rem;
}

.software-hero-meta a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.software-hero-meta a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.software-hero-meta .text-muted {
    color: var(--text-muted) !important;
    font-weight: 400;
}

.software-hero-meta span:not(.text-muted) {
    color: var(--text-secondary);
    font-weight: 500;
}

/* 下载下拉菜单 */
.download-dropdown-btn {
    border-radius: var(--radius-md);
    padding: 0.6rem 1.4rem;
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.9rem;
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 4px 12px rgba(91, 141, 184, 0.25);
    transition: all var(--transition-normal);
}

.download-dropdown-btn:hover {
    background: var(--primary-gradient-hover);
    box-shadow: 0 6px 16px rgba(91, 141, 184, 0.35);
    transform: translateY(-2px);
}

.download-dropdown-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(91, 141, 184, 0.2);
}

.download-dropdown-menu {
    min-width: 200px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.download-dropdown-menu .dropdown-item {
    padding: 0.75rem 1.25rem;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.download-dropdown-menu .dropdown-item:hover {
    background: rgba(91, 141, 184, 0.08);
    color: var(--primary);
    padding-left: 1.5rem;
}

.download-dropdown-menu .dropdown-item i {
    color: var(--primary);
}

.download-btn {
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--radius-md);
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px rgba(91, 141, 184, 0.25);
}

.download-btn:hover {
    background: var(--primary-gradient-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(91, 141, 184, 0.35);
}

.download-btn.backup {
    background: linear-gradient(135deg, #8892A0 0%, #A0AAB4 100%);
    box-shadow: 0 4px 12px rgba(136, 146, 160, 0.25);
}

.download-btn.backup:hover {
    background: linear-gradient(135deg, #7A8494 0%, #8892A0 100%);
    box-shadow: 0 6px 16px rgba(136, 146, 160, 0.35);
}

.content-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.content-card:hover {
    box-shadow: var(--shadow-md);
}

.content-card h5 {
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-size: 1.15rem;
}

.content-card h5 i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* Software Description */
.software-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.software-description p {
    margin-bottom: 1rem;
}

/* Changelog */
.changelog {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.breadcrumb-item.active {
    color: var(--text-secondary);
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
}

/* 标签样式优化 */
.badge.bg-primary {
    background: var(--primary-gradient) !important;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

/* 相关推荐 */
.content-card .related-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-decoration: none;
    color: inherit;
    margin-bottom: 0.5rem;
}

.content-card .related-item:hover {
    background: var(--bg-warm);
    transform: translateX(4px);
}

.content-card .related-item img,
.content-card .related-item .related-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

/* 滚动淡入动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.software-hero {
    animation: fadeInUp 0.5s ease-out;
}

.content-card {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.content-card:nth-child(1) { animation-delay: 0.1s; }
.content-card:nth-child(2) { animation-delay: 0.2s; }
.content-card:nth-child(3) { animation-delay: 0.3s; }

/* 响应式优化 */
@media (max-width: 768px) {
    .software-hero {
        padding: 1.5rem;
    }
    
    .software-hero-logo {
        width: 64px;
        height: 64px;
    }
    
    .software-hero-name {
        font-size: 1.4rem;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .download-dropdown-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Pagination */
.pagination .page-link {
    border-radius: var(--radius-sm);
    margin: 0 3px;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
}
.pagination .page-link:hover {
    background: var(--bg-warm);
    border-color: var(--primary-light);
    color: var(--primary);
}
.pagination .page-item.active .page-link {
    background: var(--primary-gradient);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(91, 141, 184, 0.25);
}

/* Admin */
.admin-sidebar {
    background: #16213e;
    min-height: 100vh;
    padding: 0;
}
.admin-sidebar .logo {
    padding: 20px;
    background: #1a1a2e;
    color: white;
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
}
.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 12px 20px;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left-color: var(--primary);
}
.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}
.stat-card .icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

/* Article Card */
.article-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
    background: var(--card-bg);
}
.article-card .cover {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 0.8rem;
}
.article-card .title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text);
}
.article-card .meta {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: auto;
}

/* Article Detail */
.article-detail {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}
.article-detail h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
}
.article-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin: 1rem 0;
}
.article-content {
    line-height: 1.8;
    color: var(--text-secondary);
}
.article-content h1, .article-content h2, .article-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}
.article-content p {
    margin-bottom: 1rem;
}
.article-content img {
    max-width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.article-content pre {
    background: var(--bg-warm);
    padding: 1rem;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    border: 1px solid var(--border-light);
}
.article-content code {
    background: var(--bg-warm);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent-coral);
}
.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    color: var(--text-muted);
    margin: 1rem 0;
    background: var(--bg-warm);
    padding: 1rem 1rem 1rem 1.5rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* User Avatar */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(91, 141, 184, 0.2);
}
.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(91, 141, 184, 0.3);
}
.user-avatar::after {
    display: none;
}
.dropdown-menu {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    padding: 0.5rem 0;
}
.dropdown-item {
    padding: 0.5rem 1rem;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}
.dropdown-item:hover {
    background: var(--bg-warm);
    color: var(--primary);
}

/* 全局链接样式 */
a {
    transition: color var(--transition-fast);
}

/* 截图样式 */
.content-card img.img-fluid {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal);
}

.content-card img.img-fluid:hover {
    transform: scale(1.02);
}

/* 按钮全局样式 */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 2px 8px rgba(91, 141, 184, 0.2);
    transition: all var(--transition-normal);
}
.btn-primary:hover {
    background: var(--primary-gradient-hover);
    box-shadow: 0 4px 12px rgba(91, 141, 184, 0.3);
    transform: translateY(-1px);
}
.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(91, 141, 184, 0.2);
}

/* Software Edit Button */
.edit-btn {
    font-size: 0.6em;
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-fast);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}
.edit-btn:hover {
    color: var(--primary);
    background: rgba(91, 141, 184, 0.08);
}

/* Guestbook Page */
.guestbook-header {
    text-align: center;
}
.guestbook-header h2 {
    font-weight: 700;
    color: var(--text);
}

/* About Page */
.about-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}
.about-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #7BA7CC 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(91, 141, 184, 0.3);
}
.about-header h2 {
    font-weight: 700;
    color: var(--text);
}
.about-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}
.about-content ul {
    padding-left: 1.5rem;
}
.about-content li {
    margin-bottom: 0.5rem;
}
.about-contact {
    background: var(--bg-warm);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
}
.about-contact h5 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Comment Section */
.comment-section {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}
.comment-section h5 {
    color: var(--text);
    border-bottom: 2px solid var(--border-light);
    display: inline-block;
    padding-bottom: 0.5rem;
    font-weight: 600;
}
.comment-form {
    background: var(--bg-warm);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
}
.comment-form .form-control {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
}
.comment-form .form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(91, 141, 184, 0.1);
}
.comment-list {
    margin-top: 1.5rem;
}
.comment-item {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}
.comment-item:last-child {
    border-bottom: none;
}
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
    margin-right: 1rem;
    box-shadow: 0 2px 8px rgba(91, 141, 184, 0.2);
}
.comment-body {
    flex: 1;
}
.comment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.comment-name {
    font-weight: 600;
    color: var(--text);
}
.comment-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.comment-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Guestbook Page */
.guestbook-header {
    text-align: center;
}
.guestbook-header h2 {
    font-weight: 700;
}

/* Tougao Page */
.tougao-card {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}
.tougao-header h2 {
    font-weight: 700;
    color: var(--text);
}
.tougao-card .form-label {
    font-weight: 500;
    color: var(--text-secondary);
}
.tougao-card .form-control,
.tougao-card .form-select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
}
.tougao-card .form-control:focus,
.tougao-card .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(91, 141, 184, 0.1);
}
.tougao-card .btn-primary {
    border-radius: var(--radius-md);
    padding: 0.8rem 2rem;
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 4px 12px rgba(91, 141, 184, 0.25);
    transition: all var(--transition-normal);
}
.tougao-card .btn-primary:hover {
    background: var(--primary-gradient-hover);
    box-shadow: 0 6px 16px rgba(91, 141, 184, 0.35);
    transform: translateY(-2px);
}

/* 分享按钮 */
.btn-share {
    border-radius: var(--radius-md);
    padding: 0.6rem 0.9rem;
    font-weight: 600;
    background: var(--bg-warm);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.btn-share:hover {
    background: var(--primary-gradient);
    border-color: var(--primary-light);
    color: white;
    box-shadow: 0 4px 12px rgba(91, 141, 184, 0.25);
    transform: translateY(-2px);
}

.btn-share:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(91, 141, 184, 0.2);
}

.share-dropdown-menu {
    min-width: 160px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.share-dropdown-menu .dropdown-item {
    padding: 0.7rem 1.2rem;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.share-dropdown-menu .dropdown-item:hover {
    background: rgba(91, 141, 184, 0.08);
    color: var(--primary);
    padding-left: 1.4rem;
}

.share-dropdown-menu .dropdown-item i {
    font-size: 1.1rem;
}

.share-dropdown-menu .dropdown-item .bi-wechat {
    color: #07C160;
}

/* 分享提示 Toast */
.share-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--text);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    pointer-events: none;
}

.share-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 响应式 */
@media (max-width: 768px) {
    .btn-share {
        padding: 0.5rem 0.8rem;
    }
    
    .d-flex.align-items-center.gap-2 {
        flex-wrap: wrap;
    }
}
.tougao-card .btn-primary:hover {
    background: var(--primary-gradient-hover);
    box-shadow: 0 6px 16px rgba(91, 141, 184, 0.35);
    transform: translateY(-2px);
}
