/* ============================================
 * components.css - 通用组件：轮播、选项卡、卡片
 * 统一管理：可复用UI组件样式
 * ============================================ */

/* ========== 轮播图 ========== */
.carousel { position: relative; width: 100%; height: 420px; overflow: hidden; background: #000; }
.carousel .carousel-list { position: relative; width: 100%; height: 100%; }
.carousel .carousel-item { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s ease; }
.carousel .carousel-item.active { opacity: 1; }
.carousel .carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.carousel .carousel-item .mask { position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: linear-gradient(to top, rgba(0,0,0,.6), transparent); }
.carousel .carousel-item .caption { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); width: 1200px; color: #fff; font-size: 22px; font-weight: 500; text-shadow: 0 2px 6px rgba(0,0,0,.5); }
.carousel .carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; background: rgba(0,0,0,.35); color: #fff; font-size: 26px; line-height: 64px; text-align: center; cursor: pointer; opacity: 0; transition: opacity .2s; user-select: none; }
.carousel:hover .carousel-arrow { opacity: 1; }
.carousel .carousel-arrow.prev { left: 20px; }
.carousel .carousel-arrow.next { right: 20px; }
.carousel .carousel-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.carousel .carousel-dots .dot { width: 24px; height: 4px; background: rgba(255,255,255,.5); border-radius: 2px; cursor: pointer; transition: all .2s; }
.carousel .carousel-dots .dot.active { background: #fff; width: 36px; }

/* ========== 选项卡 Tabs ========== */
.tabs .tabs-head { display: flex; border-bottom: 2px solid #eee; position: relative; }
.tabs .tabs-head .tab-item { padding: 14px 24px; font-size: 18px; color: #666; cursor: pointer; position: relative; font-weight: 500; transition: color .2s; }
.tabs .tabs-head .tab-item.active { color: #c8102e; }
.tabs .tabs-head .tab-item.active::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 40%; height: 2px; background: #c8102e; transform: translateX(-50%); }
.tabs .tabs-head .tab-more { margin-left: auto; font-size: 13px; color: #999; align-self: flex-end; padding-bottom: 6px; }
.tabs .tabs-head .tab-more:hover { color: #c8102e; }
.tabs .tabs-body { padding-top: 20px; }
.tabs .tabs-pane { display: none; }
.tabs .tabs-pane.active { display: block; }

/* ========== 资讯列表 ========== */
.news-list { }
.news-list li { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed #eee; font-size: 14px; }
.news-list li:last-child { border-bottom: none; }
.news-list li .news-title { color: #333; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 16px; }
.news-list li .news-title::before { content: "·"; color: #c8102e; font-weight: bold; margin-right: 8px; font-size: 18px; vertical-align: middle; }
.news-list li .news-title:hover { color: #c8102e; }
.news-list li .news-date { color: #999; font-size: 13px; flex-shrink: 0; }

/* 头条新闻（大图+摘要） */
.news-headline { display: flex; gap: 20px; padding: 16px 0; border-bottom: 1px solid #eee; }
.news-headline .headline-img { width: 220px; height: 140px; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: #eee; }
.news-headline .headline-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-headline:hover .headline-img img { transform: scale(1.05); }
.news-headline .headline-body { flex: 1; }
.news-headline .headline-body h3 { font-size: 18px; color: #333; font-weight: 600; line-height: 1.5; }
.news-headline .headline-body h3:hover { color: #c8102e; }
.news-headline .headline-body p { color: #888; font-size: 13px; line-height: 1.7; margin: 8px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-headline .headline-body .meta { color: #999; font-size: 12px; }

/* ========== 产品卡片 ========== */
.product-card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.05); transition: all .3s; cursor: pointer; }
.product-card:hover { box-shadow: 0 8px 24px rgba(200,16,46,.15); transform: translateY(-4px); }
.product-card .pc-title { font-size: 16px; color: #333; font-weight: 600; margin-bottom: 8px; }
.product-card .pc-desc { color: #888; font-size: 13px; line-height: 1.7; height: 66px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.product-card .pc-more { color: #c8102e; font-size: 13px; margin-top: 10px; display: inline-block; }

/* ========== 快捷服务网格 ========== */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-grid .quick-item { background: #fff; border-radius: 8px; padding: 20px 12px; text-align: center; transition: all .2s; cursor: pointer; }
.quick-grid .quick-item:hover { background: #c8102e; color: #fff; transform: translateY(-2px); }
.quick-grid .quick-item:hover .qi-title { color: #fff; }
.quick-grid .quick-item .qi-icon { width: 44px; height: 44px; margin: 0 auto 8px; background: #fef5f6; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #c8102e; font-size: 18px; }
.quick-grid .quick-item:hover .qi-icon { background: rgba(255,255,255,.2); color: #fff; }
.quick-grid .quick-item .qi-title { font-size: 13px; color: #555; }

/* ========== 区块标题 ========== */
.section-title { display: flex; align-items: center; margin-bottom: 20px; }
.section-title h2 { font-size: 22px; color: #333; font-weight: 600; position: relative; padding-left: 14px; }
.section-title h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; background: #c8102e; border-radius: 2px; }
.section-title .st-sub { color: #999; font-size: 13px; margin-left: 12px; }
.section-title .st-more { margin-left: auto; font-size: 13px; color: #999; }
.section-title .st-more:hover { color: #c8102e; }

/* ========== 通用面板 ========== */
.panel { background: #fff; border-radius: 8px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
