/* ================================
   Olida Lighting Factory Website
   Industrial Dark Blue / Gray Theme
   ================================ */

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: #333; line-height: 1.6; background: #f5f6f8;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Top Bar */
.top-bar {
  background: #1a1a2e; color: #94a3b8; font-size: 13px; padding: 8px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left { font-weight: 600; color: #e2e8f0; }
.top-bar-right { display: flex; align-items: center; gap: 6px; }
.lang-switch { color: #94a3b8; padding: 2px 8px; border-radius: 3px; transition: all .2s; }
.lang-switch:hover, .lang-switch.active { color: #fbbf24; background: rgba(251,191,36,.1); }
.lang-sep { color: #475569; }

/* Header */
.header { background: #fff; padding: 15px 0; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.header-main { display: flex; align-items: center; gap: 30px; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-icon {
  width: 48px; height: 48px; background: linear-gradient(135deg, #1e3a5f, #2563eb);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; border-radius: 8px;
}
.logo-name { font-size: 20px; font-weight: 700; color: #1e3a5f; line-height: 1.2; }
.logo-sub { font-size: 11px; color: #64748b; line-height: 1.3; }
.header-search {
  flex: 1; max-width: 400px; display: flex; border: 2px solid #e2e8f0; border-radius: 6px; overflow: hidden;
}
.header-search input { flex: 1; padding: 8px 14px; border: none; outline: none; background: #f8fafc; }
.header-search button {
  padding: 8px 16px; background: #1e3a5f; color: #fff; border: none; cursor: pointer; font-size: 16px;
}
.header-contact { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border: 2px solid #fbbf24; border-radius: 6px; color: #b45309; font-weight: 600; }
.contact-icon { font-size: 20px; }

/* Navigation */
.nav { background: #1e3a5f; position: sticky; top: 0; z-index: 100; }
.nav-links { display: flex; gap: 0; }
.nav-links a {
  display: block; padding: 14px 28px; color: #cbd5e1; font-size: 15px; font-weight: 500;
  transition: all .2s; position: relative;
}
.nav-links a:hover, .nav-links a.active { background: #152840; color: #fbbf24; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

/* Hero */
.hero {
  position: relative; height: 450px; overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
}
.hero-slides { height: 100%; position: relative; }
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .8s; text-align: center;
}
.hero-slide.active { opacity: 1; }
.hero-content { color: #fff; max-width: 700px; padding: 0 20px; }
.hero-content h1 { font-size: 42px; margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.hero-content p { font-size: 18px; color: #cbd5e1; margin-bottom: 30px; }
.hero-dots { position: absolute; bottom: 20px; left: 50%; display: flex; gap: 10px; transform: translateX(-50%); }
.dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.3); cursor: pointer; transition: all .3s; }
.dot.active { background: #fbbf24; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); font-size: 30px; color: rgba(255,255,255,.6);
  padding: 15px; cursor: pointer; transition: all .2s; background: rgba(0,0,0,.2); border-radius: 4px;
}
.hero-arrow:hover { color: #fbbf24; background: rgba(0,0,0,.4); }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 6px; font-weight: 600; font-size: 15px;
  transition: all .2s; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: #fbbf24; color: #1a1a2e; }
.btn-primary:hover { background: #f59e0b; transform: translateY(-1px); }
.btn-secondary { background: #1e3a5f; color: #fff; }
.btn-secondary:hover { background: #152840; }
.btn-outline { border: 2px solid #fbbf24; color: #fbbf24; background: transparent; }
.btn-outline:hover { background: #fbbf24; color: #1a1a2e; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { display: block; width: 100%; text-align: center; }

/* Sections */
.section { padding: 60px 0; }
.section-alt { background: #eaf0f6; }
.section-header { text-align: center; margin-bottom: 40px; position: relative; }
.section-header h2 { font-size: 30px; color: #1e3a5f; }
.section-line { width: 50px; height: 3px; background: #fbbf24; margin: 12px auto 0; }
.more-link { position: absolute; right: 0; top: 0; color: #2563eb; font-size: 14px; }
.more-link:hover { color: #1e3a5f; }

/* Category Grid */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.category-card {
  display: block; background: #fff; border-radius: 10px; padding: 36px 20px; text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: all .3s; border: 2px solid transparent;
}
.category-card:hover { border-color: #2563eb; transform: translateY(-4px); box-shadow: 0 8px 24px rgba(30,58,95,.12); }
.cat-icon { margin: 0 auto 14px; width: 56px; height: 56px; color: #2563eb; }
.cat-icon svg { width: 56px; height: 56px; }
.category-card h3 { font-size: 18px; color: #1e3a5f; margin-bottom: 6px; }
.category-card p { font-size: 13px; color: #64748b; }

/* Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
  display: block; background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: all .3s;
}
.product-card:hover { box-shadow: 0 8px 24px rgba(30,58,95,.12); transform: translateY(-3px); }
.product-thumb { background: #f1f5f9; height: 200px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder { font-size: 64px; color: #94a3b8; }
.thumb-placeholder-large { font-size: 100px; color: #94a3b8; }
.product-info { padding: 16px; }
.product-info h3 { font-size: 15px; color: #1e3a5f; margin-bottom: 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-desc { font-size: 13px; color: #64748b; margin-bottom: 10px; line-height: 1.5; }
.product-params { display: flex; flex-wrap: wrap; gap: 6px; }
.product-params span { font-size: 11px; padding: 3px 8px; background: #eff6ff; color: #2563eb; border-radius: 3px; }

.product-grid-full { grid-template-columns: repeat(3, 1fr); }

/* About Preview */
.about-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-text p { color: #475569; margin-bottom: 20px; line-height: 1.8; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-card { background: linear-gradient(135deg, #1e3a5f, #2563eb); color: #fff; border-radius: 10px; padding: 24px; text-align: center; }
.stat-num { font-size: 36px; font-weight: 700; margin-bottom: 4px; }
.stat-label { font-size: 13px; color: #93c5fd; }

/* News Grid */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border-radius: 8px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: all .3s; }
.news-card:hover { box-shadow: 0 8px 24px rgba(30,58,95,.12); }
.news-date { font-size: 13px; color: #2563eb; margin-bottom: 8px; font-weight: 600; }
.news-card h3 { font-size: 16px; color: #1e3a5f; margin-bottom: 8px; line-height: 1.5; }
.news-card p { font-size: 13px; color: #64748b; line-height: 1.6; }

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #1e3a5f, #0f172a); padding: 60px 0; text-align: center; color: #fff;
}
.cta-section h2 { font-size: 30px; margin-bottom: 12px; }
.cta-section p { color: #93c5fd; margin-bottom: 30px; font-size: 16px; }
.cta-actions { display: flex; justify-content: center; gap: 16px; }

/* Page Banner */
.page-banner { background: linear-gradient(135deg, #1e3a5f, #0f172a); padding: 40px 0; text-align: center; }
.page-banner h1 { color: #fff; font-size: 32px; margin-bottom: 8px; }
.breadcrumb { color: #94a3b8; font-size: 14px; }
.breadcrumb a { color: #94a3b8; }
.breadcrumb a:hover { color: #fbbf24; }

/* Products Layout */
.products-layout { display: grid; grid-template-columns: 240px 1fr; gap: 30px; }
.sidebar { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.06); height: fit-content; }
.sidebar h3 { font-size: 18px; color: #1e3a5f; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid #fbbf24; }
.cat-list li { border-bottom: 1px solid #f1f5f9; }
.cat-list a { display: block; padding: 12px 16px; font-size: 14px; color: #475569; transition: all .2s; }
.cat-list a:hover, .cat-list .active a { background: #eff6ff; color: #2563eb; font-weight: 600; }
.sidebar-contact { margin-top: 24px; padding: 20px; background: #f8fafc; border-radius: 8px; text-align: center; }
.sidebar-contact h4 { font-size: 16px; color: #1e3a5f; margin-bottom: 10px; }
.sidebar-contact p { font-size: 13px; color: #475569; margin: 6px 0; }
.products-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.products-header h2 { font-size: 24px; color: #1e3a5f; }
.product-count { font-size: 14px; color: #64748b; }

/* Product Detail */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-detail-image { border-radius: 8px; overflow: hidden; }
.product-detail-thumb { cursor: zoom-in; line-height: 0; }
.product-detail-thumb img { width: 100%; height: auto; display: block; }
.product-detail-thumb p { color: #64748b; margin-top: 16px; }
.product-detail-info h1 { font-size: 24px; color: #1e3a5f; margin-bottom: 8px; }
.product-cat { font-size: 14px; color: #64748b; margin-bottom: 20px; }
.product-desc-full { color: #475569; line-height: 1.8; margin-bottom: 24px; }
.product-spec { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.product-spec th { background: #1e3a5f; color: #fff; padding: 10px 16px; text-align: left; }
.product-spec td { padding: 10px 16px; border-bottom: 1px solid #e2e8f0; }
.product-spec tr:nth-child(even) { background: #f8fafc; }

/* About Tabs */
.about-tabs { display: flex; gap: 0; margin-bottom: 30px; border-bottom: 2px solid #e2e8f0; }
.about-tab {
  padding: 14px 28px; background: none; border: none; border-bottom: 3px solid transparent;
  font-size: 16px; font-weight: 600; color: #64748b; cursor: pointer; transition: all .2s;
  margin-bottom: -2px;
}
.about-tab:hover { color: #1e3a5f; }
.about-tab.active { color: #2563eb; border-bottom-color: #2563eb; }
.about-content { display: none; }
.about-content.active { display: block; }
.about-content-inner { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.about-content-inner h2 { font-size: 24px; color: #1e3a5f; margin-bottom: 20px; }
.about-text { color: #475569; line-height: 2; }

/* Stats Row */
.stats-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.stat-item { background: #fff; border-radius: 10px; padding: 28px 16px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.stat-icon { font-size: 32px; margin-bottom: 8px; color: #fbbf24; }
.stat-num { font-size: 32px; font-weight: 700; color: #1e3a5f; }
.stat-label { font-size: 13px; color: #64748b; margin-top: 4px; }

/* News List */
.news-list { max-width: 800px; margin: 0 auto; }
.news-list-item { display: flex; align-items: center; gap: 20px; background: #fff; padding: 20px; border-radius: 8px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: all .3s; }
.news-list-item:hover { box-shadow: 0 8px 24px rgba(30,58,95,.12); transform: translateX(4px); }
.news-list-date { flex-shrink: 0; text-align: center; background: #1e3a5f; color: #fff; padding: 12px; border-radius: 6px; min-width: 70px; }
.news-list-date .day { font-size: 28px; font-weight: 700; display: block; }
.news-list-date .month { font-size: 12px; display: block; color: #93c5fd; }
.news-list-content { flex: 1; }
.news-list-content h3 { font-size: 16px; color: #1e3a5f; margin-bottom: 6px; }
.news-list-content p { font-size: 13px; color: #64748b; }
.news-list-arrow { font-size: 24px; color: #94a3b8; }

/* News Detail */
.news-detail { max-width: 800px; margin: 0 auto; background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.news-detail h1 { font-size: 24px; color: #1e3a5f; margin-bottom: 12px; line-height: 1.5; }
.news-meta { font-size: 13px; color: #64748b; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #e2e8f0; }
.news-content { color: #475569; line-height: 2; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.contact-info h3 { font-size: 20px; color: #1e3a5f; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid #fbbf24; }
.info-item { display: flex; gap: 12px; margin-bottom: 20px; }
.info-icon { font-size: 24px; color: #2563eb; flex-shrink: 0; }
.info-item strong { display: block; color: #1e3a5f; margin-bottom: 2px; }
.info-item p { color: #475569; font-size: 14px; }
.contact-form { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.contact-form h3 { font-size: 20px; color: #1e3a5f; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid #fbbf24; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: #1e3a5f; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 6px; outline: none;
  transition: border-color .2s; background: #f8fafc;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: #2563eb; background: #fff; }
.form-message { padding: 16px 24px; border-radius: 8px; margin-bottom: 30px; font-weight: 500; }
.form-message.success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.form-message.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.captcha-group .captcha-row { display: flex; align-items: center; gap: 12px; }
.captcha-group .captcha-row input { width: 120px; }
.captcha-group .captcha-row img { height: 40px; cursor: pointer; border-radius: 4px; border: 1px solid #e2e8f0; }
.captcha-group .captcha-row span { font-size: 12px; color: #64748b; cursor: pointer; }
.captcha-group .captcha-row span:hover { color: #2563eb; }

/* Footer */
.footer { background: #1a1a2e; color: #94a3b8; padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #334155; }
.footer-col h4 { color: #fbbf24; font-size: 16px; margin-bottom: 16px; }
.footer-about p { font-size: 14px; line-height: 1.8; }
.footer-col a { display: block; font-size: 14px; color: #94a3b8; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: #fbbf24; }
.footer-contact p { font-size: 13px; margin: 6px 0; line-height: 1.6; }
.footer-bottom { text-align: center; padding: 20px 0; font-size: 13px; color: #64748b; }

/* Responsive */
@media (max-width: 1024px) {
  .product-grid, .product-grid-full { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-main { flex-wrap: wrap; }
  .header-search { order: 3; max-width: 100%; flex-basis: 100%; margin-top: 10px; }
  .nav-links { display: none; flex-direction: column; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { height: 300px; }
  .hero-content h1 { font-size: 24px; }
  .hero-content p { font-size: 14px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-grid, .product-grid-full { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .about-preview, .product-layout, .contact-layout { grid-template-columns: 1fr; }
  .products-layout { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-tabs { overflow-x: auto; }
  .about-tab { white-space: nowrap; padding: 12px 16px; font-size: 14px; }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr; }
  .product-grid, .product-grid-full { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; }
  .stats-row { grid-template-columns: 1fr; }
}
