/* Taiwan Tea Template - Main Stylesheet */

:root {
  --primary: #e91e63;
  --primary-dark: #c2185b;
  --success: #4caf50;
  --dark: #212121;
  --light-bg: #f5f5f5;
  --gold: #ffc107;
}

body {
  font-family: 'Microsoft JhengHei', 'PingFang TC', 'Noto Sans TC', sans-serif;
  color: #333;
  background: #fff;
}

/* Top Bar */
.top-bar {
  background: var(--dark);
  padding: 8px 0;
  font-size: 13px;
}
.top-bar a, .top-bar li {
  color: #ccc;
}
.top-bar a:hover {
  color: #fff;
  text-decoration: none;
}

/* Header */
.main-header {
  background: #fff;
  padding: 15px 0;
  border-bottom: 3px solid var(--primary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.logo-text {
  color: var(--primary);
  font-size: 24px;
  font-weight: bold;
  margin: 0;
}
.logo-text a {
  color: inherit;
  text-decoration: none;
}

/* Navigation */
.navbar-nav > li > a {
  color: #333;
  font-weight: 500;
  padding: 15px 18px;
  transition: color 0.3s;
}
.navbar-nav > li > a:hover,
.navbar-nav > li.active > a {
  color: var(--primary);
  background: transparent;
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-banner::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.03)"/></svg>') repeat;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-title {
  color: #fff;
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.hero-subtitle {
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-banner .btn {
  margin: 0 10px;
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 25px;
}

/* Features */
.features {
  padding: 60px 0;
  background: var(--light-bg);
}
.feature-box {
  padding: 30px 20px;
  margin-bottom: 20px;
}
.feature-box i {
  margin-bottom: 15px;
}
.feature-box h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* Section Title */
.section-title {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 10px auto 0;
}

/* Products */
.products {
  padding: 50px 0;
}
.product-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 25px;
  transition: transform 0.3s, box-shadow 0.3s;
  background: #fff;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.product-card .card-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.product-card .card-body {
  padding: 15px;
}
.product-card .card-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}
.product-card .card-meta {
  font-size: 12px;
  color: #999;
}
.product-card .card-meta span {
  margin-right: 10px;
}
.product-card .card-price {
  color: var(--primary);
  font-weight: bold;
  font-size: 18px;
  margin-top: 8px;
}
.product-card .card-btn {
  display: block;
  text-align: center;
  background: var(--primary);
  color: #fff;
  padding: 10px;
  margin-top: 10px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
}
.product-card .card-btn:hover {
  background: var(--primary-dark);
  color: #fff;
}

/* Categories */
.categories {
  padding: 50px 0;
  background: var(--light-bg);
}
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.category-list a {
  display: inline-block;
  padding: 8px 20px;
  border: 2px solid var(--primary);
  border-radius: 25px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}
.category-list a:hover {
  background: var(--primary);
  color: #fff;
}

/* SEO Content */
.seo-content {
  padding: 40px 0;
}
.seo-text {
  line-height: 1.8;
  color: #666;
  font-size: 14px;
}
.seo-text h2, .seo-text h3 {
  color: #333;
  margin-top: 20px;
}

/* Product Detail */
.product-detail {
  padding: 30px 0;
}
.product-gallery .main-image img {
  border-radius: 8px;
  width: 100%;
}
.product-name {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
}
.product-meta .label {
  font-size: 12px;
  margin-right: 5px;
}
.product-info {
  margin: 20px 0;
}
.product-info th {
  width: 100px;
  background: #f9f9f9;
}
.product-price {
  margin: 20px 0;
  padding: 15px;
  background: #fff3e0;
  border-radius: 5px;
}
.price-value {
  font-size: 24px;
  color: var(--primary);
  font-weight: bold;
}
.product-actions {
  margin: 20px 0;
}
.product-notice p {
  margin: 5px 0;
  font-size: 14px;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: #ccc;
  padding: 40px 0 20px;
}
.site-footer h4 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 16px;
}
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  color: #aaa;
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-bottom {
  border-top: 1px solid #444;
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
}

/* Float Contact Button */
.float-contact {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}
.float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(76,175,80,0.4);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(76,175,80,0.4); }
  70% { box-shadow: 0 0 0 15px rgba(76,175,80,0); }
  100% { box-shadow: 0 0 0 0 rgba(76,175,80,0); }
}

/* Scroll Top */
#scroll-top {
  position: fixed;
  bottom: 100px;
  right: 35px;
  z-index: 998;
}
#scroll-top a {
  display: block;
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  font-size: 18px;
}

/* Filter Bar */
.filter-bar {
  margin-bottom: 25px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 5px;
}
.filter-tags a {
  display: inline-block;
  padding: 5px 15px;
  margin: 3px;
  border: 1px solid #ddd;
  border-radius: 20px;
  color: #666;
  font-size: 13px;
  text-decoration: none;
}
.filter-tags a:hover,
.filter-tags a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Article */
.article-content h1 {
  font-size: 28px;
  margin-bottom: 15px;
}
.article-meta {
  color: #999;
  font-size: 13px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}
.article-meta span {
  margin-right: 15px;
}
.article-body {
  line-height: 1.9;
  font-size: 15px;
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin: 15px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 24px; }
  .hero-subtitle { font-size: 15px; }
  .hero-banner { padding: 50px 0; }
  .hero-banner .btn { display: block; margin: 10px auto; max-width: 200px; }
  .product-card .card-img { height: 200px; }
}
