/* case-detail.css - Extracted from inline styles */
:root {
      --red: #E60012; --red-hover: #cc0010; --red-light: rgba(230,0,18,0.08);
      --blue: #003366; --blue-light: #004a80;
      --nav-bg: #0a1628; --body-bg: #ffffff; --section-bg: #f5f5f7;
      --text-dark: #1d1d1f; --text-body: #6e6e73; --text-muted: #8e8e93;
      --border-light: rgba(0,0,0,0.06);
      --card-shadow: none;
      --card-shadow-hover: 0 12px 36px rgba(0,0,0,0.08);
      --header-h: 44px;
    }
    * { 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 */
    
    
    
    .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
    .logo-icon { width: 42px; height: 42px; background: var(--red); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 18px; }
    .logo-text { display: flex; flex-direction: column; }
    .logo-main { font-size: 18px; font-weight: 700; color: #fff; line-height: 1.2; }
    .logo-sub { font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 1px; }
    .main-nav { display: flex; align-items: center; gap: 0; }
    .nav-item { position: relative; }
    
    .nav-link:hover, 
    
    
    
    
    

    /* BREADCRUMB */
    .breadcrumb-bar { background: #fff; border-bottom: 1px solid var(--border-light); padding: 0; margin-top: var(--header-h); }
    .breadcrumb-inner { max-width: 1440px; margin: 0 auto; padding: 16px 32px; display: flex; align-items: center; gap: 8px; font-size: 13px; }
    .breadcrumb-bar a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
    .breadcrumb-bar a:hover { color: var(--red); }
    .breadcrumb-bar .sep { color: #ddd; }
    .breadcrumb-bar .current { color: var(--blue); font-weight: 500; }

    /* HERO */
    .detail-hero { position: relative; background: linear-gradient(rgba(10,22,40,0.6), rgba(0,51,102,0.6)), url('../images/banner-cases.jpg'); background-size: cover; background-position: center; padding: 60px 0; overflow: hidden; }
    .detail-hero::before { content: ''; position: absolute; inset: 0; background: rgba(10,22,40,0.35); z-index: 1; }
    .hero-inner { position: relative; max-width: 1440px; margin: 0 auto; padding: 0 32px; z-index: 2; }
    .hero-project-label { display: inline-block; padding: 4px 16px; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; border-radius: 4px; margin-bottom: 16px; }
    .hero-project-title { font-size: 36px; font-weight: 800; color: #fff; margin-bottom: 20px; }
    .hero-meta { display: flex; gap: 32px; flex-wrap: wrap; }
    .hero-meta-item { display: flex; flex-direction: column; gap: 4px; }
    .hero-meta-label { font-size: 12px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1px; }
    .hero-meta-value { font-size: 15px; color: rgba(255,255,255,0.9); font-weight: 500; }

    /* PROJECT IMAGE */
    .project-image-section { background: var(--body-bg); padding: 0; }
    .project-image-inner { max-width: 1440px; margin: 0 auto; padding: 48px 32px; }
    .project-image { width: 100%; border-radius: 12px; overflow: hidden; box-shadow: var(--card-shadow); }
    .project-image img { width: 100%; height: auto; display: block; }

    /* CONTENT SECTIONS */
    .content-section { background: var(--section-bg); padding: 80px 0; }
    .content-inner { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
    .section-label { font-size: 13px; font-weight: 600; letter-spacing: 3px; color: var(--red); text-transform: uppercase; margin-bottom: 12px; }
    .section-heading { font-size: 28px; font-weight: 800; color: var(--blue); margin-bottom: 40px; }

    /* Challenge / Solution cards */
    .challenge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .challenge-card { background: #fff; border-radius: 12px; padding: 36px; box-shadow: var(--card-shadow); position: relative; overflow: hidden; }
    .challenge-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; }
    .challenge-card.challenge::before { background: var(--red); }
    .challenge-card.solution::before { background: var(--blue); }
    .challenge-card h3 { font-size: 20px; font-weight: 700; color: var(--blue); margin-bottom: 16px; padding-left: 20px; }
    .challenge-card p { font-size: 15px; color: var(--text-body); line-height: 1.8; }
    .challenge-card ul { list-style: none; padding: 0; }
    .challenge-card ul li { font-size: 15px; color: var(--text-body); line-height: 1.8; padding-left: 24px; position: relative; margin-bottom: 4px; }
    .challenge-card ul li::before { content: ''; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; border-radius: 50%; }
    .challenge-card.challenge ul li::before { background: var(--red); }
    .challenge-card.solution ul li::before { background: var(--blue); }

    /* Feature cards */
    .features-section { background: var(--body-bg); padding: 80px 0; }
    .features-inner { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
    .features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
    .feature-card { background: #fff; border-radius: 12px; padding: 32px 24px; box-shadow: var(--card-shadow); text-align: center; transition: all 0.3s; }
    .feature-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
    .feature-icon { width: 56px; height: 56px; margin: 0 auto 20px; background: var(--red-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--red); }
    .feature-icon svg { width: 28px; height: 28px; }
    .feature-card h4 { font-size: 16px; font-weight: 700; color: var(--blue); margin-bottom: 10px; }
    .feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

    /* Results / Stats */
    .results-section { background: var(--body-bg); padding: 80px 0; }
    .results-inner { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
    .results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
    .result-card { background: #fff; border-radius: 12px; padding: 40px 24px; box-shadow: var(--card-shadow); text-align: center; }
    .result-number { font-size: 52px; font-weight: 800; color: var(--red); line-height: 1; margin-bottom: 8px; }
    .result-label { font-size: 15px; color: var(--text-body); }

    /* Related cases */
    .related-section { background: var(--section-bg); padding: 80px 0; }
    .related-inner { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
    .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 h4 { font-size: 16px; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
    .related-card-body p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; }
    .related-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--red); text-decoration: none; transition: gap 0.3s; }
    .related-link:hover { gap: 10px; }

    /* 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); }
    /* RESPONSIVE */
    @media (max-width: 1440px) {
      .features-grid { grid-template-columns: repeat(2, 1fr); }
      .results-grid { grid-template-columns: repeat(2, 1fr); }
      .footer-main { grid-template-columns: repeat(3, 1fr); }
    }
    @media (max-width: 768px) {
      .main-nav { display: none; }  
      .challenge-grid { grid-template-columns: 1fr; }
      .features-grid { grid-template-columns: 1fr; }
      .results-grid { grid-template-columns: repeat(2, 1fr); }
      .related-grid { grid-template-columns: 1fr; }
      .hero-project-title { font-size: 28px; }
      .hero-meta { gap: 20px; }
      .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; } }

    .animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
    .animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
