﻿/* ========================================
   Fresh Theme 鈥?System-level Minimal UI
   Design tokens & global styles
   ======================================== */

:root {
  --bg: #f7f7f7;
  --surface: #ffffff;
  --primary: #2669ff;
  --primary-hover: #1a54d4;
  --primary-light: rgba(38, 105, 255, 0.06);
  --primary-border: rgba(38, 105, 255, 0.18);
  --text: #1a1a2e;
  --text-secondary: #5f6b7a;
  --text-muted: #8c95a0;
  --border: #e8ecf0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.06);
  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-sm: 4px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--primary-hover);
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 500;
  line-height: 1.2;
}

p { margin: 0; }

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
}

/* ========================================
   Typography
   ======================================== */
.text-body { font-size: 16px; line-height: 1.5; font-weight: 400; }
.text-secondary { font-size: 14px; line-height: 1.4; font-weight: 400; color: var(--text-secondary); }
.text-small { font-size: 12px; line-height: 1.3; font-weight: 400; color: var(--text-muted); }
.text-title { font-size: 20px; line-height: 1.2; font-weight: 500; }
.text-heading { font-size: 24px; line-height: 1.2; font-weight: 500; }

/* ========================================
   Layout
   ======================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
  padding: 32px 0;
}

.section {
  margin-bottom: 24px;
}

.section:last-child {
  margin-bottom: 0;
}

/* ========================================
   Card
   ======================================== */
.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: box-shadow var(--transition);
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}
.card-hover:hover {
  box-shadow: var(--shadow-hover);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 8px;
}

.card-title {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--text);
}

.card-body {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ========================================
   Gap / Spacing utilities
   ======================================== */
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* ========================================
   Header / Navigation
   ======================================== */
.site-header {
  background: var(--surface);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.88);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.site-logo img {
  height: 36px;
  width: auto;
}

.site-logo span {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list > li > a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-btn);
  transition: all var(--transition);
  position: relative;
}

.nav-list > li > a:hover,
.nav-list > li.active > a {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-list > li.active > a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

/* Dropdown */
.nav-item {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  min-width: 160px;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.96);
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.dropdown-menu a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

/* Mobile nav toggle */
.mobile-nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.mobile-nav-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: var(--surface);
  box-shadow: 0 -1px 0 var(--border);
  padding: 40px 0 24px;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--primary);
}

/* Mobile footer nav */
.mobile-footer-nav {
  display: none;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.btn-sm {
  padding: 6px 16px;
  font-size: 13px;
}

/* ========================================
   Page Header (Banner area)
   ======================================== */
.page-banner {
  position: relative;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  margin-bottom: 0;
}
.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.page-banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}
.page-banner-content h1 {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 8px;
}
.page-banner-content p {
  font-size: 14px;
  opacity: 0.85;
}

/* ========================================
   Breadcrumb
   ======================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 0;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--text-muted);
}
.breadcrumb a:hover {
  color: var(--primary);
}
.breadcrumb span {
  color: var(--text-secondary);
}

/* ========================================
   Page layout (sidebar + content)
   ======================================== */
.page-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px;
}

.sidebar .card {
  padding: 16px;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 500;
  padding: 8px 12px;
  margin-bottom: 8px;
  color: var(--text);
  border-left: 3px solid var(--primary);
}

.sidebar-nav a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.sidebar-widget {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.sidebar-widget-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text);
}

.sidebar-widget-item {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-widget-item:last-child {
  border-bottom: none;
}

.sidebar-widget-item:hover {
  color: var(--primary);
}

.main {
  min-height: 60vh;
}

.main-content {
  min-width: 0;
}

/* ========================================
   Content area (rich text)
   ======================================== */
.content-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  overflow-wrap: break-word;
  word-break: break-word;
}

.content-body p {
  margin-bottom: 16px;
}

.content-body img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 16px 0;
}

.content-body h2,
.content-body h3,
.content-body h4 {
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--text);
}

.content-body table {
  border-collapse: collapse;
  width: 100%!important;
  margin: 16px 0;
  font-size: 14px;
}

.content-body td, .content-body th {
  border: 1px solid #d0d4d8;
  padding: 8px 12px;
  vertical-align: middle;
  text-align: left;
}

.content-body td p { margin: 0; }

/* ========================================
   Homepage specific
   ======================================== */
.hero-slider {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-slider .slick-slide {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.hero-slider .slick-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider .slick-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  width: 100%;
  text-align: center;
}

.hero-slider .slick-dots li {
  margin: 0;
}

.hero-slider .slick-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  font-size: 0;
  padding: 0;
  cursor: pointer;
  transition: all var(--transition);
}

.hero-slider .slick-dots .slick-active button {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-slide {
  position: relative;
  height: 480px;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 0 24px;
}

.hero-content h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-content p {
  font-size: 18px;
  opacity: 0.9;
  line-height: 1.6;
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.section-header p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: gap var(--transition);
}

.more-link:hover {
  gap: 8px;
}

.product-carousel {
  margin: 0 -10px;
}

.product-carousel .slick-slide {
  padding: 0 10px;
  height: auto;
}

.product-carousel .slick-prev,
.product-carousel .slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  transition: box-shadow var(--transition);
}

.product-carousel .slick-prev { left: -18px; }
.product-carousel .slick-next { right: -18px; }

.product-carousel .slick-prev::after {
  content: '\2039';
  font-size: 22px;
  color: var(--text);
  line-height: 1;
}

.product-carousel .slick-next::after {
  content: '\203A';
  font-size: 22px;
  color: var(--text);
  line-height: 1;
}

.product-carousel .slick-prev:hover,
.product-carousel .slick-next:hover {
  box-shadow: var(--shadow-hover);
}

.product-card-wrapper {
  height: 100%;
}

.product-card {
  display: block;
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.product-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg);
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover .product-img img {
  transform: scale(1.05);
}

.product-info {
  padding: 14px 16px;
}

.product-info h3 {
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-grid {
  display: grid;
  gap: 20px;
}

.card-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-horizontal {
  display: flex;
  gap: 16px;
  overflow: hidden;
}

.card-horizontal .card-img {
  flex: 0 0 200px;
  aspect-ratio: auto;
  height: 140px;
}

.card-horizontal .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-horizontal .card-body {
  flex: 1;
  padding: 8px 0;
}

.card-horizontal .card-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.card-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.card-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card a {
  color: inherit;
  text-decoration: none;
}

.card a:hover h3 {
  color: var(--primary);
}

.about-cta h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.about-cta p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  border: 2px solid rgba(255,255,255,0.8);
  border-radius: var(--radius-btn);
  background: transparent;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
  cursor: pointer;
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.home-grid-full {
  grid-column: 1 / -1;
}

/* Home list items */
.home-list-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
  min-width: 0;
}

.home-list-item:last-child {
  border-bottom: none;
}

.home-list-item:hover {
  padding-left: 8px;
}

.home-list-item .date {
  flex-shrink: 0;
  text-align: center;
  width: 48px;
}

.home-list-item .date .day {
  display: block;
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}

.home-list-item .date .mon {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.home-list-item .info {
  flex: 1;
  min-width: 0;
}

.home-list-item .info h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-list-item .info p {
  font-size: 13px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.home-list-item .info a {
  color: inherit;
}

.home-list-item .info a:hover h3 {
  color: var(--primary);
}

/* ========================================
   Product grid
   ======================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  min-width: 0;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition);
  min-width: 0;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
}

.product-card .thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg);
}

.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .thumb img {
  transform: scale(1.05);
}

.product-card .info {
  padding: 16px;
}

.product-card .info h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card .info p {
  font-size: 13px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card .info a {
  color: inherit;
}

/* ========================================
   News list
   ======================================== */
.news-list-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
  min-width: 0;
}

.news-list-item:first-child {
  padding-top: 0;
}

.news-list-item:last-child {
  border-bottom: none;
}

.news-list-item:hover {
  padding-left: 8px;
}

.news-list-item .date-box {
  flex-shrink: 0;
  text-align: center;
  width: 56px;
  padding: 8px 0;
}

.news-list-item .date-box .day {
  display: block;
  font-size: 24px;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.2;
}

.news-list-item .date-box .mon {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.news-list-item .content {
  flex: 1;
  min-width: 0;
}

.news-list-item .content h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: break-word;
}

.news-list-item .content h3 a {
  color: var(--text);
  transition: color var(--transition);
}

.news-list-item .content h3 a:hover {
  color: var(--primary);
}

.news-list-item .content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ========================================
   Download list
   ======================================== */
.download-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  transition: box-shadow var(--transition);
  min-width: 0;
  gap: 16px;
}

.download-list-item:hover {
  box-shadow: var(--shadow-hover);
}

.download-list-item .info {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.download-list-item .icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: var(--radius-btn);
  color: var(--primary);
  flex-shrink: 0;
}

.download-list-item .icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-list-item .detail {
  flex: 1;
  min-width: 0;
}

.download-list-item .detail h4 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-list-item .detail h4 a {
  color: var(--text);
}

.download-list-item .detail h4 a:hover {
  color: var(--primary);
}

.download-list-item .detail .meta {
  font-size: 12px;
  color: var(--text-muted);
}

.download-list-item .btn {
  flex-shrink: 0;
}

/* ========================================
   Honor / Certificate grid
   ======================================== */
.honor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  min-width: 0;
}

.honor-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition);
  cursor: pointer;
  min-width: 0;
}

.honor-card:hover {
  box-shadow: var(--shadow-hover);
}

.honor-card .thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg);
}

.honor-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.honor-card .info {
  padding: 12px 16px;
  text-align: center;
}

.honor-card .info p {
  font-size: 14px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========================================
   Product detail
   ======================================== */
.product-detail-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.product-detail-header .gallery {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 4 / 3;
}

.product-detail-header .gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-header .info h1 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--text);
  overflow-wrap: break-word;
  word-break: break-word;
}

.product-detail-header .info .meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.product-detail-header .info .price {
  font-size: 24px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 20px;
}

/* ========================================
   Forms
   ======================================== */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  outline: none;
  transition: all var(--transition);
  max-width: 100%;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-border);
  background: var(--surface);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-checkcode {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.form-checkcode input {
  width: 140px;
  max-width: 100%;
}

.form-checkcode img {
  border-radius: var(--radius-sm);
  cursor: pointer;
  height: 40px;
}

/* ========================================
   Inquiry form
   ======================================== */
.inquiry-form {
  padding: 24px;
}

.inquiry-form .form-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

/* ========================================
   Contact page
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-card:last-child {
  border-bottom: none;
}

.contact-info-card .icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: var(--radius-btn);
  color: var(--primary);
  flex-shrink: 0;
}

.contact-info-card .icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-info-card .detail h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text);
}

.contact-info-card .detail p {
  font-size: 14px;
  color: var(--text-secondary);
  overflow-wrap: break-word;
  word-break: break-word;
}

.contact-info-card .detail a {
  color: inherit;
}

/* ========================================
   Pagination
   ======================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  padding-top: 24px;
  flex-wrap: wrap;
}

.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  text-decoration: none;
  transition: all var(--transition);
}

.pagination .page-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination .page-link.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pagination .page-link.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ========================================
   Prev / Next navigation
   ======================================== */
.prev-next {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
}

.prev-next li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  min-width: 0;
}

.prev-next li b {
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.prev-next li a {
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.prev-next li a:hover {
  color: var(--primary);
}

/* ========================================
   Related products
   ======================================== */
.related-section {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.related-section .related-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--text);
}

/* ========================================
   Tags
   ======================================== */
.tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.tag:hover {
  color: var(--primary);
  background: var(--primary-light);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.animate-fade-in {
  animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-scale-in {
  animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-stagger > * {
  animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-stagger > *:nth-child(1) { animation-delay: 0ms; }
.animate-stagger > *:nth-child(2) { animation-delay: 60ms; }
.animate-stagger > *:nth-child(3) { animation-delay: 120ms; }
.animate-stagger > *:nth-child(4) { animation-delay: 180ms; }
.animate-stagger > *:nth-child(5) { animation-delay: 240ms; }
.animate-stagger > *:nth-child(6) { animation-delay: 300ms; }
.animate-stagger > *:nth-child(7) { animation-delay: 360ms; }
.animate-stagger > *:nth-child(8) { animation-delay: 420ms; }
.animate-stagger > *:nth-child(9) { animation-delay: 480ms; }
.animate-stagger > *:nth-child(10) { animation-delay: 540ms; }

/* ========================================
   Empty state
   ======================================== */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  stroke: currentColor;
  stroke-width: 1;
  fill: none;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state p {
  font-size: 14px;
}

/* ========================================
   Message page / notice
   ======================================== */
.notice-box {
  text-align: center;
  padding: 48px 24px;
}

.notice-box .icon {
  margin-bottom: 16px;
}

.notice-box h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}

.notice-box p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ========================================
   Utilities
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.grid { display: grid; }
.hidden { display: none; }

/* Backdrop blur utility */
.blur-bg {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ========================================
   Responsive
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .home-grid {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid.cols-2,
  .card-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .honor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .product-detail-header {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .header-inner {
    height: 56px;
  }

  .nav-list {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .card-grid.cols-2,
  .card-grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .card-horizontal {
    flex-direction: column;
  }

  .card-horizontal .card-img {
    flex: none;
    width: 100%;
    height: 160px;
  }

  .section-header h2 {
    font-size: 22px;
  }

  .about-cta h2 {
    font-size: 22px;
  }

  .honor-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .hero-slider .slick-slide {
    height: 240px;
  }

  .hero-slide {
    height: 320px;
  }

  .hero-content h2 {
    font-size: 24px;
  }

  .hero-content p {
    font-size: 15px;
  }

  .page-banner {
    height: 140px;
  }

  .page-banner-content h1 {
    font-size: 22px;
  }

  .page-content {
    padding: 20px 0;
  }

  .page-layout {
    padding: 16px 12px;
    gap: 16px;
  }

  .card {
    padding: 16px;
  }

  .news-list-item {
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
  }

  .news-list-item .date-box {
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    padding: 0;
  }

  .news-list-item .date-box .day {
    font-size: 18px;
  }

  .news-list-item .date-box .mon {
    margin-top: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .download-list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .download-list-item .btn {
    width: 100%;
  }

  .container {
    padding: 0 12px;
  }

  .mobile-footer-nav {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -1px 0 var(--border);
    z-index: 99;
  }

  .mobile-footer-nav ul {
    display: flex;
  }

  .mobile-footer-nav li {
    flex: 1;
  }

  .mobile-footer-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 4px;
    font-size: 10px;
    color: var(--text-muted);
    text-decoration: none;
  }

  .mobile-footer-nav a svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-footer-nav a.active {
    color: var(--primary);
  }

  .site-footer {
    padding-bottom: 64px;
  }

  .btn {
    padding: 8px 20px;
    font-size: 13px;
  }

  section, .section {
    margin-bottom: 16px;
  }

  .pagination {
    gap: 4px;
  }

  .pagination .page-link {
    min-width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .product-detail-header .gallery {
    aspect-ratio: 16 / 9;
  }

  .home-list-item .info h3,
  .home-list-item .info p {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .honor-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .product-grid {
    gap: 12px;
  }

  .home-list-item {
    gap: 12px;
  }
}

/* Mobile menu overlay (for mmenu compatibility) */
.mm-navbar {
  border: none !important;
}

.mm-listview {
  font-family: var(--font-sans) !important;
}

.mm-listview > li > a {
  font-size: 15px !important;
  font-weight: 500 !important;
}

.mm-listview > li .mm-next {
  border-left-color: var(--border) !important;
}

.mm-menu {
  background: var(--surface) !important;
  color: var(--text) !important;
}

.mm-menu .mm-listview {
  border-color: var(--border) !important;
}

.mm-menu .mm-listview > li > a,
.mm-menu .mm-listview > li > span {
  color: var(--text) !important;
}

/* Custom lightbox overlay */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.lightbox-caption {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  z-index: 9999999;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  line-height: 1;
}

.lightbox-close:hover {
  opacity: 1;
  background: rgba(255,255,255,0.2);
}

.lightbox-close:hover {
  opacity: 1;
}

/* Ensure images don't overflow their containers */
img {
  max-width: 100%;
  height: auto;
}

/* Fix homepage card list items on small screens */
@media (max-width: 480px) {
  .home-list-item .info h3 {
    font-size: 14px;
  }
  .home-list-item .info p {
    font-size: 12px;
  }
}

