/* ===== Jiuying Precision Mold - Shared CSS ===== */
/* UTF-8 encoded */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --accent: #f97316;
    --light: #f8fafc;
    --gray: #6b7280;
    --gray-light: #e5e7eb;
    --dark: #1e293b;
    --dark-lighter: #334155;
    --white: #ffffff;
    --success: #10b981;
    --shadow: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
    --shadow-xl: 0 15px 40px rgba(0,0,0,0.08);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

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

/* ===== Navbar ===== */
.navbar {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon { height: 44px; width: auto; display: block; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    color: var(--dark-lighter);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-links a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-links a.btn-quote {
    background: var(--primary);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
}

.nav-links a.btn-quote:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    border-radius: 0 0 30px 30px;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero-cta {
    display: inline-block;
    margin-top: 26px;
    background: var(--accent);
    color: var(--white);
    padding: 14px 36px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(249,115,22,0.3);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249,115,22,0.4);
}

.hero-formats {
    margin-top: 16px;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ===== Hero Badges (ad words) ===== */
.hero-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 18px 0 4px;
}
.hero-badge {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
}
.badge-pro { background: #16a34a; }
.badge-flex { background: #16a34a; }
.badge-time { background: #16a34a; }
.badge-trust { background: #16a34a; }

@media (max-width: 640px) {
    .hero-badges { gap: 8px; }
    .hero-badge { font-size: 0.82rem; padding: 6px 14px; }
}

/* ===== Hero Side Images ===== */
.hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}
.hero-side {
    flex: 0 0 250px;
}
.hero-side img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: block;
}
.hero-center {
    flex: 1 1 auto;
    max-width: 520px;
    text-align: center;
}
@media (max-width: 960px) {
    .hero-side { display: none; }
}

/* ===== Page Header (sub pages) ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    border-radius: 0 0 30px 30px;
}

.page-header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

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

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

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

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.05rem;
    margin-bottom: 50px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Capability Cards ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

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

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

.card-image {
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-body {
    padding: 24px;
}

.card-body h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.card-body p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.card-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.card-link:hover {
    color: var(--primary-dark);
}

/* ===== Capability Detail (Products page) ===== */
.capability-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.capability-detail:last-child {
    margin-bottom: 0;
}

.capability-detail.reverse .capability-detail-image {
    order: 2;
}

.capability-detail-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 320px;
}

.capability-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.capability-detail-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.capability-detail-content p {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 1rem;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.spec-table th {
    text-align: left;
    padding: 10px 16px;
    background: var(--primary-light);
    color: var(--dark);
    font-weight: 600;
    border: 1px solid var(--gray-light);
    width: 40%;
}

.spec-table td {
    padding: 10px 16px;
    border: 1px solid var(--gray-light);
    color: var(--dark-lighter);
}

/* ===== About Section ===== */
.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

/* ===== About Highlights ===== */
.about-highlights {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 26px;
}
.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 112px;
    padding: 14px 10px;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.highlight-item strong {
    font-size: 1.05rem;
    color: var(--primary);
}
.highlight-item span {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 2px;
}

@media (max-width: 640px) {
    .highlight-item { min-width: 92px; padding: 12px 8px; }
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    text-align: center;
    padding: 60px 0;
    border-radius: 30px 30px 0 0;
    margin-top: 0;
}

.cta-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 24px;
}

.cta-button {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 12px 36px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249,115,22,0.4);
}

/* ===== Contact Form ===== */
.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    transition: var(--transition);
}

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

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

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

.form-group small {
    color: var(--gray);
    font-size: 0.8rem;
    display: block;
    margin-top: 6px;
}

.form-submit {
    background: var(--primary);
    color: var(--white);
    padding: 14px 36px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.form-submit:hover {
    background: var(--primary-dark);
}

.form-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

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

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

.contact-info-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.contact-info-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.contact-info-card p {
    color: var(--primary);
    font-weight: 500;
    font-size: 1rem;
}

.contact-info-card .small {
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* ===== Process Steps ===== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.process-step {
    text-align: center;
    padding: 30px;
    background: var(--light);
    border-radius: var(--radius);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.process-step h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.process-step p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 50px 0 30px;
    text-align: center;
}

.footer h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.footer p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #374151;
    font-size: 0.85rem;
}

.footer-secure {
    display: inline-block;
    background: rgba(16,185,129,0.1);
    color: var(--success);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 12px 0;
}

/* ===== Social Connect (Contact page) ===== */
.social-connect {
    text-align: center;
    margin-top: 32px;
}
.social-connect h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text);
}
.social-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.social-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}
.social-btn:hover {
    opacity: 0.85;
}
.social-btn.linkedin { background: #0a66c2; }
.social-btn.whatsapp { background: #25d366; }
.social-btn.facebook { background: #1877f2; }

/* ===== Footer Social Links ===== */
.footer-social {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin: 14px 0 4px;
    flex-wrap: wrap;
}
.footer-social a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-social a:hover {
    color: var(--primary);
}

@media (max-width: 640px) {
    .social-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== News List ===== */
.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--gray-light);
    transition: var(--transition);
}

.news-item:hover {
    background: var(--primary-light);
    border-radius: 8px;
    padding-left: 12px;
    padding-right: 12px;
}

.news-date {
    min-width: 100px;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
    padding-top: 2px;
}

.news-info h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.news-info h3 a {
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.news-info h3 a:hover {
    color: var(--primary);
}

.news-info p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.news-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.news-empty p {
    font-size: 1rem;
}

/* ===== Article Page ===== */
.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    align-items: center;
}

.article-date {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.article-category {
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--dark);
    line-height: 1.3;
}

.article-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--dark);
}

.article-content p {
    color: var(--dark-lighter);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.article-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.article-content li {
    color: var(--dark-lighter);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 4px;
}

.article-content img {
    max-width: 100%;
    border-radius: var(--radius);
    margin: 20px 0;
}

.article-footer {
    margin-top: 40px;
    padding: 24px;
    background: var(--primary-light);
    border-radius: var(--radius);
    text-align: center;
}

.article-footer p {
    font-size: 1.05rem;
    margin: 0;
}

.article-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.article-footer a:hover {
    color: var(--primary-dark);
}

/* ===== Article Media (Photo + PDF) ===== */
.article-media-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
    align-items: stretch;
}

.article-media-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #f1f5f9;
    border: 1px solid var(--gray-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 12px;
}

.article-media-item img {
    max-width: 100%;
    max-height: 460px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.article-media-item embed {
    width: 100%;
    height: 460px;
    border: none;
    border-radius: 8px;
    display: block;
}

.article-pdf-viewer {
    background: #374151;
}

.article-media-full {
    margin: 24px 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #f1f5f9;
    border: 1px solid var(--gray-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 16px;
}

.article-media-full img {
    max-width: 100%;
    max-height: 520px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}

.article-media-full embed {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
    display: block;
}

.article-media-full.article-pdf-viewer {
    background: #374151;
    min-height: 600px;
}

@media (max-width: 768px) {
    .article-media-row {
        grid-template-columns: 1fr;
    }
    .article-media-item embed,
    .article-media-full embed {
        height: 400px;
    }
    .article-media-item img,
    .article-media-full img {
        max-height: 380px;
    }
    .article-media-item,
    .article-media-full {
        min-height: 300px;
    }
}

/* ===== Article Photos ===== */
.article-photos {
    margin: 20px 0;
}

.article-photos img {
    display: block;
    width: 100%;
    max-width: 700px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    box-shadow: var(--shadow-lg);
}

.article-pdf {
    background: var(--primary-light);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 20px 0;
}

.article-pdf a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.article-pdf a:hover {
    color: var(--primary-dark);
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .capability-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .capability-detail.reverse .capability-detail-image {
        order: 0;
    }
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    .process-steps {
        grid-template-columns: 1fr;
    }
    .news-item {
        flex-direction: column;
        gap: 8px;
    }
    .news-date {
        min-width: auto;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .page-header h1 {
        font-size: 1.6rem;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .nav-links a {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    .nav-links a.btn-quote {
        padding: 8px 16px;
    }
    .section {
        padding: 50px 0;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .contact-form-wrapper {
        padding: 24px;
    }
    .logo {
        font-size: 1.2rem;
    }
    .logo-icon { height: 44px; width: auto; display: block; }
}

/* 防垃圾邮件蜜罐字段：对真人完全隐藏，仅机器人会误填 */
.hidden-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Floating WhatsApp button */
.float-wa { position: fixed; right: 20px; bottom: 20px; z-index: 999; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; font-size: 28px; line-height: 56px; text-align: center; text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,0.25); }
.float-wa:hover { background: #1ebe5b; }
/* FAQ */
.faq-list { max-width: 760px; margin: 24px auto 0; text-align: left; }
.faq-item { margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid #e5e7eb; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 1.05rem; color: #16a34a; margin: 0 0 8px; }
.faq-item p { margin: 0; line-height: 1.6; }