/* ============================================
   HC150 Product Detail Page - Optimized Styles
   Enhancements: Better depth, micro-interactions, refined palette
   ============================================ */

/* ---- Hero Section ---- */
.product-detail-hero {
    background: linear-gradient(135deg, #0f3d5c 0%, #174a6b 40%, #1a5f8a 70%, #0d7aa0 100%);
    color: #fff;
    padding: 5rem 0 4.5rem;
    position: relative;
    overflow: hidden;
}

.product-detail-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -5%;
    width: 55%;
    height: 140%;
    background: url('https://www.thehammer.cn/static/hengda/banner22.jpg') center/cover no-repeat;
    opacity: 0.12;
    transform: skewX(-8deg);
}

.product-detail-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #ffd54f, #ffb300, #ffd54f);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.hero-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 213, 79, 0.4);
    border-radius: 50%;
    animation: floatParticle 6s ease-in-out infinite;
}

.hero-particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.hero-particles span:nth-child(2) { left: 20%; top: 60%; animation-delay: 1s; }
.hero-particles span:nth-child(3) { left: 35%; top: 35%; animation-delay: 2s; }
.hero-particles span:nth-child(4) { left: 50%; top: 70%; animation-delay: 0.5s; }
.hero-particles span:nth-child(5) { left: 70%; top: 25%; animation-delay: 1.5s; }
.hero-particles span:nth-child(6) { left: 85%; top: 55%; animation-delay: 3s; }

@keyframes floatParticle {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
    50% { transform: translateY(-20px) scale(1.5); opacity: 0.8; }
}

.product-detail-hero .container { position: relative; z-index: 1; }

/* ---- Badges ---- */
.product-badge-detail {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.badge-excavator {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #0d47a1;
    box-shadow: 0 2px 8px rgba(13, 71, 161, 0.15);
}
.badge-medium { 
    background: linear-gradient(135deg, #fff8e1, #ffecb3); 
    color: #e65100;
    box-shadow: 0 2px 8px rgba(230, 81, 0, 0.12);
}

.product-detail-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    color: #fff;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.product-model-label {
    font-size: 1.15rem;
    opacity: 0.88;
    margin-bottom: 1.75rem;
    font-weight: 400;
}

/* ---- Key Specs Strip ---- */
.product-key-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2.25rem;
}

.key-spec-item {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 18px;
    padding: 1.4rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.key-spec-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd54f, transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.key-spec-item:hover {
    transform: translateY(-3px);
    border-color: rgba(255,213,79,0.35);
}

.key-spec-item:hover::before { opacity: 1; }

.key-spec-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffd54f;
    display: block;
    letter-spacing: -0.01em;
}

.key-spec-label {
    font-size: 0.82rem;
    opacity: 0.8;
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ---- Image Gallery ---- */
.product-gallery {
    padding: 4.5rem 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #eef3f7 100%);
}

.section-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, #e8f4fd, #dbeafe);
    color: #0d47a1;
    margin-bottom: 0.75rem;
}

.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 {
    font-size: 2.1rem;
    font-weight: 700;
    color: #1f3f58;
    margin: 0.25rem 0 0.75rem;
    letter-spacing: -0.02em;
}
.section-intro {
    max-width: 680px;
    margin: 0 auto;
    color: #5c7a8a;
    font-size: 1rem;
    line-height: 1.7;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 1rem;
    border-radius: 20px;
    overflow: hidden;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item:first-child { grid-row: span 2; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,61,92,0.7) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-caption {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
}

/* ---- Specs Detail ---- */
.specs-detail-section { padding: 4.5rem 0; }

.specs-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.specs-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.75rem 2rem;
    border: 1px solid rgba(23,74,107,0.07);
    box-shadow: 0 4px 24px rgba(37,91,133,0.06);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.specs-card:hover {
    box-shadow: 0 8px 36px rgba(37,91,133,0.12);
    transform: translateY(-2px);
}

.specs-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #174a6b, #1a5f8a);
    border-radius: 4px 0 0 4px;
}

.specs-card h3 {
    color: #1f3f58;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
}

.specs-card h3 i { color: #174a6b; font-size: 1rem; }

.spec-row-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.72rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.spec-row-detail:last-child { border-bottom: none; }

.spec-row-detail .label { color: #6b8fa3; font-size: 0.92rem; }
.spec-row-detail .value { color: #1f3f58; font-weight: 600; font-size: 0.92rem; }

/* ---- Applications ---- */
.applications-section {
    padding: 4.5rem 0;
    background: linear-gradient(180deg, #f0f5f9 0%, #e4eef6 100%);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.app-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(23,74,107,0.06);
    box-shadow: 0 4px 20px rgba(37,91,133,0.05);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
    cursor: default;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(37,91,133,0.13);
    border-color: rgba(23,74,107,0.15);
}

.app-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(145deg, #e8f4fd, #d0e8fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.65rem;
    color: #174a6b;
    transition: transform 0.35s ease, background 0.35s ease;
}

.app-card:hover .app-icon {
    transform: scale(1.1);
    background: linear-gradient(145deg, #dbeafe, #c8e6fa);
}

.app-card h4 {
    color: #1f3f58;
    font-size: 1.05rem;
    margin-bottom: 0.65rem;
    font-weight: 700;
}

.app-card p {
    color: #6b8fa3;
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 0;
}

/* ---- Comparison Table ---- */
.comparison-section { padding: 4.5rem 0; }

.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(37,91,133,0.1);
    border: 1px solid rgba(23,74,107,0.06);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 600px;
}

.comparison-table thead {
    background: linear-gradient(135deg, #0f3d5c, #174a6b);
    color: #fff;
}

.comparison-table th {
    padding: 1.25rem 1.1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.comparison-table td {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #f0f4f8;
    color: #3d5a6e;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.comparison-table tbody tr {
    transition: background 0.2s ease;
}

.comparison-table tbody tr:hover td { background: #f8fbff; }
.comparison-table tbody tr:last-child td { border-bottom: none; }

.highlight-col {
    background: #fffef5 !important;
    font-weight: 700;
    color: #1f3f58;
    position: relative;
}

.highlight-col::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #ffa000, #ffca28);
}

/* ---- Features ---- */
.features-section {
    padding: 4.5rem 0;
    background: linear-gradient(160deg, #f8fafc 0%, #eef4f9 50%, #f5f9fd 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.feature-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.75rem;
    display: flex;
    gap: 1.25rem;
    border: 1px solid rgba(23,74,107,0.06);
    box-shadow: 0 3px 14px rgba(37,91,133,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 28px rgba(37,91,133,0.1);
}

.feature-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: linear-gradient(145deg, #174a6b, #1a5f8a);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(23,74,107,0.25);
}

.feature-content h4 {
    color: #1f3f58;
    font-size: 1.02rem;
    margin-bottom: 0.45rem;
    font-weight: 700;
}

.feature-content p {
    color: #6b8fa3;
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 0;
}

/* ---- Workflow ---- */
.workflow-section {
    padding: 4.5rem 0;
    background: #fff;
}

.workflow-steps {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    position: relative;
    padding: 0 2rem;
}

.workflow-steps::before {
    content: '';
    position: absolute;
    top: 38px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: linear-gradient(90deg, #174a6b, #1a5f8a, #174a6b);
    z-index: 0;
    border-radius: 2px;
}

.workflow-step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    max-width: 160px;
}

.step-number {
    width: 76px;
    height: 76px;
    background: linear-gradient(145deg, #174a6b, #1a5f8a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 auto 1.1rem;
    box-shadow: 0 8px 28px rgba(23,74,107,0.3);
    border: 3px solid rgba(255,255,255,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.workflow-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 12px 36px rgba(23,74,107,0.4);
}

.workflow-step h4 {
    color: #1f3f58;
    font-size: 0.98rem;
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.workflow-step p {
    color: #7a9ab0;
    font-size: 0.82rem;
    line-height: 1.5;
}

/* ---- FAQ ---- */
.faq-section {
    padding: 4.5rem 0;
    background: linear-gradient(180deg, #f0f5f9 0%, #e8eef5 100%);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.faq-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.6rem 1.75rem;
    border: 1px solid rgba(23,74,107,0.07);
    box-shadow: 0 3px 14px rgba(37,91,133,0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: default;
}

.faq-card:hover {
    box-shadow: 0 8px 28px rgba(37,91,133,0.1);
    transform: translateY(-2px);
}

.faq-card h3 {
    color: #1f3f58;
    font-size: 1rem;
    margin-bottom: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.faq-card h3::before {
    content: 'Q';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: linear-gradient(135deg, #174a6b, #1a5f8a);
    color: #fff;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    margin-top: 2px;
}

.faq-card p {
    color: #5c7a8a;
    font-size: 0.88rem;
    line-height: 1.7;
    margin: 0;
    padding-left: 28px;
}

/* ---- CTA Section ---- */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0f3d5c 0%, #174a6b 50%, #1a5f8a 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,213,79,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-content p {
    color: rgba(255,255,255,0.82);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 16px rgba(37,211,102,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,211,102,0.4);
    text-decoration: none;
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-outline-light:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    text-decoration: none;
}

.cta-email {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .product-detail-title { font-size: 2.2rem; }
    .product-key-specs { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, 200px); }
    .gallery-item:first-child { grid-row: span 1; }
    .specs-detail-grid { grid-template-columns: 1fr; }
    .app-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
    .workflow-steps { flex-wrap: wrap; gap: 2rem; justify-content: center; }
    .workflow-steps::before { display: none; }
}

@media (max-width: 768px) {
    .product-detail-hero { padding: 3.5rem 0 3rem; }
    .product-detail-title { font-size: 1.85rem; }
    .product-key-specs { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .key-spec-item { padding: 1rem 0.75rem; }
    .key-spec-value { font-size: 1.4rem; }
    .section-header h2 { font-size: 1.7rem; }
    .app-grid { grid-template-columns: 1fr; }
    .cta-content h2 { font-size: 1.7rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
}