/* css/index.css */

/* --- 第一屏：Hero Section --- */
.home-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--pcb-dark);
    /* 模拟具有 3D 纵深感和科技网格的背景 */
    background-image: 
        radial-gradient(circle at 70% 50%, rgba(0, 255, 65, 0.15) 0%, transparent 60%),
        linear-gradient(rgba(26, 66, 37, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 66, 37, 0.4) 1px, transparent 1px);
    background-size: 100% 100%, 60px 60px, 60px 60px;
    border-bottom: 1px solid var(--pcb-trace);
    padding: 120px 20px 80px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 25px;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.hero-text h1 span {
    color: var(--pcb-glow);
}

.hero-text h2 {
    font-size: 1.3rem;
    color: var(--text-main);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-btn {
    display: inline-block;
    background: transparent;
    color: var(--pcb-glow);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 15px 40px;
    border: 2px solid var(--pcb-glow);
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
}

.cta-btn:hover {
    background: var(--pcb-glow);
    color: var(--pcb-dark);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.6);
    transform: translateY(-3px);
}

/* 快速询盘表单 */
.hero-form-wrapper {
    background: rgba(5, 20, 10, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--pcb-trace);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.quick-quote-form h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.quick-quote-form input,
.quick-quote-form textarea {
    width: 100%;
    background: rgba(26, 66, 37, 0.3);
    border: 1px solid var(--pcb-trace);
    color: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.quick-quote-form input:focus,
.quick-quote-form textarea:focus {
    outline: none;
    border-color: var(--pcb-glow);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

.file-upload {
    margin-bottom: 20px;
}

.file-upload label {
    display: block;
    color: var(--text-main);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.file-upload input[type="file"] {
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.quick-quote-form button {
    width: 100%;
    background: var(--pcb-glow);
    color: var(--pcb-dark);
    border: none;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-quote-form button:hover {
    background: #00cc33;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
}

/* --- 第二屏：Our Core Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: linear-gradient(145deg, rgba(26, 66, 37, 0.3), rgba(5, 20, 10, 0.9));
    border: 1px solid var(--pcb-trace);
    padding: 40px 30px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 255, 65, 0.15);
    border-color: var(--pcb-glow);
}

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

.service-card h3 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 15px;
}

/* --- 第三屏：Engineering & DFM --- */
.software-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.logo-box {
    padding: 15px 30px;
    background: rgba(26, 66, 37, 0.2);
    border: 1px solid var(--pcb-trace);
    border-radius: 8px;
    color: #8da696;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 1px;
    transition: all 0.3s;
    cursor: default;
}

.logo-box:hover {
    color: var(--pcb-glow);
    border-color: var(--pcb-glow);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
    transform: translateY(-3px);
}

/* --- 第四屏：Why Choose XingFeng PCB --- */
.choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.choose-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 40px;
    background: radial-gradient(circle at center, rgba(26, 66, 37, 0.4) 0%, transparent 70%);
}

.stat-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 2px dashed var(--pcb-trace);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(5, 20, 10, 0.8);
    transition: all 0.4s;
    position: relative;
}

.stat-circle:hover {
    border-color: var(--pcb-glow);
    border-style: solid;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
    transform: scale(1.05);
}

.stat-circle .pct {
    font-size: 2rem;
    font-weight: bold;
    color: var(--pcb-glow);
}

.stat-circle .lbl {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-top: 5px;
    padding: 0 10px;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.benefit-list li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.6;
}

.benefit-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--pcb-dark);
    background: var(--pcb-glow);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.benefit-list strong {
    color: #fff;
    display: block;
    margin-bottom: 5px;
}

/* --- 第五屏：Factory Tour & Capabilities --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 50px;
}

.gallery-item {
    aspect-ratio: 4/3;
    background: rgba(26, 66, 37, 0.3);
    border: 1px solid var(--pcb-trace);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8da696;
    font-size: 1.1rem;
    transition: all 0.3s;
    cursor: pointer;
}

.gallery-item:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--pcb-glow);
    color: var(--pcb-glow);
}

.table-responsive {
    overflow-x: auto;
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(5, 20, 10, 0.6);
    border-radius: 12px;
    overflow: hidden;
}

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

.tech-table th {
    background: rgba(26, 66, 37, 0.6);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
}

.tech-table td {
    color: var(--text-main);
    font-size: 1.1rem;
    transition: color 0.3s;
}

.tech-table tr:hover td {
    background: rgba(0, 255, 65, 0.05);
    color: var(--pcb-glow);
}

.tech-table tr:last-child td {
    border-bottom: none;
}

/* --- Featured Products Grid (Home Page) --- */
.home-products {
    padding: 80px 20px;
    background: var(--pcb-dark);
}

.home-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.home-product-card {
    background: linear-gradient(145deg, rgba(26, 66, 37, 0.3), rgba(5, 20, 10, 0.8));
    border: 1px solid var(--pcb-trace);
    border-radius: 12px;
    padding: 30px 25px;
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.home-product-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.3s ease;
}

.home-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 255, 65, 0.1);
    border-color: rgba(0, 255, 65, 0.5);
}

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

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

.home-product-card p {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.home-product-card .explore-link {
    color: var(--pcb-glow);
    font-weight: 600;
    font-size: 0.95rem;
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 5px;
}

.home-product-card:hover .explore-link {
    text-decoration: underline;
}

/* --- 响应式设计 --- */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .choose-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-text h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .home-hero { padding: 100px 20px 60px; }
    .hero-text h1 { font-size: 2.2rem; }
    .hero-text h2 { font-size: 1.1rem; }
    .quick-quote-form { padding: 25px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .tech-table th, .tech-table td { padding: 15px; font-size: 1rem; }
}
