/* 全局重置与防溢出 */
* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
body.build-body { background-color: #f3f4f6; color: #333333; font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif; overflow-x: hidden; width: 100%; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* 容器与顶部区域 */
.build-container { max-width: 1400px; margin: 0 auto; padding: 0 15px; width: 100%; }
.build-topbar { background-color: #f8f9fa; color: #666666; font-size: 12px; height: 35px; line-height: 35px; border-bottom: 1px solid #eeeeee; }
.build-topbar-wrap { display: flex; justify-content: space-between; }
.build-top-links a { margin-left: 15px; color: #666; transition: color 0.3s; }
.build-top-links a:hover { color: #3b82f6; }

/* 头部 Header */
.build-header { background: #3b82f6; padding: 15px 0; color: #ffffff; }
.build-header-wrap { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.build-logo { font-size: 28px; font-weight: 900; letter-spacing: -1px; display: flex; align-items: center; }
.build-logo img { max-height: 40px; max-width: 180px; object-fit: contain; }
.build-search-form { display: flex; flex-grow: 1; max-width: 700px; background: #ffffff; border-radius: 4px; overflow: hidden; height: 42px; }
.build-search-input { border: none; padding: 0 15px; font-size: 13px; flex-grow: 1; outline: none; color: #333; }
.build-search-btn { background: #1e3a8a; color: #ffffff; border: none; padding: 0 25px; cursor: pointer; font-weight: bold; font-size: 14px; transition: 0.3s; }
.build-search-btn:hover { background: #1e40af; }
.build-header-icons { display: flex; gap: 20px; font-size: 20px; align-items: center; }
.build-icon-btn { position: relative; color: #ffffff; cursor: pointer; display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; }
.build-icon-badge { position: absolute; top: -8px; left: 10px; background: #ef4444; color: #fff; font-size: 10px; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* 导航栏 */
.build-navbar { background: #ffffff; border-bottom: 1px solid #e5e7eb; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.build-nav { display: flex; list-style: none; justify-content: flex-start; padding: 0; }
.build-nav-item a { display: block; padding: 15px 25px; font-size: 14px; font-weight: bold; color: #374151; text-transform: uppercase; transition: color 0.3s; position: relative; }
.build-nav-item a:hover, .build-nav-item.active a { color: #3b82f6; }
.build-nav-item.active a::after { content: ""; position: absolute; bottom: 0; left: 20px; right: 20px; height: 3px; background: #3b82f6; }

/* 通知与标题 */
.build-notice { background: #eff6ff; border-left: 4px solid #3b82f6; border-radius: 4px; padding: 12px 20px; font-size: 14px; color: #1e3a8a; margin: 20px auto; font-weight: 500; }
.build-sec-title-bar { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e5e7eb; margin: 40px 0 20px; padding-bottom: 10px; }
.build-sec-title { font-size: 20px; font-weight: 800; color: #1f2937; }
.build-sec-link { font-size: 13px; color: #3b82f6; font-weight: bold; }

/* 蓝条标题区 */
.build-blue-header { background: #3b82f6; color: #ffffff; display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-radius: 6px 6px 0 0; margin-top: 40px; }
.build-blue-header h2 { font-size: 18px; font-weight: bold; margin: 0; }
.build-blue-header-links a { color: #e0f2fe; font-size: 13px; margin-left: 15px; font-weight: 500; transition: 0.3s; }
.build-blue-header-links a:hover { color: #ffffff; }

/* 方框一：巨幕 */
.build-hero-sec { background-color: #e0f2fe; border-radius: 8px; margin-top: 20px; padding: 60px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; overflow: hidden; position: relative; }
.build-hero-content { z-index: 2; }
.build-hero-badge { background: #3b82f6; color: #fff; display: inline-block; padding: 4px 12px; font-size: 12px; font-weight: bold; border-radius: 20px; margin-bottom: 15px; }
.build-hero-title { font-size: 48px; font-weight: 900; color: #1e3a8a; margin-bottom: 15px; line-height: 1.1; }
.build-hero-price { font-size: 28px; font-weight: bold; color: #ef4444; margin-bottom: 30px; }
.build-hero-img { position: absolute; right: 0; bottom: 0; height: 110%; object-fit: contain; z-index: 1; transform: translateX(10%); }
@media (max-width: 768px) {
    .build-hero-sec { grid-template-columns: 1fr; padding: 40px 20px; text-align: center; }
    .build-hero-img { position: relative; height: 200px; transform: none; margin: 0 auto; }
}

/* 7宫格 / 8宫格 */
.build-grid-7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 15px; margin-bottom: 20px; background: #ffffff; padding: 20px; border-radius: 0 0 6px 6px; border: 1px solid #e5e7eb; border-top: none; }
.build-grid-8 { display: grid; grid-template-columns: repeat(8, 1fr); gap: 15px; margin-bottom: 20px; }
@media (max-width: 1200px) {
    .build-grid-7, .build-grid-8 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .build-grid-7, .build-grid-8 { grid-template-columns: repeat(2, 1fr); }
}

/* 标准商品卡片 */
.build-card { background: #ffffff; border: 1px solid #f3f4f6; border-radius: 6px; padding: 15px; transition: all 0.3s; position: relative; text-align: center; display: flex; flex-direction: column; justify-content: space-between; }
.build-card:hover { border-color: #3b82f6; box-shadow: 0 4px 12px rgba(59,130,246,0.1); transform: translateY(-2px); }
.build-card-img { width: 100%; height: 120px; object-fit: contain; margin-bottom: 12px; }
.build-card-title { font-size: 13px; color: #374151; font-weight: 500; margin-bottom: 8px; line-height: 1.4; }
.build-card-stars { color: #fbbf24; font-size: 12px; margin-bottom: 8px; }
.build-card-price { font-size: 16px; font-weight: 800; color: #ef4444; }

/* 纯框精简卡片 (分类区) */
.build-cat-card { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 6px; padding: 20px 10px; text-align: center; transition: 0.3s; }
.build-cat-card:hover { border-color: #3b82f6; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.build-cat-card img { height: 60px; object-fit: contain; margin-bottom: 10px; }
.build-cat-card h4 { font-size: 13px; font-weight: 600; color: #1f2937; }

/* 静态保障条 */
.build-feature-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; background: #ffffff; border: 1px solid #e5e7eb; padding: 20px; border-radius: 6px; margin-bottom: 40px; }
@media(max-width: 768px) { .build-feature-bar { grid-template-columns: repeat(2, 1fr); } }
.build-feature-item { display: flex; align-items: center; justify-content: center; gap: 10px; border-right: 1px solid #eee; }
.build-feature-item:last-child { border-right: none; }
.build-feature-item span { font-size: 13px; font-weight: bold; color: #374151; }

/* 横向微卡矩阵 (4列排布) */
.build-list-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; background: #ffffff; border: 1px solid #e5e7eb; padding: 20px; border-radius: 0 0 6px 6px; border-top: none; }
@media (max-width: 992px) { .build-list-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .build-list-grid { grid-template-columns: 1fr; } }
.build-list-card { display: flex; align-items: center; gap: 15px; padding: 10px; border: 1px solid transparent; border-radius: 6px; transition: 0.3s; }
.build-list-card:hover { border-color: #e5e7eb; background: #f9fafb; }
.build-list-img { width: 70px; height: 70px; object-fit: contain; flex-shrink: 0; background: #fff; border-radius: 4px; border: 1px solid #f3f4f6; }
.build-list-info { flex-grow: 1; min-width: 0; }
.build-list-title { font-size: 13px; font-weight: 600; color: #1f2937; margin-bottom: 4px; }
.build-list-price { font-size: 14px; font-weight: 800; color: #ef4444; }

/* 按钮与通用组件 */
.build-btn { background: #3b82f6; color: #ffffff; padding: 8px 20px; border-radius: 4px; font-size: 13px; font-weight: bold; display: inline-block; border: none; cursor: pointer; transition: 0.3s; text-align: center; }
.build-btn:hover { background: #2563eb; }

/* 表格与内页 */
.build-table { width: 100%; border-collapse: collapse; background: #ffffff; border-radius: 6px; overflow: hidden; margin-bottom: 40px; border: 1px solid #e5e7eb; }
.build-table th, .build-table td { padding: 15px; text-align: left; border-bottom: 1px solid #f3f4f6; font-size: 14px; }
.build-table th { background: #f8f9fa; color: #1e3a8a; font-weight: bold; }
.build-badge { display: inline-block; padding: 3px 8px; border-radius: 3px; font-size: 11px; font-weight: bold; }
.build-badge-auto { background: #eff6ff; color: #3b82f6; }
.build-badge-manual { background: #f3f4f6; color: #6b7280; }
.build-detail-wrap { background: #ffffff; padding: 40px; margin: 30px auto 50px; border: 1px solid #e5e7eb; border-radius: 8px; }

/* 底部区域 */
.build-footer { background: #ffffff; color: #4b5563; padding: 60px 0 30px; font-size: 14px; border-top: 1px solid #e5e7eb; margin-top: 40px; }
.build-footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 40px; }
@media(max-width: 768px) { .build-footer-grid { grid-template-columns: repeat(2, 1fr); } }
.build-footer h4 { color: #111827; font-size: 16px; font-weight: 800; margin-bottom: 20px; }
.build-footer ul { list-style: none; line-height: 2.2; }
.build-footer a { transition: color 0.3s; }
.build-footer a:hover { color: #3b82f6; }
.build-copyright { border-top: 1px solid #f3f4f6; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; color: #9ca3af; font-size: 13px; }
@media(max-width: 768px) { .build-copyright { flex-direction: column; gap: 10px; text-align: center; } }

/* 通用防溢出与移动端自适应补丁 */
[style*="nowrap"], div[class*="title"], p[class*="title"], a[class*="title"], .build-text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
