/* 全局重置与防溢出 */
* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
body.animal-body { background-color: #f4f5f8; 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; }

/* 容器与顶部区域 */
.animal-container { max-width: 1300px; margin: 0 auto; padding: 0 15px; width: 100%; }
.animal-topbar { background-color: #ffffff; color: #666666; font-size: 12px; padding: 10px 0; border-bottom: 1px solid #eeeeee; }
.animal-topbar-wrap { display: flex; justify-content: space-between; align-items: center; }
.animal-top-links { display: flex; gap: 20px; }
.animal-top-links a:hover { color: #ee3333; }

/* 头部搜索与 Logo */
.animal-header { background: #ffffff; padding: 25px 0; }
.animal-header-wrap { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.animal-logo img { max-height: 45px; max-width: 200px; object-fit: contain; }
.animal-search-form { display: flex; flex-grow: 1; max-width: 600px; border: 2px solid #ee3333; border-radius: 4px; overflow: hidden; height: 42px; }
.animal-search-input { border: none; padding: 0 15px; font-size: 13px; width: 100%; outline: none; }
.animal-search-btn { background: #ee3333; color: #ffffff; border: none; padding: 0 25px; cursor: pointer; font-weight: bold; font-size: 14px; }
.animal-header-icons { display: flex; gap: 20px; align-items: center; }
.animal-icon-btn { position: relative; font-size: 20px; color: #333; cursor: pointer; }
.animal-badge-circle { position: absolute; top: -8px; right: -10px; background: #ee3333; color: #fff; font-size: 10px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }

/* 导航栏 */
.animal-navbar { background: #ffffff; border-top: 1px solid #eee; border-bottom: 1px solid #eee; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.animal-nav-wrap { display: flex; }
.animal-nav-cat { background: #ee3333; color: #ffffff; font-weight: bold; padding: 0 20px; width: 250px; line-height: 50px; font-size: 15px; flex-shrink: 0; }
.animal-nav-links { display: flex; list-style: none; align-items: center; padding-left: 20px; gap: 30px; }
.animal-nav-links a { display: block; line-height: 50px; font-size: 14px; font-weight: bold; color: #333; transition: 0.3s; }
.animal-nav-links a:hover, .animal-nav-links .active a { color: #ee3333; }

/* 主体复杂布局 */
.animal-layout { display: flex; gap: 20px; margin-top: 20px; margin-bottom: 40px; align-items: flex-start; }
.animal-sidebar { width: 250px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }
.animal-main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
@media(max-width: 992px) { 
    .animal-layout { flex-direction: column; } 
    .animal-sidebar { width: 100%; } 
    .animal-nav-cat { width: 100%; text-align: center; }
}

/* 侧边栏卡片 */
.animal-side-card { background: #ffffff; border: 1px solid #eeeeee; border-radius: 4px; padding: 15px; }
.animal-side-title { font-size: 16px; font-weight: bold; color: #333; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #eee; position: relative; }
.animal-side-title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 40px; height: 2px; background: #ee3333; }
.animal-side-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #eee; align-items: center; }
.animal-side-item:last-child { border-bottom: none; padding-bottom: 0; }
.animal-side-img { width: 60px; height: 60px; object-fit: contain; border: 1px solid #f5f5f5; border-radius: 4px; padding: 5px; flex-shrink: 0; }
.animal-side-info { flex-grow: 1; min-width: 0; }

/* 英雄区 (Hero) */
.animal-hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 15px; }
@media(max-width: 768px) { .animal-hero-grid { grid-template-columns: 1fr; } }
.animal-hero-big { background: #eef2f6; border-radius: 4px; padding: 40px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; min-height: 350px; }
.animal-hero-big img { position: absolute; right: 20px; top: 20px; height: 80%; object-fit: contain; z-index: 1; opacity: 0.9; }
.animal-hero-content { position: relative; z-index: 2; max-width: 60%; }
.animal-hero-side { display: flex; flex-direction: column; gap: 15px; justify-content: space-between; }
.animal-hero-small { background: #ffffff; border: 1px solid #eeeeee; border-radius: 4px; padding: 15px; display: flex; align-items: center; gap: 15px; height: 100%; transition: 0.3s; }
.animal-hero-small:hover { border-color: #ee3333; box-shadow: 0 4px 10px rgba(238,51,51,0.05); }

/* 三联促销 */
.animal-promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
@media(max-width: 768px) { .animal-promo-grid { grid-template-columns: 1fr; } }
.animal-promo-item { border-radius: 4px; padding: 20px; display: flex; align-items: center; background: #ffffff; border: 1px solid #eee; }

/* 商品网格通用 */
.animal-main-title { font-size: 18px; font-weight: bold; color: #333; margin-top: 10px; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #eee; position: relative; display: flex; justify-content: space-between; align-items: flex-end; }
.animal-main-title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 60px; height: 2px; background: #ee3333; }
.animal-prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
@media(max-width: 768px) { .animal-prod-grid { grid-template-columns: repeat(2, 1fr); } }
.animal-card { background: #ffffff; border: 1px solid #eeeeee; border-radius: 4px; padding: 15px; position: relative; transition: all 0.3s; text-align: center; }
.animal-card:hover { border-color: #ee3333; box-shadow: 0 5px 15px rgba(238,51,51,0.08); transform: translateY(-2px); z-index: 2; }
.animal-card-badge { position: absolute; top: 10px; right: 10px; background: #ee3333; color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 2px; font-weight: bold; }
.animal-card-img { width: 100%; height: 140px; object-fit: contain; margin-bottom: 15px; }
.animal-stars { color: #ffc107; font-size: 12px; margin-bottom: 8px; }
.animal-price { color: #ee3333; font-weight: bold; font-size: 16px; }

/* 宽幅海报 */
.animal-wide-banner { background: #ffeb3b; border-radius: 4px; padding: 30px; display: flex; align-items: center; justify-content: space-between; }

/* 底部胶囊网格 (Recently Viewed) */
.animal-recent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
@media(max-width: 768px) { .animal-recent-grid { grid-template-columns: repeat(2, 1fr); } }
.animal-recent-card { background: #ffffff; border: 1px solid #eee; border-radius: 4px; padding: 10px; display: flex; align-items: center; gap: 10px; transition: 0.3s; }
.animal-recent-card:hover { border-color: #ee3333; }
.animal-recent-card img { width: 50px; height: 50px; object-fit: contain; flex-shrink: 0; }

/* 按钮与表格 */
.animal-btn { background: #ee3333; color: #ffffff; padding: 8px 18px; border-radius: 4px; font-size: 13px; font-weight: bold; display: inline-block; border: none; cursor: pointer; transition: 0.3s; text-align: center; }
.animal-btn:hover { background: #cc0000; }
.animal-table { width: 100%; border-collapse: collapse; background: #ffffff; border-radius: 4px; overflow: hidden; margin-bottom: 40px; border: 1px solid #eee; }
.animal-table th, .animal-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #f5f5f5; font-size: 13px; }
.animal-table th { background: #fdf2f2; color: #ee3333; font-weight: bold; }
.animal-status-auto { background: #fdf2f2; color: #ee3333; padding: 2px 6px; border-radius: 2px; font-size: 11px; font-weight: bold; }
.animal-status-manual { background: #f5f5f5; color: #666; padding: 2px 6px; border-radius: 2px; font-size: 11px; font-weight: bold; }
.animal-detail-wrap { background: #ffffff; padding: 30px; border: 1px solid #eee; border-radius: 4px; margin-bottom: 40px; }

/* 底部区域 */
.animal-newsletter { background: #ee3333; color: #ffffff; padding: 30px 0; }
.animal-newsletter-wrap { display: flex; justify-content: space-between; align-items: center; }
.animal-footer { background: #ffffff; color: #666666; padding: 50px 0 20px; font-size: 13px; border-top: 1px solid #eee; }
.animal-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 30px; margin-bottom: 40px; }
@media(max-width: 768px) { .animal-footer-grid { grid-template-columns: 1fr 1fr; } }
.animal-footer h4 { color: #111; font-size: 15px; font-weight: bold; margin-bottom: 20px; }
.animal-footer ul { list-style: none; line-height: 2.2; }
.animal-footer a:hover { color: #ee3333; }
.animal-copyright { text-align: center; padding-top: 20px; border-top: 1px solid #eee; color: #999; }

/* 通用防溢出与移动端自适应 */
[style*="nowrap"], div[class*="title"], p[class*="title"], a[class*="title"], .animal-text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
