@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1e1e1e;
    background: #fff;
    line-height: 1.7;
    font-size: 15px;
}

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

ul {
    list-style: none;
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

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

.header-logo {
    font-size: 20px;
    font-weight: 700;
    color: #1e1e1e;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

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

.header-nav a {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    padding: 20px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.header-nav a:hover {
    color: #1e1e1e;
}

.header-nav a.active {
    color: #1e1e1e;
    border-bottom-color: #1e1e1e;
}

.notice-banner {
    background: #1e1e1e;
    color: #fff;
    text-align: center;
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.notice-banner a {
    color: #7ee787;
    font-weight: 600;
    margin-left: 8px;
}

.notice-banner a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    gap: 48px;
}

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

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.article-card {
    padding: 32px 0;
    border-bottom: 1px solid #eee;
}

.article-card:first-child {
    padding-top: 0;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.article-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.avatar-green { background: #00c473; }
.avatar-blue { background: #3b82f6; }
.avatar-purple { background: #8b5cf6; }
.avatar-orange { background: #f59e0b; }
.avatar-red { background: #ef4444; }
.avatar-teal { background: #14b8a6; }

.article-author {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.article-date {
    font-size: 12px;
    color: #999;
}

.article-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #1e1e1e;
    letter-spacing: -0.3px;
}

.article-title a:hover {
    color: #00c473;
}

.article-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.tag-pill {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    background: #f3f4f6;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s;
}

.tag-pill:hover {
    background: #e5e7eb;
    color: #1e1e1e;
}

.sidebar-search {
    margin-bottom: 32px;
}

.sidebar-search input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.sidebar-search input:focus {
    border-color: #1e1e1e;
}

.sidebar-search input::placeholder {
    color: #aaa;
}

.sidebar-section {
    margin-bottom: 28px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1e1e1e;
}

.sidebar-category-title {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    margin-top: 16px;
}

.sidebar-category-title:first-child {
    margin-top: 0;
}

.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.sidebar-tag {
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: color 0.2s;
}

.sidebar-tag:hover {
    color: #00c473;
}

.footer {
    border-top: 1px solid #e5e5e5;
    background: #fafafa;
    padding: 40px 24px;
    margin-top: 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-brand {
    font-size: 16px;
    font-weight: 700;
    color: #1e1e1e;
    margin-bottom: 8px;
}

.footer-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    max-width: 360px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 13px;
    color: #888;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #1e1e1e;
}

.footer-bottom {
    max-width: 1200px;
    margin: 24px auto 0;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    font-size: 12px;
    color: #aaa;
    text-align: center;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.page-content h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.page-content .page-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 32px;
}

.page-content h2 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 12px;
}

.page-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 8px;
}

.page-content p {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 16px;
}

.page-content ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.page-content ul li {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    list-style: disc;
    margin-bottom: 4px;
}

.blog-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.blog-detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.blog-detail-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: #00c473;
}

.blog-detail-avatar.avatar-blue { background: #3b82f6; }
.blog-detail-avatar.avatar-purple { background: #8b5cf6; }

.blog-detail-author {
    font-size: 14px;
    font-weight: 600;
}

.blog-detail-date {
    font-size: 13px;
    color: #999;
}

.blog-detail h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.blog-detail-body h2 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 12px;
}

.blog-detail-body p {
    font-size: 15px;
    color: #444;
    line-height: 1.85;
    margin-bottom: 16px;
}

.blog-detail-body ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.blog-detail-body ul li {
    font-size: 15px;
    color: #444;
    line-height: 1.85;
    list-style: disc;
    margin-bottom: 4px;
}

.blog-detail-body code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'SFMono-Regular', Consolas, monospace;
}

.blog-detail-body pre {
    background: #1e1e1e;
    color: #e5e5e5;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.6;
    font-family: 'SFMono-Regular', Consolas, monospace;
}

.blog-detail-tags {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: #1e1e1e;
    transition: transform 0.2s;
}

.blog-archive-intro {
    padding: 0 0 8px;
}

.blog-archive-intro h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.4px;
    margin-bottom: 8px;
    color: #1e1e1e;
}

.blog-archive-intro p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    max-width: 640px;
}

.blog-archive-grid {
    width: 100%;
    margin: 0;
    padding: 16px 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.archive-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}

.archive-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.archive-card-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f4f6;
}

.archive-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.archive-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.archive-card-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.archive-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: #1e1e1e;
    margin-bottom: 10px;
    letter-spacing: -0.2px;
}

.archive-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.archive-card-author {
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #00c473;
}

.blog-detail-figure {
    margin: 0 0 24px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
}

.blog-detail-figure img {
    width: 100%;
    display: block;
}

.blog-detail-figure span {
    display: block;
    padding: 10px 14px;
    font-size: 13px;
    color: #888;
    background: #fafafa;
}

.blog-detail-body .blog-detail-figure {
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 920px) {
    .blog-archive-grid {
        grid-template-columns: 1fr;
        padding: 16px 0 0;
    }

    .container {
        flex-direction: column;
        padding: 24px 16px;
        gap: 32px;
    }

    .sidebar {
        width: 100%;
        border-top: 1px solid #eee;
        padding-top: 24px;
    }

    .header-inner {
        padding: 0 16px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #e5e5e5;
        flex-direction: column;
        padding: 16px 24px;
        gap: 0;
    }

    .header-nav.open {
        display: flex;
    }

    .header-nav a {
        padding: 12px 0;
        border-bottom: none;
    }

    .article-title {
        font-size: 18px;
    }

    .blog-detail h1 {
        font-size: 24px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}

section .container {
    display: block;
    gap: 0;
    padding: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.card:hover {
    box-shadow: 0 16px 40px rgba(0, 51, 102, 0.1);
    transform: translateY(-4px);
    border-color: #cbd5e1;
}

.card-thumb {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #003366, #336699);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-thumb-icon {
    width: 48px;
    height: 48px;
    color: #FFD700;
    opacity: 0.9;
}

.card-body {
    padding: 22px 24px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 12px;
}

.card-tag {
    display: inline-block;
    padding: 3px 12px;
    background: #003366;
    color: #FFD700;
    font-weight: 800;
    border-radius: 12px;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
}

.card-title {
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.45;
    color: #003366;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.card-desc {
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.65;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.card-link {
    font-size: 0.86rem;
    font-weight: 700;
    color: #336699;
    margin-top: auto;
}

.card:hover .card-link {
    color: #003366;
}

.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    color: #94a3b8;
    padding: 80px 0;
    font-size: 1rem;
}

.newsletter {
    padding: 100px 0;
    background: linear-gradient(135deg, #003366 0%, #0a2a4e 50%, #336699 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.newsletter-inner {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    color: #fff;
}

.newsletter-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.02rem;
    line-height: 1.75;
    margin: 0 0 32px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.newsletter-input {
    flex: 1;
    min-width: 220px;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    color: #111;
    outline: none;
}

.newsletter-btn {
    padding: 15px 28px;
    background: #FFD700;
    color: #003366;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    box-shadow: 0 8px 22px rgba(255, 215, 0, 0.3);
}

.newsletter-btn:hover {
    background: #ffc720;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 215, 0, 0.4);
}

.legal {
    padding: 100px 0 140px;
    background: #f4f7fb;
    min-height: 60vh;
}

.legal .container {
    display: block;
    padding: 60px 56px 72px;
    max-width: 840px;
    margin: 0 auto;
    gap: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.05);
}

.legal-badge {
    display: inline-block;
    background: #FFD700;
    color: #003366;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    margin-bottom: 24px;
}

.legal-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin: 0 0 14px;
    color: #003366;
    line-height: 1.2;
}

.legal-date {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0 0 40px;
    padding-bottom: 28px;
    border-bottom: 2px solid #f1f5f9;
}

.legal-content h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #003366;
    margin: 40px 0 14px;
    letter-spacing: -0.01em;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.9;
    margin: 0 0 14px;
}

.legal-content ul {
    padding-left: 22px;
    margin: 0 0 16px;
}

.legal-content li {
    color: #475569;
    font-size: 1rem;
    line-height: 1.85;
    list-style: disc;
    margin-bottom: 6px;
}

@media (max-width: 920px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
    .legal {
        padding: 60px 0 100px;
    }
    .legal .container {
        padding: 40px 24px 52px;
    }
    .legal-title {
        font-size: 1.9rem;
    }
    .newsletter {
        padding: 70px 0;
    }
    .newsletter-title {
        font-size: 1.5rem;
    }
}
