﻿/* article-detail.css - Extracted from inline styles */
:root {
      --red: #E60012; --red-hover: #CC0010; --red-light: rgba(230,0,18,0.08);
      --blue: #003366; --blue-light: #0066cc;
      --nav-bg: #0a1628; --body-bg: #ffffff; --section-bg: #f5f7fa;
      --text-dark: #333333; --text-body: #555555; --text-muted: #888888;
      --border-light: #e5e7eb;
      --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
      --card-shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
      --header-h: 72px;
    }
    * { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body { background: var(--body-bg); color: var(--text-dark); font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
    ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: #f0f0f0; } ::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: #aaa; }

    /* HEADER：由 unified.css 的 .unified-header 统一提供，本文件不再重复定义 */

    /* ARTICLE COVER */
    .article-cover { position: relative; width: 100%; height: 480px; overflow: hidden; }
    .article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .article-cover::after { content: ''; position: absolute; inset: 0; background: rgba(10,22,40,0.5); }

    /* BREADCRUMB */
    .breadcrumb { margin: 32px 0 0; padding: 0; position: relative; z-index: 10; }
    .breadcrumb-inner { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
    .breadcrumb-inner a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
    .breadcrumb-inner a:hover { color: var(--red); }
    .breadcrumb-inner .sep { color: #ddd; }

    /* ARTICLE CONTENT */
    .article-wrapper { max-width: 1018px; margin: 0 auto; padding: 32px 32px 80px; }

    /* Article Meta */
    .article-title { font-size: 32px; font-weight: 800; color: var(--blue); line-height: 1.3; margin-bottom: 20px; letter-spacing: -0.01em; }
    .article-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border-light); }
    .article-meta .author { display: flex; align-items: center; gap: 10px; }
    .author-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px; }
    .author-info { display: flex; flex-direction: column; }
    .author-name { font-size: 14px; font-weight: 600; color: var(--text-dark); }
    .author-date { font-size: 12px; color: var(--text-muted); }
    .article-meta .category-tag { display: inline-block; padding: 4px 14px; background: var(--red-light); color: var(--red); font-size: 13px; font-weight: 600; border-radius: 100px; }

    /* Article Body */
    .article-body { font-size: 15px; color: var(--text-body); line-height: 1.9; }
    .article-body p { margin-bottom: 20px; }
    .article-body h2 { font-size: 22px; font-weight: 700; color: var(--blue); margin: 40px 0 16px; padding-left: 16px; border-left: 3px solid var(--red); }
    .article-body blockquote { margin: 24px 0; padding: 20px 24px; background: var(--section-bg); border-left: 3px solid var(--red); border-radius: 0 8px 8px 0; font-style: italic; color: var(--text-body); }
    .article-body blockquote p { margin-bottom: 0; }
    .article-body img { width: 100%; border-radius: 12px; margin: 24px 0; display: block; }
    .article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 20px; }
    .article-body li { margin-bottom: 8px; line-height: 1.8; }
    .article-body strong { color: var(--blue); font-weight: 600; }

    /* Tags */
    .article-tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-light); }
    .article-tags .tags-label { font-size: 14px; font-weight: 600; color: var(--text-muted); }
    .article-tags .tag { padding: 4px 14px; background: var(--section-bg); color: var(--text-muted); font-size: 13px; border-radius: 100px; text-decoration: none; transition: all 0.2s; }
    .article-tags .tag:hover { background: var(--red-light); color: var(--red); }

    /* Article Navigation */
    .article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
    .article-nav a { display: block; padding: 20px; background: var(--section-bg); border-radius: 12px; text-decoration: none; transition: all 0.3s; border: 1px solid transparent; }
    .article-nav a:hover { border-color: var(--red); box-shadow: var(--card-shadow); }
    .article-nav .nav-label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
    .article-nav .nav-title { font-size: 14px; font-weight: 600; color: var(--blue); line-height: 1.5; }
    .article-nav .nav-next { text-align: right; }

    /* Related Articles */
    .related-section { background: var(--section-bg); padding: 60px 0; margin-top: 60px; }
    .related-inner { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
    .related-title { font-size: 22px; font-weight: 700; color: var(--blue); margin-bottom: 28px; }
    .related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .related-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--card-shadow); transition: all 0.3s; }
    .related-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
    .related-card-img { width: 100%; height: 180px; overflow: hidden; }
    .related-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
    .related-card:hover .related-card-img img { transform: scale(1.05); }
    .related-card-body { padding: 20px; }
    .related-card-body .rc-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
    .related-card-body h4 { font-size: 15px; font-weight: 600; color: var(--blue); line-height: 1.5; }
    .related-card-body h4 a { color: inherit; text-decoration: none; transition: color 0.2s; }
    .related-card-body h4 a:hover { color: var(--red); }

    /* CTA */
    .cta-section { background: linear-gradient(135deg, #0a1628 0%, #003366 100%); padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
    .cta-section::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 30% 50%, rgba(230,0,18,0.1) 0%, transparent 50%); }
    .cta-inner { position: relative; max-width: 600px; margin: 0 auto; padding: 0 32px; }
    .cta-title { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 12px; }
    .cta-desc { font-size: 16px; color: rgba(255,255,255,0.6); margin-bottom: 32px; }
    .btn-cta { display: inline-flex; align-items: center; gap: 8px; padding: 16px 40px; background: var(--red); color: #fff; border: none; border-radius: 6px; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.3s; box-shadow: 0 4px 20px rgba(230,0,18,0.3); }
    .btn-cta:hover { background: var(--red-hover); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(230,0,18,0.4); }

    /* FOOTER */
    .site-footer { background: #fff; border-top: 1px solid var(--border-light); }
    .footer-main { max-width: 1440px; margin: 0 auto; padding: 48px 32px 36px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; }
    .footer-col-title { font-size: 16px; font-weight: 700; color: var(--blue); margin-bottom: 20px; position: relative; padding-bottom: 10px; }
    .footer-col-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 24px; height: 2px; background: var(--red); border-radius: 1px; }
    .footer-links { list-style: none; } .footer-links li { margin-bottom: 10px; }
    .footer-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
    .footer-links a:hover { color: var(--red); }
    .footer-friend-links { border-top: 1px solid var(--border-light); }
    .footer-friend-inner { max-width: 1440px; margin: 0 auto; padding: 16px 32px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
    .friend-label { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
    .friend-links { display: flex; gap: 8px; flex-wrap: wrap; }
    .friend-links a { font-size: 12px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
    .friend-links a:hover { color: var(--red); }
    .friend-links a::after { content: '|'; margin-left: 8px; color: #ddd; }
    .friend-links a:last-child::after { display: none; }
    .footer-bottom { border-top: 1px solid var(--border-light); background: var(--section-bg); }
    .footer-bottom-inner { max-width: 1440px; margin: 0 auto; padding: 20px 32px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
    .footer-diagnose { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-body); }
    .footer-diagnose-input { height: 38px; padding: 0 14px; border: 1px solid var(--border-light); border-radius: 6px; background: #fff; font-size: 13px; color: var(--text-dark); outline: none; width: 220px; transition: border-color 0.3s; box-sizing: border-box; }
    .footer-diagnose-input:focus { border-color: var(--red); }
    .footer-diagnose-btn { height: 38px; padding: 0 18px; background: var(--red); color: #fff; border: none; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.3s; white-space: nowrap; }
    .footer-diagnose-btn:hover { background: var(--red-hover); }
    .footer-copyright { font-size: 12px; color: var(--text-muted); }
    .hot-searches { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .hot-label { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
    .hot-tag { padding: 2px 10px; background: #f0f0f0; border-radius: 3px; font-size: 12px; color: var(--text-muted); text-decoration: none; transition: all 0.2s; }
    .hot-tag:hover { background: var(--red-light); color: var(--red); }

    .article-source { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-top: -20px; margin-bottom: 24px; padding: 10px 16px; background: var(--section-bg); border-radius: 8px; }
    .article-source a { text-decoration: none; }
    .article-source svg { flex-shrink: 0; color: var(--red); }
    .meta-reading-time { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-muted); }
    .meta-reading-time svg { color: var(--red); }
    .follow-qr-section { margin-top: 36px; padding: 16px 20px; background: #fff; border: 1px solid var(--border-light); border-left: 3px solid var(--red); border-radius: 8px; }
    .follow-qr-inner { max-width: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 18px; }
    .follow-qr-title { font-size: 15px; font-weight: 700; color: var(--blue); margin-bottom: 4px; }
    .follow-qr-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 0; }
    .follow-qr-card { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 0; background: transparent; border-radius: 0; box-shadow: none; flex-shrink: 0; }
    .follow-qr-img { width: 72px; height: 72px; background: #f5f5f5; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 0; }
    .follow-qr-img img { width: 60px; height: 60px; border-radius: 6px; }
    .follow-qr-text { display: flex; flex-direction: column; align-items: flex-start; }
    .follow-qr-label { font-size: 13px; font-weight: 600; color: var(--text-dark); }
    .follow-qr-sublabel { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
    /* RESPONSIVE */
    @media (max-width: 1440px) {
      .related-grid { grid-template-columns: 1fr 1fr; }
      .footer-main { grid-template-columns: repeat(3, 1fr); }
    }
    @media (max-width: 768px) {
      .main-nav { display: none; }  
      .article-cover { height: 320px; }
      .article-title { font-size: 24px; }
      .article-body h2 { font-size: 18px; }
      .related-grid { grid-template-columns: 1fr; }
      .article-nav { grid-template-columns: 1fr; }
      .footer-main { grid-template-columns: repeat(2, 1fr); }
      .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
    }
    @media (max-width: 480px) { .footer-main { grid-template-columns: 1fr; } }
