/* 全局重置与防溢出 */
* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
body.tasty-body { background-color: #f4f4f4; color: #333333; font-family: "Helvetica Neue", "PingFang SC", Arial, sans-serif; overflow-x: hidden; width: 100%; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* 容器与导航区域 */
.tasty-container { max-width: 1300px; margin: 0 auto; padding: 0 15px; width: 100%; }
.tasty-header { background: #ffffff; padding: 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.tasty-header-wrap { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.tasty-logo { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; background: #000; border-radius: 8px; color: #fff; font-size: 24px; }
.tasty-logo img { max-height: 40px; max-width: 150px; object-fit: contain; }
.tasty-nav { display: flex; list-style: none; align-items: center; gap: 10px; margin-left: 20px; flex-grow: 1; }
.tasty-nav-item a { display: block; padding: 10px 15px; font-size: 14px; font-weight: 600; color: #555; transition: all 0.3s; text-transform: uppercase; }
.tasty-nav-item a:hover, .tasty-nav-item.active a { color: #000000; }
.tasty-header-actions { display: flex; align-items: center; gap: 20px; }
.tasty-search-box { display: flex; align-items: center; background: #f0f0f0; border-radius: 30px; overflow: hidden; height: 40px; padding: 0 15px; width: 250px; }
.tasty-search-input { border: none; background: transparent; font-size: 13px; height: 100%; flex-grow: 1; outline: none; }
.tasty-action-icon { position: relative; font-size: 20px; color: #000; font-weight: bold; cursor: pointer; }
.tasty-action-badge { position: absolute; top: -8px; right: -10px; background: #f00e5a; color: #fff; font-size: 10px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* 按钮与通用组件 */
.tasty-btn { background: #f00e5a; color: #ffffff; padding: 12px 30px; border-radius: 4px; font-size: 14px; font-weight: 800; display: inline-block; border: none; cursor: pointer; transition: all 0.3s; text-transform: uppercase; letter-spacing: 1px; }
.tasty-btn:hover { background: #d00a4d; }

/* 标题与公告 */
.tasty-notice { background: #fffde7; border-left: 4px solid #ffeb00; padding: 12px 20px; font-size: 14px; color: #333; margin: 20px auto; font-weight: 500; }
.tasty-sec-title { font-size: 22px; font-weight: 900; color: #000000; margin: 50px 0 25px; text-transform: uppercase; display: flex; justify-content: space-between; align-items: flex-end; }
.tasty-sec-title span { font-size: 13px; color: #888; font-weight: 600; cursor: pointer; }

/* 方框一：巨幕 Banner */
.tasty-hero-sec { background: #ffd600; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 60px 0; overflow: hidden; }
@media (max-width: 768px) { .tasty-hero-sec { grid-template-columns: 1fr; padding: 40px 15px; text-align: center; } }
.tasty-hero-left { padding-left: 5%; }
.tasty-hero-right { display: flex; justify-content: center; }
.tasty-hero-title { font-size: 60px; font-weight: 900; color: #000000; line-height: 1.1; margin-bottom: 20px; text-transform: uppercase; }
@media (max-width: 768px) { .tasty-hero-title { font-size: 40px; } }
.tasty-hero-desc { font-size: 16px; color: #222; margin-bottom: 30px; line-height: 1.6; font-weight: 500; max-width: 80%; }
@media (max-width: 768px) { .tasty-hero-desc { max-width: 100%; } }

/* 方框二：暗黑区块 */
.tasty-black-sec { background: #000000; padding: 50px 0; color: #ffffff; }
.tasty-black-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.tasty-black-title { font-size: 24px; font-weight: 900; text-transform: uppercase; }
.tasty-timer-box { background: #ffffff; color: #000000; padding: 10px 20px; font-weight: 900; font-size: 22px; border-radius: 4px; display: flex; flex-direction: column; align-items: flex-end; }
.tasty-timer-box span { font-size: 10px; color: #666; text-transform: uppercase; letter-spacing: 1px; }
.tasty-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 992px) { .tasty-grid-4 { grid-template-columns: repeat(2, 1fr); } }
.tasty-black-card { background: #ffffff; color: #000; padding: 20px; border-radius: 4px; display: flex; flex-direction: column; justify-content: space-between; transition: 0.3s; }
.tasty-black-card:hover { transform: translateY(-5px); }

/* 方框三：中幅黑底海报 */
.tasty-banner-sec { background: #111111; color: #ffffff; padding: 60px 50px; border-radius: 4px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; margin-top: 50px; min-height: 350px; }
.tasty-banner-content { position: relative; z-index: 2; max-width: 500px; }
.tasty-banner-title { font-size: 32px; font-weight: 900; margin-bottom: 15px; }
.tasty-banner-desc { font-size: 14px; color: #aaa; margin-bottom: 30px; line-height: 1.6; }
.tasty-banner-bg { position: absolute; right: 0; top: 0; height: 100%; width: 50%; object-fit: cover; z-index: 1; opacity: 0.6; }
@media (max-width: 768px) { .tasty-banner-bg { width: 100%; opacity: 0.3; } .tasty-banner-sec { padding: 40px 20px; text-align: center; } .tasty-banner-content { max-width: 100%; } }

/* 通用商品卡片 */
.tasty-card { background: #ffffff; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; transition: 0.3s; position: relative; }
.tasty-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); z-index: 2; }
.tasty-card-img { width: 100%; height: 200px; object-fit: contain; margin-bottom: 20px; transition: transform 0.4s; }
.tasty-card:hover .tasty-card-img { transform: scale(1.05); }
.tasty-card-cat { font-size: 11px; color: #888; font-weight: 700; text-transform: uppercase; margin-bottom: 5px; }
.tasty-card-title { font-size: 15px; font-weight: 900; color: #000; margin-bottom: 10px; line-height: 1.4; }
.tasty-card-price-row { display: flex; align-items: baseline; gap: 10px; }
.tasty-price-current { font-size: 16px; font-weight: 900; color: #000; }
.tasty-price-old { font-size: 13px; color: #aaa; text-decoration: line-through; font-weight: 600; }
.tasty-badge-dark { position: absolute; top: 15px; left: 15px; background: #000; color: #fff; font-size: 10px; font-weight: 800; padding: 4px 8px; z-index: 2; text-transform: uppercase; }

/* 方框六：胶囊标签阵列 */
.tasty-tags-box { background: #ffffff; padding: 30px; border-radius: 4px; display: flex; flex-wrap: wrap; gap: 12px; }
.tasty-tag { border: 1px solid #e0e0e0; color: #555; padding: 8px 16px; border-radius: 20px; font-size: 12px; font-weight: 600; transition: 0.3s; cursor: pointer; }
.tasty-tag:hover { border-color: #000; color: #000; }

/* 表格与内页 */
.tasty-table { width: 100%; border-collapse: collapse; background: #ffffff; overflow: hidden; margin-bottom: 40px; }
.tasty-table th, .tasty-table td { padding: 15px; text-align: left; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.tasty-table th { background: #f9f9f9; color: #000000; font-weight: 800; text-transform: uppercase; font-size: 12px; }
.tasty-badge { display: inline-block; padding: 3px 8px; border-radius: 2px; font-size: 11px; font-weight: bold; text-transform: uppercase; }
.tasty-badge-auto { background: #e0f2f1; color: #009688; }
.tasty-badge-manual { background: #f5f5f5; color: #666; }
.tasty-detail-wrap { background: #ffffff; padding: 40px; margin-bottom: 40px; }

/* 底部区域 */
.tasty-footer { background: #ebebeb; color: #555555; padding: 60px 0 30px; font-size: 14px; }
.tasty-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr; gap: 30px; margin-bottom: 40px; }
@media(max-width: 992px) { .tasty-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 768px) { .tasty-footer-grid { grid-template-columns: 1fr; } }
.tasty-footer h4 { color: #000000; font-size: 15px; font-weight: 900; margin-bottom: 20px; text-transform: uppercase; }
.tasty-footer ul { list-style: none; line-height: 2.2; }
.tasty-footer a { transition: color 0.3s; font-weight: 500; font-size: 13px; }
.tasty-footer a:hover { color: #f00e5a; }
.tasty-copyright { border-top: 1px solid #ddd; padding-top: 20px; text-align: left; color: #888; font-size: 12px; font-weight: 500; display: flex; justify-content: space-between; }
@media(max-width: 768px) { .tasty-copyright { flex-direction: column; text-align: center; gap: 10px; } }

/* 通用防溢出与移动端自适应 */
[style*="nowrap"], div[class*="title"], p[class*="title"], a[class*="title"], .tasty-text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 768px) {
    .tasty-header-wrap { flex-direction: column; height: auto; padding: 15px 0; gap: 15px; }
    .tasty-nav { flex-wrap: wrap; justify-content: center; margin-left: 0; }
    .tasty-black-header { flex-direction: column; gap: 15px; }
}
