/* ========================================
   Nexlamp Technology - Global Styles
   Mobile-first, B2B Tech Aesthetic
   ======================================== */

/* CSS Variables */
:root {
    --primary: #0056b3;
    --primary-dark: #004494;
    --primary-light: #e6f0fa;
    --accent: #f0b429;
    --dark: #1a1a2e;
    --dark-secondary: #16213e;
    --text: #333;
    --text-light: #666;
    --text-muted: #888;
    --bg: #fff;
    --bg-light: #f8f9fa;
    --bg-dark: #f0f2f5;
    --border: #e0e0e0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
    --container-max: 1200px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   Header & Navigation
   ======================================== */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

.nav-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-en {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: 0.05em;
}

.logo-cn {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Navigation Toggle */
.nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    position: relative;
    transition: background var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: transform var(--transition);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Navigation Menu */
.nav-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    list-style: none;
    padding: 1rem;
    box-shadow: var(--shadow-md);
}

.nav-menu.active {
    display: block;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--primary-light);
    color: var(--primary);
}

/* Desktop Navigation */
@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
    
    .nav-menu {
        display: flex !important;
        position: static;
        background: none;
        border: none;
        box-shadow: none;
        padding: 0;
        gap: 0.5rem;
    }
    
    .nav-menu a {
        padding: 0.5rem 1rem;
    }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-secondary) 100%);
    color: #fff;
    overflow: hidden;
    padding: 4rem 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0,86,179,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(240,180,41,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 3rem 0 2rem;
}

.page-header h1 {
    color: #fff;
    margin-top: 1rem;
}

.page-header p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: rgba(255,255,255,0.5);
}

.breadcrumb a {
    color: rgba(255,255,255,0.8);
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb [aria-current="page"] {
    color: rgba(255,255,255,0.6);
}

/* ========================================
   Grid System
   ======================================== */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   Cards
   ======================================== */
.feature-card,
.product-card,
.article-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition);
}

.feature-card:hover,
.product-card:hover,
.article-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

/* Product Card */
.product-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1rem;
    background: var(--bg-light);
}

.product-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.product-info h3,
.product-info h4 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.product-spec {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.product-desc {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.link-detail {
    font-weight: 500;
    font-size: 0.9375rem;
}

.link-detail::after {
    content: ' →';
}

/* Product Detail Card */
.product-detail {
    padding: 0;
    overflow: hidden;
}

.product-detail .product-info {
    padding: 1.5rem;
}

.product-specs {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.product-specs li {
    padding: 0.25rem 0;
    font-size: 0.875rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

.product-specs li:last-child {
    border-bottom: none;
}

/* Product Category */
.product-category {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

/* Article Card */
.article-card {
    padding: 1.5rem;
}

.article-card time {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.article-card-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.article-card-meta time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.article-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.article-card h3 a {
    color: var(--dark);
}

.article-card h3 a:hover {
    color: var(--primary);
}

.article-card p {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* ========================================
   Blog Layout
   ======================================== */
.blog-layout {
    display: grid;
    gap: 2rem;
}

.blog-main {
    min-width: 0;
}

.blog-sidebar {
    min-width: 0;
}

@media (min-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr 300px;
    }
}

/* Blog Post Item */
.blog-post-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.blog-post-item:last-child {
    border-bottom: none;
}

.post-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.post-meta time {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.post-category {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

.blog-tag {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary);
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.post-title a {
    color: var(--dark);
}

.post-title a:hover {
    color: var(--primary);
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Sidebar Widget */
.sidebar-widget {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-widget h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: block;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    transition: all var(--transition);
}

.category-list a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--text);
    transition: all var(--transition);
}

.tag:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Blog Post Item (card layout) */
.blog-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    margin-bottom: 1.5rem;
    background: var(--bg);
}

.blog-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.blog-item-link {
    display: grid;
    grid-template-columns: 200px 1fr;
    text-decoration: none;
    color: inherit;
}

.blog-item-image {
    overflow: hidden;
    background: var(--bg-light);
    aspect-ratio: 4 / 3;
}

.blog-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.blog-item:hover .blog-item-image img {
    transform: scale(1.05);
}

.blog-item-body {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-item-body .blog-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.blog-item-body .blog-meta time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.blog-item-body h3 {
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.blog-item:hover .blog-item-body h3 {
    color: var(--primary);
}

.blog-item-body p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Blog item responsive: stack on mobile */
@media (max-width: 639px) {
    .blog-item-link {
        grid-template-columns: 1fr;
    }

    .blog-item-image {
        height: 180px;
    }
}

/* ========================================
   Blog Archive Page
   ======================================== */
.archive-group {
    margin-bottom: 2rem;
}

.archive-group-title {
    font-size: 1.125rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.archive-group-list {
    list-style: none;
    padding: 0;
}

.archive-item {
    border-bottom: 1px solid var(--border);
}

.archive-item:last-child {
    border-bottom: none;
}

.archive-item-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0.5rem;
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
    border-radius: var(--radius-sm);
}

.archive-item-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.archive-item-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 90px;
}

.archive-item-link:hover .archive-item-date {
    color: var(--primary);
}

.archive-item-title {
    flex: 1;
    font-weight: 500;
    font-size: 0.95rem;
}

.archive-item-cat {
    font-size: 0.75rem;
    color: var(--primary);
    white-space: nowrap;
}

.archive-back {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

/* Pagination enhanced */
.pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.page-current,
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
}

.page-current {
    background: var(--primary);
    color: #fff;
}

.page-link {
    background: var(--bg-light);
    color: var(--text);
    text-decoration: none;
    transition: all var(--transition);
}

.page-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.page-prev {
    margin-right: auto;
}

.page-next {
    margin-left: 0.5rem;
}

.page-archive {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--primary);
    background: transparent;
    border: 1px solid var(--primary-light);
}

.page-archive:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ========================================
   Article Page
   ======================================== */
.article-page {
    padding-bottom: 3rem;
}

.article-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.article-header .breadcrumb a {
    color: rgba(255,255,255,0.8);
}

.article-header .breadcrumb [aria-current="page"] {
    color: rgba(255,255,255,0.6);
}

.article-header .post-meta {
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.article-header .post-meta time,
.article-header .post-category {
    color: rgba(255,255,255,0.9);
}

.article-header h1 {
    color: #fff;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.article-excerpt {
    color: rgba(255,255,255,0.85);
    font-size: 1.125rem;
    margin-bottom: 0;
}

/* Article Layout */

/* Post cover image */
.post-cover {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
}

.post-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.article-layout {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr 280px;
    }
}

/* Article Content */
.article-content {
    min-width: 0;
}

.article-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.article-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content code {
    background: var(--bg-light);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.875em;
    color: var(--primary-dark);
}

.article-content pre {
    background: var(--dark);
    color: #fff;
    padding: 1rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: 1rem;
}

.article-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: var(--text-light);
    font-style: italic;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.article-content th,
.article-content td {
    padding: 0.75rem;
    border: 1px solid var(--border);
    text-align: left;
}

.article-content th {
    background: var(--bg-light);
    font-weight: 600;
}

/* Post Content (blog article) */
.post-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

.post-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

.post-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.post-content ul, .post-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    background: var(--bg-light);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.post-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.post-content code {
    background: var(--bg-light);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.post-content pre code {
    background: none;
    padding: 0;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.post-content th,
.post-content td {
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.post-content th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.post-content td {
    background: #fff;
}

.post-content tr:nth-child(even) td {
    background: var(--bg-light);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1rem 0;
}

.post-content strong {
    font-weight: 600;
}

.post-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

/* Article Footer */
.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.article-tags {
    margin-bottom: 2rem;
}

.article-tags h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.article-cta {
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.article-cta h3 {
    margin-bottom: 0.5rem;
}

.article-cta p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* TOC Widget */
.toc-widget {
    position: sticky;
    top: 80px;
}

.toc {
    font-size: 0.9375rem;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    display: block;
    padding: 0.375rem 0;
    color: var(--text);
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
    margin-left: -0.75rem;
}

.toc a:hover,
.toc a.active {
    color: var(--primary);
    border-left-color: var(--primary);
}

/* Related Posts */
.related-posts {
    list-style: none;
    padding: 0;
}

.related-posts li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.related-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.related-posts a {
    color: var(--text);
    font-size: 0.9375rem;
}

.related-posts a:hover {
    color: var(--primary);
}

/* ========================================
   CTA Section
   ======================================== */
.cta {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-secondary) 100%);
    color: #fff;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.cta p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand .logo-en,
.footer-brand .logo-cn {
    color: #fff;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
}

.footer-contact h3,
.footer-nav h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-contact a,
.footer-nav a {
    color: rgba(255,255,255,0.7);
}

.footer-contact a:hover,
.footer-nav a:hover {
    color: #fff;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
}

.footer-bottom p {
    margin-bottom: 0.25rem;
}

/* ========================================
   Links
   ======================================== */
.link-more {
    font-weight: 500;
    color: var(--primary);
}

.link-more::after {
    content: ' →';
    transition: transform var(--transition);
}

.link-more:hover::after {
    content: ' →';
}

/* ========================================
   Features Section (Homepage)
   ======================================== */
.features {
    background: var(--bg-light);
}

/* Products Preview */
.products-preview {
    background: var(--bg);
}

/* Articles Preview */
.articles-preview {
    background: var(--bg-light);
}

/* ========================================
   Responsive Typography
   ======================================== */
@media (min-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .article-header h1 {
        font-size: 2.25rem;
    }
    
    .section {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .container {
        padding: 0 2rem;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .site-header,
    .nav-toggle,
    .hero-actions,
    .cta,
    .site-footer,
    .blog-sidebar,
    .article-sidebar {
        display: none !important;
    }
    
    .article-content {
        max-width: 100%;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    .article-header {
        background: none !important;
        color: #000 !important;
        padding: 0 !important;
    }
    
    .article-header h1 {
        color: #000 !important;
    }
}

/* ========================================
   Accessibility
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus Styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: var(--primary-light);
    color: var(--primary-dark);
}
