/*
Theme Name: lgptheme
Theme URI: 
Author: 那条鱼不洗澡
Author URI: 
Description: wanglink dev
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lgptheme
Tags: 
*/
/*搜索弹窗美化*/
#is-search-input-6534,#is-search-input-4174{height:40px}
/*通用修复美化*/
.clickable{cursor: pointer;}
.noliststyle{list-style: none;padding: 0;}
.is-position-sticky{top:100px;}
.izbet-tooltip{color:inherit;border-bottom:none;}
.grap{overflow:auto;}
.grap pre>code {display:none;}
.lwptoc_item br{display:none}.lwptoc_toggle br{display:none}

/*筛选工具*/
body .wpc-filters-main-wrap .wpc-filters-widget-controls-container a.wpc-filters-apply-button, body .wpc-filters-main-wrap a.wpc-filters-submit-button{border-color: #000!important;background-color: #000 !important;width: auto;}

/*渐变hover边框*/
.gcard { position: relative; cursor: pointer; border-radius: 12px; padding:0 8px;transition: transform 0.3s ease, box-shadow 0.3s ease; z-index: 1; }
.gcard:hover { transform: translateY(-4px); }
.gcard::before { content: ""; position: absolute; inset: -2px; border-radius: 14px; background: linear-gradient(60deg, #00c6ff, #0072ff, #ee0979, #ff6a00, #00c6ff); background-size: 300% 300%; z-index: -1; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; padding: 2px; -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.gcard:hover::before { opacity: 1; animation: borderFlow 3s linear infinite; }
@keyframes borderFlow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* 去掉链接/按钮点击、聚焦时的默认 outline */
a:focus, button:focus, .wp-block-button__link:focus {outline: 0 !important;border: none !important;}

/*分类页面页头子分类展示*/
.wl-hover-cover { position: relative; overflow: hidden !important; cursor: pointer; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); transition: all 0.3s ease; }
.wl-hover-cover img.wp-block-cover__image-background { width: 100%; object-fit: cover; transform: scale(1); transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important; }
.wl-hover-cover:hover img.wp-block-cover__image-background { transform: scale(1.1); }
.wl-hover-cover .wp-block-cover__background { opacity: 0 !important; background-color: rgba(15, 23, 42, 0.85) !important; z-index: 1; transition: opacity 0.4s ease !important; }
.wl-hover-cover:hover .wp-block-cover__background { opacity: 1 !important; }
.wl-hover-cover .wp-block-cover__inner-container { z-index: 2; opacity: 0; transform: translateY(20px); transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; }
.wl-hover-cover:hover .wp-block-cover__inner-container { opacity: 1; transform: translateY(0); }
.wl-hover-cover p { margin: 0 !important; line-height: 1; }
.wl-hover-cover a { display: inline-flex !important; align-items: center; justify-content: center; color: #fff !important; font-family: "Barlow", sans-serif; font-size: 16px !important; font-weight: 700; text-decoration: none !important; letter-spacing: 0.5px; padding: 4px 12px; background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 50px; transition: all 0.3s ease; backdrop-filter: blur(4px); }
.wl-hover-cover a::after { content: ' MODELS'; font-size: 11px; font-weight: 500; opacity: 0.8; margin-left: 8px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,0.3); }
.wl-hover-cover a:hover { background-color: #b91c1c !important; border-color: #b91c1c !important; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(185, 28, 28, 0.4); }

/*常用CSS*/
.title-3-c,.title-2-c,.title-1-c{text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;}
.title-2-c{-webkit-line-clamp:2;}
.title-3-c{-webkit-line-clamp:3;}
.title-1-c{-webkit-line-clamp:1;}
.title-2-c a,.title-1-c a{text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;}
.title-2-c a{-webkit-line-clamp:2;}
.title-1-c a{-webkit-line-clamp:1;}

/*首页partner板块图标*/
.zsicon{position: absolute;right: 24px;top: 24px;}

/*归档页面搜索框*/
.searchwrapper { width: 100%; max-width: 500px; margin: 0 auto; }
.searchwrapper .wp-block-search__inside-wrapper { display: flex; width: 100%; border: 1px solid #e5e7eb; background-color: #fff; transition: all 0.3s ease; }
.searchwrapper .wp-block-search__inside-wrapper:focus-within, .searchwrapper .wp-block-search__inside-wrapper:hover { border-color: #9ca3af; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.searchwrapper .wp-block-search__input { flex-grow: 1; border: none !important; background: transparent !important; padding: 12px 16px !important; font-family: "Barlow", sans-serif; font-size: 15px; color: var(--wp--preset--color--contrast); outline: none !important; border-radius: 0 !important; }
.searchwrapper .wp-block-search__button { margin-left: 0 !important; border: none !important; border-radius: 0 !important; background-color: var(--wp--preset--color--primary) !important; color: #fff !important; padding: 0 24px !important; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: background-color 0.2s ease; }
.searchwrapper .wp-block-search__button:hover { background-color: #a11616 !important; }

/*文章页面yarp*/
.yarpp ol { padding-left: 15px; }
.yarpp-related a { font-size: medium; }
.yarpp-related h3 { font-size: inherit; font-weight: normal; color: inherit; }
.yarpp-thumbnails-horizontal { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; }
.yarpp-thumbnail > img, .yarpp-thumbnail-default { width: 100%; height: 100%; margin: 0; }
.yarpp-thumbnails-horizontal .yarpp-thumbnail-title { width: 100%; text-align: center; margin: 30px 0; }
.yarpp-thumbnails-horizontal .yarpp-thumbnail { width: 20.899vw; height: auto; margin: 5px; }
.yarpp-related a { font-weight: normal; text-decoration: none; color: #525252; }
.yarpp-related h3 { color: #525252; }

/*表格美化*/
.grap table { box-shadow: 0 2px 3px -3px rgba(0, 0, 0, 0.1), 0 2px 6px -2px rgba(0, 0, 0, 0.05);width: 100%; border-collapse: collapse; min-width: 600px; border-bottom-left-radius: 8px; margin:16px 0;border-bottom-right-radius: 8px; overflow: hidden; }
.grap thead th { background-color: #525252; color: #ffffff; text-align: left; padding: 15px 20px; font-weight: 600;}
.grap tbody td { padding: 12px 20px; border: 1px solid #eee; vertical-align: middle; }
.grap tbody td:first-child { font-weight: 500; color: #222; }
.grap tbody td:last-child { font-weight: 500; color: #28a745; }
.grap tbody tr:nth-child(even) { background-color: #f8f8f8; }
.grap tbody tr:hover { background-color: #e6f7ff; cursor: pointer; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1); transition: all 0.2s ease-in-out; }
.grap tbody tr:last-child td { border-bottom: none; }
.wp-block-table thead{border: 2px solid #555;}
.grap ul{background: #f5f6f7;margin-top:8px;LIST-STYLE: inside;border-radius: 8px;}
.grap p{padding:8px 0;}

/*超级菜单csS,含js*/
.model-specs { color: var(--wp--preset--color--tertiary); line-height: 1.8 !important; word-spacing: 8px; margin: 0 !important; background-color: var(--wp--preset--color--light-gray); padding: 8px 12px; border-radius: 4px; border-left: 3px solid var(--wp--preset--color--secondary); }
.header-pill-wrapper { position: relative; z-index: 20; transition: border-radius 0.2s ease, background-color 0.3s ease !important; background-color: #fff; }
.h-header.is-menu-open .header-pill-wrapper { border-bottom-left-radius: 0 !important; border-bottom-right-radius: 0 !important; background-color: #fff !important; }
.mega-menu-panel { position: absolute; top: 100%; z-index: 10; left: 50%; transform: translateX(-50%); width: 100vw; background-color: #fff; box-shadow: 0 15px 40px rgba(0,0,0,0.08); opacity: 0; visibility: hidden; pointer-events: none; transition: all 0.25s ease-out; display: flex; flex-direction: column;justify-content: center; padding-bottom: 40px; padding-top: 0px; }
.mega-menu-panel.is-active { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega-menu-panel:not(.is-active) { transform: translateX(-50%) translateY(-10px); }
.mega-menu-panel > .wp-block-group, .mega-menu-panel > .wp-block-columns, .mega-menu-panel > div { width: 100%; margin: 0 auto; }
.js-mega-trigger { position: relative; height: 100%; display: flex; align-items: center; }
.js-mega-trigger::after { content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 60px; background: transparent; z-index: 1001; }
/*粘性页头样式含js*/
.h-header {width: 100%; z-index: 100; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.h-header.scrolled { padding-top: 0 !important; padding-bottom: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; background-color: #fff !important; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); }
.logoimg img{max-height:60px;}
/* 将 sticky 加给它的父级容器 */
header.wp-block-template-part {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/*按钮增加箭头*/
.btn-arrow .wp-block-button__link { display: inline-flex; align-items: center;justify-content: center; }
.btn-arrow .wp-block-button__link::after { content: ''; display: inline-block; width: 1.2em; height: 1.2em; margin-left: 0.2em; background-color: currentColor; -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 17L17 7M17 7H7M17 7V17' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 17L17 7M17 7H7M17 7V17' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; mask-repeat: no-repeat; mask-position: center; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.btn-arrow:hover .wp-block-button__link::after {transform: translate(4px, -4px);}

/*优化列表样式*/
.mega-menu-panel .wp-block-list { list-style: none !important; margin: 0 !important; padding: 0 !important; border-top: 1px solid var(--wp--preset--color--secondary); }
.mega-menu-panel .wp-block-list li { margin: 0 !important; border-bottom: 1px solid var(--wp--preset--color--secondary); }
.mega-menu-panel .wp-block-list li a { display: block; padding: 8px 4px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--wp--preset--color--tertiary); transition: all 0.2s ease; position: relative; }
.mega-menu-panel .wp-block-list li a:hover { color: var(--wp--preset--color--primary); background-color: var(--wp--preset--color--light-gray); padding-left: 12px; }
.mega-menu-panel .wp-block-list li a:hover::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background-color: var(--wp--preset--color--primary); }
/*超级菜单的型号部分*/
.model-grid { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 !important; }
.model-tag { display: inline-flex; align-items: center; justify-content: center; padding: 2px 8px; font-family: "Barlow", sans-serif; font-size: 13px; font-weight: 500; line-height: 1.5; background-color: var(--wp--preset--color--secondary); color: var(--wp--preset--color--tertiary); text-decoration: none !important; border: 1px solid transparent; border-radius: 2px; transition: all 0.2s ease; }
.model-tag:hover { color: var(--wp--preset--color--primary); background-color: #fff; border-color: var(--wp--preset--color--primary); box-shadow: 0 2px 4px rgba(0,0,0,0.05); }

.model-links { margin: 0 !important; line-height: 2.2 !important; }
.model-links a { display: inline-block; text-decoration: none; color: var(--wp--preset--color--tertiary); font-family: "Barlow", sans-serif; font-weight: 500; padding: 2px 6px; margin-right: 4px; border-radius: 2px; background-color: var(--wp--preset--color--secondary); transition: all 0.2s ease; }
.model-links a:hover { color: #fff; background-color: var(--wp--preset--color--primary); }

/*基本区块样式*/
/*列表*/
.wp-block-list{padding: 16px 32px;border-radius: 10px;}
.wp-block-list li{line-height:2;}

/*正文内容*/
.wlcontent p { color: var(--wp--preset--color--tertiary); font-size: 1.125rem; line-height: 1.8; margin-bottom: 1.5em; font-weight: 400; }
.wlcontent .is-style-lead p{ font-size: 1.35rem; color: var(--wp--preset--color--contrast); line-height: 1.6; font-weight: 500; }
.wlcontent h2 { position: relative; font-size: 2rem; font-weight: 700; color: var(--wp--preset--color--contrast); margin-top: 2rem; margin-bottom: 1rem; padding-left: 20px; line-height: 1.3; }
.wlcontent h2::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 6px; height: 70%; background-color: var(--wp--preset--color--primary); }
.wlcontent h3 { font-size: 1.35rem; font-weight: 600; color: var(--wp--preset--color--contrast); margin-top: 2.5rem; margin-bottom: 1rem; display: flex; align-items: center; }
.wlcontent h4 { font-size: 1.125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--wp--preset--color--primary); margin-top: 2rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--wp--preset--color--secondary); padding-bottom: 5px; display: inline-block; }
.wlcontent.wp-block-image img { border-radius: 4px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.wlcontent.wp-block-image:hover img { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04); }
.wlcontent.wp-block-image figcaption { font-size: 13px; color: #9ca3af; text-align: center; margin-top: 10px; font-family: monospace; }
.wlcontent blockquote { border-left: 4px solid var(--wp--preset--color--primary); background-color: var(--wp--preset--color--light-gray); margin: 2rem 0; padding: 1.5rem 2rem; font-style: normal; }
.wlcontent blockquote p { font-size: 1.1rem; font-weight: 500; color: var(--wp--preset--color--contrast); margin-bottom: 0; }
.wlcontent blockquote cite { display: block; margin-top: 10px; font-size: 0.875rem; color: var(--wp--preset--color--tertiary); font-weight: 600; text-transform: uppercase; }
.wlcontent p a:not(.wp-block-button__link) { color: var(--wp--preset--color--contrast); text-decoration: none; background-image: linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)); background-position: 0% 100%; background-repeat: no-repeat; background-size: 100% 1px; transition: background-size 0.3s ease, color 0.3s ease; }
.wlcontent p a:not(.wp-block-button__link):hover { color: var(--wp--preset--color--primary); background-size: 100% 2px; }

/*联系表单美化*/
.custom-contact-form p{margin:0 !important}
.custom-contact-form .row {display: flex;flex-wrap: wrap;gap: 16px;}
.custom-contact-form .column {flex: 1;min-width: 200px;}
.custom-contact-form label {display: block;margin-bottom: 8px;font-weight: bold;font-size: 14px;color: #333;}
.custom-contact-form input[type="text"],.custom-contact-form input[type="email"],.custom-contact-form input[type="tel"],.custom-contact-form input[type="url"],.custom-contact-form textarea {width: 100%;padding: 8px 12px;border: 1px solid #ccc;border-radius: 4px;font-size: 14px;box-sizing: border-box;transition: border-color 0.3s;}
.custom-contact-form input[type="text"]:focus,.custom-contact-form input[type="email"]:focus,.custom-contact-form input[type="tel"]:focus,.custom-contact-form input[type="url"]:focus,.custom-contact-form textarea:focus {border-color: #66afe9;outline: none;}
.custom-contact-form .message-row {flex-direction: column;}
.custom-contact-form .submit-row {text-align: center;margin-top: 24px;}
.custom-contact-form input[type="submit"] {background-color: #1C1C1C;border: none;padding: 10px 20px;color: #fff;font-size: 16px;border-radius: 4px;cursor: pointer;transition: background-color 0.3s;}
.custom-contact-form input[type="submit"]:hover,.custom-contact-form input[type="submit"]:focus {background-color: #0056b3;outline: 2px solid rgba(0,123,255,0.5);}
.custom-contact-form input[type="submit"]:focus {outline: 2px solid #333;outline-offset: 2px;}

/* 联系表单 3、4行全宽 */
.custom-contact-form .row:nth-child(3), .custom-contact-form .row:nth-child(4) { width: 100% !important; display: block !important; }
.custom-contact-form .row:nth-child(3) .column, .custom-contact-form .row:nth-child(4) .column { width: 100% !important; display: block !important; padding: 0 !important; }
.custom-contact-form .row:nth-child(3) input, .custom-contact-form .row:nth-child(4) input { width: 100% !important; box-sizing: border-box !important; }