/*
Theme Name: Lydh
Theme URI: https://wordpress.org/themes/Lydh
Author: Justin.Xiao
Author URI: https://wordpress.org
Description: Twenty Twenty-Three is designed to take advantage of the new design tools introduced in WordPress 6.1. With a clean, blank base as a starting point, this default theme includes ten diverse style variations created by members of the WordPress community. Whether you want to build a complex or incredibly simple website, you can do it quickly and intuitively through the bundled styles or dive into creation and full customization yourself.
Requires at least: 6.1
Tested up to: 7.0
Requires PHP: 5.6
Version: 1.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Text Domain: Lydh
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/
.webmenu {

    display: flex;
    gap: 30px;
}


/* 基础样式复位 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    color: #333;
    background-color: #fff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 顶部导航栏 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
    width: 80%;
    margin: 0 auto;
}

.max-width {
    width: 100%;
}

.logo {
    font-weight: bold;
    font-size: 20px;
    color: #0b1d3a;
}

.logo-img {
    width: 100px;
}
.logo span {
    color: #f5b026;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    font-weight: bold;
    font-size: 14px;
    color: #f5b026;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #0b1d3a;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-quote {
    background-color: #f5b026;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-quote:hover {
    background-color: #e09f1b;
}

.webmenu span {
    font-size: 16px;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 5%;
    font-size: 12px;
    color: #777;
}

/* 主体布局 */
.container {
    display: flex;
    padding: 0 5% 40px 5%;
    gap: 40px;
}

/* 侧边栏 */
aside {
    width: 20%;
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.category-list {
    list-style: none;
}

.category-list li {
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.category-list li.active {
    color: #f5b026;
    font-weight: bold;
}


.menu-item-has-children {
    position: relative;
}

.menu-item-has-children .sub-menu {
    display: none;
    position: absolute;
}

.menu-item-has-children:hover .sub-menu {
    display: block;
    background-color: #fff;
    margin-left: -10px;
    padding-top: 20px;
}

.sub-menu li{
    padding: 10px;
    word-wrap: none;
    width: 250px;

}



/* 产品详情主区域 */
main {
    width: 80%;
}

.product-essential {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.product-gallery {
    width: 50%;
}

.main-img {
    width: 100%;
    border: 1px solid #eee;
    background-color: #f9f9f9;
}

.thumb-images {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.thumb-images img {
    width: calc(25% - 8px);
    border: 1px solid #eee;
    cursor: pointer;
}

.product-info {
    width: 50%;
}

.product-title {
    font-size: 24px;
    color: #0b1d3a;
    margin-bottom: 20px;
}

.meta-info {
    margin-top: 20px;
    font-size: 14px;
    color: #555;
}

/* 标签页区域 */
.tabs {
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.tab-item {
    padding: 10px 0;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab-item.active {
    border-bottom-color: #0b1d3a;
}

.tab-content {
    font-size: 14px;
    color: #666;
    margin-bottom: 50px;
}

.tab-content ul {
    list-style: none;
    margin-bottom: 15px;
}

.tab-content ul li {
    margin-bottom: 5px;
}

/* 相关产品区域 */
.related-products-section h3 {
    font-size: 18px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    text-align: center;
    font-size: 13px;
}

.product-card img {
    width: 100%;
    background: #f9f9f9;
    border: 1px solid #eee;
    margin-bottom: 10px;
}

.product-card .p-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    height: 36px;
    overflow: hidden;
}

.product-card .p-cat {
    color: #999;
    font-size: 11px;
}

/* 页脚区域 */
footer {
    background-color: #0d2347;
    color: #fff;
    padding: 60px 5% 20px 5%;
    font-size: 14px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    border-bottom: 1px solid #1a355e;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #a0b2cb;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #fff;
}

.contact-info p {
    margin-bottom: 10px;
    color: #a0b2cb;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    font-size: 12px;
    color: #a0b2cb;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }

    aside {
        width: 100%;
    }

    main {
        width: 100%;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .product-essential {
        flex-direction: column;
    }

    .product-gallery,
    .product-info {
        width: 100%;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    header {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}