/* 上海晶汪泵业制造有限公司 官网样式 */

/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色调 - 深蓝色系 */
    --primary-color: #0066cc;
    --primary-dark: #004d99;
    --primary-light: #3399ff;
    
    /* 辅助色 - 金色 */
    --accent-color: #d4a54d;
    --accent-light: #e6c07a;
    
    /* 中性色 */
    --text-color: #1a1a2e;
    --text-light: #4a4a68;
    --text-muted: #8a8aa0;
    
    /* 背景色 */
    --bg-white: #ffffff;
    --bg-light: #f5f7fa;
    --bg-gray: #eef1f5;
    --bg-dark: #1a1a2e;
    --bg-darker: #0d0d1a;
    
    /* 边框和阴影 */
    --border-color: #d0d5dd;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    
    /* 尺寸 */
    --max-width: 1200px;
    --border-radius: 8px;
    --border-radius-lg: 16px;
    
    /* 过渡 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
    font-size: 16px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

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

/* ========== 头部样式 ========== */
.site-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 10px 0;
    font-size: 14px;
    color: rgba(255,255,255,0.95);
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-main {
    padding: 20px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.logo-text h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.logo-text p {
    font-size: 12px;
    color: var(--text-light);
    letter-spacing: 1px;
}

/* 导航菜单 */
.main-nav > ul {
    list-style: none;
    display: flex;
    gap: 5px;
    align-items: center;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav a {
    font-weight: 500;
    font-size: 15px;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    display: block;
    color: var(--text-color);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
    background: rgba(0, 102, 204, 0.08);
}

/* 下拉菜单 - 竖列布局 */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--bg-white);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 25px 30px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
    margin-top: 10px;
    min-width: auto;
}

/* 强制竖列布局 - 覆盖flex */
.sub-menu {
    display: grid !important;
    grid-template-rows: repeat(6, auto);
    grid-auto-flow: column;
    gap: 8px 40px;
}

.sub-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--bg-white);
}

.main-nav > ul > li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.sub-menu li {
    list-style: none;
}

.sub-menu a {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sub-menu a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
}

.sub-menu a:hover {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.08), rgba(0, 102, 204, 0.05));
    color: var(--primary-color);
}

.sub-menu a:hover::before {
    opacity: 1;
}

/* 响应式下拉菜单 */
@media (max-width: 768px) {
    .sub-menu {
        position: static;
        transform: none;
        box-shadow: none;
        grid-template-columns: 1fr;
        min-width: auto;
        padding: 10px;
        margin-top: 0;
        background: var(--bg-light);
    }
    
    .sub-menu::before {
        display: none;
    }
    
    .main-nav > ul > li:hover .sub-menu {
        transform: none;
    }
}

/* ========== 轮播图 ========== */
.banner-section {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
}

.banner-slider {
    position: relative;
    height: 100%;
}

.banner-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-item.active {
    opacity: 1;
}

.banner-content {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 0 20px;
}

.banner-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.banner-content p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

.banner-btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--accent-color);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
}

.banner-btn:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 165, 77, 0.4);
}

.banner-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

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

.banner-indicator.active {
    background: #fff;
    width: 36px;
    border-radius: 6px;
}

/* ========== 产品展示 ========== */
.products-section {
    padding: 100px 0;
    background: var(--bg-white);
}

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

.section-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
}

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

.section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 20px auto 0;
    border-radius: 2px;
}

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

.product-item {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.product-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: var(--transition);
}

.product-item:hover .product-image img {
    transform: scale(1.08);
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.product-info p {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== 公司简介 ========== */
.about-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 3px solid var(--primary-color);
    border-radius: var(--border-radius-lg);
    z-index: -1;
}

.about-text h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 25px;
}

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

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.feature-text {
    font-weight: 500;
    color: var(--text-color);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    margin-top: 30px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========== 优势展示 ========== */
.advantages-section {
    padding: 100px 0;
    background: var(--bg-white);
}

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

.advantage-item {
    text-align: center;
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    background: var(--bg-light);
    transition: var(--transition);
}

.advantage-item:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: white;
}

.advantage-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
}

.advantage-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ========== 页脚 ========== */
.site-footer {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    color: #e0e0e0;
}

.footer-content {
    padding: 70px 0 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 25px 0;
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ========== 内页通用样式 ========== */
.page-banner {
    height: 300px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.page-banner h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-banner p {
    font-size: 18px;
    opacity: 0.9;
}

.breadcrumb {
    padding: 20px 0;
    background: var(--bg-light);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb span {
    color: var(--text-muted);
    margin: 0 10px;
}

.page-content {
    padding: 80px 0;
}

/* ========== 产品列表页 ========== */
.product-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-card .product-image {
    height: 220px;
}

.product-card .product-info {
    padding: 25px;
}

.product-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}

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

/* ========== 关于我们页 ========== */
.about-page-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-page-content h2 {
    font-size: 28px;
    color: var(--text-color);
    margin: 40px 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-gray);
}

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

/* ========== 联系我们页 ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info-list {
    list-style: none;
}

.contact-info-list li {
    display: flex;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

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

.contact-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius-lg);
}

.contact-form h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-color);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 15px;
    transition: var(--transition);
    background: var(--bg-white);
}

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

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

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-main .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .banner-section {
        height: 400px;
    }
    
    .banner-content h2 {
        font-size: 32px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .product-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .products-section,
    .about-section,
    .advantages-section {
        padding: 60px 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .page-banner h1 {
        font-size: 28px;
    }
}

