body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: #f8fafc;
    color: #1a202c;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    min-width: 160px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-top: 2px solid #2563eb;
    z-index: 200;
}

.nav-item:hover .nav-dropdown {
    display: block;
}

.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: 1.875rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #2563eb;
}

.news-card:hover img {
    transform: scale(1.05);
}

.footer-bg {
    background-color: #0f172a;
}

.glass-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.transition-all-300 {
    transition: all 0.3s ease;
}

@keyframes dikong-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.member-marquee-track {
    display: flex;
    width: max-content;
    animation: dikong-marquee 45s linear infinite;
}

.member-marquee-track:hover {
    animation-play-state: paused;
}

#dikong-mobile-nav:not(.hidden) {
    display: flex;
}

.dikong-header-search input[type='search'] {
    -webkit-appearance: none;
    appearance: none;
}

/* 不可对主导航行使用 overflow-x: auto，否则会裁切二级下拉菜单（.nav-dropdown） */
.dikong-header-nav-row {
    flex-wrap: wrap;
    row-gap: 0;
    overflow: visible;
}

/* 新闻列表页（协会数字化 news.html 风格，不含站点头部） */
.dikong-news-hero {
    background-image: linear-gradient(rgba(30, 58, 138, 0.8), rgba(30, 58, 138, 0.8)), var(--dikong-news-hero-image);
    background-size: cover;
    background-position: center;
    min-height: 220px;
}

@media (min-width: 768px) {
    .dikong-news-hero {
        min-height: 300px;
    }
}

.sidebar-link.active {
    color: #2563eb;
    border-right: 4px solid #2563eb;
    background-color: #eff6ff;
}

.news-item:hover h4 {
    color: #2563eb;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 政策法规列表 policies.html */
.dikong-policies-hero {
    background-image: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), var(--dikong-policies-hero-image);
    background-size: cover;
    background-position: center;
    min-height: 220px;
}

@media (min-width: 768px) {
    .dikong-policies-hero {
        min-height: 300px;
    }
}

.policy-row:hover .policy-row-title {
    color: #2563eb;
}

/* 文章详情正文（与入会须知内文风格一致） */
.dikong-article-content {
    line-height: 1.75;
}

.dikong-article-content > *:last-child {
    margin-bottom: 0;
}

.dikong-article-content p {
    margin-bottom: 1rem;
}

.dikong-article-content h2,
.dikong-article-content h3,
.dikong-article-content h4 {
    font-weight: 700;
    color: #1f2937;
    margin: 1.25rem 0 0.5rem;
}

.dikong-article-content h2:first-child,
.dikong-article-content h3:first-child,
.dikong-article-content h4:first-child {
    margin-top: 0;
}

.dikong-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1rem 0;
}

.dikong-article-content ul {
    list-style: disc;
    margin: 0.5rem 0 1rem 1.25rem;
}

.dikong-article-content ol {
    list-style: decimal;
    margin: 0.5rem 0 1rem 1.25rem;
}

.dikong-article-content a {
    color: #2563eb;
}

.dikong-article-content a:hover {
    text-decoration: underline;
}
