/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #7c5ac2;
  --secondary-color: #3d9ceb;
  --text-color: #333;
  --background-color: #f8f9fa;
}

body {
  font-size: 16px;
  line-height: 1.5;
  font-family: 'Poppins', Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 15px;
  margin: 0 auto;
}

/* Header styles */
header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-container img {
  max-height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 10px;
}

.site-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
}

.menu-toggle {
  display: none;
}

.nav-menu {
  display: flex;
  list-style-type: none;
}

.nav-menu li {
  margin-left: 1rem;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #007bff;
}

/* Hero section styles */
#hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  padding: 100px 0 50px;
  text-align: center;
}

#hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

#hero p {
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* 加载页面样式 */
#loading-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.logo-animation {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  animation: rotate 2s linear infinite, pulse 1.5s ease-in-out infinite;
}

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

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

#loading-page p {
  margin-top: 20px;
  font-size: 18px;
  color: #333;
}

.platform-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.platform-tab {
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 5px;
  font-size: 1rem;
}

.platform-tab i {
  margin-right: 5px;
}

.platform-tab.active,
.platform-tab:hover {
  background-color: #fff;
  color: var(--primary-color);
}

.platform-tab,
.service-tab {
  transition: background-color 0.3s ease;
}

/* Products section styles */
#products {
  padding: 50px 0;
  background-color: #fff;
}

.service-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.service-tab {
  background-color: transparent;
  border: none;
  color: #888;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 600;
}

/*.service-tab i {
    margin-right: 5px;
}*/

.service-tab.active,
.service-tab:hover {
  color: var(--primary-color);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.product-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.product-type {
  font-size: 1rem;
  color: #888;
  margin-bottom: 15px;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  /* color: white; Ensure text is visible on colored backgrounds */
  margin-bottom: 15px;
  transition: background-color 0.3s ease;
}

.buy-btn {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1rem;
  font-weight: 600;
}

.buy-btn:hover {
  background-color: var(--secondary-color);
}

/* Services section styles */
#services {
  padding: 80px 0;
}

#services h2 {
  text-align: center;
  margin-bottom: 40px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.service-card i {
  font-size: 3rem;
  color: #007bff;
  margin-bottom: 20px;
}

/* ... Add styles for other sections (how-it-works, faq) ... */

/* Footer styles */
footer {
  background-color: #333;
  color: #fff;
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 40px;
  border-radius: 50%; /* 或者使用与上面相同的值 */
  overflow: hidden;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 15px 10px;
  font-size: 1rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.social-icons a {
  color: #fff;
  font-size: 1.5rem;
  margin-left: 15px;
}

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

/* 在文件末尾添加以下代码 */
.modal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 10px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

#linkInput {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 5px;
}

#nextStep {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1rem;
  font-weight: 600;
}

#nextStep:hover {
  background-color: var(--secondary-color);
}

/* 响应式样式 */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #fff;
    flex-direction: column;
    padding: 1rem;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    margin: 0.5rem 0;
  }

  .platform-tabs, .service-tabs {
    flex-wrap: wrap;
  }

  .platform-tab, .service-tab {
    flex: 1 0 40%;
    margin: 0.25rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .steps {
    flex-direction: column;
  }

  .step {
    margin-bottom: 1rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-logo, .footer-links, .social-icons {
    margin-bottom: 20px;
  }

  .site-name {
    font-size: 1rem;
  }
}

/* 作品原理样式 */
#how-it-works {
  padding: 50px 0;
  background-color: #f8f8f8;
}

.steps {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.step {
  text-align: center;
  max-width: 250px;
  margin: 20px;
}

.step i {
  font-size: 48px;
  color: #007bff;
}

/* FAQ 样式 */
#faq {
  padding: 50px 0;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-item h3 {
  cursor: pointer;
  padding: 10px;
  background-color: #f1f1f1;
  border-radius: 5px;
}

.faq-item p {
  display: none;
  padding: 10px;
}

/* 支持模态框样式 */
#supportModal .modal-content {
  max-width: 500px;
  background-color: #fff;
  border-radius: 10px;
  padding: 30px;
}

#supportModal h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
}

#supportForm {
  display: flex;
  flex-direction: column;
}

#supportForm input,
#supportForm textarea {
  margin-bottom: 15px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

#supportForm textarea {
  min-height: 100px;
  resize: vertical;
}

#supportForm .submit-btn {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1rem;
  font-weight: 600;
  align-self: flex-end;
}

#supportForm .submit-btn:hover {
  background-color: var(--secondary-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
  #supportModal .modal-content {
    width: 90%;
    padding: 20px;
  }
  
  #supportForm .submit-btn {
    width: 100%;
  }
}

/* 获取支持入口样式 */
#support-cta {
  background-color: #f8f8f8;
  padding: 50px 0;
  text-align: center;
}

#support-cta h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

#support-cta p {
  margin-bottom: 30px;
}

.support-btn {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.support-btn:hover {
  background-color: var(--secondary-color);
}

#selectedProductInfo {
  background-color: #f8f8f8;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 20px;
}

#selectedProductInfo p {
  margin: 5px 0;
  font-size: 0.9rem;
}

#selectedProductInfo span {
  font-weight: bold;
  color: var(--primary-color);
}

/* 订单列表模态框样式 */
#orderListModal .modal-content {
    max-width: 600px;
}

#orderList {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.order-item {
    background-color: #f8f8f8;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 10px;
}

.order-item p {
    margin: 5px 0;
}

#pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

#pagination button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 5px 10px;
    margin: 0 10px;
    border-radius: 3px;
    cursor: pointer;
}

#pagination button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#currentPage {
    font-weight: bold;
}


.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#buyModal input[type="email"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.email-note {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 15px;
}

.support-btn {
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.support-btn:hover {
    background-color: var(--primary-color);
}

@media (max-width: 768px) {
    .support-btn {
        width: 100%;
        padding: 10px;
        font-size: 1rem;
    }
}