/* ============================================================
 * V2 现代电商主题 (橙色系)
 * 前缀：hd- (完全避免与原样式冲突)
 * ============================================================ */

:root {
    --hd-primary: #feae34;
    --hd-primary-hover: #e64800;
    --hd-orange-light: #fff2ec;
    --hd-bg: #f5f5f5;
    --hd-white: #ffffff;
    --hd-text: #333333;
    --hd-text-sub: #666666;
    --hd-text-light: #999999;
    --hd-border: #eeeeee;
    --hd-shadow: 0 4px 16px rgba(0,0,0,0.06);
    --hd-shadow-hover: 0 8px 24px rgba(255,80,0,0.15);
    --hd-radius: 12px;
    --hd-container: 1320px;
}

/* 基础重置 (仅作用于 hd- 容器内) */
body { background-color: var(--hd-bg); color: var(--hd-text); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.hd-container { width: var(--hd-container); margin: 0 auto; max-width: 100%; padding: 0 15px; box-sizing: border-box; margin-top: 20px;}
.hd-main-wrapper { padding-bottom: 50px; overflow: hidden; }
.hd-main-wrapper ul { margin: 0; padding: 0; list-style: none; }
.hd-main-wrapper a { text-decoration: none; color: inherit; transition: all 0.2s; }
.hd-main-wrapper a:hover { color: var(--hd-primary); }
.hd-main-wrapper img { max-width: 100%; vertical-align: middle; border: none; }

/* ================= Header 部分 ================= */
.hd-header-top { background: #fff; border-bottom: 1px solid var(--hd-border); font-size: 13px; color: var(--hd-text-sub); padding: 8px 0; }
.hd-header-top .hd-container { display: flex; justify-content: space-between; }
.hd-header-top a { margin-left: 15px; }

.hd-header-main { background: #fff; padding: 20px 0; }
.hd-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.hd-logo img { height: 50px; }
.hd-search-box {
    flex: 1; max-width: 600px; display: flex; height: 48px;
    border: 2px solid var(--hd-primary); border-radius: 24px; overflow: hidden;
    box-shadow: 0 2px 10px rgba(255,80,0,0.1);
}
.hd-search-box input { flex: 1; border: none; outline: none; padding: 0 20px; font-size: 15px; }
.hd-search-box button {
    width: 100px; border: none; background: var(--hd-primary); color: #fff;
    font-size: 16px; font-weight: bold; cursor: pointer; transition: 0.3s;
}
.hd-search-box button:hover { background: var(--hd-primary-hover); }

.hd-header-cart { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--hd-text); font-weight: 500; }
.hd-header-cart i { font-size: 24px; color: var(--hd-primary); }

/* Banner 轮播 (在 Header 中) */
.hd-banner-wrap { width: 100%; height: 450px; overflow: hidden; position: relative; background: #e0e0e0; }
.hd-banner-slider { width: 100%; height: 100%; display: flex; transition: transform 0.5s ease; }
.hd-banner-item { min-width: 100%; height: 100%; }
.hd-banner-item img { width: 100%; height: 100%; object-fit: cover; }

/* ================= Index 正文部分 ================= */

/* 1. 首屏分屏 (左文右图) */
.hd-hero-split {
    background: linear-gradient(135deg, #fff9f5 0%, #ffebd9 100%);
    padding: 50px 0 80px; /* 底部留白给金刚区覆盖 */
    position: relative;
}
.hd-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hd-hero-left { flex: 1.1; }
.hd-hero-left h1 { font-size: 52px; font-weight: 900; color: #222; line-height: 1.2; margin: 0 0 20px 0; }
.hd-hero-left h1 span { color: var(--hd-primary); }
.hd-hero-left p { font-size: 18px; color: var(--hd-text-sub); margin-bottom: 30px; line-height: 1.6; }
.hd-hero-btns { display: flex; gap: 15px; }
.hd-btn { display: inline-block; padding: 12px 30px; border-radius: 30px; font-size: 16px; font-weight: bold; cursor: pointer; text-align: center; }
.hd-btn-primary { background: var(--hd-primary); color: #fff; box-shadow: 0 4px 15px rgba(255,80,0,0.3); }
.hd-btn-primary:hover { background: var(--hd-primary-hover); color: #fff; transform: translateY(-2px); }
.hd-btn-outline { border: 2px solid var(--hd-primary); color: var(--hd-primary); }
.hd-btn-outline:hover { background: var(--hd-orange-light); }

/* 右侧正方形拼贴 */
.hd-hero-right {
    flex: 0.9; display: grid; grid-template-columns: 1fr 1fr; gap: 15px;
}
.hd-collage-box {
    width: 100%; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: 0.4s ease;
}
.hd-collage-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.hd-collage-box:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(255,80,0,0.15); }
.hd-collage-box:hover img { transform: scale(1.08); }
.hd-box-1 { transform: translateY(20px); }
.hd-box-2 { transform: translateY(-10px); }
.hd-box-3 { transform: translateY(10px); }
.hd-box-4 { transform: translateY(-20px); }

/* 2. 金刚区 (悬浮) */
.hd-quick-nav {
    margin: -40px auto 30px; position: relative; z-index: 10;
    background: #fff; border-radius: var(--hd-radius); box-shadow: var(--hd-shadow);
    display: flex; justify-content: space-around; padding: 20px 0; width: 100%;
}
.hd-quick-item { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.hd-quick-item i {
    font-size: 26px; color: var(--hd-primary); background: var(--hd-orange-light);
    width: 65px; height: 65px; display: flex; justify-content: center; align-items: center;
    border-radius: 50%; transition: 0.3s;
}
.hd-quick-item:hover i { background: var(--hd-primary); color: #fff; transform: translateY(-3px); }

/* 3. 便当盒分类 (Bento Box) */
.hd-bento-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 20px; margin-bottom: 40px;
}
.hd-bento-card { position: relative; border-radius: var(--hd-radius); overflow: hidden; display: block; box-shadow: var(--hd-shadow); }
.hd-bento-card:nth-child(1) { grid-row: span 2; }
.hd-bento-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.hd-bento-card:hover img { transform: scale(1.05); }
.hd-bento-card { position: relative; border-radius: var(--hd-radius); overflow: hidden; display: block; box-shadow: var(--hd-shadow); }
.hd-bento-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; position: relative; z-index: 1; }
.hd-bento-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px 20px 20px; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%); z-index: 2; }
.hd-bento-info h3 { margin: 0 0 5px 0; font-size: 22px; font-weight: bold; color: #ffffff !important; text-shadow: 0 2px 4px rgba(0,0,0,0.6); }
.hd-bento-info p { margin: 0; font-size: 14px; color: #f0f0f0 !important; text-shadow: 0 1px 3px rgba(0,0,0,0.6); }
/* 4. 甄选好物 (瀑布流) */
.hd-section-title { text-align: center; font-size: 28px; font-weight: bold; margin: 0 0 30px 0; color: var(--hd-text); position: relative; }
.hd-section-title::after { content: ''; display: block; width: 50px; height: 3px; background: var(--hd-primary); margin: 12px auto 0; border-radius: 2px; }
.hd-masonry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 50px; }

/* 商品卡片 */
.hd-product-card {
    background: #fff; border-radius: var(--hd-radius); padding: 15px;
    transition: all 0.3s; border: 1px solid transparent;
}
.hd-product-card:hover { box-shadow: var(--hd-shadow-hover); border-color: var(--hd-primary); transform: translateY(-5px); }
.hd-product-img { display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 8px; background: #f9f9f9; }
.hd-product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.hd-product-card:hover .hd-product-img img { transform: scale(1.06); }
.hd-product-info { padding: 15px 5px 5px; }
.hd-product-title { height: 44px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 15px; line-height: 1.5; margin-bottom: 12px; }
.hd-product-price-row { display: flex; justify-content: space-between; align-items: center; }
.hd-price { font-size: 20px; font-weight: bold; color: var(--hd-primary); }
.hd-add-cart { width: 36px; height: 36px; background: var(--hd-orange-light); color: var(--hd-primary); border-radius: 50%; display: flex; justify-content: center; align-items: center; transition: 0.2s; }
.hd-add-cart:hover { background: var(--hd-primary); color: #fff; }

/* 5. 新闻资讯区 */
.hd-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-bottom: 40px; }
.hd-news-card { background: #fff; border-radius: var(--hd-radius); box-shadow: var(--hd-shadow); padding: 25px; }
.hd-news-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--hd-border); padding-bottom: 15px; margin-bottom: 15px; }
.hd-news-head h3 { font-size: 18px; font-weight: bold; margin: 0; border-left: 4px solid var(--hd-primary); padding-left: 10px; line-height: 1; }
.hd-news-head a { font-size: 13px; color: var(--hd-text-light); }
.hd-news-list li { display: flex; justify-content: space-between; padding: 12px 0; font-size: 14px; border-bottom: 1px dashed var(--hd-border); }
.hd-news-list li:last-child { border-bottom: none; }
.hd-news-list li a { color: var(--hd-text-sub); flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-right: 15px; }
.hd-news-list li span { color: var(--hd-text-light); font-size: 13px; }

/* ================= Footer 部分 ================= */
.hd-footer { background: #22262b; color: #a8b0b9; padding: 50px 0 20px; margin-top: 30px; }
.hd-footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 30px; margin-bottom: 20px; }
.hd-footer-nav a { color: #a8b0b9; margin-right: 20px; font-size: 14px; }
.hd-footer-nav a:hover { color: #fff; }
.hd-footer-copy { font-size: 13px; line-height: 1.8; text-align: center; color: #7a828a; }
.hd-footer-copy a { color: #7a828a; }
.hd-footer-copy a:hover { color: var(--hd-primary); }

/* 响应式 */
@media (max-width: 1200px) {
    .hd-hero-left h1 { font-size: 40px; }
    .hd-bento-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px; }
    .hd-bento-card:nth-child(1) { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 992px) {
    .hd-hero-inner { flex-direction: column; text-align: center; }
    .hd-hero-right { width: 100%; max-width: 500px; margin: 30px auto 0; }
    .hd-masonry-grid { grid-template-columns: repeat(3, 1fr); }
    .hd-news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hd-header-inner { flex-direction: column; gap: 15px; }
    .hd-search-box { width: 100%; }
    .hd-banner-wrap { height: 200px; }
    .hd-quick-nav { flex-wrap: wrap; gap: 15px; padding: 15px; }
    .hd-quick-item { width: 30%; }
    .hd-masonry-grid { grid-template-columns: repeat(2, 1fr); }
    .hd-bento-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .hd-bento-card:nth-child(1) { grid-column: span 1; }
    .hd-bento-card { height: 200px; }
}

/* ============================================================
 * 首屏区域 V2.2 (精致杂志风重构)
 * ============================================================ */

/* 背景优化：加一点微弱的网格纹理，显得更高级 */
.hd-hero-split {
    background: linear-gradient(135deg, #fffbf7 0%, #ffeedd 100%);
    padding: 60px 0 90px;
    position: relative;
    overflow: hidden;
}
/* 背景装饰圆圈 */
.hd-hero-split::before {
    content: ''; position: absolute; top: -100px; left: -100px;
    width: 400px; height: 400px; background: rgba(255, 80, 0, 0.03); border-radius: 50%;
}

.hd-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; position: relative; z-index: 2;}

/* 左侧文案 */
.hd-hero-left { flex: 1.1; }
.hd-hero-tag {
    display: inline-block; padding: 6px 15px; background: #fff;
    color: var(--hd-primary); font-size: 14px; font-weight: bold;
    border-radius: 20px; box-shadow: 0 2px 10px rgba(255,80,0,0.1); margin-bottom: 20px;
}
.hd-hero-left h1 { font-size: 52px; font-weight: 900; color: #222; line-height: 1.2; margin: 0 0 20px 0; letter-spacing: -1px;}
.hd-hero-left h1 span { 
    color: var(--hd-primary); 
    position: relative; display: inline-block;
}
/* 标题底部高亮装饰 */
.hd-hero-left h1 span::after {
    content: ''; position: absolute; left: 0; bottom: 5px; width: 100%; height: 12px;
    background: rgba(255, 80, 0, 0.15); z-index: -1; border-radius: 6px;
}
.hd-hero-left p { font-size: 18px; color: var(--hd-text-sub); margin-bottom: 35px; line-height: 1.6; }

/* 按钮优化 */
.hd-hero-btns { display: flex; gap: 20px; margin-bottom: 40px;}
.hd-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 35px; border-radius: 30px; font-size: 16px; font-weight: bold; cursor: pointer; text-align: center; transition: all 0.3s;}
.hd-btn-primary { background: var(--hd-primary); color: #fff; box-shadow: 0 8px 25px rgba(255,80,0,0.3); }
.hd-btn-primary:hover { background: var(--hd-primary-hover); color: #fff; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(255,80,0,0.4);}
.hd-btn-outline { border: 2px solid var(--hd-primary); color: var(--hd-primary); background: transparent;}
.hd-btn-outline:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.05);}

/* 底部特色小图标 */
.hd-hero-features { display: flex; gap: 25px; }
.hd-feature-item { font-size: 15px; color: var(--hd-text-sub); display: flex; align-items: center; gap: 8px; font-weight: 500;}
.hd-feature-item i { color: var(--hd-primary); font-size: 18px; }

/* 右侧杂志风拼贴 */
/* 右侧杂志风拼贴 (核心对齐逻辑) */
.hd-hero-right-v2 { 
    flex: 0.9; 
    display: flex; 
    gap: 20px; 
    height: 460px; /* 固定总高度 */
}
.hd-collage-main { 
    flex: 1.3; 
    height: 100%; /* 强制填满 */
}
.hd-collage-side { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    height: 100%; /* 强制填满 */
}
.hd-collage-sub { 
    flex: 1; /* 关键：右侧两个小图均分剩余高度 */
    height: calc(50% - 10px); /* 减去 gap 的一半 */
    overflow: hidden; 
    border-radius: 20px;
}

/* 统一图片容器样式 */
.hd-img-box {
    display: block; 
    width: 100%; 
    height: 100%; 
    background: #f0f2f5;
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease; 
    position: relative;
}
/* 空的图片容器占位图标 */
.hd-img-box::before {
    content: '\f03e'; font-family: "Font Awesome 6 Free"; font-weight: 900; 
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 40px; color: #d1d5db; z-index: 0;
}
.hd-img-box img {
    width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ================= 新增：悬浮遮罩效果 ================= */
.hd-img-mask {
    position: absolute; bottom: 0; left: 0; right: 0; top: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    z-index: 2;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 20px;
    opacity: 0; /* 默认隐藏 */
    transition: all 0.3s ease;
}
.hd-mask-title {
    color: #fff; font-size: 18px; font-weight: bold; margin: 0 0 10px 0;
    transform: translateY(15px); transition: all 0.3s ease;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hd-mask-btn {
    display: inline-block; color: #fff; background: var(--hd-primary);
    padding: 6px 15px; border-radius: 20px; font-size: 13px; font-weight: bold;
    width: fit-content;
    transform: translateY(15px); transition: all 0.3s ease; transition-delay: 0.05s;
}

/* 鼠标移入时的动效 */
.hd-img-box:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 20px 40px rgba(255,80,0,0.2); 
}
.hd-img-box:hover img { transform: scale(1.08); }
.hd-img-box:hover .hd-img-mask { opacity: 1; }
.hd-img-box:hover .hd-mask-title, 
.hd-img-box:hover .hd-mask-btn { transform: translateY(0); }
/* 响应式调整 */
@media (max-width: 1200px) {
    .hd-hero-left h1 { font-size: 40px; }
    .hd-hero-right-v2 { height: 380px; }
}
@media (max-width: 992px) {
    .hd-hero-inner { flex-direction: column; text-align: center; }
    .hd-hero-btns, .hd-hero-features { justify-content: center; }
    .hd-hero-right-v2 { width: 100%; max-width: 600px; margin: 40px auto 0; height: 400px; }
}
@media (max-width: 768px) {
    .hd-hero-right-v2 { height: 280px; gap: 10px; }
    .hd-collage-side { gap: 10px; }
    .hd-hero-features { flex-wrap: wrap; gap: 15px; }
    .hd-btn { padding: 12px 25px; font-size: 15px; }
}

.hd-floor-wrapper {
    margin-bottom: 50px;
}

.hd-cate-floor {
    margin-bottom: 40px;
    background: #fff;
    border-radius: var(--hd-radius);
    padding: 25px 30px;
    box-shadow: var(--hd-shadow);
}

.hd-floor-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2px solid var(--hd-border);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.hd-floor-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.hd-floor-title h2 {
    font-size: 24px;
    font-weight: bold;
    color: var(--hd-text);
    margin: 0;
    position: relative;
    padding-left: 15px;
}

.hd-floor-title h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--hd-primary);
    border-radius: 2px;
}

.hd-floor-title span {
    font-size: 13px;
    color: var(--hd-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hd-floor-links {
    flex: 1;
    margin-left: 30px;
    display: flex;
    gap: 20px;
}

.hd-floor-links a {
    font-size: 14px;
    color: var(--hd-text-sub);
}

.hd-floor-links a:hover {
    color: var(--hd-primary);
    font-weight: bold;
}

.hd-floor-more {
    font-size: 14px;
    color: var(--hd-primary);
    font-weight: 500;
}

.hd-floor-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .hd-floor-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .hd-floor-links {
        display: none;
    }
}

@media (max-width: 992px) {
    .hd-floor-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hd-floor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hd-cate-floor {
        padding: 15px;
    }
    .hd-floor-title h2 {
        font-size: 20px;
    }
}