/* ============================================
   产品页面样式 - Tech Industrial
   ============================================ */

/* ---- Keyframes ---- */
@keyframes border-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 82, 255, 0); }
  50% { box-shadow: 0 0 20px 2px rgba(0, 82, 255, 0.12); }
}

@keyframes scan-line {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(400px); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes led-pulse {
  0%, 100% { box-shadow: 0 0 4px rgba(0, 82, 255, 0.3); }
  50% { box-shadow: 0 0 12px rgba(0, 82, 255, 0.5); }
}

@keyframes float-glow {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 4px rgba(0,82,255,0.2)); }
  50% { transform: translateY(-6px); filter: drop-shadow(0 0 12px rgba(0,82,255,0.4)); }
}

/* ---- Product Page Overrides ---- */
.page-container .page-header {
    text-align: center;
    margin-bottom: 60px;
}

/* ---- Category Section ---- */
.category-section {
    margin-bottom: 80px;
}

.category-section h2 {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.category-section h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(0, 82, 255, 0.2));
    box-shadow: 0 0 6px rgba(0, 82, 255, 0.2);
}

.category-section h2::before {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--border), transparent);
    order: 3;
}

/* ---- Product Grid ---- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-medium);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(0,82,255,0.3), rgba(77,124,255,0.05), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-medium);
    pointer-events: none;
}

.product-card:hover {
    box-shadow: var(--shadow-xl), 0 0 30px rgba(0, 82, 255, 0.06);
    transform: translateY(-4px);
    border-color: rgba(0, 82, 255, 0.2);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card .product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--muted), #e8eef5);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.product-card .product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,82,255,0.04) 100%);
    pointer-events: none;
}

.product-card .product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform var(--transition-medium);
}

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

.product-card .product-info {
    padding: 24px;
    position: relative;
    z-index: 1;
}

.product-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--foreground);
}

.product-card .model {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.product-card .description {
    color: var(--muted-foreground);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.product-card .btn {
    width: 100%;
}

/* ---- Category Page ---- */
.page-container .category-header {
    text-align: center;
    margin-bottom: 48px;
}

.page-container .category-header h1 {
    margin-bottom: 12px;
}

.page-container .category-header p {
    color: var(--muted-foreground);
    font-size: 1.125rem;
}

/* ---- Product Detail Page ---- */
.product-detail-page {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 40px 20px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    font-size: 13px;
    color: var(--muted-foreground);
    font-family: var(--font-mono);
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.breadcrumb a:hover {
    text-shadow: 0 0 8px rgba(0, 82, 255, 0.3);
}

.breadcrumb-separator {
    color: var(--border);
    opacity: 0.6;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    animation: fade-in-up 0.6s ease-out;
}

/* Tech Gallery with scan line and glow */
.product-detail .product-gallery {
    background: linear-gradient(135deg, var(--muted), #e8eef5);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition-medium);
}

.product-detail .product-gallery::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(0,82,255,0.25), transparent 50%, rgba(77,124,255,0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.product-detail .product-gallery::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 82, 255, 0.2), transparent);
    animation: scan-line 4s linear infinite;
    pointer-events: none;
}

.product-detail .product-gallery:hover {
    box-shadow: 0 0 40px rgba(0, 82, 255, 0.08);
    border-color: rgba(0, 82, 255, 0.2);
}

.product-detail .product-gallery img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    transition: transform var(--transition-slow);
}

.product-detail .product-gallery:hover img {
    transform: scale(1.03);
}

/* Product Info Section */
.product-detail .product-info {
    animation: fade-in-up 0.6s ease-out 0.1s both;
}

.product-detail .product-info h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--foreground) 30%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

/* LED-style model badge */
.product-detail .product-info .model {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 82, 255, 0.05);
    border: 1px solid rgba(0, 82, 255, 0.15);
    border-radius: 6px;
    animation: led-pulse 3s ease-in-out infinite;
}

.product-detail .product-info .model::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(0, 82, 255, 0.5);
}

/* Category Badge */
.product-detail .product-info .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 82, 255, 0.05);
    border: 1px solid rgba(0, 82, 255, 0.15);
    border-radius: 100px;
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 24px;
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
    transition: all var(--transition-fast);
}

.product-detail .product-info .category-badge:hover {
    background: rgba(0, 82, 255, 0.08);
    border-color: rgba(0, 82, 255, 0.25);
    box-shadow: 0 0 12px rgba(0, 82, 255, 0.1);
}

/* Product Actions */
.product-actions {
    margin-top: 32px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.product-actions .btn {
    position: relative;
    overflow: hidden;
}

.product-actions .btn-primary {
    box-shadow: 0 4px 14px rgba(0, 82, 255, 0.25);
    transition: all var(--transition-fast);
}

.product-actions .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 82, 255, 0.35);
    transform: translateY(-1px);
}

/* Product Sections */
.product-section {
    margin-bottom: 48px;
    position: relative;
}

.product-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.product-section h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 82, 255, 0.3);
}

.product-section h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(0, 82, 255, 0.1));
    border-radius: 1px;
    box-shadow: 0 0 6px rgba(0, 82, 255, 0.2);
}

.product-section p {
    color: var(--muted-foreground);
    line-height: 1.8;
    text-indent: 2em;
}

.product-section ul {
    list-style: none;
    padding: 0;
}

.product-section ul li {
    padding: 12px 0;
    padding-left: 28px;
    position: relative;
    color: var(--muted-foreground);
    border-bottom: 1px solid var(--border);
}

.product-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(0, 82, 255, 0.3);
}

/* ---- Specifications Table ---- */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

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

.specs-table th {
    background: linear-gradient(135deg, var(--muted), #e8eef5);
    font-weight: 600;
    color: var(--foreground);
    font-size: 14px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.specs-table td {
    color: var(--muted-foreground);
    font-size: 14px;
}

.specs-table tr:hover td {
    background: rgba(0, 82, 255, 0.03);
}

/* ---- Downloads Section ---- */
.downloads-section {
    background: linear-gradient(135deg, var(--muted), #e8eef5);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.downloads-section::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(0,82,255,0.15), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.download-list {
    list-style: none;
    padding: 0;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--card);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    position: relative;
}

.download-item:hover {
    box-shadow: var(--shadow-md), 0 0 20px rgba(0, 82, 255, 0.06);
    transform: translateX(6px);
    border-color: rgba(0, 82, 255, 0.12);
}

.download-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: var(--accent-foreground);
    border-radius: 10px;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 82, 255, 0.25);
    transition: all var(--transition-fast);
}

.download-item:hover i {
    box-shadow: 0 4px 14px rgba(0, 82, 255, 0.4);
    transform: scale(1.05);
}

.download-item a {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    flex: 1;
    transition: color var(--transition-fast);
}

.download-item a:hover {
    color: var(--accent);
}

.download-item .file-type {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    background: rgba(0, 82, 255, 0.05);
    border: 1px solid rgba(0, 82, 255, 0.1);
    border-radius: 4px;
}

/* ---- Product Gallery Grid ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.gallery-item {
    background: linear-gradient(135deg, var(--muted), #e8eef5);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    border: 1px solid var(--border);
    transition: all var(--transition-medium);
    overflow: hidden;
    position: relative;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(0,82,255,0.2), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-medium);
    pointer-events: none;
}

.gallery-item:hover {
    box-shadow: 0 4px 20px rgba(0, 82, 255, 0.08);
    border-color: rgba(0, 82, 255, 0.2);
    transform: translateY(-2px);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform var(--transition-medium);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ---- Related Products ---- */
.related-products-section {
    margin-top: 60px;
}

.related-products-section h2 {
    font-size: 1.5rem;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.related-products-section h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 82, 255, 0.3);
}

.related-products-section h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(0, 82, 255, 0.1));
    box-shadow: 0 0 6px rgba(0, 82, 255, 0.2);
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.related-product-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-product-card .card-inner {
    padding: 20px;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.related-product-card .card-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(0,82,255,0.3), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-medium);
    pointer-events: none;
}

.related-product-card:hover .card-inner {
    border-color: rgba(0, 82, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 82, 255, 0.08);
    transform: translateY(-4px);
}

.related-product-card:hover .card-inner::before {
    opacity: 1;
}

.related-product-card .card-image {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--muted), #e8eef5);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.related-product-card .card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,82,255,0.04) 100%);
    pointer-events: none;
}

.related-product-card .card-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform var(--transition-medium);
}

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

.related-product-card .card-model {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}

.related-product-card .card-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--foreground);
    line-height: 1.4;
    transition: color var(--transition-fast);
}

.related-product-card:hover .card-name {
    color: var(--accent);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .product-detail-page {
        padding: 24px 16px;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .product-detail .product-gallery {
        min-height: 280px;
        padding: 24px;
    }
    
    .product-detail .product-info h1 {
        font-size: 1.75rem;
    }
    
    .category-section {
        margin-bottom: 48px;
    }
    
    .category-section h2 {
        font-size: 1.25rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .breadcrumb {
        flex-wrap: wrap;
        gap: 4px;
        font-size: 13px;
        margin-bottom: 24px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .product-card .product-image {
        height: 160px;
    }
    
    .product-card .product-info {
        padding: 20px;
    }
    
    .product-section h2 {
        font-size: 1.25rem;
    }
    
    .downloads-section {
        padding: 20px;
    }
    
    .download-item {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .download-item .file-type {
        margin-left: auto;
    }
    
    .specs-table th,
    .specs-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
