/* ========================================
   幸运便利店 - 主样式表
   Lucky Store - Main Stylesheet
   ======================================== */

/* CSS Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-orange: #FFA500;
  --color-orange-dark: #E89400;
  --color-orange-light: #FFD280;
  --color-green: #90EE90;
  --color-green-dark: #5CB85C;
  --color-green-light: #C8F7C8;
  --color-blue: #87CEEB;
  --color-blue-dark: #5DADE2;
  --color-white: #FFFFFF;
  --color-bg: #FFF9F0;
  --color-text: #4A4A4A;
  --color-text-light: #7A7A7A;
  --color-card-bg: #FFFFFF;
  --color-border: #F0E6D6;
  --shadow-card: 0 4px 15px rgba(255, 165, 0, 0.12);
  --shadow-hover: 0 8px 25px rgba(255, 165, 0, 0.2);
  --radius-card: 16px;
  --radius-btn: 30px;
  --font-title: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-blue-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-orange);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ========================================
   Header / Navigation
   ======================================== */
.site-header {
  background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-dark) 100%);
  padding: 12px 0;
  position: relative;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo img {
  height: 50px;
  width: auto;
  border-radius: 8px;
}

.site-logo-text {
  color: var(--color-white);
  font-size: 1.3rem;
  font-weight: 700;
}

/* Desktop Nav */
.desktop-nav {
  display: none;
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 6px;
}

.desktop-nav a {
  color: var(--color-white);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  background: rgba(255, 255, 255, 0.25);
  color: var(--color-white);
}

/* Mobile hamburger */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.mobile-menu-btn span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-white);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-nav {
  display: none;
  width: 100%;
  padding: 10px 0;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mobile-nav a {
  display: block;
  color: var(--color-white);
  padding: 8px 14px;
  border-radius: 16px;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: rgba(255, 255, 255, 0.3);
}

/* ========================================
   Hero / Welcome Module
   ======================================== */
.hero-section {
  background: linear-gradient(180deg, #FFF3E0 0%, var(--color-bg) 100%);
  padding: 40px 0 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-image-wrap {
  max-width: 600px;
  margin: 0 auto 20px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero-bubble {
  background: var(--color-white);
  border: 3px solid var(--color-orange);
  border-radius: 20px;
  padding: 16px 24px;
  max-width: 500px;
  margin: 0 auto 20px;
  position: relative;
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.6;
}

.hero-bubble::after {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 12px solid var(--color-orange);
}

.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-dark) 100%);
  color: var(--color-white);
  padding: 14px 36px;
  border-radius: var(--radius-btn);
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 165, 0, 0.5);
  color: var(--color-white);
}

.cta-btn-green {
  background: linear-gradient(135deg, var(--color-green-dark) 0%, #4CAF50 100%);
  box-shadow: 0 4px 15px rgba(92, 184, 92, 0.4);
}

.cta-btn-green:hover {
  box-shadow: 0 6px 20px rgba(92, 184, 92, 0.5);
}

/* ========================================
   Section Common
   ======================================== */
.section-module {
  padding: 40px 0;
}

.section-module:nth-child(even) {
  background: var(--color-white);
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
}

.section-title h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
  color: var(--color-orange-dark);
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-orange), var(--color-green));
  border-radius: 2px;
}

.section-desc {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 30px;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ========================================
   Card Layout
   ======================================== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  background: var(--color-card-bg);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  border: 1px solid var(--color-border);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin-bottom: 8px;
  color: var(--color-orange-dark);
}

.card-body p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.card-tag {
  display: inline-block;
  background: var(--color-green-light);
  color: var(--color-green-dark);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.card-tag-hot {
  background: #FFE0B2;
  color: var(--color-orange-dark);
}

.card-tag-new {
  background: #BBDEFB;
  color: var(--color-blue-dark);
}

/* ========================================
   Brand Story Section
   ======================================== */
.brand-story {
  background: linear-gradient(135deg, #FFF8E7 0%, #F0FFF0 100%);
}

.story-timeline {
  position: relative;
  padding-left: 30px;
}

.story-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-orange), var(--color-green));
  border-radius: 2px;
}

.story-item {
  position: relative;
  margin-bottom: 30px;
  padding: 20px;
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.story-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 24px;
  width: 14px;
  height: 14px;
  background: var(--color-orange);
  border-radius: 50%;
  border: 3px solid var(--color-white);
}

.story-item h3 {
  color: var(--color-orange-dark);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.story-item p {
  font-size: 0.92rem;
  line-height: 1.9;
}

/* ========================================
   Product Shelf
   ======================================== */
.product-shelf {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.shelf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px dashed var(--color-border);
}

.shelf-header h3 {
  color: var(--color-orange-dark);
}

.shelf-badge {
  background: var(--color-orange);
  color: var(--color-white);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ========================================
   Coupon / Promotion
   ======================================== */
.coupon-card {
  background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
  border: 2px dashed var(--color-orange);
  border-radius: var(--radius-card);
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.coupon-card::before,
.coupon-card::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  background: var(--color-bg);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.coupon-card::before { left: -15px; }
.coupon-card::after { right: -15px; }

.coupon-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-orange);
}

.coupon-desc {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 6px;
}

/* ========================================
   Winner Board
   ======================================== */
.winner-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.winner-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-left: 4px solid var(--color-orange);
}

.winner-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.winner-info {
  flex: 1;
}

.winner-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.winner-prize {
  font-size: 0.8rem;
  color: var(--color-orange);
  font-weight: 700;
}

.winner-time {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
}

.faq-question {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.faq-question:hover {
  background: #FFF8F0;
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--color-orange);
  font-weight: 700;
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  content: '-';
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.open .faq-answer {
  padding: 0 20px 16px;
  max-height: 500px;
}

/* ========================================
   APP Download Section
   ======================================== */
.app-section {
  background: linear-gradient(135deg, #E8F5E9 0%, #FFF3E0 100%);
  text-align: center;
}

.app-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

.app-feature-item {
  background: var(--color-white);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.app-feature-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.app-feature-item h4 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.app-feature-item p {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

.qr-wrap {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 20px 0;
}

.qr-item {
  text-align: center;
}

.qr-item img {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.qr-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

/* ========================================
   License Module
   ======================================== */
.license-section {
  background: linear-gradient(135deg, #FFF8E1 0%, #F1F8E9 100%);
}

.license-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 2px solid var(--color-green);
}

.license-card h3 {
  color: var(--color-green-dark);
  margin-bottom: 12px;
}

.license-info {
  display: grid;
  gap: 10px;
}

.license-row {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: 0.9rem;
}

.license-label {
  font-weight: 600;
  color: var(--color-text);
  min-width: 100px;
}

.license-value {
  color: var(--color-text-light);
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: linear-gradient(135deg, #3E2723 0%, #4E342E 100%);
  color: #D7CCC8;
  padding: 40px 0 20px;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--color-orange) 0px,
    var(--color-orange) 20px,
    var(--color-white) 20px,
    var(--color-white) 40px
  );
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h4 {
  color: var(--color-orange-light);
  margin-bottom: 14px;
  font-size: 1rem;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-orange);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #BCAAA4;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--color-orange-light);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-orange-light);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.3s;
}

.social-icon:hover {
  background: var(--color-orange);
  color: var(--color-white);
}

.footer-payment {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.payment-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  color: #BCAAA4;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #8D6E63;
  margin-bottom: 6px;
}

.footer-age {
  display: inline-block;
  margin: 10px auto;
}

.footer-age img {
  width: 50px;
  height: 50px;
}

.receipt-divider {
  text-align: center;
  color: #8D6E63;
  font-size: 0.75rem;
  letter-spacing: 2px;
  margin: 10px 0;
}

/* ========================================
   Mobile Bottom Tab Bar
   ======================================== */
.mobile-tab-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 2px;
  color: var(--color-text-light);
  font-size: 0.65rem;
  text-decoration: none;
  transition: color 0.3s;
}

.tab-item.active,
.tab-item:hover {
  color: var(--color-orange);
}

.tab-icon {
  font-size: 1.2rem;
  margin-bottom: 2px;
  line-height: 1;
}

.tab-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60px;
}

/* ========================================
   Inner Page Styles
   ======================================== */
.page-hero {
  background: linear-gradient(180deg, #FFF3E0 0%, var(--color-bg) 100%);
  padding: 30px 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--color-orange-dark);
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.page-content {
  padding: 30px 0;
}

.content-block {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.content-block h2 {
  color: var(--color-orange-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-green-light);
}

.content-block h3 {
  color: var(--color-green-dark);
  margin: 16px 0 10px;
}

.content-block p {
  font-size: 0.95rem;
  line-height: 1.9;
}

.content-image {
  border-radius: 12px;
  margin: 16px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.tip-box {
  background: linear-gradient(135deg, #FFF8E1 0%, #FFF3E0 100%);
  border-left: 4px solid var(--color-orange);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.tip-box h4 {
  color: var(--color-orange-dark);
  margin-bottom: 8px;
}

.tip-box p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.story-box {
  background: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 100%);
  border-left: 4px solid var(--color-green-dark);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.story-box h4 {
  color: var(--color-green-dark);
  margin-bottom: 8px;
}

.strategy-list {
  list-style: none;
  padding: 0;
}

.strategy-list li {
  padding: 12px 16px;
  margin-bottom: 10px;
  background: var(--color-bg);
  border-radius: 10px;
  position: relative;
  padding-left: 40px;
}

.strategy-list li::before {
  content: attr(data-num);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 22px;
  height: 22px;
  background: var(--color-orange);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ========================================
   Breadcrumb
   ======================================== */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.8rem;
}

.breadcrumb a {
  color: var(--color-text-light);
}

.breadcrumb span {
  color: var(--color-text-light);
  margin: 0 6px;
}

/* ========================================
   Animations
   ======================================== */
@keyframes bounceIn {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes cartBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-bounce-in {
  animation: bounceIn 0.6s ease forwards;
}

.animate-slide-up {
  animation: slideUp 0.5s ease forwards;
}

.animate-cart {
  animation: cartBounce 1.5s ease-in-out infinite;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Responsive - Tablet
   ======================================== */
@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-features {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   Responsive - Desktop
   ======================================== */
@media (min-width: 960px) {
  .desktop-nav {
    display: block;
  }

  .mobile-menu-btn {
    display: none;
  }

  .mobile-tab-bar {
    display: none;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }

  .container {
    padding: 0 24px;
  }

  body {
    padding-bottom: 0;
  }
}

/* Mobile bottom padding for tab bar */
@media (max-width: 959px) {
  body {
    padding-bottom: 70px;
  }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-orange { color: var(--color-orange); }
.text-green { color: var(--color-green-dark); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none !important; }

/* Jammer blocks - hidden from view */
.jammer-block {
  display: none;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
