/* ==========================================================================
   DAQID 列表页样式 - 新闻中心 / 产品中心 / 案例 / 文档
   ========================================================================== */

/* === CSS Variables === */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --accent: #06b6d4;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Base === */
body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
    overflow-x: hidden;
}

/* === Navbar === */
.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.75rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.brand-text {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    color: #475569 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
    background: rgba(37, 99, 235, 0.06);
}

.btn-nav-call {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.55rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
    transition: var(--transition);
}

.btn-nav-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
    color: white;
}

/* === Page Header === */
.page-header {
    position: relative;
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 50%, #0f2027 100%);
    overflow: hidden;
}

.page-header-sm {
    padding: 5rem 0 2rem;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(37, 99, 235, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.15) 0%, transparent 40%);
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.page-breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

.page-breadcrumb a:hover {
    color: white;
}

.page-breadcrumb i {
    font-size: 0.6rem;
    opacity: 0.5;
}

.page-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.8rem;
}

.page-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* === Page Content === */
.page-content {
    padding: 3rem 0 5rem;
}

/* === Category Filter === */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.filter-btn {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(37, 99, 235, 0.04);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

/* === Document List === */
.doc-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.doc-item {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.doc-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.15);
}

.doc-thumb {
    flex-shrink: 0;
    width: 180px;
    height: 130px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.doc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.doc-item:hover .doc-thumb img {
    transform: scale(1.05);
}

.doc-thumb-default {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    font-size: 2.5rem;
    color: var(--primary);
}

.doc-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(37, 99, 235, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.doc-thumb-overlay i {
    color: white;
    font-size: 1.5rem;
}

.doc-item:hover .doc-thumb-overlay {
    opacity: 1;
}

.doc-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.doc-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.doc-meta i {
    margin-right: 0.3rem;
}

.doc-category {
    color: var(--primary);
    font-weight: 600;
}

.doc-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.doc-title a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.doc-title a:hover {
    color: var(--primary);
}

.doc-summary {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.doc-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    margin-top: auto;
}

.doc-readmore:hover {
    gap: 0.7rem;
    color: var(--primary-dark);
}

/* === Empty State === */
.doc-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.doc-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.doc-empty p {
    font-size: 1rem;
}

/* === Pagination === */
.pagination-wrapper {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item {
    display: flex;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.8rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.page-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(37, 99, 235, 0.04);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

/* === Sidebar === */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--primary);
    position: relative;
}

.widget-category {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-category li {
    margin-bottom: 0.4rem;
}

.widget-category a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.widget-category a i {
    width: 20px;
    text-align: center;
    font-size: 0.85rem;
}

.widget-category a:hover {
    background: rgba(37, 99, 235, 0.06);
    color: var(--primary);
}

.widget-category a.active {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-weight: 600;
}

/* Sidebar Contact */
.sidebar-contact {
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 100%);
    border: none;
    color: white;
}

.sidebar-contact .widget-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.contact-item i {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.9rem;
}

.contact-item > div {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.contact-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
}

.btn-sidebar-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-sidebar-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
    color: white;
}

/* === Article Detail === */
.article-detail {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.article-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-meta i {
    margin-right: 0.3rem;
    color: var(--primary);
}

.article-summary {
    background: #f1f5f9;
    border-left: 4px solid var(--primary);
    padding: 1.2rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0 12px 12px 0;
    position: relative;
}

.article-summary i {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    font-size: 1.5rem;
    color: rgba(37, 99, 235, 0.15);
}

.article-summary p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
    font-style: italic;
}

.article-content {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-main);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

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

.article-content ul,
.article-content ol {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}

/* Related Articles */
.article-related {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.related-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.related-title i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.related-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    transition: var(--transition);
}

.related-item:hover {
    background: rgba(37, 99, 235, 0.04);
    border-color: var(--primary);
    transform: translateX(5px);
}

.related-item-title {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.related-item i {
    color: var(--primary);
    font-size: 0.8rem;
    margin-left: 0.8rem;
    flex-shrink: 0;
}

/* === Footer === */
.site-footer {
    background: #0a1628;
    color: #94a3b8;
    padding: 4rem 0 0;
}

.footer-row {
    padding-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.footer-brand .brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.footer-brand .brand-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    -webkit-text-fill-color: white;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #64748b;
}

.footer-heading {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: #64748b;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 0.3rem;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: #64748b;
}

.footer-contact i {
    color: var(--primary-light);
    width: 18px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: #64748b;
}

.icp-link {
    color: #64748b;
    text-decoration: none;
    transition: var(--transition);
}

.icp-link:hover {
    color: var(--primary-light);
}

/* === Responsive === */
@media (max-width: 991.98px) {
    .page-header { padding: 5rem 0 3rem; }
    .page-title { font-size: 1.8rem; }
    .doc-item { flex-direction: column; }
    .doc-thumb { width: 100%; height: 180px; }
    .article-detail { padding: 1.5rem; }
    .article-title { font-size: 1.5rem; }
}

@media (max-width: 767.98px) {
    .page-header { padding: 4rem 0 2rem; }
    .page-title { font-size: 1.5rem; }
    .doc-item { padding: 1rem; }
    .doc-thumb { height: 150px; }
    .doc-title { font-size: 1rem; }
    .doc-meta { flex-wrap: wrap; gap: 0.5rem; }
    .category-filter { gap: 0.4rem; }
    .filter-btn { font-size: 0.8rem; padding: 0.4rem 0.8rem; }
    .article-detail { padding: 1.2rem; }
    .article-title { font-size: 1.3rem; }
    .article-meta { gap: 0.8rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}