/* ========================================
   theme113 - 文创工作室主题
   主色：Indigo #6366f1 | 字体：Inter
   ======================================== */

:root {
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-primary-light: #eef2ff;
    --color-primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --color-accent: #f59e0b;
    --color-text-dark: #1e1b4b;
    --color-text: #374151;
    --color-text-muted: #6b7280;
    --color-text-light: #9ca3af;
    --color-bg: #ffffff;
    --color-bg-gray: #f9fafb;
    --color-bg-dark: #111827;
    --color-border: #e5e7eb;
    --color-border-light: #f3f4f6;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow-md: 0 4px 16px rgba(0,0,0,.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,.15);
    --font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-fast: .2s ease;
    --transition-base: .3s ease;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: var(--font-family);
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-primary-dark); }
img { max-width: 100%; height: auto; }

/* === A11y: skip-link + focus === */
.skip-link {
    position: absolute; top: -50px; left: 8px; z-index: 9999;
    padding: 10px 18px; background: var(--color-primary); color: #fff !important;
    border-radius: 0 0 6px 6px; font-size: 14px; transition: top .2s ease-out;
}
.skip-link:focus { top: 0; outline: 3px solid #fff; outline-offset: 1px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 3px;
}

/* === Header === */
.site-header {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    position: sticky; top: 0; z-index: 1000;
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 12px; padding-bottom: 12px;
}
.site-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-logo img { height: 40px; width: auto; }
.site-logo-text { color: var(--color-text-dark); font-size: 22px; font-weight: 800; letter-spacing: 1px; }

.main-nav { border-top: 1px solid var(--color-border-light); }
.main-menu { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 0; padding: 0; }
.main-menu > li > a {
    display: block; padding: 14px 22px; color: var(--color-text); font-weight: 500;
    font-size: 14px; position: relative; transition: color var(--transition-fast);
}
.main-menu > li > a:hover,
.main-menu > li.active > a { color: var(--color-primary); }
.main-menu > li.active > a::after {
    content: ''; position: absolute; bottom: 0; left: 22px; right: 22px;
    height: 3px; background: var(--color-primary); border-radius: 3px 3px 0 0;
}
.main-menu > li.dropdown { position: relative; }
.main-menu > li.dropdown:hover > .dropdown-menu { display: block; }
.main-menu .dropdown-menu {
    border: none; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    padding: 8px 0; min-width: 160px;
}
.main-menu .dropdown-menu > li > a { padding: 8px 20px; font-size: 14px; color: var(--color-text); }
.main-menu .dropdown-menu > li > a:hover { background: var(--color-primary-light); color: var(--color-primary); }

.mobile-toggle { display: none; }

/* === Hero Section === */
.hero-section {
    position: relative;
    background: var(--color-primary-gradient);
    padding: 120px 0 140px;
    text-align: center;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,.05)" d="M0,160L48,176C96,192,192,224,288,213.3C384,203,480,149,576,138.7C672,128,768,160,864,181.3C960,203,1056,213,1152,197.3C1248,181,1344,139,1392,117.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"/></svg>') no-repeat bottom;
    background-size: cover;
    pointer-events: none;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,.08) 0%, transparent 60%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.hero-badge {
    display: inline-block; padding: 6px 18px; background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px); border-radius: 999px;
    color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 2px;
    margin-bottom: 24px;
}
.hero-title {
    font-size: 56px; font-weight: 800; color: #fff; line-height: 1.2;
    margin: 0 0 20px; letter-spacing: -1px;
}
.hero-subtitle {
    font-size: 18px; color: rgba(255,255,255,.85); margin: 0 0 40px;
    line-height: 1.6;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary {
    display: inline-flex; align-items: center; padding: 14px 36px;
    background: #fff; color: var(--color-primary); font-weight: 600; font-size: 16px;
    border-radius: 999px; transition: all var(--transition-base);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--color-primary); }
.btn-hero-secondary {
    display: inline-flex; align-items: center; padding: 14px 36px;
    background: rgba(255,255,255,.12); color: #fff; font-weight: 600; font-size: 16px;
    border-radius: 999px; border: 1px solid rgba(255,255,255,.3);
    transition: all var(--transition-base);
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.2); color: #fff; transform: translateY(-2px); }

.hero-scroll {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    z-index: 2; animation: bounce 2s infinite;
}
.hero-scroll i { font-size: 28px; color: rgba(255,255,255,.6); }
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* === Section Common === */
.section-head { text-align: center; margin-bottom: 50px; }
.section-label {
    display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 3px;
    color: var(--color-primary); text-transform: uppercase; margin-bottom: 12px;
}
.section-title { font-size: 36px; font-weight: 700; color: var(--color-text-dark); margin: 0 0 12px; }
.section-desc { font-size: 16px; color: var(--color-text-muted); margin: 0; }

/* === Services === */
.section-services { padding: 80px 0; background: var(--color-bg); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card {
    text-align: center; padding: 48px 32px; background: #fff;
    border-radius: var(--radius-lg); border: 1px solid var(--color-border-light);
    transition: all var(--transition-base);
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}
.service-icon {
    width: 72px; height: 72px; margin: 0 auto 24px;
    background: var(--color-primary-light); border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
}
.service-icon i { font-size: 30px; color: var(--color-primary); }
.service-card h3 { font-size: 20px; font-weight: 700; color: var(--color-text-dark); margin: 0 0 12px; }
.service-card p { font-size: 14px; color: var(--color-text-muted); margin: 0 0 20px; line-height: 1.7; }
.service-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 600; color: var(--color-primary);
}
.service-link:hover { gap: 10px; }

/* === Works Grid === */
.section-works { padding: 80px 0; background: var(--color-bg-gray); }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work-card {
    display: block; background: #fff; border-radius: var(--radius-lg);
    overflow: hidden; transition: all var(--transition-base);
}
.work-card:hover {
    transform: translateY(-6px); box-shadow: var(--shadow-lg);
}
.work-cover {
    position: relative; overflow: hidden; aspect-ratio: 4/3;
}
.work-cover img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s ease;
}
.work-card:hover .work-cover img { transform: scale(1.08); }
.work-overlay {
    position: absolute; inset: 0;
    background: rgba(99,102,241,.85);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity var(--transition-base);
}
.work-overlay span {
    color: #fff; font-weight: 600; font-size: 16px;
    padding: 10px 28px; border: 2px solid rgba(255,255,255,.5);
    border-radius: 999px;
}
.work-card:hover .work-overlay { opacity: 1; }
.work-body { padding: 20px; }
.work-cat { font-size: 12px; color: var(--color-primary); font-weight: 600; text-transform: uppercase; }
.work-body h3 { font-size: 17px; font-weight: 600; color: var(--color-text-dark); margin: 8px 0 0; }
.section-more { text-align: center; margin-top: 48px; }
.btn-more {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 32px; border: 2px solid var(--color-primary);
    color: var(--color-primary); font-weight: 600; font-size: 15px;
    border-radius: 999px; transition: all var(--transition-base);
}
.btn-more:hover { background: var(--color-primary); color: #fff; }

/* === Stats === */
.section-stats { padding: 60px 0; background: var(--color-primary-gradient); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-number { display: block; font-size: 42px; font-weight: 800; color: #fff; }
.stat-label { display: block; font-size: 15px; color: rgba(255,255,255,.75); margin-top: 6px; }

/* === Testimonials === */
.section-testimonials { padding: 80px 0; background: var(--color-bg); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
    background: var(--color-bg-gray); border-radius: var(--radius-lg);
    padding: 36px 28px; position: relative;
}
.testimonial-card::before {
    content: '\201C'; font-size: 72px; color: var(--color-primary);
    position: absolute; top: 8px; left: 20px; font-family: Georgia, serif;
    line-height: 1; opacity: .15;
}
.testimonial-text { font-size: 15px; color: var(--color-text); line-height: 1.8; margin: 0 0 20px; }
.testimonial-author strong { display: block; font-size: 15px; color: var(--color-text-dark); }
.testimonial-author span { display: block; font-size: 13px; color: var(--color-text-muted); margin-top: 4px; }

/* === Page Banner === */
.page-banner {
    background: var(--color-primary-gradient);
    padding: 60px 0;
    text-align: center;
}
.page-banner-title { font-size: 36px; font-weight: 700; color: #fff; margin: 0 0 12px; }
.breadcrumb-inline { font-size: 14px; color: rgba(255,255,255,.7); }
.breadcrumb-inline a { color: rgba(255,255,255,.85); margin: 0 4px; }
.breadcrumb-inline a:hover { color: #fff; }
.breadcrumb-inline i { margin: 0 6px; }
.breadcrumb-inline span { color: rgba(255,255,255,.5); }

/* === Page Container === */
.page-container { padding: 40px 0 60px; }

/* === Block Head === */
.block { margin-bottom: 40px; }
.block-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; padding-bottom: 16px;
    border-bottom: 2px solid var(--color-border-light);
    position: relative;
}
.block-head::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 50px; height: 2px; background: var(--color-primary); border-radius: 1px;
}
.block-head h3 { font-size: 20px; font-weight: 700; color: var(--color-text-dark); margin: 0; }

/* === Text List === */
.text-list { list-style: none; margin: 0; padding: 0; }
.text-list-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0; border-bottom: 1px dashed var(--color-border-light);
    gap: 12px;
}
.text-list-item:last-child { border-bottom: none; }
.text-list-title {
    flex: 1; min-width: 0;
    display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    font-size: 15px; color: var(--color-text);
}
.text-list-title:hover { color: var(--color-primary); }
.text-list-meta {
    flex-shrink: 0; display: flex; align-items: center; gap: 12px;
    font-size: 13px; color: var(--color-text-light);
}
.text-list-date { min-width: 50px; text-align: right; }

/* === Article Card (list pages) === */
.article-card-list { display: flex; flex-direction: column; gap: 24px; }
.article-card {
    display: flex; gap: 24px; padding: 20px;
    background: #fff; border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-base);
}
.article-card:hover { box-shadow: var(--shadow-md); border-color: transparent; transform: translateY(-2px); }
.article-cover {
    flex-shrink: 0; width: 240px; border-radius: var(--radius-sm);
    overflow: hidden;
}
.article-cover img {
    width: 100%; height: 160px; object-fit: cover;
    transition: transform .4s ease;
}
.article-card:hover .article-cover img { transform: scale(1.05); }
.article-body {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; justify-content: center;
}
.article-title {
    font-size: 18px; font-weight: 600; color: var(--color-text-dark);
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-intro {
    font-size: 14px; color: var(--color-text-muted); line-height: 1.7;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--color-text-light); }
.article-meta .meta-cat {
    padding: 2px 12px; background: var(--color-primary-light);
    color: var(--color-primary); border-radius: 999px; font-size: 12px; font-weight: 500;
}

/* === Product Grid === */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.product-card {
    background: #fff; border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    transition: all var(--transition-base);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-cover {
    display: block; aspect-ratio: 1; overflow: hidden; background: var(--color-bg-gray);
}
.product-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-cover img { transform: scale(1.05); }
.product-body { padding: 18px; }
.product-title {
    font-size: 16px; font-weight: 600; color: var(--color-text-dark); margin: 0 0 14px;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.product-meta { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 22px; font-weight: 700; color: #ef4444; }
.product-btn {
    padding: 6px 18px; background: var(--color-primary);
    color: #fff; font-size: 13px; font-weight: 500;
    border-radius: 999px; transition: all var(--transition-fast);
}
.product-btn:hover { background: var(--color-primary-dark); color: #fff; }

/* === Image Grid (gallery) === */
.images-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.image-tile {
    display: block; border-radius: var(--radius-md); overflow: hidden;
    background: #fff; border: 1px solid var(--color-border-light);
    transition: all var(--transition-base);
}
.image-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.image-tile-cover { aspect-ratio: 4/3; overflow: hidden; }
.image-tile-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.image-tile:hover .image-tile-cover img { transform: scale(1.05); }
.image-tile-body { padding: 14px 16px; }
.image-tile-title { font-size: 15px; font-weight: 600; color: var(--color-text-dark); margin: 0 0 6px; }
.image-tile-view { font-size: 13px; color: var(--color-text-light); }

/* === Article Detail === */
.article-detail { background: #fff; border-radius: var(--radius-md); padding: 32px; }
.article-detail-head { margin-bottom: 28px; }
.article-detail-title { font-size: 30px; font-weight: 700; color: var(--color-text-dark); line-height: 1.4; margin: 0 0 16px; }
.article-detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--color-text-light); }
.article-detail-meta .detail-cat {
    padding: 3px 14px; background: var(--color-primary-light);
    color: var(--color-primary); border-radius: 999px; font-size: 12px; font-weight: 500;
}
.article-detail-content { font-size: 16px; line-height: 1.9; color: var(--color-text); }
.article-detail-content img { max-width: 100%; border-radius: var(--radius-sm); margin: 16px 0; }
.article-detail-content p { margin: 0 0 16px; }

/* Article Summary (SEO/A11y required) */
.article-summary {
    --as-primary: var(--color-primary); --as-bg: #fafafa;
    --as-border: var(--color-border); --as-text: var(--color-text-dark);
    --as-muted: var(--color-text-muted); --as-radius: var(--radius-sm);
    margin: 30px 0; padding: 20px 24px; background: var(--as-bg);
    border-left: 4px solid var(--as-primary); border-radius: var(--as-radius);
}
.article-summary-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.summary-deco { color: var(--as-primary); flex-shrink: 0; }
.article-summary-title { font-size: 16px; margin: 0; color: var(--as-text); font-weight: 600; }
.article-summary-text { color: var(--as-text); font-size: 14px; line-height: 1.8; margin: 0 0 12px; }
.article-summary-cite {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    padding-top: 10px; border-top: 1px dashed var(--as-border);
    font-size: 12px; color: var(--as-muted);
}
.cite-label { font-weight: 600; flex-shrink: 0; }
.cite-text {
    flex: 1; min-width: 0; font-family: Menlo, Monaco, Consolas, monospace;
    background: #fff; padding: 4px 8px; border-radius: 3px;
    color: var(--as-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Detail Nav */
.article-detail-nav { display: flex; gap: 16px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--color-border); }
.detail-nav-item { flex: 1; min-width: 0; display: block; padding: 16px 20px; background: var(--color-bg-gray); border-radius: var(--radius-sm); transition: all var(--transition-fast); }
.detail-nav-item:hover { background: var(--color-primary-light); }
.detail-nav-label { display: block; font-size: 13px; color: var(--color-text-muted); margin-bottom: 4px; }
.detail-nav-title { display: block; font-size: 15px; font-weight: 500; color: var(--color-text-dark); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.detail-nav-next { text-align: right; }

/* Related */
.related-section { margin-top: 40px; }
.related-section h3 { font-size: 20px; font-weight: 700; color: var(--color-text-dark); margin: 0 0 20px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.related-card { display: block; background: #fff; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--color-border-light); transition: all var(--transition-fast); }
.related-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.related-cover { aspect-ratio: 16/10; overflow: hidden; }
.related-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.related-card:hover .related-cover img { transform: scale(1.05); }
.related-body { padding: 12px; }
.related-body h4 { font-size: 14px; font-weight: 500; color: var(--color-text-dark); margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-body span { font-size: 12px; color: var(--color-text-light); }

/* === Product Detail === */
.product-detail-main { background: #fff; border-radius: var(--radius-md); padding: 24px; }
.product-info { padding-left: 20px; }
.product-detail-title { font-size: 26px; font-weight: 700; color: var(--color-text-dark); margin: 0 0 20px; }
.product-price-box { display: flex; align-items: baseline; gap: 8px; padding: 16px 20px; background: #fef2f2; border-radius: var(--radius-sm); margin-bottom: 24px; }
.product-price-box .price { font-size: 32px; font-weight: 800; color: #ef4444; }
.product-params { margin-bottom: 24px; }
.param-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--color-border-light); font-size: 14px; }
.param-key { color: var(--color-text-muted); min-width: 80px; flex-shrink: 0; }
.param-val { color: var(--color-text-dark); }
.product-actions button {
    padding: 14px 40px; background: var(--color-primary-gradient);
    color: #fff; font-size: 16px; font-weight: 600; border: none;
    border-radius: 999px; cursor: pointer; transition: all var(--transition-base);
}
.product-actions button:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.product-detail-content { margin-top: 30px; }
.product-detail-content .nav-tabs { border-bottom: 2px solid var(--color-border-light); margin-bottom: 24px; }
.product-detail-content .nav-tabs > li > a {
    border: none; color: var(--color-text-muted); font-weight: 600; font-size: 15px;
    padding: 12px 24px; border-radius: 0; background: transparent;
}
.product-detail-content .nav-tabs > li.active > a {
    color: var(--color-primary); border-bottom: 3px solid var(--color-primary);
    margin-bottom: -2px; background: transparent;
}
.detail-content-body { font-size: 15px; line-height: 1.9; color: var(--color-text); }

/* === PC Slide (product images) === */
.pc-slide .view .swiper-container { border-radius: var(--radius-sm); overflow: hidden; }
.pc-slide .view img { width: 100%; }
.pc-slide .preview { position: relative; margin-top: 10px; }
.pc-slide .preview .swiper-slide { border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; }
.pc-slide .preview .swiper-slide.active-nav { border-color: var(--color-primary); }
.pc-slide .arrow-left, .pc-slide .arrow-right {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    width: 28px; height: 28px; background: rgba(0,0,0,.5); border-radius: 50%;
}
.pc-slide .arrow-left { left: 0; }
.pc-slide .arrow-right { right: 0; }

/* === Single Page === */
.single-main { background: #fff; border-radius: var(--radius-md); padding: 32px; }
.single-content { font-size: 16px; line-height: 1.9; color: var(--color-text); }
.single-content img { max-width: 100%; border-radius: var(--radius-sm); }

.subnav { margin-bottom: 24px; }
.subnav ul { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 0; padding: 0; border-bottom: 2px solid var(--color-border-light); }
.subnav ul li { margin-bottom: -2px; }
.subnav ul li a {
    display: block; padding: 10px 20px; font-size: 14px; color: var(--color-text-muted);
    border-bottom: 2px solid transparent; transition: all var(--transition-fast);
}
.subnav ul li a:hover { color: var(--color-primary); }
.subnav ul li.active a { color: var(--color-primary); border-bottom-color: var(--color-primary); font-weight: 600; }

/* === Contact === */
.contact-info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.info-card { text-align: center; padding: 28px 20px; background: var(--color-bg-gray); border-radius: var(--radius-md); border: 1px solid var(--color-border-light); }
.info-card i { font-size: 28px; color: var(--color-primary); margin-bottom: 12px; }
.info-card h4 { font-size: 16px; font-weight: 600; color: var(--color-text-dark); margin: 0 0 8px; }
.info-card p { font-size: 14px; color: var(--color-text-muted); margin: 0; }

.contact-form-wrap { margin-top: 40px; }
.contact-form-title { font-size: 22px; font-weight: 700; color: var(--color-text-dark); margin: 0 0 24px; }
.form-message { max-width: 700px; }
.form-row { display: flex; gap: 20px; margin-bottom: 16px; }
.form-row label { flex: 1; display: flex; align-items: center; gap: 10px; }
.form-row label span { font-size: 14px; color: var(--color-text); white-space: nowrap; min-width: 85px; text-align: right; font-weight: 500; }
.form-message .inp {
    flex: 1; height: 42px; padding: 8px 14px; border: 1px solid var(--color-border);
    border-radius: var(--radius-sm); font-size: 14px; transition: border-color var(--transition-fast);
}
.form-message .inp:focus { border-color: var(--color-primary); outline: none; }
.form-message .mes { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.form-message .mes span { font-size: 14px; color: var(--color-text); white-space: nowrap; min-width: 85px; text-align: right; font-weight: 500; padding-top: 8px; }
.form-message textarea {
    flex: 1; min-height: 140px; padding: 10px 14px; border: 1px solid var(--color-border);
    border-radius: var(--radius-sm); font-size: 14px; resize: vertical; font-family: inherit;
    transition: border-color var(--transition-fast);
}
.form-message textarea:focus { border-color: var(--color-primary); outline: none; }
.msgbtn-box { display: flex; gap: 12px; padding-left: 95px; }
.btn-contact {
    padding: 12px 36px; background: var(--color-primary-gradient);
    color: #fff; font-size: 15px; font-weight: 600; border: none;
    border-radius: 999px; cursor: pointer; transition: all var(--transition-base);
}
.btn-contact:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-contact-reset {
    padding: 12px 28px; background: #fff; color: var(--color-text-muted);
    font-size: 15px; font-weight: 500; border: 1px solid var(--color-border);
    border-radius: 999px; cursor: pointer; transition: all var(--transition-fast);
}
.btn-contact-reset:hover { border-color: var(--color-text-muted); }

/* === Breadcrumb Box (inner pages) === */
.breadcrumb-box { margin-bottom: 20px; font-size: 14px; color: var(--color-text-muted); }
.breadcrumb-box a { color: var(--color-text-muted); }
.breadcrumb-box a:hover { color: var(--color-primary); }
.breadcrumb-box i { margin: 0 6px; font-size: 12px; }

/* === Sidebar Widgets === */
.widget { margin-bottom: 24px; background: #fff; border-radius: var(--radius-md); border: 1px solid var(--color-border-light); overflow: hidden; }
.widget-head { padding: 16px 20px; border-bottom: 1px solid var(--color-border-light); background: var(--color-bg-gray); }
.widget-title { font-size: 17px; font-weight: 700; color: var(--color-text-dark); margin: 0; }
.widget-title i { margin-right: 6px; color: var(--color-primary); }
.widget-body { padding: 16px 20px; }
.widget-ad { border: none; background: transparent; border-radius: var(--radius-md); overflow: hidden; }
.widget-ad img { width: 100%; display: block; }

/* Rank List */
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 0;
    border-bottom: 1px dashed var(--color-border-light);
}
.rank-item:last-child { border-bottom: none; }
.rank-num {
    flex-shrink: 0; width: 24px; height: 24px; border-radius: var(--radius-sm);
    background: var(--color-bg-gray); color: var(--color-text-muted);
    font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.rank-top { background: var(--color-primary); color: #fff; }
.rank-content { flex: 1; min-width: 0; }
.rank-title {
    display: block; font-size: 14px; color: var(--color-text-dark);
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 100%;
}
.rank-title:hover { color: var(--color-primary); }
.rank-meta { font-size: 12px; color: var(--color-text-light); margin-top: 2px; display: block; }

/* Latest List */
.latest-list { list-style: none; margin: 0; padding: 0; }
.latest-item {
    display: flex; gap: 12px; padding: 10px 0;
    border-bottom: 1px dashed var(--color-border-light);
}
.latest-item:last-child { border-bottom: none; }
.latest-thumb { flex-shrink: 0; width: 72px; height: 54px; border-radius: var(--radius-sm); overflow: hidden; }
.latest-thumb img { width: 100%; height: 100%; object-fit: cover; }
.latest-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.latest-title {
    display: block; font-size: 14px; color: var(--color-text-dark); line-height: 1.5;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.latest-title:hover { color: var(--color-primary); }
.latest-date { font-size: 12px; color: var(--color-text-light); margin-top: 4px; display: block; }

/* Nav List in sidebar */
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-item { border-bottom: 1px solid var(--color-border-light); }
.nav-item:last-child { border-bottom: none; }
.nav-item > a {
    display: block; padding: 12px 0; font-size: 14px; color: var(--color-text);
    font-weight: 500; transition: all var(--transition-fast);
}
.nav-item > a:hover { color: var(--color-primary); padding-left: 6px; }
.nav-item.active > a { color: var(--color-primary); font-weight: 600; }
.nav-sub { list-style: none; margin: 0; padding: 0 0 6px 12px; }
.nav-sub li a { display: block; padding: 6px 0; font-size: 13px; color: var(--color-text-muted); }
.nav-sub li a:hover { color: var(--color-primary); }
.nav-sub li.active a { color: var(--color-primary); font-weight: 500; }

/* === Pagination === */
.pagination-box { text-align: center; margin-top: 30px; }
.pagination { display: inline-flex; list-style: none; padding: 0; margin: 0; gap: 6px; }
.pagination li a, .pagination li span {
    display: inline-block; min-width: 38px; height: 38px; line-height: 36px;
    padding: 0 14px; border: 1px solid var(--color-border);
    background: #fff; text-align: center; border-radius: var(--radius-sm);
    font-size: 14px; color: var(--color-text); font-weight: 500;
    transition: all var(--transition-fast);
}
.pagination li a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination .active a, .pagination .active span { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* === Footer === */
.site-footer { background: var(--color-bg-dark); color: rgba(255,255,255,.7); padding: 50px 0 0; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.footer-col { flex: 1 1 180px; min-width: 170px; }
.footer-brand { flex: 1 1 240px; min-width: 170px; }
.footer-brand .site-logo-text { color: #fff; display: inline-block; margin-bottom: 10px; }
.footer-col h4 { font-size: 17px; font-weight: 700; color: #fff; margin: 0 0 16px; }
.footer-col p { font-size: 14px; line-height: 1.8; margin: 0 0 8px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,.6); padding: 4px 0; transition: color var(--transition-fast); }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1); text-align: center; }
.footer-copyright { font-size: 13px; color: rgba(255,255,255,.5); }
.footer-copyright a { color: rgba(255,255,255,.5); margin-left: 8px; }
.footer-copyright a:hover { color: #fff; }

/* === Float Button === */
#floatbtn { position: fixed; right: 24px; bottom: 60px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
#back-to-top {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; line-height: 1; padding: 0;
    background: var(--color-primary);
    color: #fff; border-radius: 50%; font-size: 18px;
    opacity: 0; visibility: hidden; transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(99,102,241,.35);
}
#back-to-top.show { opacity: 1; visibility: visible; display: flex !important; }
#back-to-top i { line-height: 1; }
#back-to-top:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-2px); }

/* === Search Page === */
.search-keyword { color: #fbbf24; }

/* === Responsive === */
@media (max-width: 1199px) {
    .works-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .service-card:last-child { grid-column: 1 / -1; max-width: 400px; justify-self: center; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
    .mobile-toggle { display: block; }
    .main-nav .navbar-collapse { display: none; }
    .main-nav .navbar-collapse.collapse.in { display: block; }
    .main-menu { flex-direction: column; }
    .main-menu > li > a { padding: 12px 0; border-bottom: 1px solid var(--color-border-light); }
    .main-menu > li.active > a::after { display: none; }
    .main-menu .dropdown-menu {
        position: static; float: none; box-shadow: none;
        padding: 0 0 0 16px; border: none;
    }
    .hero-title { font-size: 36px; }
    .hero-section { padding: 80px 0 100px; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card:last-child { max-width: 100%; }
    .works-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-grid { grid-template-columns: 1fr; }
    .footer-row { flex-direction: column; }
    .article-card { flex-direction: column; }
    .article-cover { width: 100%; }
    .article-cover img { height: 200px; }
    .product-detail-main .row > .col-md-5,
    .product-detail-main .row > .col-md-7 { width: 100%; }
    .product-info { padding-left: 0; padding-top: 20px; }
    .contact-info-cards { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 12px; }
    .msgbtn-box { padding-left: 0; }
}
@media (max-width: 767px) {
    body { font-size: 14px; }
    .hero-title { font-size: 28px; }
    .hero-subtitle { font-size: 15px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-section { padding: 60px 0 80px; }
    .hero-badge { font-size: 11px; letter-spacing: 1px; }
    .section-title { font-size: 26px; }
    .works-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .images-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .stat-number { font-size: 32px; }
    .footer-row { flex-direction: column; gap: 30px; }
    .article-detail-title { font-size: 22px; }
    .article-detail { padding: 20px; }
    .article-detail-nav { flex-direction: column; }
    .single-main { padding: 20px; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .subnav ul { flex-direction: column; border-bottom: none; }
    .subnav ul li a { border-bottom: 1px solid var(--color-border-light); }
}
