body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.header-cart {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  transition: color 0.2s;
}
.header-cart:hover { color: var(--primary); }
.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #e51e3c;
  color: #fff;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
}
.header-login {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  border: 1px solid var(--primary);
  border-radius: 4px;
  transition: all 0.2s;
}
.header-login:hover {
  background: var(--primary);
  color: #fff;
}
.header-user {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  border: 1px solid var(--primary);
  border-radius: 4px;
  transition: all 0.2s;
}
.header-user:hover {
  background: var(--primary);
  color: #fff;
}
.header-logout {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 15px;
  transition: color 0.2s;
}
.header-logout:hover {
  color: var(--primary);
}

/* Hero */
.hero {
  margin-top: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 100px 40px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 40%),
    radial-gradient(ellipse at 60% 80%, rgba(255,255,255,0.03) 0%, transparent 30%);
  animation: gradientShift 20s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0% { transform: translate(-3%, -3%) scale(1.05); opacity: 0.8; }
  50% { transform: translate(3%, 3%) scale(1); opacity: 1; }
  100% { transform: translate(-3%, -3%) scale(1.05); opacity: 0.8; }
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.hero-content h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  animation: heroFadeIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
}
.hero-content p {
  font-size: 19px;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.75;
  animation: heroFadeIn 0.8s 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
}
.hero-badges {
  display: flex;
  gap: 24px;
  margin-bottom: 36px;
  animation: heroFadeIn 0.8s 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  background: rgba(255,255,255,0.1);
  padding: 8px 16px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}
.hero-badge-icon {
  width: 20px;
  height: 20px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  /* animation: heroFadeIn 0.8s 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; */
  /* opacity: 0; */
}

/* Hero Buttons - 可点击版本 */
.hero-btn-primary, .hero-btn-secondary {
  display: inline-block;
  position: relative;
  z-index: 9999;
  pointer-events: auto;
  cursor: pointer;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-btn-primary {
  background: #fff;
  color: #1a365d;
  border-radius: 8px;
}

.hero-btn-primary:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.hero-btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 8px;
  font-weight: 500;
}

.hero-btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.hero-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
}
.hero-card-icon {
  font-size: 60px;
  margin-bottom: 20px;
}
.hero-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
}
.hero-card p {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 20px;
}
.hero-card-price {
  font-size: 32px;
  font-weight: 700;
  color: #ffd700;
}
.hero-carousel {
  position: relative;
  width: 100%;
}
.hero-carousel-track {
  overflow: hidden;
}
.hero-carousel-slides {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
}
.hero-carousel-slide .hero-card {
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.hero-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.hero-carousel-dot {
  height: 8px;
  width: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-carousel-dot.active {
  width: 32px;
  background: #fff;
  box-shadow: 0 0 12px rgba(255,255,255,0.6);
}
.hero-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  z-index: 10;
  justify-content: center;
}
.hero-carousel-arrow:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.hero-carousel-arrow.prev { left: -24px; }
.hero-carousel-arrow.next { right: -24px; }

.hero-card {
  background-color: #1a365d;
  background-image: linear-gradient(135deg, #1a365d 0%, #2d4a7c 100%);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
  width: 100%;
}
.hero-card:hover {
  opacity: 0.95;
}
.hero-card > * {
  position: relative;
  z-index: 1;
}
.hero-card-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px;
  gap: 20px;
}
.hero-card-left {
  flex: 1;
}
.hero-card-badge {
  display: inline-block;
  background: #e74c3c;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  color: #fff;
  margin-bottom: 12px;
}
.hero-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}
.hero-card-features {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
}
.hero-card-right {
  width: 130px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-card-price-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hero-card-price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.95);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.hero-card-price-item:hover {
  border-color: #4ade80;
}
.hero-card-price-item.active {
  border-color: #4ade80;
  background: #4ade80;
}
.hero-card-price-label {
  font-weight: 500;
  color: #1a1a1a;
  font-size: 11px;
}
.hero-card-price-value {
  font-weight: 700;
  color: #166534;
  font-size: 12px;
}

/* Products */
.products {
  background: #fff;
  padding: 80px 40px;
}
.products-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-header h2 {
  font-size: 36px;
  color: #1a1a1a;
  margin-bottom: 15px;
}
.section-header p {
  font-size: 16px;
  color: #666;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  min-width: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: transparent;
  box-shadow: 0 20px 40px rgba(19, 60, 138, 0.12);
  transform: translateY(-8px);
}
.product-card-header {
  flex-shrink: 0;
}
.product-card-header {
  background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
  padding: 40px 32px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.product-card-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}
.product-card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 8px 20px rgba(19, 60, 138, 0.3);
}
.product-card h3 {
  font-size: 19px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.product-card-category {
  font-size: 13px;
  color: #888;
  background: rgba(19, 60, 138, 0.06);
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
}
.product-card-body {
  padding: 32px 28px 36px;
}
.product-card-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 24px;
}
.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: auto;
}
.product-card-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.product-card-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(19, 60, 138, 0.3);
}
.product-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(19, 60, 138, 0.4);
}

/* Features */
.features {
  background: linear-gradient(180deg, #f5f7ff 0%, #fff 100%);
  padding: 100px 40px;
}
.features-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.feature-item {
  background: #fff;
  padding: 36px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.feature-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(19, 60, 138, 0.1);
}
.feature-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(19, 60, 138, 0.3);
}
.feature-item h4 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}
.feature-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 100px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 100%, rgba(255,255,255,0.08) 0%, transparent 40%);
}
.cta-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
.cta h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.cta p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 36px;
  line-height: 1.7;
}
.cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  padding: 18px 48px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.cta-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

/* Newsletter */
.newsletter {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.05) 0%, transparent 70%);
}
.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}
.newsletter h3 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 12px;
}
.newsletter p {
  font-size: 16px;
  margin-bottom: 24px;
  opacity: 0.9;
}
.newsletter-form {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.newsletter-form input {
  flex: 1;
  max-width: 320px;
  padding: 16px 20px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.newsletter-form button {
  padding: 16px 28px;
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(74, 222, 128, 0.3);
}
.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(74, 222, 128, 0.4);
}
.newsletter-message {
  margin-top: 16px;
  font-size: 14px;
}
.newsletter-message.success { color: #4ade80; }
.newsletter-message.error { color: #f87171; }
/* Email subscription link in footer */
.footer-email-subscribe {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: all 0.25s;
  backdrop-filter: blur(4px);
}
.footer-email-subscribe:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: #fff;
  padding: 70px 40px 30px;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
}
.footer-brand h3 {
  font-size: 24px;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-brand p {
  font-size: 14px;
  opacity: 0.7;
  line-height: 1.75;
}
.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 12px;
}
.footer-col a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.25s;
}
.footer-col a:hover {
  color: #fff;
  padding-left: 4px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 1200px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-badges { justify-content: center; }
  .hero-buttons { justify-content: center; }
  .hero-visual { display: none; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .products-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}
