/* 全局重置与防溢出 */
* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
body.way-body { background-color: #f7f8fa; 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; }

/* 容器与顶部区域 */
.way-container { max-width: 1200px; margin: 0 auto; padding: 0 15px; width: 100%; }
.way-topbar { background-color: #225b7a; color: #ffffff; font-size: 12px; height: 35px; line-height: 35px; }
.way-topbar-wrap { display: flex; justify-content: space-between; align-items: center; }
.way-topbar-links a { margin-left: 15px; color: #e0e0e0; transition: color 0.3s; }
.way-topbar-links a:hover { color: #f6931d; }

/* 头部导航区 */
.way-header { background: #ffffff; border-bottom: 1px solid #eeeeee; padding: 20px 0; position: sticky; top: 0; z-index: 1000; }
.way-header-wrap { display: flex; justify-content: space-between; align-items: center; }
.way-logo img { max-height: 45px; max-width: 200px; object-fit: contain; }

/* 主菜单 */
.way-nav { display: flex; list-style: none; align-items: center; gap: 5px; }
.way-nav-item a { display: block; padding: 10px 15px; font-size: 15px; font-weight: 700; color: #222222; transition: all 0.3s; text-transform: capitalize; border-radius: 4px; }
.way-nav-item a:hover, .way-nav-item.active a { color: #ffffff; background: #225b7a; }

/* 标题与公告 */
.way-notice { background: #fff8f0; border-left: 4px solid #f6931d; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.02); margin: 20px auto; padding: 12px 20px; font-size: 14px; color: #555555; }
.way-sec-title { text-align: center; font-size: 28px; font-weight: 800; color: #222222; margin: 60px 0 30px; text-transform: capitalize; }
.way-sec-title span { color: #225b7a; }

/* 按钮通用 */
.way-btn { background: #225b7a; color: #ffffff; padding: 8px 20px; border-radius: 4px; font-size: 13px; font-weight: 600; display: inline-block; border: none; cursor: pointer; transition: all 0.3s; text-align: center; }
.way-btn:hover { background: #f6931d; color: #ffffff; }

/* 方框一：巨幕 Banner */
.way-hero-sec { background: #f0f2f5; border-radius: 8px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: center; margin-bottom: 50px; }
.way-hero-left { padding: 50px; }
.way-hero-title { font-size: 36px; font-weight: 900; color: #222222; margin-bottom: 15px; line-height: 1.2; }
.way-hero-desc { font-size: 15px; color: #666666; margin-bottom: 25px; line-height: 1.6; }
.way-hero-right img { width: 100%; height: 100%; object-fit: cover; }

/* 各种 Grid */
.way-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 40px; }
.way-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.way-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.way-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; margin-bottom: 40px; }
.way-grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 40px; }

/* 服务卡片 */
.way-service-card { background: #ffffff; border: 1px solid #eeeeee; padding: 30px 20px; text-align: center; border-radius: 8px; transition: 0.3s; }
.way-service-card:hover { border-color: #225b7a; box-shadow: 0 10px 20px rgba(34,91,122,0.05); }

/* 横向优惠卡片 */
.way-deal-card { background: #e8eaf6; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; }
.way-deal-info { padding: 30px; }
.way-deal-img { width: 150px; height: 150px; object-fit: contain; }

/* 核心商品卡片 */
.way-card { background: #ffffff; border: 1px solid #eeeeee; border-radius: 8px; padding: 15px; display: flex; flex-direction: column; justify-content: space-between; transition: 0.3s; text-align: center; position: relative; }
.way-card:hover { border-color: #f6931d; box-shadow: 0 8px 25px rgba(0,0,0,0.05); transform: translateY(-3px); }
.way-card-badge { position: absolute; top: 15px; right: 15px; background: #225b7a; color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 4px; font-weight: bold; }
.way-card-img { width: 100%; height: 160px; object-fit: contain; margin-bottom: 15px; }
.way-card-title { font-size: 15px; font-weight: bold; color: #222; margin-bottom: 8px; }
.way-card-stars { color: #f6931d; font-size: 12px; margin-bottom: 10px; }
.way-price-row { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 15px; }
.way-price-current { color: #f6931d; font-size: 18px; font-weight: 900; }

/* 精选品牌卡 */
.way-brand-card { background: #ffffff; border: 1px solid #eeeeee; border-radius: 8px; padding: 25px 15px; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; }

/* 倒计时巨幕 */
.way-countdown-sec { background: #fdfdfd; border: 1px solid #eee; border-radius: 8px; padding: 40px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 50px; }
.way-countdown-box { display: flex; gap: 10px; margin: 20px 0; }
.way-time-block { background: #ffffff; border: 1px solid #ddd; border-radius: 6px; padding: 10px 15px; text-align: center; }

/* 客户评价单栏 */
.way-client-card { background: #ffffff; border: 1px solid #eeeeee; border-radius: 8px; padding: 40px; text-align: center; margin-bottom: 50px; }
.way-client-avatar { width: 80px; height: 80px; border-radius: 50%; border: 3px solid #f6931d; margin: 0 auto 15px; object-fit: cover; }

/* 底部图集 */
.way-gallery-card { border-radius: 4px; overflow: hidden; height: 150px; }
.way-gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.way-gallery-card:hover img { transform: scale(1.1); }

/* 表格与内页 */
.way-table { width: 100%; border-collapse: collapse; background: #ffffff; border-radius: 8px; overflow: hidden; margin-bottom: 40px; border: 1px solid #eeeeee; }
.way-table th, .way-table td { padding: 15px; text-align: left; border-bottom: 1px solid #f5f5f5; font-size: 14px; }
.way-table th { background: #f8fafc; color: #225b7a; font-weight: bold; }
.way-badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: bold; }
.way-badge-auto { background: #e3f2fd; color: #225b7a; }
.way-badge-manual { background: #f5f5f5; color: #666; }
.way-detail-wrap { background: #ffffff; padding: 30px; border: 1px solid #eeeeee; border-radius: 8px; margin-bottom: 40px; }

/* 底部区域 */
.way-footer { background: #111111; color: #aaaaaa; padding: 60px 0 30px; font-size: 14px; }
.way-footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 40px; }
.way-footer h4 { color: #ffffff; font-size: 16px; font-weight: bold; margin-bottom: 20px; }
.way-footer ul { list-style: none; line-height: 2.2; }
.way-footer a { transition: color 0.3s; }
.way-footer a:hover { color: #f6931d; }
.way-copyright { border-top: 1px solid #222222; padding-top: 20px; text-align: center; color: #777777; font-size: 13px; }

/* 通用防溢出与移动端自适应 */
[style*="nowrap"], div[class*="title"], p[class*="title"], a[class*="title"], .way-text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 992px) {
    .way-grid-4, .way-grid-5, .way-grid-6 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 768px) {
    .way-hero-sec, .way-countdown-sec, .way-footer-grid { grid-template-columns: 1fr !important; }
    .way-hero-left, .way-countdown-sec { padding: 30px; text-align: center; }
    .way-grid-2, .way-grid-3 { grid-template-columns: 1fr !important; }
    .way-header-wrap { flex-direction: column; gap: 15px; }
    .way-nav { flex-wrap: wrap; justify-content: center; }
}
