/* ================= 核心科技感变量 ================= */
:root {
    --bg-dark: #070B19;
    --bg-panel: #111827;
    --primary-cyan: #00f3ff;
    --primary-blue: #007bff;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --border-tech: rgba(0, 243, 255, 0.2);
    --glow-cyan: 0 0 10px rgba(0, 243, 255, 0.5);
    --glow-blue: 0 0 15px rgba(0, 123, 255, 0.8);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif; }

/* 呼吸感背景 */
body { color: var(--text-main); overflow-x: hidden; background: var(--bg-dark); animation: bg-breathe 12s infinite alternate ease-in-out; line-height: 1.6; }
@keyframes bg-breathe { 0% { background-color: #050810; } 50% { background-color: #1a0b2e; } 100% { background-color: #050810; } }

a { color: var(--text-main); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--primary-cyan); text-shadow: var(--glow-cyan); }
.fas, .fab, .far { color: var(--primary-blue) !important; text-shadow: var(--glow-blue) !important; }

/* ================= 公共 Header (自动适应外部加载) ================= */
header { display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; background: rgba(7, 11, 25, 0.85); border-bottom: 1px solid var(--border-tech); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(12px); width: 100%; }
.logo { font-size: 24px; font-weight: bold; color: var(--primary-cyan); text-shadow: var(--glow-cyan); display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; gap: 30px; }
.system-status { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--primary-cyan); border: 1px solid var(--border-tech); padding: 5px 15px; border-radius: 20px; background: rgba(0, 243, 255, 0.05); }
.status-dot { width: 8px; height: 8px; background-color: #00ff00; border-radius: 50%; box-shadow: 0 0 10px #00ff00; animation: blink 1.5s infinite alternate; }
@keyframes blink { 0% { opacity: 0.3; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1.2); } }
.header-btns { display: flex; align-items: center; gap: 15px; }
.header-btns .btn { padding: 8px 20px; border: 1px solid var(--primary-cyan); background: transparent; color: var(--primary-cyan); border-radius: 4px; cursor: pointer; transition: all 0.3s; }
.header-btns .btn:hover { background: var(--primary-cyan); color: var(--bg-dark); box-shadow: var(--glow-cyan); }

/* ================= 科技感 Banner ================= */
.banner { position: relative; width: 100%; height: 300px; background: linear-gradient(to bottom, rgba(5,8,16,0.6), rgba(5,8,16,1)), url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&q=80&w=1600'); background-size: cover; background-position: center; display: flex; justify-content: center; align-items: center; overflow: hidden; }
#particles-js { position: absolute; width: 100%; height: 100%; z-index: 1; }
.banner-content { position: relative; z-index: 2; text-align: center; }
@keyframes title-glow { 0%, 100% { text-shadow: 0 0 15px var(--primary-cyan); opacity: 0.9; } 50% { text-shadow: 0 0 40px var(--primary-cyan); opacity: 1; } }
.banner h1 { font-size: 46px; color: #fff; margin: 0 0 15px 0; animation: title-glow 3s infinite; letter-spacing: 6px; }
.banner p { font-size: 18px; color: var(--text-muted); letter-spacing: 2px; }

/* ================= 面包屑导航 ================= */
.breadcrumb { padding: 15px 5%; background: rgba(17, 24, 39, 0.6); font-size: 14px; color: var(--text-muted); border-bottom: 1px solid var(--border-tech); }
.breadcrumb a { color: var(--primary-cyan); }
.breadcrumb i { margin: 0 10px; font-size: 12px; color: #475569 !important; text-shadow: none !important; }

/* ================= 核心布局容器 ================= */
.main-wrapper { max-width: 1300px; margin: 0 auto 80px; padding: 0 20px; position: relative; z-index: 10; }
.product-page-layout { display: flex; gap: 30px; margin-top: 40px; }

/* ================= 左侧多维筛选边栏 ================= */
.filter-sidebar { width: 280px; flex-shrink: 0; }
.filter-group { background: linear-gradient(145deg, rgba(17, 24, 39, 0.6), rgba(13, 18, 31, 0.8)); border: 1px solid var(--border-tech); border-radius: 8px; padding: 20px; margin-bottom: 20px; backdrop-filter: blur(5px); }
.filter-group h4 { color: var(--primary-cyan); margin-bottom: 15px; border-bottom: 1px solid rgba(0,243,255,0.1); padding-bottom: 10px; font-size: 16px; }
.filter-list { list-style: none; }
.filter-list li { margin-bottom: 12px; color: var(--text-muted); cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 10px; font-size: 14px; user-select: none; }
.filter-list li:hover, .filter-list li.active { color: #fff; }
.filter-list li i { font-size: 14px; color: var(--primary-cyan); opacity: 0; transition: 0.3s; }
.filter-list li:hover i, .filter-list li.active i { opacity: 1; }

/* ================= 右侧参数化报价列表 ================= */
.list-view-container { flex-grow: 1; display: flex; flex-direction: column; gap: 25px; }
.product-row { display: flex; background: linear-gradient(90deg, rgba(17, 24, 39, 0.8), rgba(13, 18, 31, 0.4)); border: 1px solid var(--border-tech); border-radius: 8px; padding: 25px; transition: all 0.4s ease; backdrop-filter: blur(5px); animation: fadeIn 0.5s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.product-row:hover { border-color: var(--primary-cyan); box-shadow: 0 5px 25px rgba(0,243,255,0.15); transform: translateY(-3px); }

/* V3.0 新增特效：悬浮发光 */
/* V2.4 基础版的视觉容器 */
.row-visual { 
    width: 220px; 
    flex-shrink: 0; 
    margin-right: 30px; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
}

/* V2.4 基础版的图片：覆盖模式(cover)、圆角和微弱边框 */
.row-img { 
    width: 100%; 
    height: 140px; 
    object-fit: cover; 
    border-radius: 6px; 
    border: 1px solid rgba(255,255,255,0.05); 
}

.product-row:hover .row-img { 
    filter: drop-shadow(0 25px 20px rgba(0,0,0,0.9)) drop-shadow(0 0 25px rgba(0, 243, 255, 0.7));
    transform: scale(1.08) translateY(-10px); animation-play-state: paused; 
}
@keyframes float-glow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.btn-view { width: 100%; padding: 10px 0; background: transparent; border: 1px solid var(--primary-blue); color: var(--text-main); border-radius: 4px; font-size: 14px; transition: 0.3s; text-align: center; }
.btn-view:hover { background: var(--primary-blue); box-shadow: var(--glow-blue); color: #fff; }

.row-info { flex-grow: 1; display: flex; flex-direction: column; }
.row-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed rgba(255,255,255,0.1); padding-bottom: 15px; margin-bottom: 15px; }
.row-header h3 { color: #fff; font-size: 22px; transition: color 0.3s; cursor: pointer; margin: 0; }
.row-header h3:hover { color: var(--primary-cyan); }

.btn-quote { background: var(--primary-blue); color: #fff; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; transition: all 0.3s; font-weight: bold; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-shrink: 0;}
.btn-quote:hover { box-shadow: var(--glow-blue); background: #0056b3; transform: scale(1.05); }

.param-table { width: 100%; font-size: 14px; color: var(--text-muted); border-collapse: collapse; }
.param-table td { padding: 8px 12px; border: 1px solid rgba(255,255,255,0.05); }
.param-table td:nth-child(odd) { background: rgba(0,0,0,0.25); color: var(--primary-cyan); width: 25%; font-weight: 500; }
.param-table td:nth-child(even) { width: 25%; }

/* ================= 悬浮购物车图标 & Toast ================= */
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 15px; }
.toast { background: rgba(16, 185, 129, 0.95); border: 1px solid #10b981; color: #fff; padding: 15px 25px; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px rgba(16, 185, 129, 0.3); display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: bold; transform: translateX(120%); transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); backdrop-filter: blur(8px); }
.toast i { font-size: 18px; color: #fff !important; text-shadow: none !important; }
.toast.show { transform: translateX(0); }

.floating-cart { position: fixed; bottom: 40px; right: 40px; width: 65px; height: 65px; background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan)); border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 243, 255, 0.4); z-index: 998; transition: all 0.3s; animation: pulse-glow 2s infinite alternate; }
.floating-cart:hover { transform: translateY(-5px) scale(1.05); }
.floating-cart i { font-size: 26px; color: #fff !important; text-shadow: none !important; }
.cart-badge { position: absolute; top: -2px; right: -2px; background: #ff4757; color: #fff; font-size: 12px; font-weight: bold; width: 24px; height: 24px; border-radius: 50%; display: flex; justify-content: center; align-items: center; border: 2px solid var(--bg-dark); transition: 0.3s; }
@keyframes pulse-glow { 0% { box-shadow: 0 0 15px rgba(0, 243, 255, 0.3); } 100% { box-shadow: 0 0 30px rgba(0, 243, 255, 0.7); } }

/* ================= 侧边抽屉与表单 ================= */
.drawer-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 999; opacity: 0; visibility: hidden; transition: 0.3s; }
.drawer-overlay.active { opacity: 1; visibility: visible; }
.quote-drawer { position: fixed; top: 0; right: 0; width: 450px; height: 100%; background: rgba(13, 18, 31, 0.95); border-left: 1px solid var(--border-tech); box-shadow: -10px 0 30px rgba(0,0,0,0.8); z-index: 1000; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); display: flex; flex-direction: column; backdrop-filter: blur(15px); }
.quote-drawer.active { transform: translateX(0); }
.drawer-header { padding: 25px; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; background: rgba(0,0,0,0.2); }
.drawer-header h3 { color: var(--primary-cyan); font-size: 20px; display: flex; align-items: center; gap: 10px; margin: 0; }
.close-drawer { background: transparent; border: none; color: var(--text-muted); font-size: 28px; cursor: pointer; transition: 0.3s; line-height: 1; }
.close-drawer:hover { color: #ff4757; text-shadow: 0 0 10px rgba(255,71,87,0.5); }
.drawer-body { padding: 25px; overflow-y: auto; flex-grow: 1; }
.cart-items-list { margin-bottom: 25px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); padding: 15px; border-radius: 6px; margin-bottom: 10px; transition: 0.3s; }
.cart-item:hover { border-color: var(--primary-blue); background: rgba(0, 123, 255, 0.05); }
.cart-item-title { font-size: 14px; color: #fff; flex-grow: 1; margin-right: 15px; line-height: 1.4; }
.cart-item-remove { color: #ff4757; background: transparent; border: none; cursor: pointer; padding: 5px; transition: 0.3s; }
.cart-item-remove:hover { transform: scale(1.2); text-shadow: 0 0 8px rgba(255,71,87,0.5); }
.empty-cart-msg { text-align: center; color: var(--text-muted); font-size: 14px; padding: 20px; border: 1px dashed rgba(255,255,255,0.1); border-radius: 6px; }

.form-section-title { color: var(--primary-cyan); margin-bottom: 20px; font-size: 16px; border-bottom: 1px solid rgba(0,243,255,0.1); padding-bottom: 10px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; color: var(--text-muted); font-size: 13px; margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 15px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; color: #fff; font-size: 14px; transition: 0.3s; font-family: inherit; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary-cyan); box-shadow: 0 0 10px rgba(0,243,255,0.2); background: rgba(0,0,0,0.5); }
.form-group textarea { resize: vertical; min-height: 80px; }
.btn-submit-quote { width: 100%; padding: 15px; background: linear-gradient(90deg, var(--primary-blue), var(--primary-cyan)); border: none; border-radius: 6px; color: #fff; font-size: 16px; font-weight: bold; cursor: pointer; transition: 0.3s; margin-top: 10px; box-shadow: 0 5px 15px rgba(0, 243, 255, 0.3); }
.btn-submit-quote:hover { filter: brightness(1.1); box-shadow: 0 8px 25px rgba(0, 243, 255, 0.5); transform: translateY(-2px); }

/* ================= 公共 Footer ================= */
footer { background: #040711; border-top: 2px solid var(--primary-cyan); padding: 60px 5% 20px; width: 100%; }
.footer-content { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 40px; max-width: 1200px; margin-left: auto; margin-right: auto; }
.footer-col h4 { color: var(--primary-cyan); margin-bottom: 20px; font-size: 18px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: var(--text-muted); display: block; transition: all 0.3s ease; }
.footer-col ul li a:hover { color: var(--primary-cyan); padding-left: 5px; }
.copyright { text-align: center; padding-top: 20px; border-top: 1px solid #1e293b; color: var(--text-muted); font-size: 14px; }

/* ================= 移动端适配 ================= */
@media (max-width: 900px) { 
    .product-page-layout { flex-direction: column; } 
    .filter-sidebar { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .filter-group { margin-bottom: 0; }
    .footer-content { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) { 
    header { flex-direction: column; gap: 15px; } 
    .nav-links { display: none; } 
    .filter-sidebar { grid-template-columns: 1fr; }
    .product-row { flex-direction: column; padding: 20px; } 
    .row-visual { width: 100%; margin-right: 0; margin-bottom: 20px; } 
    .row-img { height: 200px; }
    .row-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .btn-quote { width: 100%; justify-content: center; }
    .param-table td:nth-child(odd), .param-table td:nth-child(even) { width: auto; }
    .footer-content { grid-template-columns: 1fr; }
    .quote-drawer { width: 100%; } 
    .floating-cart { bottom: 20px; right: 20px; width: 55px; height: 55px; }
}