/* 上海上诚泵阀 - 排污泵专业网站样式 */
:root {
    --primary: #0a2540;
    --primary-light: #1a3a5c;
    --accent: #e66b1a;
    --accent-dark: #c45a15;
    --text: #1f2937;
    --text-light: #4b5563;
    --text-muted: #6b7280;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --radius: 8px;
    --radius-lg: 12px;
    --max-width: 1280px;
    --header-height: 72px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent);
}

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

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

/* Header */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
}

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

.logo img {
    height: 56px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-brand {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.logo-tagline {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.2;
}

.main-nav {
    display: flex;
    gap: 32px;
}

.main-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    padding: 8px 0;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent);
}

.main-nav a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: #fff8f3;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 14px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="80" cy="40" r="2" fill="rgba(255,255,255,0.06)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.6;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 22px;
    opacity: 0.95;
    margin-bottom: 24px;
    font-weight: 400;
}

.hero-desc {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 32px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hero-quick-links a {
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.hero-quick-links a:hover {
    background: var(--accent);
    color: #fff;
}

/* Section */
.section {
    padding: 80px 0;
}

.section-gray {
    background: var(--bg-light);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    text-align: center;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-light);
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.section-header-left {
    text-align: left;
}

.section-header-left .section-subtitle {
    text-align: left;
    margin-left: 0;
}

/* Intro */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

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

.intro-content p {
    margin-bottom: 16px;
    color: var(--text-light);
}

.intro-list {
    list-style: none;
    margin-top: 24px;
}

.intro-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.intro-list li::before {
    content: "✓";
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
}

.intro-image {
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
}

.intro-image img {
    max-height: 320px;
    object-fit: contain;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

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

.card-image {
    height: 200px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card-image img {
    max-height: 160px;
    object-fit: contain;
}

.card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.card-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-meta span {
    background: var(--bg-gray);
    padding: 2px 8px;
    border-radius: 4px;
}

.card-text {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
    flex: 1;
}

.card-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Filter tags */
.filter-group {
    margin-bottom: 32px;
}

.filter-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-light);
    transition: all 0.2s;
}

.filter-tag:hover,
.filter-tag.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Tables */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 24px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--bg);
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--bg-gray);
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

tr:hover td {
    background: var(--bg-light);
}

/* Product detail */
.product-hero {
    background: var(--bg-light);
    padding: 60px 0;
}

.product-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: center;
}

.product-image {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.product-image img {
    max-height: 320px;
}

.product-info h1 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 12px;
}

.product-type {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.product-specs-inline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.spec-item {
    background: #fff;
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.spec-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.spec-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

/* Content */
.content-section {
    padding: 60px 0;
}

.content-section h2 {
    font-size: 26px;
    color: var(--primary);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.content-section h3 {
    font-size: 20px;
    color: var(--primary-light);
    margin: 28px 0 14px;
}

.content-section p {
    margin-bottom: 16px;
    color: var(--text-light);
}

.content-section ul,
.content-section ol {
    margin: 16px 0 16px 24px;
    color: var(--text-light);
}

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

.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

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

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

/* Selection center */
.selection-form {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group select {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(230,107,26,0.1);
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-question {
    padding: 18px 24px;
    background: var(--bg-light);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 20px 24px;
    color: var(--text-light);
    border-top: 1px solid var(--border);
}

/* Troubleshooting */
.trouble-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
}

.trouble-card h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.trouble-section {
    margin-bottom: 16px;
}

.trouble-section h4 {
    font-size: 15px;
    color: var(--accent);
    margin-bottom: 8px;
}

/* Compare table */
.compare-table th:first-child,
.compare-table td:first-child {
    background: var(--bg-light);
    font-weight: 600;
}

/* Footer */
.site-footer {
    background: var(--primary);
    color: #fff;
    padding: 60px 0 24px;
}

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

.footer-brand img {
    height: 48px;
    margin-bottom: 16px;
    background: #fff;
    padding: 6px;
    border-radius: 4px;
}

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

.footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

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

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

.footer-links a {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent);
}

/* 产品说明书下载 */
.manual-box {
    margin-top: 48px;
    padding: 28px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.manual-box h2 {
    margin-top: 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.manual-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 22px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.manual-link:hover {
    background: var(--accent);
    color: #fff;
}

.manual-icon {
    font-size: 18px;
}

.manual-arrow {
    margin-left: 6px;
    transition: transform 0.2s;
}

.manual-link:hover .manual-arrow {
    transform: translateX(4px);
}

.footer-contact p {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 10px;
}

.footer-contact a {
    color: rgba(255,255,255,0.85);
}

.footer-contact a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    opacity: 0.7;
}

.footer-bottom a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* CTA sections */
.cta-section {
    background: var(--primary);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.cta-section p {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 28px;
}

/* Utility */
.text-center { text-align: center; }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }
.highlight { color: var(--accent); font-weight: 700; }
.tag { display: inline-block; padding: 2px 8px; background: var(--bg-gray); border-radius: 4px; font-size: 13px; color: var(--text-light); }

/* Responsive */
@media (max-width: 1024px) {
    .hero-inner,
    .intro-grid,
    .product-hero-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }
    .main-nav.active {
        display: flex;
    }
    .menu-toggle {
        display: flex;
    }
    .hero {
        padding: 60px 0;
    }
    .hero h1 {
        font-size: 36px;
    }
    .hero-subtitle {
        font-size: 18px;
    }
    .hero-quick-links {
        grid-template-columns: 1fr;
    }
    .product-specs-inline {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .product-specs-inline {
        grid-template-columns: 1fr;
    }
}

/* CTA 电话 */
.cta-phone {
    font-size: 22px;
    color: var(--accent);
    margin: 12px 0 16px;
}

.cta-phone a {
    color: var(--accent);
    font-weight: 700;
}

/* 极简联系页 */
.contact-section {
    display: flex;
    flex-direction: column;
}

.contact-section .container {
    display: flex;
    flex-direction: column;
    min-height: 60vh;
}

.contact-section h1 {
    margin-bottom: 0;
}

.contact-simple {
    max-width: 560px;
    margin: auto 0 0 auto;
    padding: 32px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.contact-info {
    display: grid;
    gap: 18px;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
}

.contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-item strong {
    color: var(--text-light);
    font-weight: 500;
    width: 60px;
}

.contact-item span {
    color: var(--text);
    text-align: right;
    flex: 1;
    margin-left: 20px;
}

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

@media (max-width: 768px) {
    .contact-simple {
        margin: 24px 0 0;
        padding: 24px;
    }
    .contact-item {
        flex-direction: column;
        gap: 6px;
    }
    .contact-item span {
        text-align: left;
        margin-left: 0;
    }
}
