/*
Theme Name: Juchip Semiconductor
Theme URI: https://juchip.com
Author: Juchip Semiconductor
Description: 聚晶半导体企业官网主题 - 专业科技风
Version: 4.1.2
*/

/* ===== CSS Variables ===== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0ea5e9;
    --accent: #8b5cf6;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 40px rgba(37,99,235,0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--white);
    color: var(--gray-800);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-900);
}

/* ===== Links ===== */
a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    line-height: 1.5;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.4);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    color: var(--white);
}

.btn-outline-dark {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline-dark:hover {
    background: var(--primary);
    color: var(--white);
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.site-branding {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 36px;
    width: auto;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-company {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: #374151;
    padding: 8px 18px;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
    text-decoration: none;
    position: relative;
}

.main-nav a:hover,
.main-nav a.current {
    color: #2563eb;
}

.main-nav a.current::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background: #2563eb;
    border-radius: 1px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-toggle:hover {
    color: #2563eb;
    background: #f3f4f6;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #374151;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding: 100px 0 60px;
}

/* Hero背景装饰 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 70% 30%, rgba(37,99,235,0.15) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(124,58,237,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero视觉元素 */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
}

.hero-chip {
    width: 180px;
    height: 180px;
    background: var(--gradient-primary);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
    color: white;
    box-shadow: 0 0 80px rgba(37,99,235,0.4);
    animation: chipFloat 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.hero-chip::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--gradient-primary);
    border-radius: 44px;
    z-index: -1;
    animation: chipRotate 12s linear infinite;
    opacity: 0.5;
}

.hero-chip::after {
    content: '';
    position: absolute;
    inset: -8px;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    border-radius: 48px;
    z-index: -2;
    opacity: 0.3;
    box-shadow: 0 0 30px 15px rgba(96,165,250,0.3);
}

@keyframes chipFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes chipRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 轨道环 */
.orbit {
    position: absolute;
    border: 1px solid rgba(96,165,250,0.2);
    border-radius: 50%;
    animation: orbitSpin 20s linear infinite;
}

.orbit-1 {
    width: 280px;
    height: 280px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-2 {
    width: 360px;
    height: 360px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 25s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 440px;
    height: 440px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 30s;
}

@keyframes orbitSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbit-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #60a5fa;
    border-radius: 50%;
    top: -4px;
    left: 50%;
    box-shadow: 0 0 10px #60a5fa;
}

/* ===== Stats Section ===== */
.stats {
    padding: 60px 0;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* ===== Section Common ===== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 16px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-500);
}

.section-alt {
    background: var(--gray-50);
}

/* ===== Product Cards ===== */
.product-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.product-img {
    height: 160px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-img i {
    font-size: 3rem;
    color: white;
    opacity: 0.9;
}

.product-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.product-card .card-body {
    padding: 20px;
}

.product-card h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.spec-item {
    background: var(--gray-50);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.spec-item small {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-bottom: 2px;
}

.spec-item strong {
    font-size: 0.9rem;
    color: var(--primary);
}

.product-card .card-footer {
    padding: 0 20px 20px;
}

/* ===== Solution Cards ===== */
.solution-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gradient-primary);
    transition: height 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.solution-card:hover::before {
    height: 100%;
}

.solution-card .badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    display: inline-block;
}

.solution-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.solution-card p {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ===== About Section ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-visual {
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
    position: relative;
}

.about-visual i {
    font-size: 5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
}

.about-visual h3 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.about-visual p {
    color: var(--gray-500);
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-content > p {
    color: var(--gray-600);
    margin-bottom: 24px;
    line-height: 1.8;
}

.about-list {
    list-style: none;
    margin-bottom: 32px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--gray-600);
}

.about-list i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* ===== CTA Section ===== */
.cta {
    padding: 80px 0;
    background: var(--gradient-primary);
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 16px;
}

.cta p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.cta .btn {
    background: white;
    color: var(--primary);
    padding: 14px 32px;
}

.cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ===== Footer ===== */
.site-footer {
    background: #1f1f1f;
    color: white;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
    color: var(--gray-400);
    margin-top: 16px;
    font-size: 0.95rem;
}

.footer-brand .custom-logo {
    max-width: 160px;
    height: auto;
    margin-bottom: 12px;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 4px;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.9rem;
}


/* Footer filings */
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom p { font-size: .8rem; color: #9ca3af; margin: 0 0 8px; }
.footer-filings { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.footer-filings a { font-size: .75rem; color: #6b7280; text-decoration: none; transition: color .2s; }
.footer-filings a:hover { color: #d1d5db; }
.footer-filing-sep { color: #4b5563; font-size: .75rem; }

/* ===== Page Header ===== */
.page-header {
    padding: 120px 0 48px;
    background: var(--gradient-dark);
    color: white;
}

.page-header h1 {
    font-size: 2.25rem;
    color: white;
    margin-bottom: 8px;
}

.page-header .breadcrumb {
    margin-bottom: 16px;
}

.page-header .breadcrumb a {
    color: rgba(255,255,255,0.6);
}

.page-header .breadcrumb a:hover {
    color: white;
}

.page-header .breadcrumb span {
    color: rgba(255,255,255,0.4);
}

/* ===== Forms ===== */
.form-control,
.form-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--gray-900);
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 8px;
}

/* ===== Badge ===== */
.badge-primary {
    background: rgba(37,99,235,0.1);
    color: var(--primary);
}

.badge-success {
    background: rgba(16,185,129,0.1);
    color: #059669;
}

.badge-info {
    background: rgba(14,165,233,0.1);
    color: var(--secondary);
}

.badge-purple {
    background: rgba(139,92,246,0.1);
    color: var(--accent);
}

/* ===== Animation ===== */
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }


/* ================================================================
   HOMEPAGE — front-page.php styles (j* classes)
   ================================================================ */

/* ===== Homepage Wrapper ===== */
.juchip-home {
    overflow-x: clip;
}

/* ===== Hero Section (jhero) ===== */
.jhero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    overflow: hidden;
    padding: 120px 0 80px;
}

.jhero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(96,165,250,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96,165,250,0.018) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
}

.jhero-glow-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.22) 0%, transparent 65%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.jhero-glow-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,58,237,0.16) 0%, transparent 65%);
    bottom: -100px;
    left: -100px;
    pointer-events: none;
}

.jhero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.jhero-text {
    color: white;
}

.jhero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    margin-bottom: 24px;
}

.jhero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34,197,94,0.6);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.jhero-text h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.jhero-text h1 .highlight {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.jhero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 32px;
    max-width: 520px;
    line-height: 1.8;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37,99,235,0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.5);
    color: white;
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-hero-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
    color: white;
}

/* Hero Stats Row */
.hero-stats {
    display: flex;
    gap: 32px;
}

.hero-stat {
    text-align: left;
}

.hero-stat-num {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-num .stat-plus {
    font-size: 1.2rem;
    color: #60a5fa;
    margin-left: 2px;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    font-weight: 400;
}

/* Hero Visual — Chip Ring Animation */
.jhero-visual-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 400px;
    height: 400px;
}

.chip-ring {
    position: absolute;
    border: 1px solid rgba(96,165,250,0.15);
    border-radius: 50%;
    top: 50%;
    left: 50%;
}

.chip-ring-outer {
    width: 340px;
    height: 340px;
    transform: translate(-50%, -50%);
    animation: chipRingSpin 25s linear infinite;
}

.chip-ring-mid {
    width: 260px;
    height: 260px;
    transform: translate(-50%, -50%);
    animation: chipRingSpin 18s linear infinite reverse;
    border-color: rgba(96,165,250,0.2);
}

.chip-ring-inner {
    width: 180px;
    height: 180px;
    transform: translate(-50%, -50%);
    animation: chipRingSpin 12s linear infinite;
    border-color: rgba(96,165,250,0.25);
}

@keyframes chipRingSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.chip-ring-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #60a5fa;
    border-radius: 50%;
    top: -4px;
    left: 50%;
    box-shadow: 0 0 10px rgba(96,165,250,0.6);
}

.chip-ring-dot-accent {
    background: #a78bfa;
    box-shadow: 0 0 10px rgba(167,139,250,0.6);
}

.chip-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: rgba(15,23,42,0.8);
    border: 1px solid rgba(139,92,246,0.25);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: 0 0 40px rgba(139,92,246,0.15), 0 0 80px rgba(139,92,246,0.08);
}

.chip-core-label {
    font-size: 0.65rem;
    color: rgba(96,165,250,0.7);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.chip-core-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
}

.chip-core-desc {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.4);
}

.chip-core-svg {
    position: absolute;
    bottom: -30px;
    opacity: 0.5;
}

/* ===== Stats Bar (jstats) ===== */
.jstats {
    padding: 48px 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.jstats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.jstat-item {
    text-align: center;
    padding: 16px;
}

.jstat-num {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.jstat-label {
    font-size: 0.9rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* ===== Section Common (jsection) ===== */
.jsection {
    padding: 80px 0;
}

.jsection-alt {
    background: var(--gray-50);
}

.jsection-header {
    text-align: center;
    margin-bottom: 48px;
}

.jsection-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.jsection-header h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 16px auto 0;
    border-radius: 2px;
}

.jsection-header p {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto;
}

/* ===== Product Cards (Homepage) ===== */
.jproducts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.jproduct-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.jproduct-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.jproduct-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.jproduct-card:hover::before {
    opacity: 1;
}

.jproduct-card-icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    border-radius: 16px;
    color: #3b82f6;
}
.jproduct-card-icon svg {
    width: 32px;
    height: 32px;
}
.jproduct-card-icon .jproduct-icon-emoji {
    line-height: 1;
}
.jproduct-card[data-type="module_product"] .jproduct-card-icon {
    color: #0ea5e9;
}
.jproduct-card[data-type="solution_product"] .jproduct-card-icon {
    color: #8b5cf6;
}

.jproduct-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.jproduct-card-desc {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.jproduct-card-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 12px;
    margin-bottom: 16px;
    align-self: flex-start;
}

.jproduct-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    transition: all 0.2s;
}

.jproduct-card-link:hover {
    gap: 10px;
    color: var(--primary-dark);
}

/* ===== Markets Grid ===== */
.jmarkets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.jmarket-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.jmarket-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    text-decoration: none;
    color: inherit;
}

.jmarket-card-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.jmarket-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.jmarket-card-desc {
    font-size: 0.8rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ===== Strengths Grid ===== */
.jstrengths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.jstrength-item {
    text-align: center;
    padding: 24px;
}

.jstrength-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 16px;
}

.jstrength-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.jstrength-desc {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ===== CTA Section (jcta) ===== */
.jcta {
    padding: 100px 0;
    background: #fafbfd;
    text-align: center;
    position: relative;
    overflow: hidden;
    clip-path: inset(0);
}

/* === Decoration clipping wrapper (fixes Quark/WebKit overflow leak) === */
.jcta-deco {
    position: absolute;
    inset: 0;
    overflow: hidden;
    clip-path: inset(0);
    pointer-events: none;
    z-index: 0;
}

/* Soft glow accents - very subtle */
.jcta-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.jcta-glow-1 {
    width: 500px;
    height: 400px;
    top: -100px;
    left: -120px;
    background: radial-gradient(circle, rgba(139,92,246,0.05), transparent 70%);
    animation: jcta-glow-pulse 10s ease-in-out infinite alternate;
}
.jcta-glow-2 {
    width: 400px;
    height: 350px;
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(217,169,6,0.04), transparent 70%);
    animation: jcta-glow-pulse 12s ease-in-out infinite alternate-reverse;
}
@keyframes jcta-glow-pulse {
    0%   { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.08); }
}

/* Dot grid - very subtle */
.jcta-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(139,92,246,0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.jcta h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 16px;
    position: relative;
}

.jcta p {
    color: #64748b;
    margin-bottom: 36px;
    font-size: 1.05rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    line-height: 1.7;
}

.btn-cta {
    display: inline-block;
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(124,58,237,0.25);
    position: relative;
    letter-spacing: 0.02em;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(124,58,237,0.35);
    color: #fff;
}

/* ===== Scroll Reveal Animation ===== */
.j-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.j-reveal.j-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Footer extras ===== */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-logo {
    height: 32px;
    width: auto;
    margin-bottom: 12px;
}

.footer-contact h4 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}
.footer-contact p {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin-bottom: 8px;
}



/* ================================================================
   PRODUCT CENTER PAGE — Card Style v4
   ================================================================ */

/* ===== Page Hero ===== */
.pc-hero {
    position: relative;
    padding: 120px 0 40px;
    background: linear-gradient(180deg, #f0f4ff 0%, #ffffff 100%);
    overflow: hidden;
}
.pc-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(96,165,250,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96,165,250,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.pc-breadcrumb {
    margin-bottom: 16px;
    font-size: 0.85rem;
}
.pc-breadcrumb a { color: #6b7280; transition: color .2s; }
.pc-breadcrumb a:hover { color: var(--primary); }
.pc-breadcrumb span { color: #d1d5db; margin: 0 6px; }
.pc-breadcrumb span:last-child { color: #374151; font-weight: 500; }
.pc-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
}
.pc-hero p {
    font-size: 1.05rem;
    color: #6b7280;
    max-width: 520px;
}

/* ===== Filter Bar ===== */
.pc-filter-section {
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
}
.pc-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.pc-filter-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.pc-filter-btn {
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    cursor: pointer;
    transition: all .15s;
}
.pc-filter-btn:hover { border-color: #d1d5db; color: #374151; }
.pc-filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37,99,235,.25);
}
.pc-search { position: relative; min-width: 200px; }
.pc-search input {
    width: 100%;
    padding: 7px 16px;
    font-size: 13px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #f9fafb;
    color: #374151;
    transition: all .2s;
    box-sizing: border-box;
}
.pc-search input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}

/* ===== Products Section ===== */
.pc-products-section { padding: 40px 0 80px; }
.pc-category { margin-bottom: 56px; }
.pc-category:last-child { margin-bottom: 0; }
.pc-cat-header { margin-bottom: 28px; }
.pc-cat-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}
.pc-cat-header p {
    color: #6b7280;
    font-size: .95rem;
    margin: 0;
}

/* ===== Products Grid ===== */
.pc-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ===== Product Card ===== */
.pc-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
}
.pc-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    border: 1.5px solid var(--primary);
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.pc-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
    transform: translateY(-4px);
    border-color: transparent;
    text-decoration: none;
    color: inherit;
}
.pc-card:hover::after { opacity: 1; }


/* ==========================================================
   CPT Archive Listing Styles (pc-listing, pc-card-grid etc.)
   Used by: archive-chip_product, archive-module_product, archive-solution_product
   ========================================================== */
.pc-listing {
    padding: 40px 0 80px;
}
.pc-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.pc-card-grid .pc-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pc-card-grid .pc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
    border-color: var(--primary, #2563eb);
}
.pc-card-grid .pc-card-img {
    height: 180px;
    background: linear-gradient(135deg, #f0f4ff, #e8ecf4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.pc-card-grid .pc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pc-card-grid .pc-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.pc-card-grid .pc-card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.4;
}
.pc-card-grid .pc-card-body p {
    font-size: .85rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pc-card-tag {
    display: inline-block;
    font-size: .7rem;
    font-weight: 600;
    color: var(--primary, #2563eb);
    background: rgba(37,99,235,.08);
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.pc-card-model {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: .75rem;
    color: var(--primary, #2563eb);
    font-weight: 500;
}
.pc-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}
.pc-card-meta {
    display: inline-block;
    font-size: .7rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
}
.pc-card-status {
    display: inline-block;
    font-size: .7rem;
    font-weight: 600;
    color: #10b981;
    background: rgba(16,185,129,.1);
    padding: 3px 10px;
    border-radius: 12px;
    width: fit-content;
    margin-top: auto;
}
/* Pagination */
.pc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 48px;
}
.pc-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: .85rem;
    color: #374151;
    text-decoration: none;
    transition: all .2s;
}
.pc-pagination .page-numbers:hover {
    border-color: var(--primary, #2563eb);
    color: var(--primary, #2563eb);
    background: rgba(37,99,235,.04);
}
.pc-pagination .page-numbers.current {
    background: var(--primary, #2563eb);
    border-color: var(--primary, #2563eb);
    color: #fff;
}
/* Responsive */
@media (max-width: 991px) {
    .pc-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .pc-card-grid { grid-template-columns: 1fr; }
    .pc-listing { padding: 24px 0 48px; }
}

/* ===== Card Image Area ===== */
.pc-card-img {
    height: 200px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.pc-card-img-icon { font-size: 56px; opacity: .55; }

.pc-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}
.pc-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3px;
}
.pc-badge-cyan { background: #0ea5e9; }
.pc-badge-purple { background: #8b5cf6; }

/* ===== Card Body ===== */
.pc-card-body { padding: 20px; }
.pc-card-model {
    font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: .3px;
}
.pc-card-name {
    font-weight: 700;
    font-size: 16px;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.4;
}
.pc-card-desc {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== Spec Tags ===== */
.pc-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 16px;
}
.pc-tag {
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
}

/* ===== Card Footer ===== */
.pc-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}
.pc-status {
    font-size: 12px;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 10px;
    background: rgba(16,185,129,.1);
    color: #10b981;
}
.pc-card-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    transition: all .2s;
}
.pc-card:hover .pc-card-link { color: #1d4ed8; }

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .pc-products-grid { grid-template-columns: repeat(2, 1fr); }
    .pc-filter-row { flex-direction: column; align-items: stretch; }
    .pc-search { min-width: auto; }
}
@media (max-width: 768px) {
    .pc-hero { padding: 100px 0 32px; }
    .pc-hero h1 { font-size: 1.75rem; }
    .pc-filter-btns { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
    .pc-filter-btn { white-space: nowrap; flex-shrink: 0; }
}
@media (max-width: 480px) {
    .pc-products-grid { grid-template-columns: 1fr; }
}


/* ===== Responsive ===== */
@media (max-width: 991px) {
    .jhero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .jhero-visual-col {
        display: none;
    }
    .jhero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .jproducts-grid {
        grid-template-columns: 1fr;
    }
    .jmarkets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .jstrengths-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .jstats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .jstrengths-grid {
        grid-template-columns: 1fr;
    }
    .jsection {
        padding: 60px 0;
    }
    .jsection-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .jmarkets-grid {
        grid-template-columns: 1fr;
    }
    .hero-stats {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    .jstats-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   Product Detail Page — pd-* prefix (v3.0)
   ========================================================== */

/* ===== ① Hero ===== */
.pd-hero {
    position: relative;
    padding: 100px 0 48px;
    background: linear-gradient(180deg, #ffffff 0%, var(--gray-50) 100%);
    overflow: hidden;
}

.pd-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.pd-breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 20px;
    position: relative;
}

.pd-breadcrumb a {
    color: var(--gray-400);
    transition: color 0.2s;
}

.pd-breadcrumb a:hover {
    color: var(--primary);
}

.pd-breadcrumb .sep {
    color: var(--gray-400);
    margin: 0 6px;
}

.pd-breadcrumb .current {
    color: var(--gray-500);
}

.pd-hero-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
}

.pd-hero-visual {
    position: relative;
    aspect-ratio: 1;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(124,58,237,0.08));
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pd-hero-visual::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(37,99,235,0.15), transparent 50%, rgba(124,58,237,0.15));
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.pd-hero-visual:hover::after {
    opacity: 1;
}

.pd-hero-visual .icon {
    font-size: 5rem;
    opacity: 0.6;
}

.pd-hero-visual .label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-400);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pd-hero-info {
    position: relative;
}

.pd-status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    background: rgba(16,185,129,0.1);
    color: var(--green, #059669);
    border: 1px solid rgba(16,185,129,0.2);
}

.pd-model {
    font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.8rem;
    color: var(--primary);
    background: rgba(37,99,235,0.08);
    display: inline-block;
    padding: 3px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.pd-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.pd-subtitle {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-bottom: 24px;
    max-width: 480px;
    line-height: 1.7;
}

.pd-hero-specs {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.pd-hero-spec {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    min-width: 110px;
    text-align: center;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.pd-hero-spec:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-md);
}

.pd-hero-spec .spec-label {
    font-size: 0.7rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.pd-hero-spec .spec-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.pd-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.pd-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    text-decoration: none;
}

.pd-btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}

.pd-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37,99,235,0.4);
    color: var(--white);
}

.pd-btn-ghost {
    background: transparent;
    color: var(--gray-500);
    border: 1px solid var(--gray-200);
}

.pd-btn-ghost:hover {
    border-color: var(--gray-300);
    color: var(--gray-800);
}

/* ===== ② Features ===== */
.pd-features {
    padding: 56px 0;
    background: var(--gray-50);
}

.pd-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.pd-section-desc {
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-bottom: 32px;
}

.pd-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.pd-feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.pd-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.pd-feature-card:hover {
    border-color: rgba(37,99,235,0.25);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.pd-feature-card:hover::before {
    opacity: 1;
}

.pd-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 14px;
    background: rgba(37,99,235,0.08);
    color: var(--primary);
}

.pd-feature-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--gray-800);
}

.pd-feature-card p {
    font-size: 0.82rem;
    color: var(--gray-400);
    line-height: 1.5;
    margin-bottom: 8px;
}

.pd-feature-card .feature-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

/* ===== ③ Specs Table ===== */
.pd-specs {
    padding: 56px 0;
    background: var(--white);
}

.pd-specs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.pd-specs-table thead th {
    background: var(--gray-100);
    padding: 14px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.pd-specs-table tbody tr {
    border-bottom: 1px solid var(--gray-200);
    transition: background 0.15s;
}

.pd-specs-table tbody tr:last-child {
    border-bottom: none;
}

.pd-specs-table tbody tr:nth-child(even) {
    background: var(--gray-50);
}

.pd-specs-table tbody tr:hover {
    background: var(--gray-100);
}

.pd-specs-table td {
    padding: 12px 20px;
    font-size: 0.88rem;
}

.pd-specs-table td:first-child {
    color: var(--gray-500);
    font-weight: 500;
    width: 35%;
}

.pd-specs-table td:last-child {
    color: var(--gray-800);
    font-weight: 600;
}

.pd-specs-table .unit {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 400;
    margin-left: 4px;
}

/* ===== ④ Applications ===== */
.pd-apps {
    padding: 56px 0;
    background: var(--gray-50);
}

.pd-apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.pd-app-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.pd-app-card:hover {
    border-color: rgba(37,99,235,0.25);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.pd-app-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: rgba(37,99,235,0.08);
    color: var(--primary);
}

.pd-app-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--gray-800);
}

.pd-app-card p {
    font-size: 0.78rem;
    color: var(--gray-400);
    line-height: 1.5;
}

/* ===== ⑤ Related + CTA ===== */
.pd-related {
    padding: 56px 0;
    background: var(--white);
}

.pd-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.pd-related-card {
    display: flex;
    gap: 16px;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
}

.pd-related-card:hover {
    border-color: rgba(37,99,235,0.25);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: inherit;
}

.pd-related-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(124,58,237,0.1));
}

.pd-related-info h4 {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--gray-800);
}

.pd-related-info p {
    font-size: 0.75rem;
    color: var(--gray-400);
}

.pd-related-info .arrow {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pd-cta {
    background: linear-gradient(135deg, rgba(37,99,235,0.05), rgba(124,58,237,0.05));
    border: 1px solid rgba(37,99,235,0.15);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
}

.pd-cta h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.pd-cta p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 20px;
}

/* ===== Module color variant ===== */
.pd-type-module .pd-hero-visual {
    background: linear-gradient(135deg, rgba(14,165,233,0.08), rgba(59,130,246,0.08));
}

.pd-type-module .pd-model {
    color: #0284c7;
    background: rgba(14,165,233,0.08);
}

.pd-type-module .pd-feature-icon {
    background: rgba(14,165,233,0.1);
    color: #0284c7;
}

.pd-type-module .pd-app-icon {
    background: rgba(14,165,233,0.1);
    color: #0284c7;
}

.pd-type-module .pd-feature-card:hover {
    border-color: rgba(14,165,233,0.3);
}

.pd-type-module .pd-app-card:hover {
    border-color: rgba(14,165,233,0.3);
}

/* ===== Solution color variant ===== */
.pd-type-solution .pd-hero-visual {
    background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(236,72,153,0.08));
}

.pd-type-solution .pd-model {
    color: #7c3aed;
    background: rgba(124,58,237,0.08);
}

.pd-type-solution .pd-feature-icon {
    background: rgba(124,58,237,0.1);
    color: #7c3aed;
}

.pd-type-solution .pd-app-icon {
    background: rgba(124,58,237,0.1);
    color: #7c3aed;
}

.pd-type-solution .pd-feature-card:hover {
    border-color: rgba(124,58,237,0.3);
}

.pd-type-solution .pd-app-card:hover {
    border-color: rgba(124,58,237,0.3);
}

/* ===== Product Detail Responsive ===== */
@media (max-width: 991px) {
    .pd-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .pd-hero-visual {
        max-width: 280px;
        margin: 0 auto 32px;
    }
    .pd-hero-specs {
        justify-content: center;
    }
    .pd-actions {
        justify-content: center;
    }
    .pd-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pd-apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pd-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .pd-features-grid {
        grid-template-columns: 1fr;
    }
    .pd-apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pd-related-grid {
        grid-template-columns: 1fr;
    }
    .pd-hero-specs {
        flex-direction: column;
        align-items: center;
    }
    .pd-title {
        font-size: 1.4rem;
    }
}


/* ================================================================
   APPLICATION AREAS PAGE — ia-* styles
   ================================================================ */

/* ===== Hero ===== */
.ia-hero {
    position: relative;
    padding: 120px 0 48px;
    background: linear-gradient(180deg, #f0f4ff 0%, #ffffff 100%);
    overflow: hidden;
}
.ia-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(96,165,250,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96,165,250,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.ia-hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.ia-breadcrumb {
    margin-bottom: 16px;
    font-size: 0.85rem;
}
.ia-breadcrumb a { color: #6b7280; transition: color .2s; }
.ia-breadcrumb a:hover { color: var(--primary); }
.ia-breadcrumb span { color: #d1d5db; margin: 0 6px; }
.ia-breadcrumb span:last-child { color: #374151; font-weight: 500; }
.ia-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
}
.ia-hero > .container > p {
    font-size: 1.05rem;
    color: #6b7280;
    max-width: 520px;
    margin-bottom: 32px;
}
.ia-hero-stats {
    display: flex;
    gap: 40px;
}
.ia-hero-stat {
    display: flex;
    flex-direction: column;
}
.ia-hero-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.ia-hero-stat-label {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 4px;
}

/* ===== Overview Section ===== */
.ia-overview {
    padding: 64px 0 48px;
}
.ia-section-header {
    text-align: center;
    margin-bottom: 32px;
}
.ia-section-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}
.ia-section-header p {
    font-size: 1rem;
    color: #6b7280;
}

/* Tier legend */
.ia-tier-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.ia-tier-tag {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6b7280;
    padding: 4px 12px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}
.ia-tier-core { color: #3b82f6; border-color: rgba(59,130,246,0.2); background: rgba(59,130,246,0.05); }
.ia-tier-growth { color: #10b981; border-color: rgba(16,185,129,0.2); background: rgba(16,185,129,0.05); }
.ia-tier-opp { color: #8b5cf6; border-color: rgba(139,92,246,0.2); background: rgba(139,92,246,0.05); }

/* Cards grid */
.ia-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.ia-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all .25s ease;
    overflow: hidden;
}
.ia-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent, var(--primary));
    opacity: 0;
    transition: opacity .25s;
}
.ia-card:hover {
    border-color: var(--card-accent, var(--primary));
    box-shadow: 0 8px 32px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
    transform: translateY(-2px);
}
.ia-card:hover::before { opacity: 1; }

.ia-card-icon {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 16px;
    z-index: 1;
}
.ia-card-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: var(--card-accent, var(--primary));
    opacity: 0.1;
}
.ia-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--card-accent);
}
.ia-card-body { flex: 1; }
.ia-card-tier {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--card-accent);
    margin-bottom: 6px;
}
.ia-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}
.ia-card-tagline {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 12px;
}
.ia-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ia-card-tag {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #6b7280;
}
.ia-card-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
    opacity: 0;
    transform: translate(-4px, 4px);
    transition: all .25s;
}
.ia-card-arrow svg { stroke: var(--card-accent); }
.ia-card:hover .ia-card-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

/* ===== Detail Sections ===== */
.ia-detail {
    padding: 64px 0;
}
.ia-detail-alt {
    background: #f9fafb;
}
.ia-detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
}
.ia-detail-text h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 16px;
}
.ia-detail-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 8px;
    color: var(--badge-color);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
.ia-detail-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: var(--badge-color);
    opacity: 0.1;
    z-index: -1;
}
.ia-detail-lead {
    font-size: 1.05rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 12px;
}
.ia-detail-text p {
    font-size: 0.92rem;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Scenes */
.ia-detail-scenes {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}
.ia-detail-alt .ia-detail-scenes {
    background: #fff;
}
.ia-detail-scenes h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}
.ia-scene-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.ia-scene-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #4b5563;
    padding: 6px 12px;
    background: #f9fafb;
    border-radius: 8px;
}
.ia-scene-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Detail CTA */
.ia-detail-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid var(--primary);
    border-radius: 10px;
    transition: all .2s;
    margin-top: 8px;
}
.ia-detail-cta:hover {
    background: var(--primary);
    color: #fff;
}

/* Related products */
.ia-detail-products h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}
.ia-related-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ia-related-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all .2s;
}

.ia-related-img {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
    background: #f1f5f9;
}

.ia-related-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ia-detail-alt .ia-related-card {
    background: #fff;
}
.ia-related-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(37,99,235,0.08);
}
.ia-related-type {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    align-self: flex-start;
}
.ia-related-model {
    font-size: 0.85rem;
    font-weight: 700;
    color: #111827;
}
.ia-related-name {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
}
.ia-related-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 2px;
}
.ia-no-product {
    padding: 32px;
    text-align: center;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px dashed #d1d5db;
}
.ia-no-product p {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* ===== Banner ===== */
.ia-banner {
    position: relative;
    padding: 64px 0;
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 50%, #fdf2f8 100%);
    overflow: hidden;
}
.ia-banner-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59,130,246,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.ia-banner .container {
    position: relative;
    text-align: center;
}
.ia-banner h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 12px;
}
.ia-banner p {
    font-size: 1rem;
    color: #64748b;
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.7;
}
.ia-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    text-decoration: none;
    transition: all .2s;
}
.ia-banner-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(37,99,235,0.25);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .ia-cards-grid { grid-template-columns: repeat(3, 1fr); }
    .ia-detail-grid { grid-template-columns: 1fr 320px; gap: 32px; }
}
@media (max-width: 768px) {
    .ia-hero { padding: 100px 0 36px; }
    .ia-hero h1 { font-size: 1.8rem; }
    .ia-hero-stats { gap: 24px; }
    .ia-hero-stat-num { font-size: 1.5rem; }
    .ia-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .ia-card { padding: 18px; }
    .ia-detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .ia-detail-products { order: -1; }
    .ia-detail { padding: 40px 0; }
}
@media (max-width: 480px) {
    .ia-cards-grid { grid-template-columns: 1fr; }
    .ia-hero-stats { flex-wrap: wrap; gap: 16px; }
    .ia-tier-legend { gap: 8px; }
}

/* ================================================================
   ABOUT US PAGE — ab-* prefix, Light Design System
   ================================================================ */

/* ===== Hero ===== */
.ab-hero {
    position: relative;
    padding: 120px 0 48px;
    background: linear-gradient(180deg, #f0f4ff 0%, #ffffff 100%);
    overflow: hidden;
}
.ab-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(96,165,250,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96,165,250,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.ab-hero-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.ab-breadcrumb {
    margin-bottom: 16px;
    font-size: 0.85rem;
}
.ab-breadcrumb a { color: #6b7280; transition: color .2s; }
.ab-breadcrumb a:hover { color: var(--primary); }
.ab-breadcrumb span { color: #d1d5db; margin: 0 6px; }
.ab-breadcrumb span:last-child { color: #374151; font-weight: 500; }
.ab-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
}
.ab-hero p {
    font-size: 1.05rem;
    color: #6b7280;
    max-width: 520px;
}

/* ===== Section Header (reusable) ===== */
.ab-section-header {
    text-align: center;
    margin-bottom: 48px;
}
.ab-section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}
.ab-section-header p {
    font-size: 0.95rem;
    color: #6b7280;
    max-width: 480px;
    margin: 0 auto;
}

/* ===== Company Intro ===== */
.ab-intro {
    padding: 80px 0;
}
.ab-intro-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    align-items: start;
}
.ab-intro-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}
.ab-intro-text p {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 12px;
}
.ab-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.ab-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    transition: all .25s ease;
}
.ab-stat-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(37,99,235,0.08);
    transform: translateY(-2px);
}
.ab-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}
.ab-stat-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
}

/* ===== Core Advantages ===== */
.ab-advantages {
    padding: 80px 0;
    background: var(--gray-50);
}
.ab-adv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.ab-adv-card {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px 24px;
    overflow: hidden;
    transition: all .25s ease;
}
.ab-adv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent, var(--primary));
    opacity: 0;
    transition: opacity .25s ease;
}
.ab-adv-card:hover {
    border-color: var(--card-accent, var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
.ab-adv-card:hover::before {
    opacity: 1;
}
.ab-adv-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--card-accent, var(--primary));
    background: color-mix(in srgb, var(--card-accent, var(--primary)) 10%, transparent);
}
/* Fallback for color-mix */
@supports not (background: color-mix(in srgb, red 10%, transparent)) {
    .ab-adv-icon {
        position: relative;
        background: transparent;
    }
    .ab-adv-icon::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 12px;
        background: var(--card-accent, var(--primary));
        opacity: 0.1;
    }
}
.ab-adv-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}
.ab-adv-card p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* ===== Timeline ===== */
.ab-timeline-section {
    padding: 80px 0;
}
.ab-timeline {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding-left: 40px;
}
.ab-tl-line {
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 1px;
}
.ab-tl-item {
    position: relative;
    padding-bottom: 32px;
}
.ab-tl-item:last-child {
    padding-bottom: 0;
}
.ab-tl-dot {
    position: absolute;
    left: -33px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #dbeafe;
    z-index: 1;
}
.ab-tl-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 24px;
    transition: all .25s ease;
}
.ab-tl-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(37,99,235,0.08);
}
.ab-tl-year {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: #dbeafe;
    padding: 2px 10px;
    border-radius: 10px;
    margin-bottom: 8px;
}
.ab-tl-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}
.ab-tl-card p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* ===== Team ===== */
.ab-team-section {
    padding: 80px 0;
    background: var(--gray-50);
}
.ab-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.ab-team-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all .25s ease;
}
.ab-team-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
.ab-team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #fff;
    background: var(--avatar-accent, var(--primary));
}

.ab-team-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.ab-team-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}
.ab-team-role {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 12px;
}
.ab-team-desc {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* ===== CTA ===== */
.ab-cta {
    position: relative;
    padding: 64px 0;
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 50%, #fdf2f8 100%);
    overflow: hidden;
    text-align: center;
}
.ab-cta-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59,130,246,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.ab-cta .container {
    position: relative;
    z-index: 1;
}
.ab-cta h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}
.ab-cta p {
    font-size: 0.95rem;
    color: #64748b;
    max-width: 560px;
    margin: 0 auto 24px;
}
.ab-cta-btn {
    display: inline-block;
    padding: 10px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    text-decoration: none;
    transition: all .25s ease;
}
.ab-cta-btn:hover {
    box-shadow: 0 8px 24px rgba(37,99,235,0.25);
    transform: translateY(-1px);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .ab-intro-grid {
        grid-template-columns: 1fr;
    }
    .ab-stats-grid {
        max-width: 400px;
    }
    .ab-adv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .ab-hero { padding: 100px 0 36px; }
    .ab-hero h1 { font-size: 1.75rem; }
    .ab-intro, .ab-advantages, .ab-timeline-section, .ab-team-section {
        padding: 56px 0;
    }
    .ab-team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}
@media (max-width: 480px) {
    .ab-adv-grid {
        grid-template-columns: 1fr;
    }
    .ab-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ================================================================
   CONTACT US PAGE — ct-* prefix, Light Design System
   ================================================================ */

/* ===== Hero ===== */
.ct-hero {
    position: relative;
    padding: 120px 0 48px;
    background: linear-gradient(180deg, #f0f4ff 0%, #ffffff 100%);
    overflow: hidden;
}
.ct-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(96,165,250,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96,165,250,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.ct-hero-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.ct-breadcrumb {
    margin-bottom: 16px;
    font-size: 0.85rem;
}
.ct-breadcrumb a { color: #6b7280; transition: color .2s; }
.ct-breadcrumb a:hover { color: var(--primary); }
.ct-breadcrumb span { color: #d1d5db; margin: 0 6px; }
.ct-breadcrumb span:last-child { color: #374151; font-weight: 500; }
.ct-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
}
.ct-hero p {
    font-size: 1.05rem;
    color: #6b7280;
    max-width: 520px;
}

/* ===== Main Section ===== */
.ct-main {
    padding: 80px 0;
}
.ct-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
}

/* ===== Form ===== */
.ct-form-wrap h2,
.ct-info-wrap h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}
.ct-form-desc {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 28px;
}
.ct-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.ct-field {
    margin-bottom: 16px;
}
.ct-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}
.ct-req {
    color: #ef4444;
}
.ct-field input,
.ct-field select,
.ct-field textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: #374151;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: all .2s ease;
    box-sizing: border-box;
    font-family: inherit;
}
.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}
.ct-field textarea {
    resize: vertical;
    min-height: 120px;
}
.ct-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239CA3AF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.ct-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
}
.ct-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #6b7280;
    cursor: pointer;
}
.ct-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}
.ct-submit {
    padding: 10px 28px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    background: var(--primary);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all .25s ease;
}
.ct-submit:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 14px rgba(37,99,235,0.25);
}
.ct-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    color: #065f46;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== Contact Info ===== */
.ct-info-wrap {
    position: sticky;
    top: 88px;
}
.ct-info-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}
.ct-info-card:last-of-type {
    border-bottom: none;
}
.ct-info-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--info-accent, var(--primary));
    background: color-mix(in srgb, var(--info-accent, var(--primary)) 10%, transparent);
}
@supports not (background: color-mix(in srgb, red 10%, transparent)) {
    .ct-info-icon {
        position: relative;
        background: transparent;
    }
    .ct-info-icon::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 12px;
        background: var(--info-accent, var(--primary));
        opacity: 0.1;
    }
}
.ct-info-card h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}
.ct-info-card p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* ===== Map ===== */
.ct-map-section {
    padding: 0 0 80px;
}
.ct-map-wrap {
    /* inner .ct-map-link-box handles border/radius */
}
.ct-map-link-box {
    height: 320px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px;
}
.ct-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--primary, #2563eb);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s, box-shadow 0.2s;
}
.ct-map-btn:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 16px rgba(37,99,235,0.25);
    color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .ct-grid {
        grid-template-columns: 1fr;
    }
    .ct-info-wrap {
        position: static;
    }
}
@media (max-width: 768px) {
    .ct-hero { padding: 100px 0 36px; }
    .ct-hero h1 { font-size: 1.75rem; }
    .ct-main { padding: 56px 0; }
    .ct-form-row {
        grid-template-columns: 1fr;
    }
    .ct-form-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .ct-submit {
        text-align: center;
    }
}
@media (max-width: 480px) {
    .ct-map-link-box {
        height: 260px;
        padding: 24px;
    }
}



/* ===== ip-* Inner Page Styles ===== */

/* Hero */
.ip-hero {
    background: linear-gradient(180deg, #f0f4ff 0%, #ffffff 100%);
    padding: 80px 0 48px;
    text-align: center;
}

.ip-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.ip-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.ip-breadcrumb a:hover {
    color: var(--primary-dark);
}

.ip-breadcrumb-sep {
    color: var(--gray-400);
}

.ip-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.ip-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin: 0;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Content Section */
.ip-content-section {
    padding: 64px 0 80px;
}

.ip-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--gray-700);
    line-height: 1.8;
    font-size: 1rem;
}

/* Headings inside content */
.ip-content h1,
.ip-content h2,
.ip-content h3,
.ip-content h4 {
    color: var(--gray-900);
    font-weight: 600;
    margin-top: 2em;
    margin-bottom: 0.6em;
    line-height: 1.3;
}

.ip-content h2 {
    font-size: 1.5rem;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-200);
}

.ip-content h3 {
    font-size: 1.25rem;
}

.ip-content h4 {
    font-size: 1.1rem;
}

/* Paragraphs */
.ip-content p {
    margin: 0 0 1.25em;
}

/* Links */
.ip-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ip-content a:hover {
    color: var(--primary-dark);
}

/* Lists */
.ip-content ul,
.ip-content ol {
    margin: 0 0 1.5em;
    padding-left: 1.5em;
}

.ip-content li {
    margin-bottom: 0.5em;
}

.ip-content ul li::marker {
    color: var(--primary);
}

/* Tables */
.ip-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.9375rem;
    border-radius: 8px;
    overflow: hidden;
}

.ip-content thead th {
    background: var(--gray-100);
    color: var(--gray-800);
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid var(--gray-200);
}

.ip-content tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

.ip-content tbody tr:hover {
    background: var(--gray-50);
}

/* Images */
.ip-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em 0;
}

/* Blockquote */
.ip-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--gray-50);
    padding: 16px 24px;
    margin: 1.5em 0;
    border-radius: 0 8px 8px 0;
    color: var(--gray-600);
    font-style: italic;
}

/* Code */
.ip-content code {
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875em;
    color: var(--primary-dark);
}

.ip-content pre {
    background: var(--gray-900);
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5em 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.ip-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Page links (multi-page) */
.ip-page-links {
    margin-top: 2em;
    padding-top: 1.5em;
    border-top: 1px solid var(--gray-200);
}

.ip-page-links a {
    display: inline-block;
    padding: 4px 12px;
    margin: 0 4px;
    background: var(--gray-100);
    border-radius: 4px;
    text-decoration: none;
    color: var(--gray-700);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.ip-page-links a:hover {
    background: var(--primary);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .ip-hero {
        padding: 60px 0 36px;
    }

    .ip-title {
        font-size: 1.75rem;
    }

    .ip-subtitle {
        font-size: 1rem;
    }

    .ip-content-section {
        padding: 40px 0 56px;
    }

    .ip-content h2 {
        font-size: 1.25rem;
    }

    .ip-content table {
        font-size: 0.875rem;
    }

    .ip-content thead th,
    .ip-content tbody td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .ip-title {
        font-size: 1.5rem;
    }

    .ip-content {
        font-size: 0.9375rem;
    }
}


/* ===== nw-* News/Blog Styles ===== */

/* Hero */
.nw-hero {
    background: linear-gradient(180deg, #f0f4ff 0%, #ffffff 100%);
    padding: 80px 0 48px;
    text-align: center;
}

.nw-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.nw-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.nw-breadcrumb a:hover {
    color: var(--primary-dark);
}

.nw-breadcrumb-sep {
    color: var(--gray-400);
}

.nw-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.nw-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin: 0;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Posts Section */
.nw-posts-section {
    padding: 64px 0 80px;
}

/* Posts Grid */
.nw-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* Card */
.nw-card {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.nw-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.nw-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.nw-card:hover::before {
    opacity: 1;
}

/* Card Thumbnail */
.nw-card-thumb {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--gray-100);
}

.nw-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.nw-card:hover .nw-card-thumb img {
    transform: scale(1.05);
}

.nw-card-thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

/* Card Body */
.nw-card-body {
    padding: 20px 24px 24px;
}

.nw-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.nw-card-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nw-card-cat {
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.75rem;
}

@supports not (color: color-mix(in srgb, red 50%, blue)) {
    .nw-card-cat {
        background: var(--gray-100);
    }
}

.nw-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 8px;
    line-height: 1.4;
}

.nw-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.nw-card-title a:hover {
    color: var(--primary);
}

.nw-card-excerpt {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0 0 16px;
}

.nw-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    transition: gap 0.2s;
}

.nw-card-link:hover {
    gap: 10px;
    color: var(--primary-dark);
}

/* Pagination */
.nw-pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.nw-pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nw-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--gray-100);
    text-decoration: none;
    transition: all 0.2s;
}

.nw-pagination .page-numbers:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.nw-pagination .page-numbers.current {
    background: var(--primary);
    color: white;
}

/* Empty State */
.nw-empty {
    text-align: center;
    padding: 80px 0;
    color: var(--gray-400);
}

.nw-empty svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.nw-empty h3 {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin: 0 0 8px;
}

.nw-empty p {
    font-size: 0.9375rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .nw-hero {
        padding: 60px 0 36px;
    }

    .nw-title {
        font-size: 1.75rem;
    }

    .nw-subtitle {
        font-size: 1rem;
    }

    .nw-posts-section {
        padding: 40px 0 56px;
    }

    .nw-posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .nw-card-body {
        padding: 16px 20px 20px;
    }

    .nw-card-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .nw-title {
        font-size: 1.5rem;
    }

    .nw-card-thumb {
        aspect-ratio: 2/1;
    }
}


/* ===== ef-* Error/404 Styles ===== */

/* Hero */
.ef-hero {
    background: linear-gradient(180deg, #f0f4ff 0%, #ffffff 100%);
    padding: 80px 0 100px;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.ef-hero .container {
    width: 100%;
}

/* 404 Visual */
.ef-visual {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

.ef-code {
    font-size: 10rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    user-select: none;
}

.ef-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary) 12%, transparent) 0%, transparent 70%);
    z-index: 0;
    animation: ef-pulse 3s ease-in-out infinite;
}

@supports not (color: color-mix(in srgb, red 50%, blue)) {
    .ef-glow {
        background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    }
}

@keyframes ef-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* Title & Description */
.ef-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.ef-desc {
    font-size: 1.125rem;
    color: var(--gray-500);
    margin: 0 auto 40px;
    max-width: 480px;
    line-height: 1.7;
}

/* Search */
.ef-search {
    max-width: 480px;
    margin: 0 auto 48px;
}

.ef-search-form {
    display: flex;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ef-search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.12);
}

.ef-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 20px;
    font-size: 0.9375rem;
    color: var(--gray-800);
    background: transparent;
    font-family: inherit;
}

.ef-search-input::placeholder {
    color: var(--gray-400);
}

.ef-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    border: none;
    background: var(--primary);
    color: white;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.ef-search-btn:hover {
    background: var(--primary-dark);
}

/* Quick Links */
.ef-links {
    max-width: 560px;
    margin: 0 auto;
}

.ef-links-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.ef-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.ef-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    text-decoration: none;
    color: var(--gray-600);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.ef-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.25s;
}

.ef-link-card:hover {
    border-color: color-mix(in srgb, var(--primary) 30%, transparent);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.ef-link-card:hover::before {
    opacity: 1;
}

.ef-link-card svg {
    color: var(--gray-400);
    transition: color 0.25s;
}

.ef-link-card:hover svg {
    color: var(--primary);
}

@supports not (color: color-mix(in srgb, red 50%, blue)) {
    .ef-link-card:hover {
        border-color: var(--gray-300);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .ef-hero {
        padding: 60px 0 72px;
        min-height: auto;
    }

    .ef-code {
        font-size: 7rem;
    }

    .ef-glow {
        width: 200px;
        height: 200px;
    }

    .ef-title {
        font-size: 1.5rem;
    }

    .ef-desc {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .ef-search {
        margin-bottom: 36px;
    }

    .ef-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .ef-code {
        font-size: 5rem;
    }

    .ef-glow {
        width: 150px;
        height: 150px;
    }

    .ef-title {
        font-size: 1.25rem;
    }

    .ef-search-input {
        padding: 12px 16px;
        font-size: 0.875rem;
    }

    .ef-search-btn {
        width: 44px;
    }

    .ef-link-card {
        padding: 16px 8px;
        font-size: 0.75rem;
    }

    .ef-link-card svg {
        width: 20px;
        height: 20px;
    }
}


/* ===== sp-* Single Post Styles ===== */

/* Hero */
.sp-hero {
    background: linear-gradient(180deg, #f0f4ff 0%, #ffffff 100%);
    padding: 80px 0 40px;
    text-align: center;
}

.sp-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.sp-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.sp-breadcrumb a:hover {
    color: var(--primary-dark);
}

.sp-breadcrumb-sep {
    color: var(--gray-400);
}

.sp-breadcrumb-current {
    color: var(--gray-500);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-categories {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.sp-cat-tag {
    display: inline-block;
    padding: 4px 14px;
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

@supports not (color: color-mix(in srgb, red 50%, blue)) {
    .sp-cat-tag {
        background: var(--gray-100);
    }
}

.sp-cat-tag:hover {
    background: color-mix(in srgb, var(--primary) 20%, transparent);
}

.sp-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 20px;
    letter-spacing: -0.02em;
    line-height: 1.3;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.sp-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.sp-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sp-meta-item svg {
    color: var(--gray-400);
    flex-shrink: 0;
}

/* Cover Image */
.sp-cover {
    padding: 0 0 40px;
}

.sp-cover-img {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.sp-cover-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Body Layout */
.sp-body {
    padding: 24px 0 80px;
}

.sp-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

/* Content */
.sp-content {
    color: var(--gray-700);
    line-height: 1.8;
    font-size: 1rem;
}

.sp-content h1,
.sp-content h2,
.sp-content h3,
.sp-content h4 {
    color: var(--gray-900);
    font-weight: 600;
    margin-top: 1.8em;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

.sp-content h2 {
    font-size: 1.5rem;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gray-200);
}

.sp-content h3 {
    font-size: 1.25rem;
}

.sp-content p {
    margin: 0 0 1.25em;
}

.sp-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sp-content ul,
.sp-content ol {
    margin: 0 0 1.5em;
    padding-left: 1.5em;
}

.sp-content li {
    margin-bottom: 0.5em;
}

.sp-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em 0;
}

.sp-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--gray-50);
    padding: 16px 24px;
    margin: 1.5em 0;
    border-radius: 0 8px 8px 0;
    color: var(--gray-600);
    font-style: italic;
}

.sp-content code {
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875em;
    color: var(--primary-dark);
}

.sp-content pre {
    background: var(--gray-900);
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5em 0;
    font-size: 0.875rem;
}

.sp-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.sp-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.9375rem;
    border-radius: 8px;
    overflow: hidden;
}

.sp-content thead th {
    background: var(--gray-100);
    color: var(--gray-800);
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid var(--gray-200);
}

.sp-content tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--gray-100);
}

.sp-content tbody tr:hover {
    background: var(--gray-50);
}

.sp-page-links {
    margin-top: 2em;
    padding-top: 1.5em;
    border-top: 1px solid var(--gray-200);
}

/* Tags */
.sp-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.sp-tags-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 500;
}

.sp-tags-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sp-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: 6px;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: all 0.2s;
}

.sp-tag:hover {
    background: var(--primary);
    color: white;
}

/* Post Navigation */
.sp-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.sp-nav-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.sp-nav-link:hover {
    background: var(--gray-100);
}

.sp-nav-disabled {
    opacity: 0.5;
    cursor: default;
}

.sp-nav-prev {
    text-align: left;
}

.sp-nav-next {
    text-align: right;
}

.sp-nav-dir {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sp-nav-next .sp-nav-dir {
    justify-content: flex-end;
}

.sp-nav-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
    line-height: 1.4;
}

.sp-nav-link:hover .sp-nav-title {
    color: var(--primary);
}

/* Sidebar */
.sp-sidebar {
    position: sticky;
    top: 100px;
}

.sp-widget {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.sp-widget-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-100);
}

/* Widget Search */
.sp-widget-search {
    display: flex;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
}

.sp-widget-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 12px;
    font-size: 0.875rem;
    color: var(--gray-700);
    background: transparent;
    font-family: inherit;
}

.sp-widget-search-input::placeholder {
    color: var(--gray-400);
}

.sp-widget-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    border: none;
    background: var(--primary);
    color: white;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.sp-widget-search-btn:hover {
    background: var(--primary-dark);
}

/* Widget List */
.sp-widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-widget-list li {
    margin: 0;
}

.sp-widget-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--gray-100);
    transition: color 0.2s;
}

.sp-widget-list li:last-child a {
    border-bottom: none;
}

.sp-widget-list a:hover {
    color: var(--primary);
}

.sp-widget-count {
    background: var(--gray-100);
    color: var(--gray-500);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
}

/* Widget Recent Posts */
.sp-widget-recent {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-widget-recent li {
    margin: 0;
}

.sp-widget-recent a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0;
    text-decoration: none;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.2s;
}

.sp-widget-recent li:last-child a {
    border-bottom: none;
}

.sp-widget-recent-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-800);
    line-height: 1.4;
    transition: color 0.2s;
}

.sp-widget-recent a:hover .sp-widget-recent-title {
    color: var(--primary);
}

.sp-widget-recent-date {
    font-size: 0.75rem;
    color: var(--gray-400);
}

/* Responsive */
@media (max-width: 1024px) {
    .sp-layout {
        grid-template-columns: 1fr 260px;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .sp-hero {
        padding: 60px 0 32px;
    }

    .sp-title {
        font-size: 1.5rem;
    }

    .sp-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sp-sidebar {
        position: static;
    }

    .sp-nav {
        grid-template-columns: 1fr;
    }

    .sp-nav-next {
        text-align: left;
    }

    .sp-nav-next .sp-nav-dir {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .sp-title {
        font-size: 1.25rem;
    }

    .sp-meta {
        gap: 12px;
        font-size: 0.8125rem;
    }

    .sp-content {
        font-size: 0.9375rem;
    }
}


/* ===== sr-* Search Results Styles ===== */

/* Hero */
.sr-hero {
    background: linear-gradient(180deg, #f0f4ff 0%, #ffffff 100%);
    padding: 80px 0 48px;
    text-align: center;
}

.sr-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.sr-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.sr-breadcrumb a:hover {
    color: var(--primary-dark);
}

.sr-breadcrumb-sep {
    color: var(--gray-400);
}

.sr-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 24px;
    letter-spacing: -0.02em;
}

/* Search Box */
.sr-search-box {
    max-width: 560px;
    margin: 0 auto 24px;
}

.sr-search-form {
    display: flex;
    background: var(--card-bg, #ffffff);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sr-search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.12);
}

.sr-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 20px;
    font-size: 1rem;
    color: var(--gray-800);
    background: transparent;
    font-family: inherit;
}

.sr-search-input::placeholder {
    color: var(--gray-400);
}

.sr-search-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 20px;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.sr-search-btn:hover {
    background: var(--primary-dark);
}

/* Summary */
.sr-summary {
    font-size: 0.9375rem;
    color: var(--gray-500);
    margin: 0;
}

.sr-summary strong {
    color: var(--gray-700);
}

/* Results Section */
.sr-results {
    padding: 48px 0 80px;
}

/* Result Cards */
.sr-results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sr-result-card {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
    position: relative;
}

.sr-result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.25s;
}

.sr-result-card:hover {
    border-color: color-mix(in srgb, var(--primary) 20%, transparent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateX(4px);
}

.sr-result-card:hover::before {
    opacity: 1;
}

@supports not (color: color-mix(in srgb, red 50%, blue)) {
    .sr-result-card:hover {
        border-color: var(--gray-300);
    }
}

.sr-result-body {
    padding: 20px 24px;
}

.sr-result-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.sr-result-type {
    display: inline-block;
    padding: 2px 10px;
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

@supports not (color: color-mix(in srgb, red 50%, blue)) {
    .sr-result-type {
        background: var(--gray-100);
    }
}

.sr-result-date {
    font-size: 0.8125rem;
    color: var(--gray-400);
}

.sr-result-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 8px;
    line-height: 1.4;
}

.sr-result-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.sr-result-title a:hover {
    color: var(--primary);
}

.sr-result-excerpt {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0 0 12px;
}

.sr-result-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    transition: gap 0.2s;
}

.sr-result-link:hover {
    gap: 10px;
    color: var(--primary-dark);
}

/* Pagination */
.sr-pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.sr-pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sr-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--gray-100);
    text-decoration: none;
    transition: all 0.2s;
}

.sr-pagination .page-numbers:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.sr-pagination .page-numbers.current {
    background: var(--primary);
    color: white;
}

/* Empty State */
.sr-empty {
    text-align: center;
    padding: 64px 0;
    color: var(--gray-400);
}

.sr-empty svg {
    margin-bottom: 16px;
    opacity: 0.4;
}

.sr-empty h3 {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin: 0 0 8px;
}

.sr-empty p {
    font-size: 0.9375rem;
    color: var(--gray-500);
    margin: 0 0 24px;
}

.sr-empty-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sr-empty-link {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.sr-empty-link:hover {
    background: var(--primary);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .sr-hero {
        padding: 60px 0 36px;
    }

    .sr-title {
        font-size: 1.75rem;
    }

    .sr-results {
        padding: 32px 0 56px;
    }

    .sr-result-body {
        padding: 16px 20px;
    }

    .sr-result-title {
        font-size: 1rem;
    }

    .sr-search-btn span {
        display: none;
    }
}

@media (max-width: 480px) {
    .sr-title {
        font-size: 1.5rem;
    }

    .sr-search-input {
        padding: 12px 14px;
        font-size: 0.875rem;
    }

    .sr-search-btn {
        padding: 0 14px;
        font-size: 0.875rem;
    }
}


/* ===== cm-* Comments Styles ===== */

.cm-comments {
    padding: 48px 0 64px;
    border-top: 1px solid var(--gray-200);
    margin-top: 32px;
}

.cm-comments .container {
    max-width: 800px;
}

/* Title */
.cm-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 24px;
}

.cm-title svg {
    color: var(--primary);
}

/* Comment List */
.cm-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cm-item {
    margin: 0;
}

.cm-comment {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-100);
}

.cm-item:last-child .cm-comment {
    border-bottom: none;
}

/* Avatar */
.cm-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Comment Body */
.cm-body {
    flex: 1;
    min-width: 0;
}

.cm-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.cm-author {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-800);
}

.cm-date {
    font-size: 0.8125rem;
    color: var(--gray-400);
}

.cm-content {
    font-size: 0.9375rem;
    color: var(--gray-700);
    line-height: 1.6;
}

.cm-content p {
    margin: 0 0 0.5em;
}

.cm-content p:last-child {
    margin-bottom: 0;
}

/* Reply Link */
.cm-actions {
    margin-top: 8px;
}

.cm-actions .reply a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.cm-actions .reply a:hover {
    color: var(--primary-dark);
}

/* Closed Comments */
.cm-closed {
    font-size: 0.875rem;
    color: var(--gray-400);
    text-align: center;
    padding: 24px 0;
}

/* Comment Form */
.cm-reply-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 32px 0 20px;
}

.cm-form {
    max-width: 600px;
}

.cm-field {
    margin-bottom: 16px;
}

.cm-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.cm-field input,
.cm-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--gray-800);
    background: var(--card-bg, #ffffff);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.cm-field input:focus,
.cm-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 10%, transparent);
}

@supports not (color: color-mix(in srgb, red 50%, blue)) {
    .cm-field input:focus,
    .cm-field textarea:focus {
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }
}

.cm-field textarea {
    resize: vertical;
    min-height: 120px;
}

.cm-field input::placeholder,
.cm-field textarea::placeholder {
    color: var(--gray-400);
}

.cm-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
}

.cm-submit:hover {
    background: var(--primary-dark);
}

.cm-submit:active {
    transform: scale(0.98);
}

/* Nested Comments */
.cm-list .children {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-left: 48px;
}

.cm-list .children .cm-comment {
    padding: 16px 0;
}

.cm-list .children .cm-avatar img {
    width: 36px;
    height: 36px;
}

/* Responsive */
@media (max-width: 768px) {
    .cm-comments {
        padding: 32px 0 48px;
    }

    .cm-comment {
        gap: 12px;
    }

    .cm-avatar img {
        width: 36px;
        height: 36px;
    }

    .cm-list .children {
        padding-left: 36px;
    }

    .cm-form {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .cm-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .cm-title {
        font-size: 1.125rem;
    }
}


/* ===== Mobile Navigation (Header Responsive) ===== */
@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        opacity: 0;
        pointer-events: none;
    }

    .main-nav.open {
        max-height: 400px;
        opacity: 1;
        pointer-events: auto;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 8px 0;
    }

    .main-nav a {
        display: block;
        padding: 12px 24px;
        font-size: 15px;
        border-bottom: none;
    }

    .main-nav a:hover {
        background: #f3f4f6;
    }

    .main-nav a.current::after {
        display: none;
    }

    .header-actions {
        margin-right: 8px;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 0 16px;
    }

    .logo-text_group {
        display: none;
    }

    .logo-img {
        max-height: 32px;
    }
}

/* Spin animation for Bootstrap Icons (used by JS) */
@keyframes bi-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.bi.spin {
    display: inline-block;
    animation: bi-spin 1s linear infinite;
}

