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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1a1a2e;
    background: #fff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.site-header {
    border-bottom: 1px solid #e8e8ef;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 26px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
}

.header-inner nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.main-nav a {
    font-size: 16px;
    color: #5a5a72;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.main-nav a:hover {
    opacity: 0.8;
}

.main-nav a.active {
    color: #0065ff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.btn-text {
    color: #5a5a72;
    background: transparent;
}

.btn-text:hover {
    color: #4361ee;
}

.btn-primary {
    background: #4361ee;
    color: #fff;
}

.btn-primary:hover {
    background: #3a56d4;
}

/* Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-content {
    min-height: calc(100vh - 80px - 240px);
    padding: 48px 0;
}

/* Year list */
.year-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.year-list li a {
    display: block;
    padding: 16px 32px;
    background: #f7f7fa;
    border: 1px solid #e8e8ef;
    border-radius: 8px;
    font-size: 16px;
    color: #1a1a2e;
    transition: border-color 0.2s, color 0.2s;
}

.year-list li a:hover {
    border-color: #4361ee;
    color: #4361ee;
}

/* Tag list */
.tag-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.tag-list li a {
    display: block;
    padding: 10px 20px;
    background: #f7f7fa;
    border: 1px solid #e8e8ef;
    border-radius: 6px;
    font-size: 14px;
    color: #1a1a2e;
    transition: border-color 0.2s, color 0.2s;
}

.tag-list li a:hover {
    border-color: #4361ee;
    color: #4361ee;
}

/* Article list */
.article-list {
    list-style: none;
    margin-top: 24px;
}

.article-list li {
    border-bottom: 1px solid #e8e8ef;
}

.article-list li a {
    display: block;
    padding: 14px 0;
    font-size: 15px;
    color: #1a1a2e;
    transition: color 0.2s;
}

.article-list li a:hover {
    color: #4361ee;
}

/* Pagination */
.pagination {
    margin-top: 32px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination a,
.pagination .current {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.pagination a {
    color: #5a5a72;
    border: 1px solid #e8e8ef;
    transition: border-color 0.2s, color 0.2s;
}

.pagination a:hover {
    border-color: #4361ee;
    color: #4361ee;
}

.pagination .current {
    background: #4361ee;
    color: #fff;
    border: 1px solid #4361ee;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 14px;
    color: #5a5a72;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb a {
    color: #4361ee;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb select {
    padding: 4px 8px;
    border: 1px solid #e8e8ef;
    border-radius: 4px;
    font-size: 14px;
    color: #1a1a2e;
    background: #fff;
}

/* Article content */
.article-content {
    margin-top: 24px;
    line-height: 1.8;
    font-size: 15px;
}

.article-content p {
    margin-bottom: 12px;
}

.article-content img {
    max-width: 100%;
    height: auto;
}

.article-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 16px 0;
}

.article-content table td,
.article-content table th {
    border: 1px solid #e8e8ef;
    padding: 8px 12px;
    font-size: 14px;
}

/* Footer */
.site-footer {
    background: #f7f7fa;
    border-top: 1px solid #e8e8ef;
    padding: 48px 0 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-columns {
    display: flex;
    gap: 60px;
    margin-bottom: 36px;
}

.footer-brand {
    flex: 1.5;
}

.footer-brand .logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 13px;
    color: #8a8aa0;
}

.footer-col {
    flex: 1;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    font-size: 13px;
    color: #8a8aa0;
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: #4361ee;
}

.footer-bottom {
    border-top: 1px solid #e8e8ef;
    padding-top: 20px;
    font-size: 12px;
    color: #8a8aa0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: #8a8aa0;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: #4361ee;
}

/* Hamburger menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1a1a2e;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* Responsive: tablet and below */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .header-inner nav {
        display: none;
        width: 100%;
        padding: 16px 0;
        border-top: 1px solid #e8e8ef;
        background: #fff;
    }

    .nav-open .header-inner nav {
        display: block;
    }

    .main-nav {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li a {
        display: block;
        padding: 10px 0;
        font-size: 15px;
    }

    .header-actions {
        padding-top: 12px;
        border-top: 1px solid #e8e8ef;
        margin-top: 8px;
    }

    .page-content {
        padding: 24px 0;
    }

    .container {
        padding: 0 16px;
    }

    .footer-columns {
        flex-direction: column;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
    }

    .year-list li a {
        padding: 12px 20px;
        font-size: 15px;
    }

    .article-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .breadcrumb {
        flex-wrap: wrap;
    }

    h1 {
        font-size: 1.4em;
        word-break: break-word;
    }
}
