/* index/index.html - 样式表 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; min-height: 100vh; padding-bottom: 60px; }
button { outline: none; -webkit-tap-highlight-color: transparent; -webkit-appearance: none; -moz-appearance: none; appearance: none; border: none; background: none; padding: 0; margin: 0; cursor: pointer; }
button:focus, button:focus-visible, button:active { outline: none; -webkit-tap-highlight-color: transparent; }

.logo-container { background: #005136; padding: 8px 20px; display: flex; justify-content: center; align-items: center; position: sticky; top: 0; z-index: 100;}
.logo-container img { height: 20px; width: auto; }

.header-bar { background: #006241; color: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; border-radius: 0 0 20px 20px; }
.header-left { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #006241 0%, #00704A 100%); display: flex; align-items: center; justify-content: center; font-size: 18px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-name { font-size: 14px; font-weight: 600; color: white; }
.hotel-name { font-size: 12px; opacity: 0.9; }
.header-right { display: flex; align-items: center; gap: 5px; background: rgba(255,255,255,0.15); padding: 6px 12px; border-radius: 20px; font-size: 14px; }

.swiper { margin: 15px; border-radius: 12px; overflow: hidden; background: #e8f5e9; position: relative; touch-action: pan-y; }
.swiper-container { width: 100%; position: relative; display: flex; transition: transform 0.3s ease-out; }
.swiper-slide { flex-shrink: 0; width: 100%; cursor: pointer; }
.swiper-slide img { width: 100%; height: auto; display: block; }
.swiper-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.swiper-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.3s; }
.swiper-dot.active { background: white; }
.swiper-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; color: #999; text-align: center; }
.swiper-placeholder div:first-child { font-size: 48px; margin-bottom: 8px; }

.ad-section { margin: 0 15px 15px; background: white; border-radius: 12px; padding: 15px; display: flex; justify-content: space-between; align-items: center; }
.ad-left { display: flex; align-items: center; gap: 15px; }
.ad-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.ad-text h3 { font-size: 3.5vw; color: #333; margin-bottom: 4px; }
.ad-text p { font-size: 13px; color: #999; }
.ad-btn { background: linear-gradient(135deg, #006241 0%, #00704A 100%); color: white; border: none; padding: 6px; border-radius: 10px; font-size: 14px; font-weight: 500; cursor: pointer; }

.category-section { margin: 0 15px 15px; background: white; border-radius: 12px; padding: 15px; }
.category-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.category-section-title { font-size: 16px; font-weight: 600; color: #333; }
.category-section-link { color: #00704A; font-size: 13px; text-decoration: none; }
.category-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 5px; }
.category-scroll::-webkit-scrollbar { display: none; }
.category-card-horizontal { flex-shrink: 0; width: 100px; background: white; border: 1px solid #f5f6f8; border-radius: 10px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; align-items: center; padding: 10px; }
.category-card-horizontal .category-icon { width: 100%; height: 60px; display: flex; align-items: flex-start; justify-content: center; font-size: 20px; margin-bottom: 8px; }
.category-card-horizontal .category-icon img { max-width: 100%; max-height: 100%; object-fit: contain; }
.category-card-horizontal .category-name { font-size: 12px; color: #333; text-align: center; font-weight: 500; }

.product-section { margin: 0 15px 15px; background: white; border-radius: 12px; padding: 15px; }
.product-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.product-section-title { font-size: 16px; font-weight: 600; color: #333; }
.product-section-link { color: #00704A; font-size: 13px; text-decoration: none; }
.product-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 5px; }
.product-scroll::-webkit-scrollbar { display: none; }
.product-card-horizontal { flex-shrink: 0; width: 120px; background: #fafafa; border-radius: 10px; overflow: hidden; cursor: pointer; }
.product-card-horizontal .product-img { width: 100%; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-size: 28px; overflow: hidden; }
.product-card-horizontal .product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-horizontal .product-info { padding: 8px; }
.product-card-horizontal .product-name { font-size: 12px; color: #333; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card-horizontal .product-points { font-size: 12px; color: #e74c3c; font-weight: bold; }

.coffee-section { margin: 0 15px; background: white; border-radius: 12px; padding: 15px; }
.coffee-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.coffee-title { font-size: 16px; font-weight: 600; color: #333; }
.exchange-link { color: #00704A; font-size: 13px; text-decoration: none; }
.cover-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.cover-card { background: #f5f5f5; border-radius: 12px; overflow: hidden; cursor: pointer; position: relative; }
.cover-card img { width: 100%; height: 140px; object-fit: cover; }
.cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    padding: 30px 12px 10px;
    text-align: center;
}
.cover-points {
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.menu-section { margin: 0 15px 15px; background: white; border-radius: 12px; padding: 20px; }

.coupon-section { margin: 0 15px 15px; padding: 0; }
.coupon-card-stack { position: relative; padding: 0; }
.coupon-card-stack-bg, .coupon-card-stack-bg2 { position: absolute; left: 0; right: 0; height: 14px; background: #006241; border-radius: 12px 12px 4px 4px; opacity: 0.85; }
.coupon-card-stack-bg { top: 8px; }
.coupon-card-stack-bg2 { top: 16px; opacity: 0.55; }
.coupon-card { position: relative; display: flex; align-items: stretch; background: linear-gradient(135deg, #006241 0%, #00704A 100%); color: white; border-radius: 16px; padding: 18px 20px; text-decoration: none; box-shadow: 0 4px 16px rgba(0,98,65,0.18); overflow: hidden; }
.coupon-card::before { content: ''; position: absolute; top: -30%; right: -10%; width: 140px; height: 140px; background: rgba(255,255,255,0.08); border-radius: 50%; }
.coupon-card-left { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 92px; padding-right: 16px; }
.coupon-discount { font-size: 36px; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.coupon-off { font-size: 13px; font-weight: 600; margin-top: 2px; opacity: 0.9; }
.coupon-card-divider { width: 1px; background: rgba(255,255,255,0.3); margin: 0 4px; position: relative; }
.coupon-card-divider::before, .coupon-card-divider::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); width: 14px; height: 14px; background: #f5f5f5; border-radius: 50%; }
.coupon-card-divider::before { top: -7px; }
.coupon-card-divider::after { bottom: -7px; }
.coupon-card-right { flex: 1; padding-left: 16px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.coupon-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.coupon-subtitle { font-size: 12px; opacity: 0.9; margin-bottom: 8px; line-height: 1.4; }
.coupon-action { font-size: 12px; font-weight: 600; padding: 4px 10px; background: rgba(255,255,255,0.2); border-radius: 10px; align-self: flex-start; }
.coupon-progress { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.coupon-progress-bar { flex: 1; height: 6px; background: rgba(255,255,255,0.25); border-radius: 3px; overflow: hidden; }
.coupon-progress-fill { height: 100%; background: #FFD700; border-radius: 3px; transition: width 0.4s ease; }
.coupon-progress-text { font-size: 11px; font-weight: 700; color: #FFD700; min-width: 32px; text-align: right; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.menu-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #333; }
.menu-icon { width: 56px; height: 56px; background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 10px; object-fit: contain; padding: 10px; }
.menu-name { font-size: 13px; color: #333; text-align: center; }

.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1001; justify-content: center; align-items: center; }
.modal-overlay.show { display: flex; }
.modal-content { background: white; width: 90%; max-width: 350px; border-radius: 16px; overflow: hidden; }
.modal-header { padding: 16px 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { margin: 0; font-size: 16px; }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #999; }
.hotel-list { max-height: 300px; overflow-y: auto; }
.hotel-item { padding: 16px 20px; border-bottom: 1px solid #f0f0f0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.hotel-item:hover { background: #f8f9fa; }
.hotel-item.active { background: #e8f5e9; }
.hotel-item.active .check-icon { display: inline; }
.check-icon { color: #006241; font-weight: bold; display: none; }
.loading { text-align: center; padding: 40px; color: #999; }
@keyframes homeAdModalIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
