/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Child theme for GeneratePress
 Author:       Your Name
 Author URI:   https://yourwebsite.com
 Template:     generatepress
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  generatepress-child
*/

* { padding: 0; margin: 0; }

/* ========== SCPUR Theme Styles ========== */

:root {
    --primary-color: #0099cc;
    --secondary-color: #1a2b4c;
    --text-color: #333;
    --bg-light: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
}

.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.btn-primary { background-color: var(--primary-color); border-color: var(--primary-color); }
.btn-primary:hover { background-color: #007ba3; border-color: #007ba3; }
.btn-outline-primary { color: var(--primary-color); border-color: var(--primary-color); }
.btn-outline-primary:hover { background-color: var(--primary-color); color: #fff; }

/* Header & Topbar */
.top-bar { background-color: #fff; color: #333; padding: 20px 0; border-bottom: 1px solid #eee; }
.top-bar .navbar-brand img { height: 50px; }
.top-bar .top-bar-title { font-size: 22px; font-weight: bold; color: #009bc3; font-family: 'Times New Roman', Times, serif; }
.top-bar .top-bar-title.whatsapp { font-size: 21px; }
.top-bar .top-bar-item { font-size: 15px; color: #333; margin-top: 5px; }
.top-bar .top-bar-item i { color: #ddd; font-size: 18px; }
.top-bar .top-bar-item a { color: #333; text-decoration: none; }
.top-bar .top-bar-item a:hover { color: #009bc3; }
.top-bar .nav-icons a { color: #333; font-size: 1.2rem; margin-left: 15px; transition: 0.3s; }
.top-bar .nav-icons a:hover { color: #009bc3; }

.navbar { padding: 15px 0; transition: all 0.3s ease; }
.navbar-brand img { height: 50px; }
.navbar-nav { margin: 0 auto; }
.navbar-nav .nav-link { font-weight: 600; color: #333; text-transform: capitalize; font-size: 1rem; padding: 10px 20px !important; position: relative; }
.navbar-nav .nav-link::after { content: ''; position: absolute; width: 0; height: 2px; background: var(--primary-color); bottom: 5px; left: 20px; transition: 0.3s; }
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after { width: calc(100% - 40px); }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--primary-color); }

/* Dropdown toggle arrow - 恢复Bootstrap默认箭头并放在文字右侧 */
.navbar-nav .dropdown-toggle::after {
    display: inline-block;
    margin-left: 0;
    vertical-align: 0.15em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    position: static;
    width: auto;
    height: auto;
    background: transparent;
}

/* 下拉菜单激活时箭头向上 */
.navbar-nav .dropdown-toggle.show::after {
    border-top: 0;
    border-bottom: 0.3em solid;
}

/* 让dropdown中的链接和箭头并排显示 */
.navbar-nav .dropdown {
    display: flex;
    align-items: center;
    position: relative;
}

/* 修复下拉菜单位置 */
.navbar-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    transform: none !important;
}

.navbar-nav .dropdown .nav-link:not(.dropdown-toggle) {
    padding-right: 5px !important;
}

.navbar-nav .dropdown-toggle-split {
    padding-left: 5px !important;
    padding-right: 15px !important;
}

/* 移除箭头链接的hover下划线效果 */
.navbar-nav .dropdown-toggle-split::after {
    display: none;
}

/* 保持箭头的显示 */
.navbar-nav .dropdown-toggle-split.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0;
}
.nav-right-icons a { color: #333; font-size: 1.2rem; margin-left: 15px; transition: 0.3s; }
.nav-right-icons a:hover { color: var(--primary-color); }

.navbar-nav .dropdown-menu {
    border: 1px solid #eee;
    border-top: 2px solid var(--primary-color);
    border-radius: 0;
    padding: 10px 0;
    min-width: 240px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.navbar-nav .dropdown-item {
    font-weight: 500;
    color: #333;
    padding: 10px 18px;
    font-size: 0.95rem;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    color: var(--primary-color);
    background-color: rgba(0,153,204,0.06);
}

@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu,
    .navbar .dropdown:focus-within > .dropdown-menu {
        display: block;
    }

    .navbar .dropdown-menu {
        margin-top: 0;
    }
}

/* Hero */
.hero-swiper .swiper-slide { height: 650px; background-size: cover; background-position: center; display: flex; align-items: center; position: relative; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%); }
.hero-content { position: relative; z-index: 10; color: white; text-align: left; max-width: 800px; padding-left: 5%; }
.hero-content h1 { font-size: 4rem; font-weight: 800; margin-bottom: 20px; line-height: 1.2; text-transform: uppercase; }
.hero-content p { font-size: 1.3rem; margin-bottom: 40px; opacity: 0.9; }

.hero-swiper .swiper-button-next, .hero-swiper .swiper-button-prev { color: white; width: 50px; height: 50px; background: rgba(255,255,255,0.1); border-radius: 50%; backdrop-filter: blur(5px); }
.hero-swiper .swiper-button-next:after, .hero-swiper .swiper-button-prev:after { font-size: 1.5rem; }
.hero-swiper .swiper-button-next:hover, .hero-swiper .swiper-button-prev:hover { background: var(--primary-color); }

/* Sections General */
section { padding: 90px 0; }
.section-title { text-align: center; margin-bottom: 60px; font-weight: 700; text-transform: uppercase; color: var(--secondary-color); position: relative; font-size: 2.2rem; }
.section-title::after { content: ''; display: block; width: 80px; height: 4px; background: var(--primary-color); margin: 20px auto 0; border-radius: 2px; }

/* About Section */
.about-section { background-color: #fff; }
.about-section p { line-height: 1.8; color: #666; text-align: center; max-width: 900px; margin: 0 auto 20px; font-size: 1.1rem; }

/* Hot Products */
.product-card { border: 1px solid #eaeaea; padding: 30px 20px; text-align: center; transition: all 0.3s; background: #fff; height: 100%; display: flex; flex-direction: column; align-items: center; border-radius: 8px; }
.product-card:hover { box-shadow: 0 15px 30px rgba(0,0,0,0.08); transform: translateY(-5px); border-color: transparent; }
.product-card h5 { font-size: 1.2rem; margin-bottom: 20px; color: var(--secondary-color); font-weight: 600; min-height: 48px; }
.product-card img { max-width: 100%; height: 220px; object-fit: contain; margin-bottom: 25px; transition: 0.3s; }
.product-card:hover img { transform: scale(1.05); }
.product-card .btn { margin-top: auto; border-radius: 25px; padding: 8px 25px; font-weight: 600; }

.products-nav { background: #fff; border: 1px solid #eaeaea; border-radius: 8px; overflow: hidden; }
.products-nav .nav-link { color: #555; padding: 18px 25px; border-bottom: 1px solid #eaeaea; font-weight: 600; text-align: left; border-radius: 0; font-size: 1.05rem; transition: 0.3s; }
.products-nav .nav-link:last-child { border-bottom: none; }
.products-nav .nav-link.active { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }
.products-nav .nav-link:hover:not(.active) { background-color: #f8f9fa; color: var(--primary-color); }

.product-swiper-container { position: relative; padding: 0 50px; }
.product-swiper-container .swiper-button-next, .product-swiper-container .swiper-button-prev { color: var(--secondary-color); background: white; width: 45px; height: 45px; border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,0.1); border: 1px solid #eee; }
.product-swiper-container .swiper-button-next:after, .product-swiper-container .swiper-button-prev:after { font-size: 1.2rem; }
.product-swiper-container .swiper-button-next:hover, .product-swiper-container .swiper-button-prev:hover { background: var(--primary-color); color: white; border-color: var(--primary-color); }

/* New Energy Section */
.new-energy-section { background: url('https://placehold.co/1920x800/1a2b4c/1a2b4c?text=Factory+Background') center/cover fixed; padding: 120px 0; position: relative; }
.new-energy-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(26, 43, 76, 0.85); }
.new-energy-content { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); padding: 50px; border-radius: 15px; }
.new-energy-content h2 { color: #fff; font-size: 2.2rem; margin-bottom: 25px; line-height: 1.4; }
.new-energy-content p { color: #ddd; font-size: 1.1rem; margin-bottom: 30px; }
.video-box { position: relative; border-radius: 15px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.3); border: 4px solid rgba(255,255,255,0.1); }
.video-box img { width: 100%; display: block; transition: 0.5s; }
.video-box:hover img { transform: scale(1.05); }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 90px; height: 90px; background: rgba(0, 153, 204, 0.8); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; cursor: pointer; transition: 0.3s; z-index: 2; border: 4px solid rgba(255,255,255,0.5); }
.play-btn:hover { background: var(--primary-color); transform: translate(-50%, -50%) scale(1.1); border-color: white; }

/* Why Choose Us */
.why-choose-section { background-color: #f8f9fa; }
.why-card { background: #fff; padding: 50px 40px; border-radius: 10px; height: 100%; position: relative; transition: all 0.4s ease; border: 1px solid #eee; overflow: hidden; z-index: 1; text-align: center; }
.why-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 0; background: var(--primary-color); transition: all 0.4s ease; z-index: -1; }
.why-card:hover::before, .why-card.active::before { height: 100%; }
.why-card:hover, .why-card.active { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,153,204,0.15); border-color: var(--primary-color); }

.why-number { font-size: 5rem; font-weight: 900; color: rgba(0,153,204,0.1); position: absolute; top: 10px; right: 20px; line-height: 1; transition: 0.4s; }
.why-card:hover .why-number, .why-card.active .why-number { color: rgba(255,255,255,0.2); }

.why-icon { width: 80px; height: 80px; background: #f0f8fb; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: var(--primary-color); margin: 0 auto 30px; transition: 0.4s; }
.why-card:hover .why-icon, .why-card.active .why-icon { background: rgba(255,255,255,0.2); color: #fff; }

.why-card h4 { margin-bottom: 20px; font-weight: 700; color: var(--secondary-color); transition: 0.4s; font-size: 1.5rem; }
.why-card p { color: #666; margin-bottom: 0; transition: 0.4s; line-height: 1.7; }
.why-card:hover h4, .why-card.active h4, .why-card:hover p, .why-card.active p { color: white; }
.why-card:hover .btn-outline-primary, .why-card.active .btn-outline-primary { color: #fff; border-color: #fff; background: transparent; }
.why-card:hover .btn-outline-primary:hover, .why-card.active .btn-outline-primary:hover { color: var(--primary-color); background: #fff; border-color: #fff; }

/* Application Tabs */
.app-tabs { border-bottom: 2px solid #eaeaea; margin-bottom: 50px; display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; padding-bottom: 15px; }
.app-tab-item { background: none; border: none; padding: 12px 25px; font-weight: 600; color: #666; font-size: 1.1rem; cursor: pointer; position: relative; transition: 0.3s; border-radius: 30px; }
.app-tab-item:hover { color: var(--primary-color); background: #f0f8fb; }
.app-tab-item span { font-size: 1.2rem; color: #ccc; margin-right: 8px; font-weight: 700; transition: 0.3s; }
.app-tab-item.active { color: #fff; background: var(--primary-color); box-shadow: 0 5px 15px rgba(0,153,204,0.3); }
.app-tab-item.active span { color: rgba(255,255,255,0.7); }
.app-content { display: none; animation: fadeIn 0.6s ease; }
.app-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Contact Section */
.contact-section { background: url('https://placehold.co/1920x800/1a2b4c/ffffff?text=Contact+Us+Background+Image') center/cover no-repeat; position: relative; padding: 100px 0; }
.contact-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(26, 43, 76, 0.85); }
.contact-wrapper { background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
.contact-info-box { background: var(--primary-color); color: white; padding: 50px; height: 100%; }
.contact-info-box h3 { font-weight: 700; margin-bottom: 30px; }
.contact-info-box ul { list-style: none; padding: 0; }
.contact-info-box ul li { display: flex; align-items: flex-start; margin-bottom: 25px; }
.contact-info-box ul li i { font-size: 1.5rem; margin-right: 20px; margin-top: 5px; }
.contact-form-box { padding: 50px; }
.contact-form-box .form-control { background: #f8f9fa; border: 1px solid #eee; padding: 15px 20px; margin-bottom: 20px; border-radius: 8px; transition: 0.3s; }
.contact-form-box .form-control:focus { background: #fff; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0,153,204,0.1); }
.contact-form-box textarea.form-control { height: 150px; resize: none; }

/* Knowledge Center */
.knowledge-card { border: 1px solid #eee; box-shadow: 0 5px 15px rgba(0,0,0,0.03); height: 100%; border-radius: 10px; overflow: hidden; transition: 0.3s; }
.knowledge-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.knowledge-card img { width: 100%; height: 240px; object-fit: cover; transition: 0.5s; }
.knowledge-card:hover img { transform: scale(1.05); }
.img-wrapper { overflow: hidden; }
.knowledge-card .card-body { padding: 30px; background: #fff; position: relative; }
.knowledge-date { color: var(--primary-color); font-size: 0.9rem; margin-bottom: 15px; display: block; font-weight: 600; text-transform: uppercase; }
.knowledge-title { font-weight: 700; font-size: 1.25rem; margin-bottom: 15px; color: var(--secondary-color); text-decoration: none; display: block; line-height: 1.4; transition: 0.3s; }
.knowledge-title:hover { color: var(--primary-color); }
.knowledge-desc { color: #666; font-size: 1rem; line-height: 1.6; }

/* Footer */
.footer { background: var(--secondary-color); color: #bbb; padding: 80px 0 20px; font-size: 0.95rem; }
.footer-logo { margin-bottom: 25px; max-width: 220px; }
.footer h5 { color: white; margin-bottom: 30px; font-weight: 700; font-size: 1.2rem; position: relative; padding-bottom: 10px; }
.footer h5::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--primary-color); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 15px; }
.footer a { color: #bbb; text-decoration: none; transition: 0.3s; }
.footer a:hover { color: var(--primary-color); padding-left: 8px; }
.social-links { margin-top: 25px; display: flex; gap: 15px; }
.social-links a { width: 45px; height: 45px; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; border-radius: 50%; color: white; transition: 0.3s; font-size: 1.2rem; }
.social-links a:hover { background: var(--primary-color); transform: translateY(-3px); padding-left: 0; color: white; }
.newsletter-form .input-group { background: rgba(255,255,255,0.05); border-radius: 30px; padding: 5px; border: 1px solid rgba(255,255,255,0.1); }
.newsletter-form .form-control { background: transparent; border: none; color: white; padding-left: 20px; }
.newsletter-form .form-control::placeholder { color: #888; }
.newsletter-form .form-control:focus { box-shadow: none; }
.newsletter-form .btn { background: var(--primary-color); color: white; border: none; border-radius: 30px !important; padding: 10px 25px; font-weight: 600; }
.newsletter-form .btn:hover { background: #007ba3; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 60px; padding-top: 25px; text-align: center; font-size: 0.9rem; }

/* Floating Widget */
.floating-widget { position: fixed; top: 50%; right: 0; transform: translateY(-50%); z-index: 9999; display: flex; flex-direction: column; background: #fff; border-radius: 30px 0 0 30px; padding: 10px 8px; box-shadow: -5px 0 25px rgba(0,0,0,0.1); border: 1px solid #eee; border-right: none; }
.widget-btn { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #666; font-size: 1.3rem; cursor: pointer; position: relative; margin: 6px 0; transition: 0.3s; background: #f8f9fa; border: none; padding: 0; }
.widget-btn i { position: relative; z-index: 2; }
.widget-btn.primary { background-color: var(--primary-color); color: white; }
.widget-btn:not(.primary):hover { background-color: var(--secondary-color); color: white; }

.widget-tooltip { position: absolute; right: 100%; top: 50%; transform: translateY(-50%); background: var(--primary-color); color: white; padding: 15px 25px 15px 20px; border-radius: 25px 0 0 25px; white-space: nowrap; opacity: 0; visibility: hidden; transition: 0.3s; font-size: 1rem; margin-right: -10px; z-index: 1; box-shadow: -5px 0 15px rgba(0,0,0,0.15); }
.widget-btn:hover .widget-tooltip { opacity: 1; visibility: visible; margin-right: -5px; }
.widget-tooltip div, .widget-tooltip a { margin-bottom: 8px; font-weight: 600; color: white; text-decoration: none; display: block; }
.widget-tooltip div:last-child, .widget-tooltip a:last-child { margin-bottom: 0; }
.widget-tooltip a:hover { color: #ffdd57; }
.widget-btn.whatsapp { background-color: #25D366; color: white; }
.widget-btn.whatsapp:hover { background-color: #128C7E; }

/* Category carousel card */
.category-product-card { border: 1px solid #eaeaea; padding: 30px 20px; text-align: center; transition: all 0.3s; background: #fff; height: 100%; display: flex; flex-direction: column; align-items: center; border-radius: 8px; }
.category-product-card:hover { box-shadow: 0 15px 30px rgba(0,0,0,0.08); transform: translateY(-5px); border-color: transparent; }
.category-product-card img { max-width: 100%; height: 220px; object-fit: contain; margin-bottom: 20px; transition: 0.3s; }
.category-product-card:hover img { transform: scale(1.05); }
.category-product-card h5 { font-size: 1.2rem; margin-bottom: 15px; color: var(--secondary-color); font-weight: 600; }
.category-product-card .btn { margin-top: auto; border-radius: 25px; padding: 8px 25px; font-weight: 600; }

/* Responsive */
@media (max-width: 992px) {
    .navbar-nav { margin: 15px 0; }
    .nav-right-icons { margin-top: 15px; }
    .hero-content h1 { font-size: 3rem; }
    .contact-info-box { padding: 40px 30px; }
    .contact-form-box { padding: 40px 30px; }
}
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }
    .hero-swiper .swiper-slide { height: 500px; }
    .app-tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
    .app-tab-item { white-space: nowrap; }
    .new-energy-content { padding: 30px; }
    .product-swiper-container { padding: 0 10px; }
    .product-swiper-container .swiper-button-next, .product-swiper-container .swiper-button-prev { display: none; }
}

/* ========== Page Banner Styles ========== */
.page-banner {
    min-height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    background-position: center 23%;
    background-image: url(/wp-content/uploads/2026/05/gongsiwaijing.jpg);

}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.page-banner .container {
    position: relative;
    z-index: 1;
}

.page-banner .breadcrumb {
    margin-bottom: 0;
    background: transparent;
    padding: 0;
    font-size: 0.95rem;
}

.page-banner .breadcrumb-item + .breadcrumb-item::before {
    content: ">>";
    color: white;
}

.page-banner .breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.page-banner .breadcrumb a:hover {
    color: white;
}

.page-banner .breadcrumb-item.active {
    color: white;
}

/* ========== Product Description Styles ========== */
.product-description-area {
    margin-top: 30px;
}

.desc-content {
    border: 1px solid #eaeaea;
    border-top: none;
    padding: 30px;
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    background: #fff;
}

.desc-content p {
    margin-bottom: 15px;
    text-indent: 0;
}

.desc-content p:first-child {
    margin-top: 0;
}

/* 标题样式 */
.desc-content strong,
.desc-content b {
    color: #333;
    font-weight: 600;
}

.desc-content h5,
.desc-content h4,
.desc-content h3 {
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 25px;
    margin-bottom: 15px;
}

/* 列表样式 */
.desc-content ul,
.desc-content ol {
    padding-left: 25px;
    margin-bottom: 15px;
}

.desc-content li {
    margin-bottom: 8px;
}

.desc-content ul li::marker {
    color: var(--primary-color);
}

/* 表格样式 - 技术参数表格 */
.desc-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    background: #fff;
}

.desc-content table th,
.desc-content table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}

.desc-content table th {
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    text-align: center;
}

.desc-content table th strong {
    color: #fff;
}

.desc-content table tr:first-child th {
    background: var(--primary-color);
}

.desc-content table tr:nth-child(even) {
    background: #f8f9fa;
}

.desc-content table tr:hover {
    background: #f0f8fb;
}

.desc-content table td strong {
    color: #333;
}

/* 响应式表格 */
@media (max-width: 768px) {
    .desc-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}



