/* 
   正晟挖机配件 - 基础设计系统 
   Version: 1.1 - High-end Interaction Engine
   Colors: Deep Navy (#0a192f), Champagne Gold (#d4af37), White (#FFFFFF)
*/

:root {
    --primary-blue: #0b1e36;      /* 稳重深蓝 */
    --secondary-grey: #2d3748;
    --light-grey: #f8fafc;
    --cta-orange: #eab308;        /* 高级香槟金/琥珀金 */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-soft: 0 10px 30px -5px rgba(11, 30, 54, 0.08);
    --glow-shadow: 0 10px 25px -5px rgba(234, 179, 8, 0.4);
}

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

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    color: var(--primary-blue);
}

/* Header & Nav */
header {
    background: var(--white);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
}

.nav-links {
    display: none; /* Mobile first */
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background-color: var(--primary-blue); /* Fallback */
    color: var(--white);
    display: flex;
    align-items: center;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Wrapper 在最底层 */
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 既然文字要放右边，视频焦点改到右侧对齐，让车体多在左边显示 */
    object-position: right center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 遮罩左右互换：左侧完全透明露出挖机，右侧深色确保文字清晰 */
    background: linear-gradient(270deg, rgba(11, 30, 54, 0.95) 0%, rgba(11, 30, 54, 0.85) 35%, rgba(11, 30, 54, 0.1) 65%, transparent 100%);
    z-index: 1; /* 遮罩盖在视频上 */
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    margin-left: auto;
    margin-right: 0;
    margin-top: 50px;
    text-align: left;
}

.tech-list-link {
    color: var(--text-main);
    font-weight: 500;
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    background: transparent;
}

.tech-list-link:hover {
    background: var(--light-grey);
    color: var(--primary-blue);
    transform: translateX(5px);
}

.hero h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: var(--white);
    box-shadow: var(--glow-shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    margin-left: 15px;
}

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

/* Global Interaction Engine (A1) */
.interactive-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.interactive-btn:hover::before {
    left: 100%;
}

.interactive-btn:hover {
    transform: translateY(-3px) scale(1.02);
}

.btn-primary:hover {
    box-shadow: 0 15px 30px -5px rgba(234, 179, 8, 0.6);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: var(--shadow-soft);
}

/* Product Cards */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.product-card {
    border: 1px solid #eee;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-soft);
    border-color: var(--primary-blue);
}

/* Trust Blocks */
.trust-section {
    background-color: var(--light-grey);
    padding: 60px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    text-align: center;
}

.trust-item h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

/* Footer */
footer {
    background-color: var(--secondary-grey);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-info address {
    font-style: normal;
    margin-top: 15px;
    color: #ccc;
}

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

.map-link {
    background: #444;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Expert Section Styles */
.expert-section {
    background: var(--primary-blue);
    color: var(--white);
    padding: 60px 0;
    margin: 40px 0;
    border-radius: 8px;
}

.expert-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.expert-tag {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.expert-tag:hover {
    background: var(--cta-orange);
    border-color: var(--cta-orange);
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 102, 0, 0.4);
    z-index: 10;
    animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 102, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 102, 0, 0); }
}

/* Tech Encyclopedia Section */
.tech-encyclopedia {
    background: #fff;
    padding: 80px 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.tech-card {
    background: #f8fbff;
    border: 1px solid #eef4ff;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tech-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 43, 92, 0.1);
    border-color: var(--primary-blue);
}

.tech-card .tech-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.tech-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.tech-card p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.tech-card .read-more {
    color: var(--cta-orange);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.tech-card .read-more:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.placeholder-img {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #888;
    border-radius: 4px;
    text-align: center;
    padding: 20px;
}

.placeholder-img svg {
    margin-bottom: 10px;
    opacity: 0.5;
}

/* Comparison Cards */
.comparison-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 40px 0;
}

.compare-card {
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 8px;
    position: relative;
    transition: var(--transition);
}

.compare-card.primary {
    border: 2px solid var(--primary-blue);
    background: #f8fbff;
}

.compare-card .badge {
    position: absolute;
    top: -12px;
    left: 20px;
    padding: 4px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
}

.data-table th, .data-table td {
    border: 1px solid #eee;
    padding: 12px;
    text-align: left;
}

.data-table th {
    background: #f9f9f9;
    color: var(--primary-blue);
}

.matrix-table td {
    text-align: center;
    color: var(--text-muted);
}

.matrix-table .check {
    color: var(--cta-orange);
    font-weight: bold;
}

/* Service Info Block */
.service-policy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

.policy-item {
    background: #fff;
    padding: 25px;
    border-radius: 6px;
    border-left: 4px solid var(--cta-orange);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

@media (min-width: 768px) {
    .comparison-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-policy-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.info-item {
    margin-bottom: 15px;
    display: flex;
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 10px;
}

.info-label {
    font-weight: bold;
    width: 100px;
    color: var(--text-muted);
}

.info-value {
    flex: 1;
    color: var(--text-main);
}
    .nav-links {
        display: flex;
        gap: 30px;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
}
