@charset "UTF-8";
/* 默认模板样式 - 酒店专业风格 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Microsoft YaHei', sans-serif; background: #f8f9fa; }

/* 导航 */
.navbar { background: linear-gradient(135deg, #2c3e50, #34495e); padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; }
.home-navbar { background: transparent; position: absolute; top: 0; left: 0; right: 0; }
.nav-brand { font-size: 20px; font-weight: bold; color: #c9a96e; letter-spacing: 1px; }
.nav-links { display: flex; align-items: center; gap: 5px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link { padding: 8px 16px; color: rgba(255,255,255,0.8); text-decoration: none; border-radius: 6px; font-size: 14px; transition: all 0.3s; display: block; white-space: nowrap; }
.nav-link:hover { color: white; background: rgba(255,255,255,0.1); }
.nav-item.active > .nav-link { color: #c9a96e; background: rgba(201,169,110,0.15); font-weight: bold; }
/* home类禁用active高亮 */
.nav-item.active.home > .nav-link { color: rgba(255,255,255,0.8); background: none; font-weight: normal; }
.nav-link .fa { margin-right: 5px; font-size: 14px; }
/* 子菜单 */
.submenu { display:none; position: absolute; top: 100%; left: 0; background: white; border: none; border-radius: 5px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); min-width: 180px; list-style: none; padding: 5px 0; }
.nav-item:hover > .submenu { display: inline-block; z-index: 1000; }
.submenu li { position: relative; }
.submenu li a { display: block; padding: 10px 15px; color: #333; text-decoration: none; font-size: 14px; white-space: nowrap; }
.submenu li a:hover { background: #f0f0f0; color: #2c3e50; }
.submenu li.active > a { color: #c9a96e; font-weight: bold; background: #fdf6e3; }
/* 导航箭头（一级菜单 ▾） */
.nav-arrow { display: inline-block; color: rgba(255,255,255,0.6); font-size: 10px; margin-left: 2px; transition: transform 0.3s ease, color 0.3s ease; transform: rotate(180deg); vertical-align: middle; }
.nav-item:hover > .nav-arrow { color: white; transform: rotate(0deg); }
/* 子菜单箭头（二级菜单 ▸） */
.submenu-arrow { display: inline-block; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #999; font-size: 12px; transition: transform 0.3s ease, color 0.3s ease; }
.submenu li:hover > .submenu-arrow { color: #333; transform: translateY(-50%) rotate(90deg); }
/* 三级子菜单 */
.submenu-sub { display: none; position: absolute; top: 0; left: 100%; background: white; border: 1px solid #ddd; border-radius: 5px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); min-width: 160px; z-index: 1001; list-style: none; padding: 5px 0; margin-left: -1px; }
.submenu li:hover > .submenu-sub { display: block; }
.submenu-sub li a { display: block; padding: 10px 15px; color: #333; text-decoration: none; font-size: 14px; white-space: nowrap; }
.submenu-sub li a:hover { background: #f0f0f0; color: #2c3e50; }
.submenu-sub li.active > a { color: #c9a96e; font-weight: bold; background: #fdf6e3; }
.nav-toggle { display: none; background: none; border: none; color: white; font-size: 20px; cursor: pointer; padding: 8px; }
.nav-right { display: flex; align-items: center; gap: 20px; }

/* 语言下拉 */
.language-switch { position: relative; }
.lang-dropdown { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 5px; cursor: pointer; font-size: 14px; color: white; }
.lang-dropdown:hover { background: rgba(255,255,255,0.15); }
.lang-dropdown .flag { font-size: 18px; }
.lang-dropdown .arrow { font-size: 10px; color: #999; }
.lang-menu { display: none; position: absolute; top: 100%; right: 0; background: white; border: 1px solid #ddd; border-radius: 5px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); min-width: 150px; z-index: 1000; margin-top: 5px; }
.lang-menu.show { display: block; }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 15px; text-decoration: none; color: #333; font-size: 14px; }
.lang-menu a:hover { background: #f0f0f0; }
.lang-menu a.active { background: #2c3e50; color: white; }

/* 收藏按钮 */
.btn-favorites { display: flex; align-items: center; gap: 5px; padding: 8px 15px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 5px; text-decoration: none; color: #e74c3c; font-size: 14px; }
.btn-favorites:hover { background: rgba(255,255,255,0.15); }
.fav-count { background: #e74c3c; color: white; border-radius: 10px; padding: 2px 8px; font-size: 12px; font-weight: bold; }
.btn-logout { padding: 8px 15px; background: #e74c3c; color: white; text-decoration: none; border-radius: 5px; font-size: 14px; }
.btn-login { padding: 8px 20px; background: #c9a96e; color: #2c3e50; border: none; border-radius: 5px; font-size: 14px; font-weight: bold; cursor: pointer; }
.btn-login:hover { background: #b8943d; }

/* 布局 */
.main-container { display: flex; padding: 20px; gap: 20px; }
.sidebar { width: 250px; background: white; border-radius: 10px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); border-top: 3px solid #c9a96e; flex-shrink: 0; }
.sidebar h3 { font-size: 16px; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #c9a96e; color: #2c3e50; }
.category-list { list-style: none; }
.category-list li { padding: 10px; margin-bottom: 5px; border-radius: 5px; }
.category-list li.active { background: #2c3e50; }
.category-list li.active a { color: white; }
.category-list a { color: #333; text-decoration: none; display: block; }
.category-list ul { list-style: none; padding-left: 20px; }
.content { flex: 1; }

/* 产品网格 */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.product-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); transition: all 0.3s; border: 1px solid #ecf0f1; border-top: 3px solid #c9a96e; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.product-image { width: 100%; height: 200px; background: #f5f5f5; display: flex; align-items: center; justify-content: center; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.no-image { color: #999; font-size: 14px; }
.product-info { padding: 20px; }
.product-name { font-size: 16px; font-weight: bold; margin-bottom: 8px; color: #2c3e50; }
.product-sku { font-size: 12px; color: #999; margin-bottom: 10px; }
.product-price { font-size: 18px; font-weight: bold; color: #e67e22; margin-bottom: 15px; }
.product-actions { display: flex; gap: 10px; }
.btn-detail { flex: 1; padding: 10px; text-align: center; background: #2c3e50; color: white; text-decoration: none; border-radius: 5px; font-size: 14px; }
.btn-fav { padding: 10px 15px; background: white; border: 1px solid #ddd; border-radius: 5px; cursor: pointer; font-size: 18px; }
.btn-fav.active { color: #e74c3c; border-color: #e74c3c; }

/* 详情页 */
.detail-container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.back-link { display: inline-block; margin-bottom: 20px; color: #2c3e50; text-decoration: none; font-size: 14px; }
.product-detail { display: flex; gap: 40px; background: white; border-radius: 10px; padding: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.product-gallery { flex: 1; max-width: 500px; }
.gallery-main { position: relative; width: 100%; height: 400px; background: #f5f5f5; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.85); border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 18px; cursor: pointer; color: #333; box-shadow: 0 2px 6px rgba(0,0,0,0.15); transition: background 0.2s; z-index: 2; }
.gallery-arrow:hover { background: #fff; }
.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s; flex-shrink: 0; }
.gallery-thumb:hover { border-color: #999; }
.gallery-thumb.active { border-color: #c9a96e; }
.product-video { margin-top: 20px; }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; background: #000; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 8px; }
.product-info-section { flex: 1; }
.product-title { font-size: 24px; font-weight: bold; margin-bottom: 15px; color: #2c3e50; }
.product-sku { font-size: 14px; color: #999; margin-bottom: 20px; }
.price-box { background: #fdf6e3; padding: 20px; border-radius: 8px; margin-bottom: 25px; border-left: 4px solid #c9a96e; }
.product-price { font-size: 28px; font-weight: bold; color: #e67e22; }

/* 标签页 */
.tabs { margin-bottom: 25px; }
.tab-buttons { display: flex; border-bottom: 2px solid #ecf0f1; margin-bottom: 15px; }
.tab-btn { padding: 12px 20px; background: none; border: none; cursor: pointer; font-size: 14px; color: #666; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab-btn.active { color: #2c3e50; border-bottom-color: #c9a96e; font-weight: bold; }
.tab-content { display: none; font-size: 14px; color: #666; line-height: 1.8; }
.tab-content.active { display: block; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 10px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.spec-table td:first-child { color: #999; width: 100px; }

/* 操作按钮 */
.action-buttons { display: flex; gap: 15px; margin-top: 30px; }
.btn-primary { flex: 1; padding: 12px; background: #e67e22; color: white; border: none; border-radius: 5px; font-size: 16px; cursor: pointer; }
.btn-secondary { flex: 1; padding: 12px; background: white; color: #2c3e50; border: 2px solid #2c3e50; border-radius: 5px; font-size: 16px; cursor: pointer; }

/* 同类产品推荐 */
.similar-products { margin-top: 40px; }
.similar-products .section-title { font-size: 20px; font-weight: bold; color: #2c3e50; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #c9a96e; }

/* 分页 */
.pagination { margin-top: 30px; display: flex; justify-content: center; gap: 10px; }
.pagination a { padding: 8px 15px; border: 1px solid #ddd; background: white; text-decoration: none; border-radius: 5px; color: #666; }
.pagination a.active { background: #2c3e50; color: white; border-color: #2c3e50; }
.no-products { text-align: center; padding: 60px; color: #999; grid-column: 1 / -1; }

/* ============= 产品列表页 ============= */
.list-page { max-width: 1200px; margin: 0 auto; padding: 20px; }
.breadcrumb { margin-bottom: 15px; font-size: 13px; color: #999; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.breadcrumb a { color: #2c3e50; text-decoration: none; }
.breadcrumb a:hover { color: #c9a96e; }
.breadcrumb .sep { color: #ccc; }
.breadcrumb .current { color: #009688; font-weight: 600; }
.list-title { font-size: 24px; margin-bottom: 20px; color: #2c3e50; }
.category-filter { margin-bottom: 25px; padding: 12px 15px; background: #f8f9fa; border-radius: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.filter-label { font-weight: 600; margin-right: 8px; color: #333; font-size: 14px; }
.filter-btn { padding: 6px 16px; border-radius: 20px; text-decoration: none; font-size: 14px; transition: all 0.2s; background: #e9ecef; color: #555; border: 1px solid #dee2e6; }
.filter-btn:hover { background: #dee2e6; }
.filter-btn.active { background: #009688; color: white; font-weight: 600; box-shadow: 0 2px 8px rgba(0,150,136,0.3); border-color: #009688; }
.list-total { color: #999; font-size: 13px; margin-bottom: 15px; }

/* 响应式 - 列表页 */
@media (max-width: 768px) {
    .list-page { padding: 15px; }
    .list-title { font-size: 20px; }
    .category-filter { gap: 8px; }
    .filter-btn { padding: 8px 14px; font-size: 13px; }
}
@media (max-width: 480px) {
    .list-page { padding: 10px; }
    .list-title { font-size: 18px; }
    .category-filter { padding: 10px; }
    .filter-btn { padding: 8px 12px; font-size: 13px; min-height: 36px; }
}

/* ============= 专题页 ============= */
.topics-page { max-width: 1200px; margin: 0 auto; padding: 20px; }
.topics-header { text-align: center; margin-bottom: 40px; }
.topics-title { font-size: 32px; font-weight: bold; color: #2c3e50; margin-bottom: 10px; }
.topics-subtitle { font-size: 16px; color: #7f8c8d; }

/* 专题网格 */
.topics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 25px; }
.topic-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: all 0.3s; border: 1px solid #ecf0f1; text-decoration: none; color: inherit; display: flex; flex-direction: column; position: relative; }
.topic-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.12); }
.topic-card.pinned { border-top: 3px solid #c9a96e; }
.topic-pin-badge { position: absolute; top: 12px; right: 12px; background: rgba(201,169,110,0.95); color: white; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: bold; z-index: 2; }

/* 封面图 */
.topic-cover { width: 100%; height: 200px; background: #f0f2f5; overflow: hidden; }
.topic-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.topic-card:hover .topic-cover img { transform: scale(1.05); }
.topic-cover-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2c3e50, #34495e); }
.topic-cover-placeholder span { font-size: 48px; opacity: 0.5; }

/* 卡片内容 */
.topic-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.topic-card-title { font-size: 18px; font-weight: bold; color: #2c3e50; margin-bottom: 8px; line-height: 1.4; }
.topic-card-desc { font-size: 13px; color: #7f8c8d; line-height: 1.6; margin-bottom: 12px; }
.topic-card-meta { font-size: 13px; color: #999; margin-bottom: 12px; }
.topic-product-count { background: #f0f2f5; padding: 3px 10px; border-radius: 12px; }

/* 价格 */
.topic-card-pricing { display: flex; gap: 15px; margin-bottom: 12px; flex-wrap: wrap; }
.topic-market-price, .topic-bundle-price { display: flex; flex-direction: column; }
.topic-market-price .label, .topic-bundle-price .label, .topic-save-badge + .topic-view-btn + .topic-market-price .label { font-size: 11px; color: #999; margin-bottom: 2px; }
.topic-market-price .price { font-size: 14px; color: #999; text-decoration: line-through; }
.topic-bundle-price .price { font-size: 18px; font-weight: bold; color: #e67e22; }

.topic-save-badge { display: inline-block; background: linear-gradient(135deg, #e74c3c, #c0392b); color: white; padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: bold; margin-bottom: 12px; }

.topic-view-btn { display: block; text-align: center; padding: 10px; background: #2c3e50; color: white; border-radius: 8px; font-size: 14px; font-weight: bold; margin-top: auto; transition: background 0.3s; }
.topic-card:hover .topic-view-btn { background: #1a252f; }

/* 专题详情页 */
.topic-detail-page { max-width: 1200px; margin: 0 auto; padding: 20px; }
.topic-back { margin-bottom: 20px; }
.back-link { display: inline-block; color: #2c3e50; text-decoration: none; font-size: 14px; padding: 8px 0; }
.back-link:hover { color: #c9a96e; }

/* 专题英雄区 */
.topic-hero { position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 30px; min-height: 280px; display: flex; align-items: flex-end; }
.topic-hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.topic-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.topic-hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(44,62,80,0.9) 0%, rgba(44,62,80,0.3) 60%, transparent 100%); }
.topic-hero-content { position: relative; z-index: 1; padding: 40px; color: white; width: 100%; }
.topic-hero-pin { display: inline-block; background: rgba(201,169,110,0.9); padding: 4px 14px; border-radius: 20px; font-size: 13px; margin-bottom: 15px; }
.topic-hero-title { font-size: 36px; font-weight: bold; margin-bottom: 12px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.topic-hero-desc { font-size: 16px; opacity: 0.9; max-width: 700px; line-height: 1.7; }

/* 价格概览 */
.topic-price-overview { background: white; border-radius: 12px; padding: 25px 30px; margin-bottom: 30px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); border-left: 4px solid #c9a96e; }
.price-overview-inner { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.price-box-item { display: flex; flex-direction: column; }
.price-box-item .price-label { font-size: 13px; color: #999; margin-bottom: 4px; }
.price-box-item .price-value { font-size: 22px; font-weight: bold; color: #333; }
.price-box-item .price-value.bundle { color: #e67e22; }
.price-box-item .price-value.savings { color: #27ae60; }
.savings-percent { font-size: 14px; font-weight: normal; opacity: 0.8; }

/* 亮点特色 */
.topic-highlights { margin-bottom: 30px; }
.section-title { font-size: 22px; font-weight: bold; color: #2c3e50; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #c9a96e; }
.highlights-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; }
.highlight-item { display: flex; align-items: flex-start; gap: 12px; padding: 15px; background: #fdf6e3; border-radius: 10px; border: 1px solid #f0e6c8; }
.highlight-number { width: 28px; height: 28px; background: #c9a96e; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: bold; flex-shrink: 0; }
.highlight-text { font-size: 14px; color: #333; line-height: 1.6; padding-top: 3px; }

/* 关联产品 */
.topic-products { margin-bottom: 30px; }
.topic-products-empty { text-align: center; padding: 60px; color: #999; background: white; border-radius: 12px; }
.topic-products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.topic-product-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid #ecf0f1; border-top: 3px solid #c9a96e; transition: all 0.3s; }
.topic-product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.topic-product-image { width: 100%; height: 200px; background: #f5f5f5; overflow: hidden; }
.topic-product-image img { width: 100%; height: 100%; object-fit: cover; }
.topic-product-info { padding: 18px; }
.topic-product-name { font-size: 16px; font-weight: bold; color: #2c3e50; margin-bottom: 6px; }
.topic-product-sku { font-size: 12px; color: #999; margin-bottom: 8px; }
.topic-product-desc { font-size: 13px; color: #7f8c8d; line-height: 1.5; margin-bottom: 10px; }
.topic-product-price { font-size: 18px; font-weight: bold; color: #e67e22; margin-bottom: 12px; }
.topic-product-link { display: block; text-align: center; padding: 10px; background: #2c3e50; color: white; text-decoration: none; border-radius: 8px; font-size: 13px; transition: background 0.3s; }
.topic-product-link:hover { background: #1a252f; }

/* 空状态 */
.topics-empty { text-align: center; padding: 80px 20px; }
.topics-empty .empty-icon { font-size: 64px; margin-bottom: 20px; opacity: 0.5; }
.topics-empty p { font-size: 16px; color: #999; margin-bottom: 20px; }
.btn-primary-topic { display: inline-block; padding: 12px 30px; background: #2c3e50; color: white; text-decoration: none; border-radius: 8px; font-size: 14px; }

/* ============= 首页区域样式 ============= */
/* 英雄区（大图） */
.home-hero { position: relative; height: 500px; overflow: hidden; }
.home-hero img { width: 100%; height: 100%; object-fit: cover; }
.home-hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,0.7)); display: flex; align-items: flex-end; padding: 40px; }
.home-hero-content { color: #fff; }
.home-hero-content h1 { font-size: 36px; margin-bottom: 10px; }
.home-hero-content p { font-size: 18px; opacity: 0.9; }

/* 专题区域 */
.home-topics { padding: 40px; }
.home-topics h2 { font-size: 24px; margin-bottom: 20px; color: #2c3e50; }
.home-topics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.home-topic-card { border: 1px solid #ecf0f1; border-radius: 8px; overflow: hidden; transition: transform 0.3s; text-decoration: none; color: inherit; display: block; }
.home-topic-card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.home-topic-card img { width: 100%; height: 150px; object-fit: cover; }
.home-topic-card .info { padding: 15px; }
.home-topic-card h3 { font-size: 16px; margin-bottom: 5px; color: #2c3e50; }
.home-topic-card p { font-size: 13px; color: #666; }

/* 网站介绍区域 */
.home-about { padding: 60px 40px; background: #f9f9f9; }
.home-about h2 { font-size: 24px; margin-bottom: 20px; color: #2c3e50; }
.home-about p { line-height: 1.8; color: #666; }

/* 首页产品区域 */
.home-products { padding: 40px; }
.home-products h2 { font-size: 24px; margin-bottom: 20px; color: #2c3e50; }

/* 反馈区域 */
.home-feedback { padding: 60px 40px; background: #2c3e50; color: #fff; }
.home-feedback h2 { font-size: 24px; margin-bottom: 10px; }
.home-feedback p { margin-bottom: 30px; opacity: 0.8; }
.feedback-form { max-width: 500px; }
.feedback-form .form-group { margin-bottom: 15px; }
.feedback-form input, .feedback-form textarea { width: 100%; padding: 12px; border: 1px solid rgba(255,255,255,0.3); border-radius: 5px; background: rgba(255,255,255,0.1); color: #fff; font-size: 14px; }
.feedback-form input::placeholder, .feedback-form textarea::placeholder { color: rgba(255,255,255,0.5); }
.feedback-form .submit-btn { background: #c9a96e; color: #2c3e50; border: none; padding: 12px 30px; border-radius: 5px; font-size: 16px; font-weight: bold; cursor: pointer; }
.feedback-form .submit-btn:hover { background: #b8943d; }
.feedback-result { margin-top: 15px; padding: 10px; border-radius: 5px; }
.feedback-result.success { background: rgba(46,204,113,0.2); color: #2ecc71; }
.feedback-result.error { background: rgba(231,76,60,0.2); color: #e74c3c; }

/* 登录弹窗 */
.login-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.85); display: none; justify-content: center; align-items: center; z-index: 9999; }
.login-overlay.active { display: flex; }
.login-modal { background: #fff; padding: 40px; border-radius: 10px; width: 420px; max-width: 90%; position: relative; max-height: 90vh; overflow-y: auto; }
.login-modal .close-btn { position: absolute; top: 15px; right: 20px; font-size: 24px; cursor: pointer; color: #999; transition: color 0.2s; }
.login-modal .close-btn:hover { color: #333; }
.login-modal h2 { margin-bottom: 20px; color: #2c3e50; font-size: 22px; }
.login-modal .form-group { margin-bottom: 15px; }
.login-modal label { display: block; margin-bottom: 5px; color: #666; font-size: 13px; }
.login-modal input, .login-modal select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; box-sizing: border-box; }
.login-modal .email-row { display: flex; gap: 8px; }
.login-modal .email-row input { flex: 1; min-width: 0; }
.login-modal .email-row select { flex: 0 0 130px; }
.login-modal .captcha-row { display: flex; gap: 8px; align-items: flex-start; }
.login-modal .captcha-row input { flex: 1; min-width: 0; }
.login-modal .captcha-img { height: 42px; border-radius: 5px; cursor: pointer; border: 1px solid #ddd; flex-shrink: 0; object-fit: cover; }
.login-modal .captcha-img:hover { border-color: #c9a96e; }
.login-modal .remember-row input { width:25px;}

.login-modal .login-btn { width: 100%; padding: 12px; background: #c9a96e; color: #2c3e50; border: none; border-radius: 5px; font-size: 16px; font-weight: bold; cursor: pointer; margin-top: 10px; transition: background 0.2s; }
.login-modal .login-btn:hover { background: #b8943d; }
.login-modal .error-message { background: #fff3f3; color: #e74c3c; padding: 12px; border-radius: 5px; margin-bottom: 15px; font-size: 13px; border-left: 3px solid #e74c3c; line-height: 1.5; }
.login-modal .remember-row { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; white-space: nowrap; }
.login-modal .remember-row label { margin: 0; white-space: nowrap; }

/* 过渡动画 */
body { animation: fadeIn 0.3s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============= 响应式 - 平板 (≤768px) ============= */
@media (max-width: 768px) {
    /* 导航栏简化 */
    .navbar { padding: 12px 15px; flex-wrap: wrap; }
    .nav-brand { font-size: 16px; }
    .nav-links { display: none; flex-basis: 100%; flex-direction: column; padding: 10px 0 0 0; gap: 0; }
    .nav-links.show { display: flex; }
    .nav-link { padding: 12px 15px; width: 100%; }
    .nav-toggle { display: block; }
    .nav-right { gap: 10px; }
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .btn-favorites { padding: 6px 10px; font-size: 13px; }
    .btn-logout { padding: 6px 10px; font-size: 13px; }

    /* 主容器改纵向堆叠 */
    .main-container { flex-direction: column; padding: 15px; gap: 15px; }

    /* 侧边栏改为可折叠 */
    .sidebar { width: 100%; border-top: none; border-left: 3px solid #c9a96e; }
    .sidebar h3 { cursor: pointer; user-select: none; position: relative; }
    .sidebar h3::after { content: '▼'; position: absolute; right: 0; font-size: 12px; color: #999; transition: transform 0.3s; }
    .sidebar.collapsed h3::after { transform: rotate(-90deg); }
    .sidebar.collapsed .category-list { display: none; }

    /* 产品网格：2列 */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-image { height: 150px; }
    .product-info { padding: 12px; }
    .product-name { font-size: 14px; }
    .product-price { font-size: 15px; }

    /* 详情页堆叠 */
    .product-detail { flex-direction: column; gap: 20px; padding: 20px; }
    .product-gallery { max-width: 100%; }
    .main-image { height: 250px; }
    .product-title { font-size: 20px; }
    .action-buttons { flex-direction: column; }
    .action-buttons .btn-primary,
    .action-buttons .btn-secondary { min-height: 44px; }

    /* 标签按钮适配 */
    .tab-btn { padding: 10px 14px; font-size: 13px; min-height: 44px; }
    .tab-buttons { overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* 分页触摸友好 */
    .pagination a { padding: 10px 14px; min-height: 44px; display: flex; align-items: center; }

    /* 专题页平板 */
    .topics-page { padding: 15px; }
    .topics-title { font-size: 26px; }
    .topics-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .topic-cover { height: 160px; }
    .topic-hero { min-height: 220px; }
    .topic-hero-title { font-size: 28px; }
    .topic-hero-content { padding: 25px; }
    .price-overview-inner { gap: 25px; }
    .highlights-grid { grid-template-columns: 1fr; }
    .topic-products-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    
    /* 首页平板 */
    .home-hero { height: 400px; }
    .home-hero-content h1 { font-size: 28px; }
    .home-topics, .home-products { padding: 30px 20px; }
    .home-about { padding: 40px 30px; }
    .home-feedback { padding: 40px 30px; }
}

/* ============= 响应式 - 手机 (≤480px) ============= */
@media (max-width: 480px) {
    /* 导航栏紧凑 */
    .navbar { padding: 10px 12px; }
    .nav-brand { font-size: 14px; letter-spacing: 0; }
    .nav-right { gap: 8px; }
    .btn-favorites { padding: 5px 8px; font-size: 12px; gap: 3px; }
    .btn-logout { padding: 5px 8px; font-size: 12px; }
    .lang-dropdown { padding: 5px 8px; font-size: 12px; }

    /* 主容器 */
    .main-container { padding: 10px; gap: 10px; }

    /* 产品网格：1列 */
    .products-grid { grid-template-columns: 1fr; gap: 10px; }
    .product-image { height: 180px; }
    .product-info { padding: 15px; }
    .product-name { font-size: 15px; }
    .product-price { font-size: 16px; }
    .product-actions { flex-direction: column; }
    .btn-detail { min-height: 44px; }
    .btn-fav { min-height: 44px; min-width: 44px; }

    /* 详情页 */
    .detail-container { padding: 10px; }
    .back-link { padding: 8px 0; min-height: 44px; display: inline-flex; align-items: center; }
    .main-image { height: 200px; }
    .product-title { font-size: 18px; }
    .price-box { padding: 15px; }
    .product-price { font-size: 22px; }

    /* 标签页紧凑 */
    .tab-btn { padding: 8px 10px; font-size: 12px; white-space: nowrap; }
    .spec-table td { padding: 8px 0; font-size: 13px; }

    /* 操作按钮 */
    .action-buttons { gap: 10px; margin-top: 20px; }
    .btn-primary,
    .btn-secondary { padding: 14px; font-size: 14px; min-height: 48px; }

    /* 分页 */
    .pagination { gap: 6px; flex-wrap: wrap; }
    .pagination a { padding: 8px 12px; min-height: 44px; font-size: 13px; }

    /* 专题页手机 */
    .topics-page { padding: 10px; }
    .topics-title { font-size: 22px; }
    .topics-subtitle { font-size: 14px; }
    .topics-grid { grid-template-columns: 1fr; gap: 12px; }
    .topic-cover { height: 180px; }
    .topic-card-body { padding: 15px; }
    .topic-card-title { font-size: 16px; }
    .topic-card-pricing { gap: 10px; }
    .topic-hero { min-height: 200px; border-radius: 10px; }
    .topic-hero-title { font-size: 22px; }
    .topic-hero-desc { font-size: 14px; }
    .topic-hero-content { padding: 20px; }
    .topic-price-overview { padding: 18px; }
    .price-overview-inner { gap: 15px; flex-direction: column; align-items: flex-start; }
    .price-box-item .price-value { font-size: 18px; }
    .section-title { font-size: 18px; }
    .highlight-item { padding: 12px; }
    .topic-products-grid { grid-template-columns: 1fr; }
    .topic-product-image { height: 180px; }
    
    /* 首页手机 */
    .home-hero { height: 300px; }
    .home-hero-content h1 { font-size: 22px; }
    .home-hero-content p { font-size: 14px; }
    .home-topics, .home-products { padding: 20px 15px; }
    .home-topics h2, .home-products h2 { font-size: 20px; }
    .home-about { padding: 30px 20px; }
    .home-about h2 { font-size: 20px; }
    .home-feedback { padding: 30px 20px; }
    .home-feedback h2 { font-size: 20px; }
    .login-modal { padding: 25px; width: 95%; }
}

/* ============= 导航菜单 cssstyle 自定义样式 ============= */

/* 动画关键帧 */
@keyframes badge-bounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-3px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-2px); }
}
@keyframes badge-swing {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(8deg); }
    40% { transform: rotate(-6deg); }
    60% { transform: rotate(4deg); }
    80% { transform: rotate(-2deg); }
}
@keyframes badge-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.85; }
}
@keyframes badge-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
@keyframes badge-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(2px); }
    75% { transform: translateX(-2px); }
}

/* 通用徽章基础样式 */
.nav-item.hot > .nav-link::after,
.submenu li.hot > a::after,
.submenu-sub li.hot > a::after,
.nav-item.sale > .nav-link::after,
.submenu li.sale > a::after,
.submenu-sub li.sale > a::after,
.nav-item.new > .nav-link::after,
.submenu li.new > a::after,
.submenu-sub li.new > a::after,
.nav-item.vip > .nav-link::after,
.submenu li.vip > a::after,
.submenu-sub li.vip > a::after {
    display: inline-block;
    font-size: 9px;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}

/* HOT - 跳跃动画 */
.nav-item.hot > .nav-link::after,
.submenu li.hot > a::after,
.submenu-sub li.hot > a::after {
    content: 'HOT';
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    animation: badge-bounce 1.2s ease-in-out infinite;
}

/* SALE - 脉冲动画 */
.nav-item.sale > .nav-link::after,
.submenu li.sale > a::after,
.submenu-sub li.sale > a::after {
    content: 'SALE';
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
    animation: badge-pulse 1.5s ease-in-out infinite;
}

/* NEW - 摇摆动画 */
.nav-item.new > .nav-link::after,
.submenu li.new > a::after,
.submenu-sub li.new > a::after {
    content: 'NEW';
    background: #27ae60;
    color: white;
    animation: badge-swing 2s ease-in-out infinite;
}

/* VIP - 闪烁动画 */
.nav-item.vip > .nav-link::after,
.submenu li.vip > a::after,
.submenu-sub li.vip > a::after {
    content: 'VIP';
    background: linear-gradient(135deg, #c9a96e, #b8943d);
    color: #2c3e50;
    animation: badge-flash 2s ease-in-out infinite;
}

/* STAR - 星星旋转+脉冲 */
.nav-item.star > .nav-link::after,
.submenu li.star > a::after,
.submenu-sub li.star > a::after {
    content: '\2605';
    color: #f1c40f;
    font-size: 14px;
    margin-left: 4px;
    display: inline-block;
    animation: badge-pulse 1.8s ease-in-out infinite;
}

/* ============= navbar 页面级样式控制 ============= */
/* 通过导航项cssstyle控制navbar背景色 */
/* 默认导航栏 */
.navbar { background: linear-gradient(135deg, #2c3e50, #34495e); }
/* 首页特殊导航栏 */
.navbar.home { background: linear-gradient(135deg, #1a252f, #2c3e50); }
/* hot热卖页导航栏 */
.navbar.hot { background: linear-gradient(135deg, #8b0000, #c0392b); }
/* sale促销页导航栏 */
.navbar.sale { background: linear-gradient(135deg, #d35400, #e67e22); }
/* new新品页导航栏 */
.navbar.new { background: linear-gradient(135deg, #1e7e34, #27ae60); }
/* star推荐页导航栏 */
.navbar.star { background: linear-gradient(135deg, #7d6608, #f1c40f); }
/* vip会员页导航栏 */
.navbar.vip { background: linear-gradient(135deg, #5d4e37, #c9a96e); }
/* about页面导航栏 */
.navbar.about { background: linear-gradient(135deg, #2c3e50, #34495e); }

/* 导航栏文字颜色随背景调整 */
.navbar.star .nav-link { color: #2c3e50; }
.navbar.star .nav-brand { color: #2c3e50; }
.navbar.sale .nav-link { color: white; }
