/*
Theme Name: 中宏兴石油设备
Theme URI: https://www.zhonghongxing.com
Description: 中宏兴石油设备官方网站主题 - 中英文双语
Version: 1.0.0
Author: ZhongHongXing
Author URI: https://www.zhonghongxing.com
Text Domain: zhonghongxing
Domain Path: /languages
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ===== CSS Variables ===== */
:root {
    --primary-color: #003366;
    --secondary-color: #0066CC;
    --accent-color: #FF6600;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

body.en {
    font-family: 'Arial', 'Helvetica', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    background: var(--primary-color);
    padding: 8px 0;
}

.header-top-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.lang-switch {
    display: flex;
    gap: 10px;
}

.lang-switch a {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
    transition: var(--transition);
}

.lang-switch a:hover,
.lang-switch a.active {
    color: var(--white);
    background: rgba(255,255,255,0.2);
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    background: var(--white);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-item:hover .nav-link {
    color: var(--secondary-color);
}

.nav-arrow {
    font-size: 10px;
    transition: var(--transition);
}

.nav-item:hover .nav-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 10px 0;
}

.nav-item:hover .submenu {
    opacity: 1;
    visibility: visible;
}

.submenu li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
}

.submenu li a:hover {
    background: var(--bg-light);
    color: var(--secondary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* ===== Hero Banner ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 110px;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,51,102,0.8) 0%, rgba(0,102,204,0.6) 100%);
}

.slide-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.slide-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

.slide-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.slide-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent-color);
    color: var(--white);
    font-size: 16px;
    border-radius: 50px;
    transition: var(--transition);
    animation: fadeInUp 1s ease 0.4s both;
}

.slide-btn:hover {
    background: #e65500;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,102,0,0.3);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

.slider-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 20;
}

.slider-arrow {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.slider-arrow:hover {
    background: var(--accent-color);
}

/* ===== About Section ===== */
.about-section {
    padding: 80px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 16px;
    line-height: 2;
    color: var(--text-light);
    margin-bottom: 30px;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 14px;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-more:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* ===== Products Section ===== */
.products-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,51,102,0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.overlay-text {
    color: var(--white);
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

.product-info {
    padding: 25px;
}

.product-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.product-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== Product Series Section ===== */
.product-series-section {
    padding: 80px 0;
    background: var(--white);
}

.product-series-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.product-series-section .section-title {
    font-size: 32px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.product-series-section .section-subtitle {
    font-size: 16px;
    color: var(--text-light);
}

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

.product-series-card {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #eef3f8 100%);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e8edf2;
    overflow: hidden;
}

.product-series-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-series-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 51, 102, 0.15);
    border-color: var(--secondary-color);
}

.product-series-card:hover::before {
    transform: scaleX(1);
}

.product-series-card .card-image {
    width: 100%;
    height: 140px;
    margin-bottom: 16px;
    overflow: hidden;
    border-radius: 8px;
}

.product-series-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-series-card:hover .card-image img {
    transform: scale(1.05);
}

.product-series-card .card-title {
    font-size: 17px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.product-series-card .card-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* ===== Stats Section ===== */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    opacity: 0.1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-number {
    font-size: 60px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-unit {
    font-size: 30px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* ===== News Section ===== */
.news-section {
    padding: 80px 0;
    background: var(--white);
}

.news-list {
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.news-item:hover {
    background: var(--bg-light);
    margin: 0 -20px;
    padding: 30px 20px;
}

.news-date {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
}

.news-day {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.news-month {
    font-size: 14px;
    color: var(--text-light);
}

.news-content h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 10px;
    transition: var(--transition);
}

.news-item:hover .news-content h3 {
    color: var(--secondary-color);
}

.news-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== Contact CTA ===== */
.contact-cta {
    padding: 80px 0;
    background: var(--bg-light);
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 35px;
    background: var(--accent-color);
    color: var(--white);
    font-size: 16px;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #e65500;
    transform: translateY(-3px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 35px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 16px;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* ===== Footer ===== */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.8;
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    font-size: 14px;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-contact i {
    margin-right: 8px;
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-color);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    opacity: 0.6;
}

/* ===== Floating Contact ===== */
.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
}

.floating-btn {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255,102,0,0.3);
    transition: var(--transition);
}

.floating-btn:hover {
    transform: scale(1.1);
}

.floating-menu {
    position: absolute;
    right: 60px;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.floating-contact:hover .floating-menu {
    opacity: 1;
    visibility: visible;
}

.floating-menu a {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* ===== Page Header ===== */
.page-header {
    padding: 180px 0 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    text-align: center;
    color: var(--white);
}

.page-title {
    font-size: 42px;
    margin-bottom: 15px;
}

.page-breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    opacity: 0.8;
}

.page-breadcrumb a:hover {
    opacity: 1;
}

/* ===== Page Content ===== */
.page-content {
    padding: 80px 0;
}

.content-block {
    margin-bottom: 60px;
}

.content-block h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.content-block p {
    font-size: 16px;
    line-height: 2;
    color: var(--text-light);
}

/* ===== Contact Page ===== */
.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.contact-card i {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-card p {
    font-size: 14px;
    color: var(--text-light);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--accent-color);
    color: var(--white);
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: #e65500;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .product-series-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-series-card {
        padding: 24px 16px;
    }

    .product-series-card .card-icon {
        width: 56px;
        height: 56px;
    }

    .product-series-card .card-icon i {
        font-size: 22px;
    }

    .product-series-card .card-title {
        font-size: 15px;
    }

    .product-series-card .card-desc {
        font-size: 12px;
    }

    .nav-list {
        position: fixed;
        top: 110px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-list.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .submenu {
        position: static;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-number {
        font-size: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .slide-title {
        font-size: 32px;
    }
    
    .slide-subtitle {
        font-size: 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
