
/*
Theme Name: Optics Child
Template: optics
*/
:root{
  --topbar-h: 36px;
  --container: 1200px;
  --dark: #2f2f2f;
  --dark2:#1f1f1f;
  --gray:#f3f5f7;
  --border:#e6e6e6;
  --red:#d40000;
  --text:#2f2f2f;
  --op-container: 1200px;  
  --op-pad: 16px;
  --op-gap:16px;
  --backgray:#f5f5f5;
  --contentwhite:#fff;
  --themorange:#31a3dd;
}

*{box-sizing:border-box}
body{margin:0;color:var(--text);background:var(--backgray);  font-family: "Open sans", Helvetica, Arial, sans-serif;}
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: "Open sans", Helvetica, Arial, sans-serif;
  font-weight: 300;
  color: #333333;
}
h1 {
  font-size: 40px;
  font-size: 2.5rem;
}
h2 {
  font-size: 36px;
  font-size: 2.25rem;
}
h3 {
  font-size: 30px;
  font-size: 1.875rem;
}
h4 {
  font-size: 24px;
  font-size: 1.5rem;
}
h5 {
  font-size: 20px;
  font-size: 1.25rem;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
/*page lever div 除了header和footer之外的区域*/
.content-area{background:var(--backgray)}
/*first lever div*/
.optics-container{max-width:var(--container);margin: 0 auto; padding: 18px 16px 10px;background:var(--contentwhite)}
.optics-container-breadcrumb{max-width:var(--container);margin: 0 auto; padding: 18px 16px 10px;}
.optics-container-heroslider{max-width:var(--container);margin: 0 auto; padding: 0px 16px 10px;width: 100%;overflow: hidden; }
.optics-container-hottitle {max-width:var(--container);margin: 0 auto; padding: 18px 16px 10px;display: flex;align-items: center;justify-content: space-between;}
.optics-container-hotproducts{max-width:var(--container);margin: 0 auto; padding: 18px 16px 10px; }
.optics-container-nobackground{max-width:var(--container);margin: 0 auto; padding: 18px 16px 10px; }


.optics-container-tabs {max-width:var(--container);margin: 18px auto 0;background: #e6e6e6;display: flex;gap: 0;border-radius: 2px;overflow: hidden;}
/*breadcrumb*/
.optics-container-breadcrumb ol {list-style: none; margin: 0;padding: 0;display: flex;align-items: center;gap: 0.5rem;}
.optics-container-breadcrumb li + li::before {content: "›";color: #999;margin-right: 0.5rem;}
[aria-current="page"] {color: #666;font-weight: 600;}


.optics-container p{font-size: 15px;color: #333;line-height: 1.9; margin: 0;}
/*second lever div*/
/*cards container basic*/
.op-cards-grid{display: grid;gap: var(--op-gap);}
/*single card basic*/
.op-singlecard {display: block;text-decoration: none;color: inherit;background: #fff;border: 1px solid #eee;padding: 18px 14px;box-sizing: border-box;position:relative;overflow: hidden;}
.op-singlecard:hover{ box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.op-singlecard::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%);
    opacity: 0;
    transform: translateY(10px); 
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* 使用贝塞尔曲线让动画更自然 */
    pointer-events: none;
}
.op-singlecard:hover::after {opacity: 1;transform: translateY(0);}
.op-singlecard_img{height: 150px; display: flex;align-items: center;justify-content: center;}
.op-singlecard_title {margin-top: 14px; font-size: 14px;text-align: center; color: #222;line-height: 1.4; min-height: 40px;}

/* ===== Header.php ===== */
.optics-header{background:#fff;border-bottom:1px solid var(--border);position: relative; z-index: 50; border-bottom:7px solid #31a3dd;}

.header-optics-container{margin: 0 auto; background: var(--contentwhite);padding: 20px 5%;}
.optics-header-inner{display:flex;align-items:center;gap:18px;position: relative;}
.optics-logo{ display:flex;align-items:center;gap:10px;min-width:220px;justify-content: center;overflow: hidden;}
.optics-logo img {display: block;max-height: 60px; width: auto; max-width: 100%;}
.optics-nav{flex:1}
.optics-nav ul{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.optics-nav li a:hover{color:var(--themorange)}
.optics-search{display:flex;align-items:center;gap:0;width:360px;max-width:40vw;}
.optics-search input{flex:1;height:40px;border:1px solid var(--border);border-right:0;border-radius:3px 0 0 3px;padding:0 12px; outline:none;}
.optics-search button{width:48px;height:40px;border:1px solid #31a3dd;background:#31a3dd;border-radius:0 3px 3px 0;color:#fff;cursor:pointer;
  font-weight:900;}
.optics-search button:hover{filter:brightness(.95)}
.nav-sub{
  top: 46px;
  left: -30px;
  position:absolute;
  text-align: center;
  min-width: 150px;
  min-width:180px;
  background:#fff;
  border:1px solid #e5e5e5;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
  padding:8px 0;
  display:none !important;
  z-index:1000;
}

.nav-sub li{list-style:none;}
.nav-sub a{display:flex;align-items:center;gap:8px;padding:10px 16px;font-size:14px;color:#333;line-height:1.4;white-space:nowrap;}
.nav-sub a:hover{background:#f5f5f5;}
.has-sub:hover > .nav-sub{display:block !important;}
.has-sub > a::after{content:'▾';font-size:12px;margin-left:6px;opacity:.6;}
li.has-sub{position: relative;}
.optics-mega{
  position:absolute;
  left:220px;
  top:100%;
  width:100%;
  background: rgba(255, 255, 255,0); /* 0.95 是透明度，可按需调整 */
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  border-top: 1px solid #eee;
  display:none;
}
.optics-mega.is-open{ display:block; }
.optics-mega-inner{margin:0 auto;display:grid;grid-template-columns: 220px 220px 1fr;min-height: 320px;overflow: hidden; }
/*.optics-mega-inner:has(.optics-mega-grid.is-show) {grid-template-columns: 220px 220px 1fr;}*/
.optics-mega .cat-has-sub > a .arrow {display: inline-block; }
.optics-mega .no-sub > a .arrow {display: none;}
/* left：first lever cat */
.optics-mega-col-1{  background: rgba(255, 255, 255, 1); }
.optics-mega-list{margin:0; padding:0;list-style:none;}
.optics-mega-item a{display:flex;align-items:center;justify-content:space-between;padding:14px 14px;text-decoration:none;color:#111;}
.optics-mega-item .arrow{ opacity:.8; }
.optics-mega-col-1 .optics-mega-item{ border-bottom: 0px solid rgba(255,255,255,.25); }
.optics-mega-col-1 .optics-mega-item.is-active a{background:rgba(255, 103, 0, 0.7);color:#fff;}
.optics-mega-col-2{ background:rgba(255, 255, 255, 1);border-left:1px solid #eee;border-right:1px solid #eee;}
.optics-mega-list-lv2{ display:none; }
.optics-mega-list-lv2.is-show{ display:block; }
.optics-mega-col-2 .optics-mega-item a{padding:14px 14px;}
.optics-mega-col-2 .optics-mega-item.is-active a{background:rgba(255, 103, 0, 0.7);color:#fff;}
/*.optics-mega-col-2 .optics-mega-item:hover > a{background:var(--themorange);color:#fff;}*/
.optics-mega-col-3{padding:18px 0px;background:rgba(255, 255, 255, 0.7);}
.optics-mega-grid{ display:none; }
.optics-mega-grid.is-show{ display:grid; }
.optics-mega-grid{grid-template-columns: repeat(2, minmax(180px, 1fr));gap:16px 18px;align-content:start;}
.optics-mega-card{display:flex;align-items:center;gap:12px; text-decoration:none;color:#111;padding:10px 12px;border-radius:10px;}
.optics-mega-card:hover{background:rgba(255, 103, 0, 0.7);}
.optics-mega-card .ico{
  width:34px;height:34px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f2f2f2;
  overflow:hidden;
  flex:0 0 34px;
}
.optics-mega-card .ico img{ width:100%; height:100%; object-fit:cover; }
.optics-mega-card .ico-dot{width:16px;height:16px;border-radius:999px;background:#F76E01;box-shadow: 0 2px 8px rgba(200,16,46,.25);}
.optics-mega-card .name{font-size:14px;}
.optics-mega-empty{padding:14px;color:#666;font-size:13px;}
/* =========================
   Mobile Header System
========================= */
.op-m-header{display:none !important;}
.op-m-drawer[hidden]{ display:none !important; }
.op-m-drawer{ display:none; } 
.op-m-mask[hidden]{ display:none !important; }
.op-m-mask{ display:none; }
li.has-sub{ position: relative;}
li.has-sub > .nav-sub{
  position: absolute;
  left: 50%;
  top: 100%;                  
  transform: translateX(-50%);
  margin-top: 14px;           
  min-width: 180px;
  background: rgba(255, 255, 255, 0.7)
  border: 1px solid #e5e5e5;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  padding: 8px 0;
  display: none;
  z-index: 1000;
}
li.has-sub:hover > .nav-sub{display: block;}
li.has-sub > .nav-sub::before{content: "";position: absolute;left: 0;right: 0;top: -14px;height: 14px;}
@media (max-width: 900px){
  .optics-header{ display:none !important; }
  .optics-topbar{ display:none !important; }
  .op-m-header{
    display:flex !important;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    height:56px;
    padding:0 12px;
    background:#fff;
    border-bottom:1px solid #eee;
    position:sticky;
    top:0;
    z-index:9999;
  }
  .optics-mega{ display:none !important; }
  .op-m-btn{width:40px;height:40px;border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;}
  .op-m-ico{ font-size:22px; line-height:1; }
  .op-m-logo{ flex:1; display:flex; align-items:center; justify-content:center; }
  .op-m-logo img{ height:28px; width:auto; display:block; }
  .op-m-mask{position:fixed; inset:0;background:rgba(0,0,0,.45);z-index:9998;}
  .op-m-drawer{
    position:fixed; top:0; left:0;
    width:78vw; max-width:320px;
    height:100vh;
    background:#fff;
    z-index:9999;
    transform:translateX(-105%);
    transition:transform .22s ease;
    flex-direction:column;
    }
  .op-m-drawer.is-open{ transform:translateX(0); }
  .op-m-drawer-hd{display:flex;align-items:center;justify-content:space-between;padding:14px 14px;border-bottom:1px solid #eee;}
  .op-m-close{width:34px;height:34px;border:0;background:#f3f3f3;border-radius:8px;cursor:pointer;font-size:20px;}
  .op-m-drawer-bd{ padding:10px 0; overflow:auto; }
  .op-m-menu, .op-m-menu ul{ list-style:none; margin:0; padding:0; }
  .op-m-menu > li > a{display:block;padding:12px 14px;color:#111;text-decoration:none;border-bottom:1px solid #f1f1f1;}
  .op-m-menu .sub-menu{ background:#fafafa; border-bottom:1px solid #f1f1f1; }
  .op-m-menu .sub-menu a{display:block;padding:10px 14px 10px 26px;color:#333;text-decoration:none;border-top:1px solid #f1f1f1;}
  .op-m-search{position:fixed; inset:0;background:rgba(0,0,0,.45);z-index:10000;align-items:flex-start;justify-content:center;padding-top:10vh;}
  .op-m-search-inner{width:min(560px, calc(100% - 24px));background:#fff;border-radius:12px;padding:14px;}
  .op-m-search-form{ display:flex; gap:10px; }
  .op-m-search-form input{flex:1;height:42px;border:1px solid #ddd;padding:0 12px;border-radius:10px;}
  .op-m-search-form button{height:42px;padding:0 14px;border:0;background:#c40000;color:#fff;border-radius:10px;cursor:pointer;}
  .op-m-search-close{margin-top:10px;width:100%;height:40px;border:0;background:#f3f3f3;border-radius:10px;cursor:pointer;}
  .optics-search{width:100%;max-width:100%}
  .optics-logo{min-width:auto}
}


/* ===== footer.php ===== */
.op-footer {background-color: #1a252f;color: #7f8c8d;padding-top: 10px; margin-top:20px}
.optics-container-footer{margin: 0 auto; padding: 0 10%;background-color: #1a252f;color: #7f8c8d;}
.footer-top {display: flex;justify-content: space-between;align-items: center;padding-bottom: 20px;}
.footer-left-group {display: flex; align-items: center; gap: 40px;}
.footer-logo img {display: block; max-height: 80px;width: auto;}
.footer-logo-text {font-size: 15px;font-weight: bold; color: #999AAA; text-decoration: none;white-space: nowrap;}
.service-links ul {list-style: none;}
.service-links li { margin-bottom: 12px;}
.service-links a {color: #999AAA; text-decoration: none;font-size: 16px;transition: all 0.3s ease; }
.service-links a:hover {color: #31a3dd; padding-bottom: 2px;}
.footer-right-group {text-align: left; }
.footer-right-group h3 {font-size: 18px; margin-bottom: 15px; color: #999AAA; text-transform: uppercase; letter-spacing: 1px; }
.contact-info p {margin-bottom: 10px;color: #999AAA;font-size: 15px;}
.contact-info a {color: #999AAA;text-decoration: none;transition: all 0.3s ease; }
.contact-info a:hover {color: #31a3dd;padding-bottom: 2px;}
.footer-bottom {background-color: #1a252f;text-align: left;padding: 10px;font-size: 14px;color: #7f8c8d;}
.footer-copy { max-width: 1200px; margin: 0 auto; padding: 0 20px; text-align: center;}
@media (max-width: 768px) {
    .footer-top {flex-direction: column; align-items: flex-start;gap: 30px; padding-bottom: 30px;}
    .footer-left-group {flex-direction: column; align-items: flex-start;gap: 20px;}
}





/* ===== page-products.php ===== */

.op-cards-grid-productcenter{grid-template-columns: repeat(5, 1fr);}
.pcat-thumb{background:#fff;aspect-ratio: 4 / 3;display:flex;align-items:center;justify-content:center;padding: 18px;}
.pcat-thumb img{max-width: 100%;max-height: 100%;object-fit: contain;display:block;}
.pcat-title{text-align:center;padding: 14px 10px 18px;font-size: 14px;letter-spacing: .5px;}
.pcat-empty{background:#fff;border:1px solid #eee;padding: 18px;}

 
/* ===== page-custom.php ===== */
.custom-link {color: #31a3dd; font-weight: bold;text-decoration: none; border-bottom: 2px solid #31a3dd; padding-bottom: 2px;}
.custom-link:hover {color: #a04000;border-bottom-color: #31a3dd;}

/* ===== page-about-us.php ===== */
.op-cards-grid-contact-info{grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));}
.office-info, .email-info{ display: flex;align-items: flex-start;gap: 15px;}
.address-icon, .email-icon{flex-shrink: 0; width: 40px;height: 40px;background-color: #f8f9fa;border-radius: 50%;display: flex;align-items: center;
        justify-content: center;
        color: #c40000; 
        font-size: 18px;
    }
.mainproduct-card {display: flex;align-items: flex-start;gap: 20px;padding: 20px;border-bottom: 1px solid #f0f0f0;}
.mainproduct-card:last-child { border-bottom: none; } 
.mainproduct-thumb {flex: 0 0 150px;height: 150px;overflow: hidden;border-radius: 4px;}
.mainproduct-thumb img {width: 100%;height: 100%;object-fit: cover;transition: transform 0.3s;}
.mainproduct-thumb img:hover { transform: scale(1.05); }
.mainproduct-desc {flex: 1;}
.mainproduct-desc h3 {margin-top: 0;font-size: 16px;color: #333;}
.mainproduct-desc p {margin: 8px 0 0;color: #666;font-size: 14px;line-height: 1.6;}

/* ===== page-contact-us.php ===== */
.inquiry-container { max-width: 600px; margin: 20px auto; padding: 30px; background: #fff; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); font-family: sans-serif;}
.success-box { background: #d4edda; color: #155724; padding: 20px; border-radius: 5px; text-align: center; border: 1px solid #c3e6cb; margin-bottom: 20px; }
.success-box h3 { margin-top: 0; color: #155724; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-group input, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; }
.submit-btn { background: #fff; color: #31a3dd; padding: 12px 30px; border:1px solid; border-radius: 4px; cursor: pointer; font-size: 16px; width: 100%; }
.submit-btn:hover {background-color: #31a3dd; color:#fff}

/* ===== page-quote.php ===== */
.inquiry-form{    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
 }
.quote-header { text-align: center; margin-bottom: 30px; }
.form-group { margin-bottom: 15px; }
.form-row { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
.product-input { flex: 2; }
.qty-input { flex: 1; }
.remove-btn { background: #ff4d4d; color: white; border: none; padding: 5px 10px; cursor: pointer; border-radius: 4px; }
.add-btn { background: #fff; color: #31a3dd; border: 1PX solid; padding: 10px 20px; cursor: pointer; border-radius: 4px; margin-top: 10px; }
.submit-btn { background: #fff; color:  #31a3dd; border: 1px solid; padding: 10px 30px; font-size: 16px; cursor: pointer; border-radius: 4px; width: 100%; margin-top: 20px; }
.submit-btn:hover{background: #31a3dd; color:#fff;}
.save-btn { background: #6c757d; color: white; border: none; padding: 10px 20px; cursor: pointer; border-radius: 4px; margin-right: 20px; }
.action-area { display: flex; justify-content: space-between; margin-top: 20px; }
#quote-message { margin-top: 15px; text-align: center; font-weight: bold; }
.success { color: green; }
.error { color: red; }
.remarks-input { width: 100%; padding: 10px; box-sizing: border-box; border: 1px solid #ddd; border-radius: 4px; height: 80px; resize: vertical; }
.remarks-label { display: block; margin-bottom: 5px; font-weight: bold; }
@media print {
    .no-print, .add-btn, .remove-btn, .action-area { display: none !important; }
    .quote-container { border: none; box-shadow: none; }
     body { background: white; }
}

/* ===== page-knowledge-hub.php ===== */
.banner-add-backgroundimage {
    background-color: #2c3e50; 
    background-image: url('https://www.signoraoptics.com/wp-content/themes/optics/assets/images/library.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 40px;
}
.banner-add-backgroundimage h1 { margin: 0; font-size: 2.5em; margin-bottom: 10px; }
.banner-add-backgroundimage p { font-size: 1.2em; opacity: 0.9; margin: 0; color:var(--themorange);}
.kh-content-wrapper {display: flex;gap: 40px;}
.kh-sidebar {flex: 1;min-width: 250px;background: #f9f9f9;padding: 20px;border-radius: 8px;height: fit-content;}
.kh-sidebar h3 { margin-top: 0; border-bottom: 2px solid #eee; padding-bottom: 10px; }
.kh-cat-list { list-style: none; padding: 0; margin: 0; }
.kh-cat-list li { margin-bottom: 10px; }
.kh-cat-list a { text-decoration: none; color: #333; font-weight: 500; display: block; padding: 8px 10px; border-radius: 4px; transition: 0.3s; }
.kh-cat-list a:hover { background: #e0e0e0; color: #000; }
.kh-main {flex: 3;}
.kh-tabs {display: flex;border-bottom: 2px solid #eee;margin-bottom: 20px;}
.kh-tab-btn {padding: 15px 30px;background: none;border: none;font-size: 18px;cursor: pointer;color: #666;position: relative;transition: 0.3s;}
.kh-tab-btn:hover { color: #764ba2; }
.kh-tab-btn.active {color: #764ba2;font-weight: bold;}
.kh-tab-btn.active::after {content: '';position: absolute;bottom: -2px;left: 0;width: 100%;height: 2px;background: #764ba2;}
.kh-tab-content { display: none; animation: fadeIn 0.5s; }
.kh-tab-content.active { display: block; }
.kh-post-item {display: flex;gap: 20px;padding: 20px 0;border-bottom: 1px solid #eee;}
.kh-post-thumb {width: 200px;height: 140px;object-fit: cover;border-radius: 6px;flex-shrink: 0;}
.kh-post-info h4 { margin: 0 0 10px; font-size: 1.2em; }
.kh-post-info h4 a { text-decoration: none; color: #333; }
.kh-post-info h4 a:hover { color: #764ba2; }
.kh-post-excerpt { color: #666; font-size: 0.95em; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kh-post-date { font-size: 0.85em; color: #999; margin-top: 10px; display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 768px) {
        .kh-content-wrapper { flex-direction: column; }
        .kh-post-item { flex-direction: column; }
        .kh-post-thumb { width: 100%; height: auto; }
    }

/* ===== page-taxonomy-product-cat.php ===== */
.optics-tabs{ margin-top: 18px;  background:#e6e6e6;  display:flex;  gap: 0;  border-radius: 2px;  overflow:hidden;}
.optics-tab{appearance:none;border:0;background:transparent;padding: 14px 22px;font-size: 14px;cursor:pointer;color:#333;flex: 0 0 auto;}
.optics-tab.is-active{background:#fff;color:var(--themorange);border-bottom: 2px solid var(--themorange);  font-weight: 700;}
.optics-tabpanel{ display:none; max-width:var(--container);margin:0 auto;}
.optics-tabpanel.is-active{ display:block; }
.optics-table-wrap{margin-top: 5px;background:#fff;border: 1px solid #e1e1e1;}
.table-container {max-height: 400px;overflow-y: auto;border: 1px solid #ddd;border-radius: 8px;box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.optics-table {width: 100%;border-collapse: collapse;margin-top: 0px;background: #fff;font-size: 13px;table-layout: fixed;}
.optics-table th, .optics-table td {border: 1px solid #ddd;padding: 12px 15px;text-align: left;}
.optics-table th {background-color: #f4f4f4;font-weight: bold;}
.optics-table thead th{background:#efefef;color:#222;padding: 12px 10px;text-align:center;font-weight: 800;border-bottom: 1px solid #d9d9d9;}
.optics-table tbody td{padding: 12px 10px;border-bottom: 1px solid #eee;  text-align:center; vertical-align: middle;}
.optics-table tbody tr:hover{background:#fafafa;}
.col-pro-no { width: 200px; }
.col-specs { width: 150px; cursor: pointer; }
.col-price { width: 100px; font-weight: bold; color: #d9534f; justify-content: center; }
.col-pro-no a {cursor: pointer;color:;text-decoration: underline; }
.specs-content {padding: 0px 0;}
.specs-content h4 {margin-top: 0;margin-bottom: 15px;color: #333;font-size: 16px;border-bottom: 2px solid #eee;padding-bottom: 10px;}
.specs-toggle {display: flex;align-items: center;justify-content: center;text-decoration: underline;}
.specs-toggle i {transition: transform 0.3s ease;}
.specs-toggle.active i {transform: rotate(180deg);}
.product-details-row td {background-color: #fafafa;padding: 20px;border-top: none;}
.specs-content h4 {margin-top: 0; color: #333;}
.specs-table { width: 100%;border-collapse: collapse; margin: 0;font-size: 13px;}
.specs-table tr {border-bottom: 1px solid #eee;}
.specs-table tr:last-child {border-bottom: none;}
.specs-table td {padding: 6px 10px !important;vertical-align: top;line-height: 1.4;}
.specs-table td.specs-label {width: 35%;font-weight: 600;color: #555;background-color: #f5f5f5;}
.specs-table td.specs-value {width: 65%;color: #666;}
.specs-content p {margin: 5px 0;padding: 6px;color: #999;font-style: italic;}
.optics-pagination {text-align: center;margin: 20px 0;padding: 10px 0;margin-top: 14px;display:flex; justify-content:center;}
.optics-pagination a, 
.optics-pagination span {display: inline-block;padding: 8px 12px;margin: 0 4px;border: 1px solid #ddd;text-decoration: none;color: #333;border-radius: 4px;}
.optics-pagination a:hover,
.optics-pagination .current {background-color: #0073aa;color: #fff;border-color: #0073aa;}
.optics-pagination .page-numbers{display:inline-block;padding: 6px 10px;margin: 0 4px; border:1px solid #ddd;text-decoration:none;color:#333;}
.optics-pagination .page-numbers.current{background:#d10e1a;border-color:#d10e1a;color:#fff;}
.optics-table thead th {position: sticky;top: 0;background-color: #f8f9fa;z-index: 10;box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);}
.quote-action-bar{ margin-top: 5px; padding: 15px; background: #f0f0f1; border: 1px solid #ccc; text-align: right;}
.quote-button {display: inline-block; padding: 12px 24px; font-size: 16px; text-decoration: none; color: #31a3dd; background-color: #fff; border: 1px solid;border-radius: 4px;transition: all 0.3s ease; cursor: pointer;}
.quote-button:hover{background: #31a3dd  !important; color:#fff !important;}
.filterable-column {position: relative;cursor: pointer;}
.filter-icon {display: inline-block;font-size: 12px;opacity: 0.6;transition: opacity 0.2s;cursor: pointer;}
.filter-icon:hover {opacity: 1;}
.filter-icon.active {opacity: 1;color: #007cba;}
.column-filter-dropdown {position: absolute;background: white;border: 1px solid #ddd;border-radius: 4px;box-shadow: 0 2px 8px rgba(0,0,0,0.15);z-index: 1000;min-width: 200px;max-width: 300px;max-height: 400px;overflow-y: auto;padding: 10px;margin-top: 5px;}
.filter-dropdown-header {padding-bottom: 8px;border-bottom: 1px solid #eee;margin-bottom: 8px;}
.filter-dropdown-header input {width: 100%;padding: 5px;border: 1px solid #ddd;border-radius: 3px;}
.filter-options {max-height: 250px;overflow-y: auto;}
.filter-option {padding: 5px;cursor: pointer;display: flex;align-items: center;}
.filter-option:hover {background-color: #f5f5f5;}
.filter-option input {margin-right: 8px;}
.filter-option label {cursor: pointer;margin: 0;flex: 1;word-break: break-all;}
.filter-dropdown-footer {padding-top: 8px;border-top: 1px solid #eee;margin-top: 8px;text-align: right;}
.filter-dropdown-footer button {margin-left: 8px;padding: 4px 8px;border: 1px solid #ddd;background: white;border-radius: 3px;cursor: pointer;}
.filter-dropdown-footer button:hover {background: #f0f0f0;}
.filter-dropdown-footer button.primary {background: #007cba;color: white;border-color: #007cba;}
.product-row.filtered-out {display: none;}
.filter-indicator {display: inline-block;background: #007cba;color: white;border-radius: 10px;padding: 2px 6px;font-size: 10px;margin-left:5px;}
.clear-all-filters {margin-top: 5px;text-align: left;}
.clear-filters-btn {display: inline-block;padding: 6px 12px;background: #f0f0f0;border: 1px solid #ddd;border-radius: 4px;color: #333;text-decoration: none;font-size: 13px;transition: all 0.2s;cursor: pointer;}
.clear-filters-btn:hover {background: #e0e0e0;border-color: #ccc;}
.optics-panel-box{ border:1px solid #e6e6e6;  padding: 18px;  background:#fff;  margin-top: 14px;  color:#333;}
@media (max-width: 640px){
  .optics-tabs{ overflow:auto; }
  .optics-table{ font-size: 12px; }
    .optics-table-wrap{ overflow:auto; }
  .optics-table{ min-width: 900px; } 
}


/* ===== page-category-list.php ===== */
.optics-container-catintroduction{display: flex; align-items: center;gap: 30px;box-shadow: 0 8px 24px rgba(0, 0, 0, .08);border: 1px solid #eee;}
.cp-hero__imgbox{background:#fff;  border-radius:2px;  overflow:hidden;  width: 400px;  flex-shrink: 0;}
.cp-hero__img{  display:block;  width:100%;  height:auto;}
.optics-container-categorydetails{
  display:grid;
  margin-top:20px;
  grid-template-columns: 280px 1fr; /* ✅ 恢复两列 */
  gap:18px;
  align-items:start;
}
.cp-box{ border:1px solid var(--cp-line); background:#fff; margin-bottom:16px; }
.cp-box__head{
    width:100%; display:flex; align-items:center; justify-content:space-between;
    padding:12px 12px; font-weight:600; border:0; background:#e9e9e9; cursor:pointer;
  }
.cp-box__chev{ transition:transform .2s ease; }
  .cp-box__body{ padding:10px 12px; display:none; }
  .cp-box__body.is-open{ display:block; }
  .cp-box__head[aria-expanded="false"] .cp-box__chev{ transform:rotate(-90deg); }
.cp-catlist{ list-style:none; margin:0; padding:0; }
  .cp-catitem{
    display:flex; align-items:center; justify-content:space-between;
    padding:10px 6px; color:#333; text-decoration:none; border-bottom:1px solid #f0f0f0;
  }
  .cp-catitem:hover{ background:#fafafa; }
.cp-empty{ color:#999; font-size:13px; padding:8px 0; }
.sub-category-cardsgrid{display: grid;gap: var(--op-gap); grid-template-columns: repeat(4, minmax(0, 1fr));  }


/*ln-wafer */
.optics-container-lithium-niobate-wafers{display: flex; align-items: center;justify-content: space-between;gap: 30px;box-shadow: 0 8px 24px rgba(0, 0, 0, .08);border: 1px solid #eee;}

.lithium-niobate-fig-container {
    background: #fff;
    border-radius: 2px;
    overflow: hidden;
    width: 500px;
    flex-shrink: 0;
}
.specs-list {
    margin: 15px 0;
    padding: 0;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    width: 200px;          /* 固定标签宽度，保持对齐 */
    font-weight: 600;
    color: #333;
    flex-shrink: 0;
}

.spec-value {
    flex: 1;
    color: #555;
}

/*ppln */
.ppln-specs-section{
    
    
    
}
/* 新增：双列布局样式 */
    .specs-list.two-column-grid {
        column-count: 2;       /* 强制分为两列 */
        column-gap: 40px;      /* 列与列之间的间距 */
    }

.spec-item-ppln {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}
  /* 移动端适配：屏幕较窄时自动恢复为单列 */
    @media (max-width: 768px) {
        .specs-list.two-column-grid {
            column-count: 1;
        }
    }







/* left category panel */
.optics-cats{
  background:#3b3b3b;
  border-radius:2px;
  overflow:hidden;
}
.optics-cats .title{
  padding:14px 14px;
  color:#fff;
  background:#333;
}
.optics-cats a{
  display:flex;align-items:center;justify-content:space-between;
  padding:11px 14px;
  color:#eaeaea;
  /*border-top:1px solid rgba(255,255,255,.08);*/
  /*font-weight:700;*/
}
.op-lv2-item a.op-lv2-link{
    color: #000 !important;
}
.op-lv3-item  a.op-lv3-link{
    color: #000 !important;
}
.optics-cats a:hover{background:rgba(255,255,255,.06)}
.optics-cats .arrow{opacity:.8}

/* hero slider (静态版本) */
.optics-hero{
  position:relative;
  background:#111;
  border-radius:2px;
  overflow:hidden;
  min-height:360px;
}
.optics-hero img{
  width:100%;
  height:360px;
  object-fit:cover;
  opacity:.88;
}
.optics-hero .overlay{
  position:absolute;inset:0;
  background:linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.25) 58%, rgba(0,0,0,0) 100%);
}
.optics-hero .content{
  position:absolute;left:34px;top:50%;
  transform:translateY(-50%);
  color:#fff;max-width:520px;
}
.optics-hero .badge{
  display:inline-flex;align-items:center;gap:8px;
  background:#d40000;
  padding:4px 10px;border-radius:999px;
  font-size:12px;font-weight:900;
  margin-bottom:10px;
}
.optics-hero h1{
  margin:0 0 10px;
  font-size:42px;line-height:1.05;font-weight:900;
}
.optics-hero p{margin:0 0 16px;color:rgba(255,255,255,.85);font-weight:700;line-height:1.5}
.optics-hero .btn{
  display:inline-flex;align-items:center;gap:10px;
  padding:12px 18px;border-radius:999px;
  border:2px solid rgba(255,255,255,.55);
  font-weight:900;
}
.optics-hero .btn:hover{border-color:#fff}

/* right quickbar */
.optics-quickbar{
  position:fixed;
  right:18px;
  top:70%;
  transform:translateY(-40%);
  width:72px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:2px;
  overflow:hidden;
  z-index:999;
}
@media (max-width: 1100px){
  .optics-quickbar{display:none}
}
.optics-quickbar a{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  height:64px;
  gap:6px;
  border-top:1px solid var(--border);
  font-size:12px;
  color:#555;
}
.optics-quickbar a:first-child{border-top:0}
.optics-quickbar .ico{
  width:22px;height:22px;border-radius:6px;background:#f2f2f2;
  display:flex;align-items:center;justify-content:center;
  font-weight:900;color:#666;
}
.optics-quickbar a:hover{background:#fafafa;color:var(--themorange) !important;}

/* bottom cards */
.optics-cards{
  margin-top:16px;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
}
@media (max-width: 980px){
  .optics-cards{grid-template-columns:1fr}
}
.optics-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:2px;
  overflow:hidden;
}
.optics-card .thumb{
  height:140px;background:#e9eef3;
}
.optics-card .thumb img{width:100%;height:140px;object-fit:cover}
.optics-card .label{
  padding:12px 14px;
  font-weight:900;
  color:#111;
}


.optics-viewall:hover{ color:var(--themorange); }

.optics-cat-grid{
  display:grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
}

.optics-feature{
  display:block;
  text-decoration:none;
  color:inherit;
  border: 1px solid #eee;
  background:#fff;
  overflow:hidden;
  height: 520px;
  width: 220px;

}
.optics-feature-img{
  /*height: 330px;*/
  background:#f3f6ff;
  display:flex;
  align-items:center;
  justify-content:center;
}
.optics-feature-img img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.optics-feature-body{
  padding: 14px 14px 16px;
  box-sizing:border-box;
}
.optics-feature-points{
  list-style:none;
  padding:0;
  margin:0 0 12px;
  color:#555;
  font-size: 13px;
  line-height: 1.8;
}
.optics-feature-en{
  text-align:center;
  color:#111;
}
.optics-feature-en-title{
  font-weight:900;
  font-size: 16px;
}
.optics-feature-en-sub{
  font-weight:800;
  font-size: 12px;
  opacity:.8;
}

.optics-cards{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.optics-cat-cards{
    grid-template-columns: repeat(5, 1fr); 
}

.optics-mini{
  display:block;
  text-decoration:none;
  color:inherit;
  border: 1px solid #eee;
  background:#fff;
  padding: 14px 12px 12px;
  box-sizing:border-box;
  min-height: 210px;
}
.optics-mini:hover{ box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.optics-mini-meta{
  margin-top: 8px;
  text-align:center;
  font-size: 12px;
  color:#666;
}

@media (max-width: 900px){
  .optics-mini-img{
    height: 96px !important;
  }
  .optics-mini-img img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
  }
  .optics-mini-name{
    font-size: 13px !important;
    line-height: 1.3 !important;
    margin-top: 8px !important;
    min-height: 0 !important;
  }
}

