* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #1f2937;
    background: #f6f8fb;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e6ebf2;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 8px 24px;
    min-height: 64px;
    padding: 10px 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: #12315f;
    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1f6feb, #22b8cf);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 18px;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    overflow: visible;
    flex: 1;
}

.site-nav > a,
.nav-item > a {
    padding: 6px 2px;
    color: #4b5563;
    font-size: 15px;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.site-nav > a:hover,
.site-nav > a.active,
.nav-item > a:hover,
.nav-item > a.active {
    color: #1f6feb;
    border-bottom-color: #1f6feb;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-caret {
    margin-left: 2px;
    font-size: 10px;
    color: #9aa4b2;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: -8px;
    z-index: 300;
    min-width: 190px;
    max-height: 360px;
    overflow-y: auto;
    padding: 8px;
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(23, 55, 110, .12);
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
    display: block;
}

.nav-dropdown a {
    display: block;
    padding: 7px 10px;
    border-bottom: none;
    border-radius: 6px;
    font-size: 14px;
    color: #4b5563;
    white-space: nowrap;
}

.nav-dropdown a:hover {
    background: #eef5ff;
    color: #1f6feb;
}

.site-search {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.site-search input {
    width: 180px;
    height: 34px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    padding: 0 12px;
    outline: none;
}

.site-search input:focus {
    border-color: #1f6feb;
}

.site-search button {
    height: 34px;
    border: none;
    border-radius: 8px;
    background: #1f6feb;
    color: #fff;
    padding: 0 14px;
    cursor: pointer;
}

.site-lang {
    display: flex;
    align-items: center;
    margin-left: 18px;
    font-size: 13px;
}

.site-lang-select {
    height: 30px;
    border: 1px solid #dbe3ef;
    border-radius: 6px;
    background: #fff;
    color: #5b6577;
    padding: 0 6px;
    outline: none;
    cursor: pointer;
}

.site-lang-select:hover,
.site-lang-select:focus {
    border-color: #1f6feb;
    color: #1f6feb;
}

.site-friend-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    font-size: 13px;
}

.site-friend-links a {
    color: inherit;
    opacity: .85;
    text-decoration: none;
}

.site-friend-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.friend-links-title {
    opacity: .7;
}

.hero {
    background: radial-gradient(circle at 20% 20%, #2b6cb0, #0f2a52 70%);
    color: #fff;
    padding: 64px 0;
}

.hero h1 {
    font-size: 38px;
    margin: 0 0 12px;
    letter-spacing: 1px;
}

.hero p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    max-width: 620px;
    font-size: 16px;
}

.site-main {
    padding: 36px 0 60px;
}

.section {
    margin-bottom: 36px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-head h2 {
    font-size: 22px;
    margin: 0;
}

.section-head a {
    color: #1f6feb;
    font-size: 14px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.article-card {
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(23, 55, 110, .08);
}

.article-cover {
    width: 100%;
    height: 170px;
    object-fit: cover;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.article-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-card h3 {
    font-size: 17px;
    margin: 0 0 8px;
    line-height: 1.45;
}

.article-card p {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 14px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta {
    color: #8a94a6;
    font-size: 12px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    background: #fff3e8;
    color: #e8703a;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 12px;
    margin-left: 8px;
    vertical-align: middle;
}

.column-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
}

.sidebar {
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    padding: 16px;
    height: fit-content;
    position: sticky;
    top: 84px;
}

.sidebar h3 {
    margin: 0 0 10px;
    font-size: 15px;
}

.sidebar a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: #4b5563;
    font-size: 14px;
}

.sidebar a:hover,
.sidebar a.active {
    background: #eef5ff;
    color: #1f6feb;
}

.breadcrumb {
    font-size: 13px;
    color: #8a94a6;
    margin-bottom: 16px;
}

.breadcrumb a {
    color: #1f6feb;
}

.article-list {
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    overflow: hidden;
}

.article-item {
    padding: 18px 20px;
    border-bottom: 1px solid #eef2f7;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.article-item h3 a:hover {
    color: #1f6feb;
}

.article-item p {
    margin: 0 0 10px;
    color: #6b7280;
    font-size: 14px;
}

.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 24px 0 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    color: #4b5563;
    font-size: 14px;
}

.pagination a:hover {
    border-color: #1f6feb;
    color: #1f6feb;
}

.pagination .current {
    background: #1f6feb;
    border-color: #1f6feb;
    color: #fff;
}

.pagination .disabled {
    color: #b8c0cc;
    pointer-events: none;
}

.pagination .page-info {
    min-width: auto;
    border: 0;
    background: transparent;
    color: #6b7280;
    padding: 0 4px;
}

.pagination .page-jump {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #6b7280;
}

.pagination .page-jump input {
    width: 56px;
    height: 34px;
    padding: 0 6px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    text-align: center;
    outline: none;
}

.pagination .page-jump input:focus {
    border-color: #1f6feb;
}

.pagination .page-jump button {
    height: 34px;
    padding: 0 12px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    color: #4b5563;
    font-size: 14px;
    cursor: pointer;
}

.pagination .page-jump button:hover {
    border-color: #1f6feb;
    color: #1f6feb;
}

.article-detail {
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    padding: 32px clamp(18px, 4vw, 48px);
}

.article-detail h1 {
    font-size: 30px;
    line-height: 1.35;
    margin: 0 0 14px;
}

.article-detail .meta {
    margin-bottom: 22px;
}

.article-content {
    font-size: 16px;
    line-height: 1.9;
    color: #263244;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    line-height: 1.4;
}

.article-content p {
    margin: 0 0 14px;
}

.article-content a {
    color: #1f6feb;
}

.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #eef2f7;
    font-size: 14px;
}

.article-nav a {
    color: #4b5563;
}

.article-nav a:hover {
    color: #1f6feb;
}

.article-nav .next {
    text-align: right;
}

.related {
    margin-top: 22px;
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    padding: 18px 20px;
}

.related h3 {
    margin: 0 0 12px;
    font-size: 16px;
}

.related a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px dashed #eef2f7;
    color: #4b5563;
    font-size: 14px;
}

.related a:last-child {
    border-bottom: none;
}

.related a:hover {
    color: #1f6feb;
}

.empty {
    padding: 60px 20px;
    text-align: center;
    color: #8a94a6;
    background: #fff;
    border: 1px dashed #dbe3ef;
    border-radius: 14px;
}

.site-footer {
    border-top: 1px solid #e6ebf2;
    background: #fff;
    color: #8a94a6;
    font-size: 13px;
    padding: 24px 0;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 960px) {
    .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .column-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        order: 2;
    }

    .header-inner {
        height: auto;
        padding: 10px 0;
        flex-wrap: wrap;
    }

    .site-nav {
        order: 2;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        overflow: visible;
        gap: 6px 14px;
    }
}

@media (max-width: 640px) {
    .header-inner {
        height: auto;
        padding: 10px 0;
        flex-wrap: wrap;
    }

    .site-search {
        order: 3;
        width: 100%;
    }

    .site-search input {
        flex: 1;
        width: auto;
    }

    .hero {
        padding: 42px 0;
    }

    .hero h1 {
        font-size: 27px;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .article-detail {
        padding: 22px 18px;
    }

    .article-detail h1 {
        font-size: 23px;
    }

    .article-nav {
        grid-template-columns: 1fr;
    }

    .article-nav .next {
        text-align: left;
    }
}

.message-panel {
    max-width: 720px;
    margin: 0 auto;
}

.message-panel h2 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #111827;
}

.message-desc {
    margin: 0 0 20px;
    color: #6b7280;
    font-size: 14px;
}

.message-form {
    display: grid;
    gap: 16px;
    padding: 24px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(15, 23, 42, .06);
}

.message-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #374151;
}

.message-field input,
.message-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #111827;
    outline: none;
    transition: border-color .2s ease;
}

.message-field input:focus,
.message-field textarea:focus {
    border-color: #1f6feb;
}

.message-field textarea {
    min-height: 140px;
    resize: vertical;
}

.message-submit {
    justify-self: start;
    padding: 10px 26px;
    border: none;
    border-radius: 8px;
    background: #1f6feb;
    color: #ffffff;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s ease;
}

.message-submit:hover {
    background: #175bc4;
}

.message-alert {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}

.message-alert.success {
    background: #ecfdf5;
    color: #047857;
}

.message-alert.error {
    background: #fef2f2;
    color: #b91c1c;
}

.site-ad {
    margin: 16px auto;
    text-align: center;
}

.site-ad img {
    max-width: 100%;
    height: auto;
}
