:root {
    --bg-gradient-start: #e8f4fd;
    --bg-gradient-end: #fce7f3;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-bg-hover: rgba(255, 255, 255, 0.95);
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --text-muted: #999;
    --accent-blue: #4dabf7;
    --accent-pink: #f06595;
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
}

.settings-toggle {
    position: fixed;
    top: 10vh;
    right: 5px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    color: #666;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.2s ease;
}

.settings-toggle:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.settings-panel {
    position: fixed;
    top: calc(10vh + 46px);
    right: 5px;
    transform: translateY(-10px) scale(0.95);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    width: 320px;
    max-width: calc(100vw - 40px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    overflow: hidden;
}

.settings-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
}

.settings-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.settings-reset-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.settings-reset-btn:hover {
    background: #c82333;
}

.settings-content {
    padding: 16px 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.settings-section {
    margin-bottom: 20px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section-title {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.setting-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ddd;
    border-radius: 24px;
    transition: background-color 0.2s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #3b82f6;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.color-palette {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.color-option {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.banner-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.banner-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: white;
}

.top-banner {
    width: 100%;
    margin-bottom: var(--spacing-lg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.banner-image {
    width: 100%;
    height: 30vh;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .banner-image {
        height: 20vh;
    }
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    padding: calc(var(--spacing-lg) + 60px) var(--spacing-lg) var(--spacing-lg);
    gap: 0;
}

.app-container.full-width {
    max-width: 100%;
    padding: calc(var(--spacing-lg) + 60px) 0 var(--spacing-lg);
    margin: 0;
}

.content-wrapper {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: nowrap;
    align-items: flex-start;
}

.content-wrapper.header-fixed {
    padding-top: calc(30vh + var(--spacing-lg));
}

.sidebar-left {
    flex-shrink: 1;
    flex-grow: 0;
    min-width: 150px;
    position: sticky;
    top: var(--spacing-lg);
    height: fit-content;
}

.sidebar-left.not-fixed {
    position: relative;
    top: auto;
}

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 280px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--spacing-lg);
}

#carouselFriendsWrapper {
    width: 100%;
    margin-bottom: var(--spacing-lg);
    padding: 0 var(--spacing-lg);
    box-sizing: border-box;
}

.app-container.full-width #carouselFriendsWrapper {
    width: 90% !important;
    max-width: 1400px !important;
    margin: 0 auto var(--spacing-lg) !important;
    padding: 0 !important;
}

.app-container.full-width .carousel-friends-row {
    display: flex !important;
    gap: var(--spacing-lg);
    width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box;
}

.app-container:not(.full-width) .carousel-friends-row {
    display: none !important;
}

.app-container.full-width .carousel-friends-row .carousel-container {
    flex: 6;
    margin-bottom: 0;
    min-width: 0;
}

.app-container.full-width .carousel-friends-row .friends-carousel-sidebar {
    flex: 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 280px;
    min-width: 0;
}

.app-container.full-width .carousel-friends-row .friends-carousel-sidebar .sidebar-section {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.app-container.full-width .carousel-friends-row .friends-carousel-sidebar .sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.app-container.full-width .carousel-friends-row .friends-carousel-sidebar .friends-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.app-container.full-width .carousel-friends-row .friends-carousel-sidebar .empty-tip {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-align: center;
    padding: var(--spacing-sm);
}

.carousel-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
}

.carousel-caption h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.carousel-caption p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.carousel-prev {
    left: 16px;
}

.carousel-next {
    right: 16px;
}

.carousel-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-indicator.active {
    background: white;
    width: 24px;
    border-radius: 5px;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    animation: fadeUp 1s ease-out;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 48px;
}

.hero-scroll-indicator {
    animation: bounce 2s infinite;
    color: white;
    opacity: 0.8;
    cursor: pointer;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(10px);
    }
    60% {
        transform: translateY(5px);
    }
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 12px 20px;
    background: transparent;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    border-bottom: none;
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-nav.scrolled {
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.top-nav.scrolled .top-nav-left {
    opacity: 1;
    transform: translateX(0);
}

.top-nav.scrolled .top-nav-btn {
    color: var(--text-secondary);
}

.top-nav.scrolled .top-nav-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.top-nav.scrolled .top-nav-action {
    color: var(--text-secondary);
    border-color: var(--border-color);
}

.top-nav-left {
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    left: 20px;
}

.top-nav.scrolled .top-nav-left {
    position: static;
}

.top-nav-center {
    display: flex;
    gap: 4px;
    margin-right: 0;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.top-nav.scrolled .top-nav-center {
    margin-right: auto;
}

.top-nav-btn {
    padding: 8px 20px;
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.top-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.top-nav-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.top-nav-action {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-nav-action:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.top-nav-logo {
    color: white;
}

.top-banner.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: var(--shadow-lg);
}

.top-banner.fixed .banner-image {
    height: 120px;
}

.app-container.full-width .top-nav {
    padding-left: 20px;
    padding-right: 20px;
}

.app-container.full-width .content-wrapper {
    padding: 0;
    max-width: none;
    width: 90%;
    margin: 0 auto;
    flex-wrap: nowrap !important;
}

.app-container.full-width .sidebar-left {
    width: auto !important;
    flex: 22 1 0 !important;
    min-width: 150px !important;
}

.app-container.full-width .sidebar-right {
    width: auto !important;
    flex: 20 1 0 !important;
    min-width: 100px !important;
}

.app-container.full-width .main-content {
    flex: 58 1 0 !important;
    min-width: 0 !important;
}

.app-container.full-width + #footer {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.sidebar-left.collapsed {
    width: 60px;
}

.sidebar-left.collapsed .sidebar-inner {
    overflow: hidden;
}

.sidebar-left.collapsed .brand h1,
.sidebar-left.collapsed .nav-title,
.sidebar-left.collapsed .quick-links,
.sidebar-left.collapsed .search-form,
.sidebar-left.collapsed .main-nav span,
.sidebar-left.collapsed .extra-links,
.sidebar-left.collapsed .recent-posts,
.sidebar-left.collapsed .social-icons {
    display: none;
}

.sidebar-left.collapsed .main-nav ul {
    padding-left: 0;
}

.sidebar-left.collapsed .main-nav a {
    justify-content: center;
    margin-left: 0;
    padding: 10px 0;
}

.sidebar-left.collapsed .main-nav svg {
    margin-right: 0;
}

body.dark-mode {
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --border-color: rgba(255, 255, 255, 0.1);
    --accent-blue: #4dabf7;
}

body.dark-mode .sidebar-inner {
    background: rgba(26, 26, 46, 0.95);
}

body.dark-mode .search-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

body.dark-mode .search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

body.dark-mode .article-card {
    background: rgba(26, 26, 46, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .main-content {
    background: rgba(26, 26, 46, 0.6);
}

body.dark-mode .sidebar-inner-right {
    background: rgba(26, 26, 46, 0.6);
}

body.dark-mode .tabs a {
    color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .tabs a.active {
    color: #4dabf7;
}

.sidebar-inner {
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.9) 50%, rgba(255,243,246,0.85) 100%);
    backdrop-filter: blur(30px);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.brand {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.brand-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-pink));
    border-radius: 50%;
    color: white;
}

.brand-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.site-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.site-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.site-title a:hover {
    color: var(--accent-blue);
}

.site-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.quick-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.quick-links a {
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--accent-blue), #339af0);
    box-shadow: 0 2px 8px rgba(77, 171, 247, 0.3);
}

.quick-links a:nth-child(2) {
    background: linear-gradient(135deg, #69db7c, #51cf66);
    box-shadow: 0 2px 8px rgba(105, 219, 124, 0.3);
}

.quick-links a:nth-child(3) {
    background: linear-gradient(135deg, #ffd43b, #fab005);
    box-shadow: 0 2px 8px rgba(250, 176, 5, 0.3);
}

.quick-links a:nth-child(4) {
    background: linear-gradient(135deg, var(--accent-pink), #e64980);
    box-shadow: 0 2px 8px rgba(240, 101, 149, 0.3);
}

.quick-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.search-form {
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.search-input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md) var(--spacing-sm) calc(var(--spacing-md) + 24px);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-input:hover {
    background: linear-gradient(135deg, rgba(77, 171, 247, 0.15) 0%, rgba(240, 101, 149, 0.1) 100%);
    box-shadow: 0 4px 16px rgba(77, 171, 247, 0.15);
}

.search-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.2), 0 8px 24px rgba(77, 171, 247, 0.15);
}

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

.search-form::before {
    content: '';
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' width='16' height='16' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.main-nav, .extra-links, .recent-posts {
    margin-bottom: var(--spacing-xl);
}

.nav-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.4);
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-xs);
}

.main-nav ul, .extra-links ul, .recent-posts ul {
    list-style: none;
}

.main-nav li, .extra-links li, .recent-posts li {
    margin-bottom: 4px;
}

.main-nav a {
    font-size: 0.8125rem;
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    margin-left: -8px;
}

.extra-links a {
    font-size: 0.78rem;
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
    display: block;
    padding: 4px 8px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    margin-left: -8px;
}

.main-nav a:hover, .extra-links a:hover {
    color: var(--accent-blue);
    background: rgba(77, 171, 247, 0.08);
}

.main-nav svg {
    width: 14px;
    height: 14px;
    margin-left: 8px;
    color: rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.main-nav a:hover svg {
    color: var(--accent-blue);
}

/* 多级菜单样式 */
.nav-parent {
    position: relative;
}

.nav-child {
    display: none;
    padding-left: var(--spacing-lg);
    margin-top: 4px;
}

.nav-parent.open > .nav-child {
    display: block;
}

.nav-parent-link {
    cursor: pointer;
}

.nav-parent-link:hover {
    color: var(--accent-blue);
    background: rgba(77, 171, 247, 0.08);
}

.nav-arrow {
    transition: transform 0.2s ease;
}

.nav-parent.open > .nav-parent-link .expand-icon {
    transform: rotate(45deg);
}

.recent-posts a {
    font-size: 0.78rem;
    color: rgba(0, 0, 0, 0.65);
    text-decoration: none;
    display: block;
    padding: 4px 8px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    margin-left: -8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-posts a:hover {
    color: var(--accent-blue);
    background: rgba(77, 171, 247, 0.08);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.social-icons a {
    color: rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
    opacity: 0.8;
}

.social-icons a:hover {
    color: var(--accent-blue);
    opacity: 1;
}

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

.tabs {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xl);
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xs);
    box-shadow: var(--shadow-sm);
}

.tab {
    flex: 1;
    text-align: center;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.tab:hover {
    background: rgba(77, 171, 247, 0.1);
    color: var(--accent-blue);
}

.tab.active {
    background: var(--accent-blue);
    color: white;
}

.ads-top, .ads-footer {
    margin-bottom: var(--spacing-xl);
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.article-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--card-bg-hover);
}

.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    line-height: 1.4;
}

.article-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-title a:hover {
    color: var(--accent-blue);
}

.article-excerpt {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.article-date, .article-category, .article-read {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.article-category a {
    color: var(--text-muted);
    text-decoration: none;
}

.article-category a:hover {
    color: var(--accent-blue);
}

.article-read a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.article-read a:hover {
    color: var(--accent-blue);
}

.archive-header {
    margin-bottom: var(--spacing-xl);
}

.archive-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: white;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.pagination .page-current {
    font-weight: 600;
    color: var(--text-primary);
}

.pagination .page-total {
    color: var(--text-muted);
}

.post-full {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
}

.post-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    line-height: 1.4;
}

.post-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
}

.post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 {
    margin: var(--spacing-xl) 0 var(--spacing-md);
    font-weight: 600;
}

.post-content h1 { font-size: 1.5rem; }
.post-content h2 { font-size: 1.375rem; }
.post-content h3 { font-size: 1.25rem; }

.post-content p {
    margin-bottom: var(--spacing-md);
}

.post-content a {
    color: var(--accent-blue);
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: var(--spacing-md) 0;
}

.post-content code {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
}

.post-content pre {
    background: #1a1a1a;
    color: #f0f0f0;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: var(--spacing-lg) 0;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.post-tags {
    font-size: 0.875rem;
    color: var(--text-muted);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.post-tags a {
    color: var(--accent-blue);
    text-decoration: none;
    margin-right: var(--spacing-sm);
}

.post-tags a:hover {
    text-decoration: underline;
}

.post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.nav-prev, .nav-next {
    font-size: 0.875rem;
}

.nav-prev a, .nav-next a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-prev a:hover, .nav-next a:hover {
    color: var(--accent-blue);
}

.sidebar-right {
    flex-shrink: 1;
    flex-grow: 0;
    min-width: 100px;
    position: sticky;
    top: var(--spacing-lg);
    height: fit-content;
}

.sidebar-inner-right {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.sidebar-section {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
}

.banner-section {
    padding: 0;
    overflow: hidden;
}

.banner-link {
    display: block;
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-xl);
    transition: transform 0.3s ease;
}

.banner-img:hover {
    transform: scale(1.02);
}

.friends-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.friend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.friend-item:hover {
    transform: translateY(-2px);
}

.friend-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--spacing-xs);
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-sm);
}

.friend-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    word-break: break-word;
}

.stats-section {
    padding: var(--spacing-xl);
}

.stats-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.stats-item:last-child {
    margin-bottom: 0;
}

.stats-item svg {
    color: var(--accent-blue);
}

.stats-value {
    font-weight: 600;
    color: var(--text-primary);
}

.recent-comments {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.comment-item {
    display: flex;
    gap: var(--spacing-sm);
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

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

.comment-author {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
    margin-bottom: 2px;
}

.comment-author:hover {
    color: var(--accent-blue);
}

.comment-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-list {
    list-style: none;
}

.category-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

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

.category-list a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.category-list a:hover {
    color: var(--accent-blue);
}

.category-list .count {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.tag-item {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-decoration: none;
    background: rgba(77, 171, 247, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}

.tag-item:hover {
    background: var(--accent-blue);
    color: white;
}

.ads-section {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.empty-tip {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    padding: var(--spacing-lg) 0;
}

#footer {
    margin-top: calc(var(--spacing-xl) * 2);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-xl);
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    max-width: 1400px;
    width: calc(100% - 2 * var(--spacing-lg));
}

.footer-content {
    max-width: none;
    margin: 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.footer-content p {
    margin-bottom: var(--spacing-xs);
}

.footer-content a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 var(--spacing-sm);
}

.footer-content a:hover {
    color: var(--accent-blue);
}

.comments {
    margin-top: var(--spacing-xl);
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
}

.comment-list {
    list-style: none;
}

.comment-list li {
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--border-color);
}

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

.comment-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.comment-author .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-author .name {
    font-weight: 600;
    color: var(--text-primary);
}

.comment-author .time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.comment-content {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.comment-form {
    margin-top: var(--spacing-xl);
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    background: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--spacing-md);
    transition: all 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.1);
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.comment-form button {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-xl);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-form button:hover {
    background: #339af0;
    transform: translateY(-1px);
}

@media (max-width: 1200px) {
    .app-container {
        flex-direction: column;
        padding: var(--spacing-md);
    }

    .sidebar-left, .sidebar-right {
        width: 100%;
        position: static;
        height: auto;
    }

    .sidebar-inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--spacing-lg);
    }

    .brand {
        margin-bottom: 0;
        text-align: left;
    }

    .quick-links {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .main-nav, .recent-posts, .search-form, .social-icons {
        display: none;
    }
}

@media (max-width: 768px) {
    .tabs {
        flex-wrap: wrap;
    }

    .tab {
        flex: 1;
        min-width: 80px;
    }

    .article-title {
        font-size: 1.125rem;
    }

    .article-excerpt {
        font-size: 0.875rem;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }

    .friends-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .app-container {
        padding: var(--spacing-sm);
    }

    .article-card {
        padding: var(--spacing-lg);
    }

    .post-title {
        font-size: 1.25rem;
    }

    .post-content {
        font-size: 0.9375rem;
    }
}
