/* ============================================
   新闻和技术文章样式 - Tech Industrial
   ============================================ */

/* ---- Tech Glow Effects ---- */
@keyframes border-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 82, 255, 0); }
  50% { box-shadow: 0 0 20px 2px rgba(0, 82, 255, 0.15); }
}

@keyframes scan-line {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(400px); }
}

@keyframes tech-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ---- Page Header Tech Decoration ---- */
.page-container .page-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding: 40px 0;
}

.page-container .page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.page-container .page-header::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 5px;
    background: var(--accent);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 0 12px rgba(0, 82, 255, 0.6);
}

.page-container .page-header h1 {
    background: linear-gradient(135deg, var(--foreground) 30%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- World Map Background for News Pages ---- */
.news-page-bg {
    position: relative;
}

.news-page-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 600px;
    background-image: url('../img/world.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center top;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

.news-page-bg > * {
    position: relative;
    z-index: 1;
}

/* ---- Article List ---- */
.article-list {
    display: grid;
    gap: 32px;
}

.article-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-medium);
    position: relative;
    animation: fade-in-up 0.6s ease-out both;
}

.article-card:nth-child(1) { animation-delay: 0.05s; }
.article-card:nth-child(2) { animation-delay: 0.1s; }
.article-card:nth-child(3) { animation-delay: 0.15s; }
.article-card:nth-child(4) { animation-delay: 0.2s; }
.article-card:nth-child(5) { animation-delay: 0.25s; }
.article-card:nth-child(6) { animation-delay: 0.3s; }

.article-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(0,82,255,0.4), rgba(77,124,255,0.1), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-medium);
    pointer-events: none;
}

.article-card:hover {
    box-shadow: var(--shadow-xl), 0 0 30px rgba(0, 82, 255, 0.08);
    transform: translateY(-4px);
    border-color: rgba(0, 82, 255, 0.25);
}

.article-card:hover::before {
    opacity: 1;
}

.article-card .article-image {
    height: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, var(--muted), #e8eef5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.article-card .article-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,82,255,0.04) 100%);
    pointer-events: none;
}

.article-card .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-card:hover .article-image img {
    transform: scale(1.08);
}

.article-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.article-image-placeholder i {
    font-size: 48px;
    color: var(--accent);
    opacity: 0.3;
    animation: tech-pulse 3s ease-in-out infinite;
}

.article-card .article-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Tech corner decoration */
.article-card .article-content::before {
    content: '';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 20px;
    height: 20px;
    border-top: 2px solid rgba(0, 82, 255, 0.15);
    border-right: 2px solid rgba(0, 82, 255, 0.15);
    border-radius: 0 4px 0 0;
    transition: all var(--transition-medium);
}

.article-card:hover .article-content::before {
    border-color: rgba(0, 82, 255, 0.4);
    width: 28px;
    height: 28px;
}

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

.article-card .article-meta .category {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    padding: 4px 12px;
    background: rgba(0, 82, 255, 0.06);
    border: 1px solid rgba(0, 82, 255, 0.12);
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.article-card:hover .article-meta .category {
    background: rgba(0, 82, 255, 0.1);
    border-color: rgba(0, 82, 255, 0.25);
    box-shadow: 0 0 12px rgba(0, 82, 255, 0.1);
}

.article-card .article-meta .date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-card .article-meta .date::before {
    content: '>';
    color: var(--accent);
    opacity: 0.5;
}

.article-card h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.article-card h2 a {
    color: var(--foreground);
    text-decoration: none;
    transition: color var(--transition-fast);
    background: linear-gradient(90deg, var(--accent), var(--accent));
    background-size: 0 2px;
    background-position: 0 95%;
    background-repeat: no-repeat;
    transition: background-size 0.4s ease, color var(--transition-fast);
}

.article-card h2 a:hover {
    color: var(--accent);
    background-size: 100% 2px;
}

.article-card .summary {
    color: var(--muted-foreground);
    line-height: 1.6;
    flex: 1;
}

.article-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.02em;
    position: relative;
    padding: 4px 0;
}

.article-card .read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transition: width var(--transition-medium);
}

.article-card .read-more:hover::after {
    width: 100%;
}

.article-card .read-more:hover {
    gap: 14px;
}

.article-card .read-more i {
    transition: transform var(--transition-fast);
}

.article-card .read-more:hover i {
    transform: translateX(4px);
}

/* ---- Article Detail Page ---- */
.page-container .article-detail {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Vertical glow line on left side */
.page-container .article-detail::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 120px;
    bottom: 60px;
    width: 2px;
    background: linear-gradient(180deg, 
        transparent,
        rgba(0, 82, 255, 0.3) 20%,
        rgba(0, 82, 255, 0.15) 80%,
        transparent
    );
    border-radius: 1px;
}

@media (max-width: 1024px) {
    .page-container .article-detail::before {
        display: none;
    }
}

.page-container .article-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

/* Glowing underline */
.page-container .article-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(0, 82, 255, 0.2));
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(0, 82, 255, 0.3);
}

.page-container .article-header .article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.page-container .article-header .article-meta .category {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    padding: 4px 12px;
    background: rgba(0, 82, 255, 0.06);
    border: 1px solid rgba(0, 82, 255, 0.15);
    border-radius: 4px;
}

.page-container .article-header .article-meta .date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted-foreground);
}

.page-container .article-header h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--foreground) 40%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

.article-body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--foreground);
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2 {
    font-size: 1.75rem;
    margin: 48px 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-body h2::before {
    content: '';
    width: 4px;
    height: 28px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 82, 255, 0.3);
}

.article-body h3 {
    font-size: 1.375rem;
    margin: 32px 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-body h3::before {
    content: '//';
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent);
    opacity: 0.5;
}

.article-body ul,
.article-body ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 10px;
    position: relative;
}

.article-body ul li::marker {
    color: var(--accent);
}

/* ---- Related News Cards ---- */
.related-news-section {
    margin-top: 80px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
    position: relative;
}

.related-news-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    box-shadow: 0 0 8px rgba(0, 82, 255, 0.3);
}

.related-news-section h2 {
    font-size: 1.5rem;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.related-news-section h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.related-news-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-news-card .card-inner {
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.related-news-card .card-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(0,82,255,0.3), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-medium);
    pointer-events: none;
}

.related-news-card:hover .card-inner {
    border-color: rgba(0, 82, 255, 0.25);
    box-shadow: 0 4px 20px rgba(0, 82, 255, 0.08);
    transform: translateY(-2px);
}

.related-news-card:hover .card-inner::before {
    opacity: 1;
}

.related-news-card .card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.related-news-card .card-meta .tag {
    font-size: 11px;
    font-family: var(--font-mono);
    padding: 3px 10px;
    background: rgba(0, 82, 255, 0.06);
    border: 1px solid rgba(0, 82, 255, 0.1);
    border-radius: 4px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.related-news-card .card-meta .date {
    font-size: 12px;
    color: var(--muted-foreground);
    font-family: var(--font-mono);
}

.related-news-card h3 {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--foreground);
    transition: color var(--transition-fast);
}

.related-news-card:hover h3 {
    color: var(--accent);
}

/* ---- Migrated Blog Content Styles ---- */
.article-body .meta {
    color: var(--muted-foreground);
    font-size: 0.9375rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.article-body .tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(0, 82, 255, 0.06);
    border: 1px solid rgba(0, 82, 255, 0.12);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all var(--transition-fast);
}

.article-body .tag:hover {
    background: rgba(0, 82, 255, 0.1);
    border-color: rgba(0, 82, 255, 0.25);
    box-shadow: 0 0 12px rgba(0, 82, 255, 0.08);
}

.article-body .info,
.article-body .warning {
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
    font-size: 0.9375rem;
    position: relative;
    overflow: hidden;
}

.article-body .info::before,
.article-body .warning::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 3px 0 0 3px;
}

.article-body .info {
    background: rgba(0, 82, 255, 0.03);
    border: 1px solid rgba(0, 82, 255, 0.1);
}

.article-body .info::before {
    background: linear-gradient(180deg, var(--accent), rgba(0, 82, 255, 0.3));
}

.article-body .warning {
    background: rgba(245, 158, 11, 0.03);
    border: 1px solid rgba(245, 158, 11, 0.12);
}

.article-body .warning::before {
    background: linear-gradient(180deg, #f59e0b, rgba(245, 158, 11, 0.3));
}

.article-body .info-title,
.article-body .warning-title {
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-body .info-title {
    color: var(--accent);
}

.article-body .warning-title {
    color: #d97706;
}

.article-body pre {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #e2e8f0;
    padding: 20px 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 24px 0;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.7;
    position: relative;
    border: 1px solid rgba(0, 82, 255, 0.15);
}

/* Scan line effect on code blocks */
.article-body pre::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 82, 255, 0.3), transparent);
    animation: scan-line 3s linear infinite;
    pointer-events: none;
}

.article-body code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: rgba(0, 82, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent);
    border: 1px solid rgba(0, 82, 255, 0.08);
}

.article-body pre code {
    background: transparent;
    padding: 0;
    color: inherit;
    border: none;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.9375rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.article-body th,
.article-body td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.article-body th {
    background: linear-gradient(135deg, var(--muted), #e8eef5);
    font-weight: 600;
    color: var(--foreground);
    font-family: var(--font-mono);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-body td {
    color: var(--muted-foreground);
}

.article-body tr:hover td {
    background: rgba(0, 82, 255, 0.02);
}

.article-body blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    margin: 24px 0;
    color: var(--muted-foreground);
    font-style: italic;
    position: relative;
}

.article-body blockquote::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), rgba(0, 82, 255, 0.2));
    border-radius: 2px;
}

.article-body img {
    max-width: 100%;
    border-radius: 12px;
    margin: 24px 0;
    border: 1px solid var(--border);
    transition: all var(--transition-medium);
}

.article-body img:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.article-body hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 40px 0;
    position: relative;
}

.article-body hr::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 82, 255, 0.4);
}

/* ---- Breadcrumb ---- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    font-size: 13px;
    color: var(--muted-foreground);
    font-family: var(--font-mono);
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
}

.breadcrumb a:hover {
    text-shadow: 0 0 8px rgba(0, 82, 255, 0.3);
}

.breadcrumb-separator {
    color: var(--border);
    opacity: 0.6;
}

/* ---- No Results ---- */
.no-results {
    text-align: center;
    padding: 80px 24px;
}

.no-results i {
    font-size: 64px;
    color: var(--border);
    margin-bottom: 24px;
    animation: tech-pulse 3s ease-in-out infinite;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .page-container .article-detail {
        padding: 0 8px;
    }
    
    .page-container .article-header {
        margin-bottom: 32px;
        padding-bottom: 24px;
    }
    
    .page-container .article-header h1 {
        font-size: 1.75rem;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .article-body h2 {
        font-size: 1.375rem;
        margin: 32px 0 16px;
    }
    
    .article-body h3 {
        font-size: 1.125rem;
    }
    
    .article-body pre {
        padding: 16px;
        overflow-x: auto;
    }

    .related-news-section {
        margin-top: 60px;
    }
}

@media (max-width: 768px) {
    .page-container .page-header {
        padding: 24px 0;
    }

    .article-card {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .article-card .article-image {
        height: 180px;
    }
    
    .article-card .article-image-placeholder i {
        font-size: 36px;
    }
    
    .article-card .article-content {
        padding: 20px;
    }
    
    .article-card h2 {
        font-size: 1.125rem;
    }
    
    .article-card .summary {
        font-size: 14px;
    }
    
    .article-list {
        gap: 16px;
    }
    
    .article-body .info,
    .article-body .warning {
        padding: 16px;
    }
    
    .article-body table {
        font-size: 13px;
    }
    
    .article-body th,
    .article-body td {
        padding: 8px 10px;
    }

    .related-news-grid {
        grid-template-columns: 1fr;
    }

    .breadcrumb {
        flex-wrap: wrap;
        gap: 4px;
        margin-bottom: 24px;
    }
}
