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

body {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: #333333;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

:root {
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --secondary: #2ec4b6;
    --accent: #ff9f1c;
    --text-dark: #2d3436;
    --text-gray: #636e72;
    --text-light: #b2bec3;
    --bg-gray: #f8f9fa;
    --border-color: #e8e8e8;
}

.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 55px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    font-family: 'Noto Serif SC', serif;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-item {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.nav-item:hover,
.nav-item.active {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.5);
}

.nav-toggle {
    display: none;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 4px;
    z-index: 999;
    -webkit-tap-highlight-color: transparent;
}

.nav-mobile {
    display: none;
    background: rgba(0,0,0,0.1);
}

.nav-mobile.active {
    display: block;
}

.nav-mobile a {
    display: block;
    padding: 12px 20px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-mobile a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--secondary) 100%);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.banner p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

.main {
    padding: 25px 0;
}

.main .container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.main .container-single {
    display: block;
    max-width: 1000px;
}

.section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary);
}

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

.article-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    transition: background 0.3s;
}

.article-list li:hover {
    background: rgba(255, 107, 53, 0.03);
}

.article-date {
    color: var(--text-light);
    font-size: 0.85rem;
    min-width: 50px;
}

.article-category a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 3px 8px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 3px;
}

.article-category a:hover {
    background: var(--primary);
    color: #fff;
}

.article-title {
    color: var(--text-dark);
    text-decoration: none;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s;
}

.article-title:hover {
    color: var(--primary);
}

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

.rank-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 20px;
}

.rank-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.rank-list li:hover::before {
    background: var(--secondary);
}

.rank-list li a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s;
}

.rank-list li a:hover {
    color: var(--primary);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 14px;
    background: var(--bg-gray);
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 20px;
    transition: all 0.3s;
}

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

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.detail-tags a {
    display: inline-block;
    padding: 6px 14px;
    line-height: 1.5;
}

.footer {
    background: var(--text-dark);
    padding: 20px 0;
    text-align: center;
    margin-top: 30px;
}

.footer p {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

.to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    z-index: 999;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.4);
}

.to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.to-top.active {
    opacity: 1;
}

.page-header {
    background: var(--bg-gray);
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.filter-bar {
    background: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-item {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 5px 0;
    transition: color 0.3s;
}

.filter-item:hover,
.filter-item.active {
    color: var(--primary);
    font-weight: 500;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.page-btn:hover:not(.disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 107, 53, 0.05);
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.page-current {
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    font-size: 0.95rem;
    border-radius: 4px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

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

.breadcrumb span:not(:last-child) {
    color: var(--text-light);
}

.breadcrumb span:last-child {
    color: var(--text-dark);
    font-weight: 500;
}

.article-detail {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.4;
    font-family: 'Noto Serif SC', serif;
    text-align: center;
}

.detail-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.detail-meta a {
    color: var(--primary);
    text-decoration: none;
}

.detail-meta a:hover {
    text-decoration: underline;
}

.detail-body {
    font-size: 1rem;
    line-height: 2.2;
    color: var(--text-dark);
}

.detail-body p {
    margin-bottom: 20px;
    text-indent: 2em;
}

.detail-body h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin: 25px 0 15px;
    font-weight: 600;
    padding-left: 10px;
    border-left: 3px solid var(--secondary);
}

.detail-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 15px;
    margin: 20px 0;
    color: var(--text-gray);
    font-style: italic;
}

.detail-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.detail-tags .tag {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary);
}

.detail-tags .tag:hover {
    background: var(--primary);
    color: #fff;
}

.related-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.related-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

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

.related-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.related-list li a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.related-list li a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .nav-toggle {
        display: block;
        z-index: 999;
    }
    
    .banner {
        display: none;
    }
    
    .main .container {
        grid-template-columns: 1fr;
    }
    
    .article-list li {
        flex-wrap: wrap;
    }
    
    .article-date,
    .article-category {
        flex-shrink: 0;
    }
    
    .article-title {
        width: 100%;
        white-space: normal;
    }
    
    .detail-title {
        font-size: 1.5rem;
    }
    
    .article-detail {
        padding: 20px;
    }
    
    .detail-tags {
        row-gap: 10px;
    }
    
    .detail-tags a {
        display: inline-block;
        padding: 8px 12px;
        line-height: 1.5;
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo a {
        font-size: 1.3rem;
    }
    
    .article-list li {
        font-size: 0.9rem;
    }
    
    .page-title {
        font-size: 1.3rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .detail-title {
        font-size: 1.3rem;
    }
}