* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  background: #f5f5f7;
  color: #1f2933;
  line-height: 1.6;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.shop-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
}

.shop-logo {
  font-size: 1.4rem;
  font-weight: 700;
}

.shop-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.shop-nav a {
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 4px 0;
}

.shop-banner {
  margin-top: 10px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border-radius: 18px;
  padding: 45px 30px;
  box-shadow: 0 20px 45px rgba(244, 85, 108, 0.25);
}

.banner-inner {
  max-width: 820px;
  margin: 0 auto 30px;
  text-align: center;
}

.banner-inner .tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.shop-banner h1 {
  font-size: 2.1rem;
  margin-bottom: 10px;
}

.banner-inner p {
  opacity: 0.92;
  font-size: 1rem;
}

.banner-cta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  font-size: 0.9rem;
}

.banner-cta span {
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 10px;
}

.banner-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.info-card {
  background: rgba(255, 255, 255, 0.15);
  padding: 16px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.info-card strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.category-nav {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: #fff;
  flex-wrap: wrap;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-nav a {
  padding: 8px 18px;
  background: #f0f0f0;
  border-radius: 20px;
  text-decoration: none;
  color: #333;
  font-size: 0.85rem;
  transition: all 0.3s;
}

.category-nav a:hover,
.category-nav a.active {
  background: #667eea;
  color: white;
}

.section-title {
  text-align: center;
  padding: 32px 20px 16px;
  font-size: 1.4rem;
  color: #222;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  padding: 0 12px 25px;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.product-img {
  width: 100%;
  height: 170px;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 14px;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-desc {
  font-size: 0.82rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.product-price {
  color: #f5576c;
  font-size: 1.1rem;
  font-weight: 700;
}

.product-price small {
  font-size: 0.75rem;
  color: #a0aec0;
  text-decoration: line-through;
  margin-left: 6px;
}

.product-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 10px;
  border-radius: 6px;
  font-weight: 500;
}

.product-btn:hover {
  opacity: 0.9;
}

.shop-features {
  background: #fff;
  padding: 30px 20px;
  margin-top: 20px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.features-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.feature-box {
  text-align: center;
  min-width: 150px;
}

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

.company-section {
  background: #fff;
  padding: 30px 24px;
  margin-top: 18px;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.company-grid article {
  background: #f7f8fc;
  border-radius: 12px;
  padding: 16px 18px;
  border: 1px solid #edf0f7;
}

.company-grid h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #1f2933;
}

.company-grid p {
  font-size: 0.92rem;
  color: #4b5563;
  margin-bottom: 6px;
}

.process-section {
  background: #fff;
  margin-top: 18px;
  border-radius: 16px;
  padding-bottom: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
}

.process-timeline {
  list-style: none;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
}

.process-timeline li {
  background: #eef2ff;
  color: #4338ca;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
}

.company-photos {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.company-photos figure {
  flex: 1 1 260px;
  max-width: 360px;
}

.company-photos img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

.company-photos figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 6px;
}

.license-section {
  background: #fff;
  padding: 30px 24px;
  margin-top: 18px;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
}

.license-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

.license-text {
  flex: 1;
  min-width: 260px;
  font-size: 0.92rem;
  color: #4b5563;
}

.license-text p {
  margin-bottom: 8px;
}

.license-image {
  flex: 0 0 260px;
  border: 1px solid #eee;
  background: #fafafa;
  padding: 8px;
  border-radius: 12px;
}

.license-image img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.compliance-section {
  background: linear-gradient(135deg, #eef2ff, #fef9f5);
  border-radius: 20px;
  padding: 40px 30px;
  margin-top: 22px;
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.15);
}

.compliance-section h2 {
  text-align: center;
  font-size: 1.5rem;
  color: #2d2c50;
  margin-bottom: 10px;
}

.compliance-intro {
  text-align: center;
  color: #4c4f74;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.compliance-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  padding: 18px;
  border: 1px solid rgba(102, 126, 234, 0.3);
}

.compliance-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #1f2933;
}

.compliance-card ul {
  list-style: disc;
  margin-left: 18px;
  color: #4b5563;
  font-size: 0.9rem;
}

.test-account-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px dashed #818cf8;
}

.test-account-card .label {
  font-weight: 600;
  color: #4338ca;
}

.test-account-card .account-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 1rem;
}

.test-account-card .note {
  color: #6b7280;
  font-size: 0.9rem;
}

.login-section {
  margin-top: 22px;
}

.login-card {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.05);
}

.login-info {
  flex: 1 1 320px;
}

.login-info h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.login-info ul {
  margin-top: 10px;
  padding-left: 20px;
  color: #4b5563;
  font-size: 0.95rem;
}

.login-form {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-form label {
  font-size: 0.9rem;
  color: #374151;
}

.login-form input {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 1rem;
}

.login-form button {
  margin-top: 8px;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #34d399, #10b981);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.login-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.login-result {
  min-height: 24px;
  font-size: 0.9rem;
}

.login-result.success {
  color: #059669;
}

.login-result.error {
  color: #dc2626;
}

.login-result.info {
  color: #6b7280;
}

.contact-section {
  margin-top: 22px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  font-size: 0.96rem;
  color: #4b5563;
}

.shop-footer {
  background: #1f2933;
  color: #d1d5db;
  text-align: center;
  padding: 26px 20px;
  font-size: 0.85rem;
  margin-top: 35px;
}

.shop-footer a {
  color: inherit;
  text-decoration: none;
}

.toast {
  position: fixed;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 12px 24px;
  border-radius: 999px;
  z-index: 1000;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .banner-inner {
    text-align: left;
  }

  .product-img {
    height: 150px;
  }

  .category-nav {
    border-radius: 18px;
  }
}
