/* css/products.css 补充 2 Layer 专属样式 */

/* --- 24-Hour Quick Turn Badge --- */
.quick-turn-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 65, 0.15);
    border: 1px solid var(--pcb-glow);
    color: var(--pcb-glow);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 65, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 65, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 65, 0); }
}

/* --- Process Timeline (Upload -> DFM -> Fab -> Ship) --- */
.process-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 50px 0;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: var(--pcb-trace);
    z-index: 0;
}

.timeline-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 25%;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--pcb-dark);
    border: 2px solid var(--pcb-glow);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.15);
    transition: transform 0.3s;
}

.timeline-step:hover .step-icon {
    transform: scale(1.1);
    background: rgba(0, 255, 65, 0.1);
}

.step-icon svg {
    width: 35px;
    height: 35px;
    fill: var(--pcb-glow);
}

.timeline-step h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.timeline-step p {
    color: var(--text-main);
    font-size: 0.9rem;
}

/* 响应式补充 */
@media (max-width: 768px) {
    .process-timeline {
        flex-direction: column;
        gap: 30px;
    }
    .process-timeline::before {
        display: none;
    }
    .timeline-step {
        width: 100%;
        flex-direction: row;
        text-align: left;
        gap: 20px;
    }
    .step-icon {
        margin-bottom: 0;
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }
    .step-icon svg {
        width: 25px;
        height: 25px;
    }
}
/* --- Stackup Visualizer (4 Layer) --- */
.stackup-container {
    background: rgba(5, 20, 10, 0.8);
    border: 1px solid var(--pcb-trace);
    border-radius: 12px;
    padding: 40px;
    margin: 40px 0;
}

.stackup-diagram {
    display: flex;
    flex-direction: column;
    gap: 4px;
    perspective: 1000px;
}

.stackup-layer {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: default;
    transform: rotateX(10deg);
}

.stackup-layer:hover {
    transform: rotateX(0) scale(1.02);
    z-index: 10;
}

.layer-cu {
    background: linear-gradient(90deg, #b87333, #d49559, #b87333);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    box-shadow: 0 4px 6px rgba(0,0,0,0.4);
    height: 30px;
}

.layer-prepreg {
    background: repeating-linear-gradient(45deg, #2c3e30, #2c3e30 10px, #364d3b 10px, #364d3b 20px);
    color: #8da696;
    height: 35px;
    border: 1px dashed var(--pcb-trace);
}

.layer-core {
    background: #1a4225;
    color: var(--pcb-glow);
    height: 50px;
    border: 2px solid #00ff41;
}

.layer-desc {
    font-size: 0.9rem;
    font-weight: normal;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .stackup-layer {
        flex-direction: column;
        justify-content: center;
        height: auto !important;
        padding: 10px;
        transform: none;
    }
    .stackup-layer:hover {
        transform: scale(1.02);
    }
    .layer-desc {
        font-size: 0.8rem;
    }
}
/* --- HDI & Vias Showcase (8 Layer) --- */
.via-showcase {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.via-type {
    background: rgba(5, 20, 10, 0.8);
    border: 1px solid var(--pcb-trace);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    width: 300px;
    transition: all 0.3s;
}

.via-type:hover {
    border-color: var(--pcb-glow);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.15);
    transform: translateY(-5px);
}

.via-graphic {
    width: 100%;
    height: 150px;
    margin-bottom: 20px;
    position: relative;
    border: 1px dashed var(--pcb-trace);
    background: repeating-linear-gradient(180deg, #1a4225 0, #1a4225 15px, #2c3e30 15px, #2c3e30 30px);
}

/* 模拟过孔的 CSS 绘图 */
.via-hole {
    position: absolute;
    width: 20px;
    background: linear-gradient(90deg, #d49559, #fff, #d49559);
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(212, 149, 89, 0.5);
}

.via-hole.through {
    top: 0;
    bottom: 0;
}

.via-hole.blind {
    top: 0;
    height: 45px; /* 连接 L1 到 L2/L3 */
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.via-hole.buried {
    top: 45px;
    height: 60px; /* 连接内层 */
    border-radius: 10px;
}

.via-type h4 {
    color: var(--pcb-glow);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.via-type p {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 文字排版优化 (适用于长文本页面) */
.long-article h3 {
    color: #fff;
    font-size: 1.8rem;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--pcb-trace);
}

.long-article p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.long-article ul {
    margin-bottom: 30px;
    padding-left: 20px;
}

.long-article li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-main);
}
/* --- Trust Badges (10 Layer) --- */
.trust-badges {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(5, 20, 10, 0.9);
    border: 1px solid var(--pcb-trace);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    color: var(--text-main);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s, color 0.3s;
}

.badge:hover {
    border-color: var(--pcb-glow);
    color: var(--pcb-glow);
}

.badge svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* --- Quality Control Methods --- */
.qc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.qc-card {
    background: linear-gradient(135deg, rgba(26, 66, 37, 0.3), rgba(5, 20, 10, 0.9));
    border-left: 4px solid var(--pcb-glow);
    padding: 30px;
    border-radius: 0 8px 8px 0;
    transition: transform 0.3s;
}

.qc-card:hover {
    transform: translateX(10px);
    box-shadow: -5px 10px 20px rgba(0, 255, 65, 0.1);
}

.qc-card h4 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qc-card h4::before {
    content: '■';
    color: var(--pcb-glow);
    font-size: 1.2rem;
}

.qc-card p {
    color: var(--text-main);
    line-height: 1.6;
    font-size: 1.05rem;
}
/* --- High-Frequency Materials Table --- */
.hf-materials {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hf-card {
    flex: 1;
    min-width: 250px;
    background: rgba(5, 20, 10, 0.6);
    border: 1px solid var(--pcb-trace);
    border-top: 4px solid var(--pcb-glow);
    padding: 25px;
    border-radius: 8px;
    transition: all 0.3s;
}

.hf-card:hover {
    background: rgba(26, 66, 37, 0.4);
    border-color: var(--pcb-glow);
    transform: translateY(-5px);
}

.hf-card h4 {
    color: var(--pcb-glow);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-family: monospace;
}

.hf-card p {
    color: #fff;
    font-weight: bold;
    margin-bottom: 15px;
}

.hf-card ul {
    list-style: none;
    padding: 0;
}

.hf-card li {
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hf-card li::before {
    content: '⚡';
    color: #ffcc00;
    font-size: 0.8rem;
}
/* --- Manufacturing Limits Section (14 Layer) --- */
.limits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.limit-card {
    background: rgba(5, 20, 10, 0.7);
    border: 1px solid var(--pcb-trace);
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.limit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--pcb-glow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.limit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 255, 65, 0.15);
    background: rgba(26, 66, 37, 0.5);
    border-color: var(--pcb-glow);
}

.limit-card:hover::before {
    transform: scaleX(1);
}

.limit-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--pcb-glow);
    margin-bottom: 10px;
    font-family: monospace;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.limit-title {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 600;
}

.limit-desc {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.6;
}
/* --- Engineering Support Section (16 Layer) --- */
.engineering-support {
    display: flex;
    align-items: stretch;
    background: linear-gradient(135deg, rgba(26, 66, 37, 0.4) 0%, rgba(5, 20, 10, 0.9) 100%);
    border: 1px solid var(--pcb-trace);
    border-radius: 12px;
    overflow: hidden;
    margin: 50px 0;
}

.eng-badge {
    background: var(--pcb-glow);
    color: var(--pcb-dark);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 250px;
    flex-shrink: 0;
}

.eng-badge svg {
    width: 60px;
    height: 60px;
    fill: var(--pcb-dark);
    margin-bottom: 15px;
}

.eng-badge h4 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.eng-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eng-content h3 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.eng-content p {
    color: var(--text-main);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .engineering-support {
        flex-direction: column;
    }
    .eng-badge {
        width: 100%;
        padding: 30px;
    }
    .eng-content {
        padding: 30px 20px;
    }
}
/* --- Products Directory List (Index) --- */
.product-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-list-item {
    background: linear-gradient(145deg, rgba(26, 66, 37, 0.4), rgba(5, 20, 10, 0.9));
    border: 1px solid var(--pcb-trace);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none; /* Make the whole card clickable */
}

.product-list-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 255, 65, 0.15);
    border-color: var(--pcb-glow);
}

.product-list-item h2 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-list-item h2::before {
    content: '▶';
    color: var(--pcb-glow);
    font-size: 1.2rem;
}

.product-list-item p {
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.product-list-item .view-details {
    color: var(--pcb-glow);
    font-weight: 600;
    font-size: 1rem;
    align-self: flex-start;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.product-list-item:hover .view-details {
    border-bottom-color: var(--pcb-glow);
}

/* --- FAQ Section --- */
.faq-section {
    margin: 60px auto;
    max-width: 950px;
}

.faq-item {
    background: rgba(5, 20, 10, 0.7);
    border: 1px solid var(--pcb-trace);
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 25px;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: var(--pcb-glow);
}

.faq-item h4 {
    color: var(--pcb-glow);
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.faq-item h4::before {
    content: 'Q:';
    font-weight: 900;
    color: #fff;
}

.faq-item p {
    color: var(--text-main);
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 0;
    padding-left: 35px;
}

/* --- Step-by-Step Process Grid --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.process-step {
    background: rgba(26, 66, 37, 0.2);
    border-left: 4px solid var(--pcb-glow);
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

.process-step h4 {
    color: var(--pcb-glow);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.process-step p {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- Stackup Comparison Table --- */
.stackup-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: rgba(5, 20, 10, 0.8);
    border: 1px solid var(--pcb-trace);
}

.stackup-table th, .stackup-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--pcb-trace);
}

.stackup-table th {
    background: rgba(26, 66, 37, 0.8);
    color: #fff;
    font-weight: bold;
}

.stackup-table tr:hover td {
    background: rgba(0, 255, 65, 0.05);
}

.stackup-table td {
    color: var(--text-main);
}

/* Page Header for Products Index */
.products-index-hero {
    background-color: var(--pcb-dark);
    padding: 100px 20px 60px;
    text-align: center;
    border-bottom: 1px solid var(--pcb-trace);
    background-image: 
        radial-gradient(circle at 50% 100%, rgba(0, 255, 65, 0.1) 0%, transparent 60%),
        linear-gradient(rgba(26, 66, 37, 0.3) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px;
}

.products-index-hero h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.products-index-hero p {
    font-size: 1.2rem;
    color: var(--text-main);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}
/* --- 结束 Products Directory List 样式 --- */

/* --- Applications Grid --- */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.app-item {
    background: rgba(5, 20, 10, 0.6);
    border: 1px solid var(--pcb-trace);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.app-item:hover {
    transform: translateY(-5px);
    border-color: var(--pcb-glow);
    box-shadow: 0 10px 20px rgba(0, 255, 65, 0.1);
}

.app-icon {
    width: 60px;
    height: 60px;
    fill: none;
    stroke: var(--pcb-glow);
    stroke-width: 1.5;
    margin-bottom: 20px;
}

.app-item h4 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* --- Materials Compare (1 Layer) --- */
.materials-compare {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.material-card {
    background: linear-gradient(145deg, rgba(26, 66, 37, 0.3), rgba(5, 20, 10, 0.8));
    border-top: 4px solid var(--pcb-glow);
    border-radius: 8px;
    padding: 30px;
    border-left: 1px solid var(--pcb-trace);
    border-right: 1px solid var(--pcb-trace);
    border-bottom: 1px solid var(--pcb-trace);
}

.material-card h3 {
    color: var(--pcb-glow);
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.material-card h3 svg {
    width: 30px;
    height: 30px;
    fill: var(--pcb-glow);
}

.material-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.material-list li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    color: var(--text-main);
    line-height: 1.5;
}

.material-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--pcb-glow);
    font-size: 0.8rem;
}

/* --- FAQ Alternative Styles --- */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-q {
    font-size: 1.2rem;
    color: var(--pcb-glow);
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

.faq-q::before {
    content: 'Q:';
    color: #fff;
}

.faq-a {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.6;
    padding-left: 32px;
    margin-bottom: 25px;
}
