/* dgnews portal style */
html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background: #f5f7fb;
    color: #333;
    line-height: 1.75;
}

a {
    color: #1f2d3d;
    text-decoration: none;
    transition: color .2s ease, opacity .2s ease, transform .2s ease;
}

a:hover {
    color: #0f6bff;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.container {
    width: 1200px;
    max-width: calc(100% - 32px);
    margin: 0 auto;
}

.topbar {
    background: #0f172a;
    color: #cbd5e1;
    font-size: 13px;
}

.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
}

.topbar-links a {
    color: #cbd5e1;
    margin-left: 18px;
}

.header {
    background: #ffffff;
    border-bottom: 1px solid #e8edf5;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 18px;
}

.logo h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1;
    color: #0f6bff;
    font-weight: 700;
}

.logo img {
    max-height: 52px;
}

.site-desc p {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.site-desc span {
    color: #64748b;
    font-size: 13px;
}

.header-search {
    width: 360px;
    max-width: 100%;
}

.header-search form {
    display: flex;
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    overflow: hidden;
}

.header-search input {
    flex: 1;
    border: 0;
    background: transparent;
    height: 46px;
    padding: 0 18px;
    font-size: 14px;
    outline: none;
}

.header-search button {
    border: 0;
    background: #0f6bff;
    color: #fff;
    width: 90px;
    font-size: 14px;
    cursor: pointer;
}

.nav-wrap {
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
    position: sticky;
    top: 0;
    z-index: 20;
}

.nav ul {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 54px;
    flex-wrap: wrap;
}

.nav ul li {
    margin: 0;
}

.nav ul li a {
    display: inline-block;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    position: relative;
}

.nav ul li a:hover,
.nav ul li.current a,
.nav ul li.active a {
    color: #0f6bff;
}

.hero-section {
    padding: 24px 0 6px;
}

.hero-section .container {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 360px;
    gap: 24px;
}

.hero-feature {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid #ecf1f8;
}

.hero-thumb {
    display: block;
    height: 360px;
    background: linear-gradient(135deg, #1d4ed8, #0f172a);
    position: relative;
}

.hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero-feature-content {
    padding: 28px 30px 30px;
}

.hero-badge,
.article-category a,
.post-category a {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 107, 255, 0.1);
    color: #0f6bff;
    font-size: 12px;
    font-weight: 700;
}

.hero-feature-content h2 {
    margin: 14px 0 12px;
    font-size: 30px;
    line-height: 1.35;
}

.hero-feature-content p {
    margin: 0;
    color: #475569;
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-meta,
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #94a3b8;
    font-size: 13px;
}

.hero-meta {
    margin-top: 18px;
}

.hero-side-box,
.box,
.post-single {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #ecf1f8;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
}

.hero-side-box {
    padding: 22px;
    height: 100%;
}

.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf2f7;
}

.section-heading h2 {
    margin: 0;
    font-size: 22px;
    color: #0f172a;
}

.section-heading span {
    color: #94a3b8;
    font-size: 13px;
}

.headline-list li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.headline-list li:last-child,
.ranking-list li:last-child,
.simple-list li:last-child,
.post-related ul li:last-child,
.post-item:last-child {
    border-bottom: 0;
}

.headline-list a {
    font-size: 15px;
    line-height: 1.6;
    font-weight: 600;
}

.headline-list span,
.ranking-list span {
    color: #94a3b8;
    font-size: 12px;
}

.main {
    padding: 14px 0 36px;
}

.main .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
}

.box {
    padding: 22px 24px;
}

.post-list {
    display: flex;
    flex-direction: column;
}

.post-item {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 22px;
    padding: 24px 0;
    border-bottom: 1px solid #edf2f7;
}

.post-thumb {
    border-radius: 16px;
    overflow: hidden;
    height: 180px;
    background: #e2e8f0;
}

.post-thumb a,
.post-thumb img {
    width: 100%;
    height: 100%;
}

.post-thumb img {
    object-fit: cover;
}

.post-thumb-placeholder {
    background: linear-gradient(135deg, #2563eb, #0f172a);
}

.post-thumb-placeholder a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-thumb-placeholder span {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 4px;
}

.post-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.post-content h3 {
    margin: 12px 0 12px;
    font-size: 24px;
    line-height: 1.45;
}

.post-intro {
    margin: 0 0 18px;
    font-size: 15px;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar {
    width: auto;
}

.sidebar .box {
    margin-bottom: 24px;
}

.ranking-list li {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.ranking-list em {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-style: normal;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    border-radius: 10px;
    margin-top: 2px;
}

.ranking-list a,
.simple-list a {
    display: block;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 600;
}

.simple-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.tags a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    margin: 0 10px 10px 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 13px;
}

.tags a:hover {
    background: #0f6bff;
    color: #fff;
}

.breadcrumb {
    margin-bottom: 20px;
    color: #94a3b8;
    font-size: 13px;
}

.post-single {
    padding: 28px 32px 34px;
}

.article-head {
    margin-bottom: 22px;
}

.post-single h1 {
    margin: 14px 0 16px;
    font-size: 36px;
    line-height: 1.35;
    color: #0f172a;
}

.article-lead {
    margin-top: 18px;
    padding: 18px 20px;
    background: #f8fbff;
    border-left: 4px solid #0f6bff;
    border-radius: 12px;
    color: #475569;
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-cover {
    margin-bottom: 26px;
    border-radius: 18px;
    overflow: hidden;
}

.article-cover img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.post-body {
    font-size: 17px;
    color: #334155;
}

.post-body h2,
.post-body h3,
.post-body h4 {
    margin-top: 28px;
    color: #0f172a;
}

.post-body p {
    margin: 0 0 18px;
}

.post-body img {
    margin: 20px auto;
    border-radius: 12px;
}

.post-tags {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px dashed #d9e2ec;
    color: #64748b;
    font-size: 14px;
}

.post-tags a {
    margin-left: 10px;
}

.post-related {
    margin-top: 34px;
    padding-top: 10px;
}

.post-related h3 {
    margin: 0 0 14px;
    font-size: 22px;
}

.post-related ul li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.post-related ul li a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.pagebar {
    margin-top: 30px;
    text-align: center;
}

.pagebar a,
.pagebar .now-page,
.pagebar .dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    margin: 0 5px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #dbe3ef;
    background: #fff;
    color: #475569;
}

.pagebar .now-page,
.pagebar a:hover {
    background: #0f6bff;
    border-color: #0f6bff;
    color: #fff;
}

.footer {
    margin-top: 30px;
    background: linear-gradient(180deg, #0f172a, #111827);
    color: #cbd5e1;
    text-align: center;
    padding: 48px 0;
}

.footer-brand {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.footer p {
    margin: 10px 0;
    font-size: 14px;
}

.footer a {
    color: #93c5fd;
}

@media (max-width: 1100px) {
    .hero-section .container,
    .main .container {
        grid-template-columns: 1fr;
    }

    .header .container {
        flex-direction: column;
        align-items: stretch;
    }

    .header-search {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: calc(100% - 24px);
    }

    .topbar .container,
    .logo-group,
    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav ul {
        gap: 14px;
        min-height: auto;
        padding: 10px 0;
    }

    .hero-thumb {
        height: 220px;
    }

    .hero-feature-content,
    .post-single,
    .box,
    .hero-side-box {
        padding: 18px;
    }

    .hero-feature-content h2,
    .post-single h1 {
        font-size: 26px;
    }

    .post-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .post-thumb {
        height: 210px;
    }

    .post-content h3 {
        font-size: 21px;
    }

    .post-related ul li,
    .headline-list li {
        grid-template-columns: 1fr;
    }
}
