/* 全局重置 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; line-height: 1.5; scroll-behavior: smooth; }
body { background: #f9f9f9; color: #333; }

a { text-decoration: none; color: inherit; }

/* 顶部提示栏 */
.top-banner { background: #ffeeba; color: #856404; text-align: center; padding: 0.5rem; font-size: 0.875rem; }

/* 导航 */
.main-nav { display: flex; justify-content: space-around; align-items: center; background: #fff; border-bottom: 1px solid #e0e0e0; padding: 0.75rem 1rem; position: sticky; top: 0; z-index: 100; }
.main-nav a { font-size: 1rem; padding: 0.5rem; }
.main-nav a:hover { color: #007bff; }

/* 区块通用 */
section { padding: 1rem; background: #fff; margin: 0.5rem 1rem; border-radius: 0.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
section h2 { font-size: 1.25rem; margin-bottom: 0.75rem; }

/* 公告区 */
.announcement ul { list-style: disc inside; }
.announcement li { margin-bottom: 0.5rem; font-size: 0.9rem; }

/* 商品列表 */
.product-list .products { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.product-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 0.5rem; text-align: center; padding: 1rem; display: flex; flex-direction: column; justify-content: space-between; }
.product-card img { max-width: 60px; margin: 0 auto 0.75rem; }
.product-card h3 { font-size: 1rem; margin-bottom: 0.5rem; color: #333; }
.product-card p { font-size: 1.125rem; font-weight: bold; margin-bottom: 0.75rem; }
.product-card button { background: #28a745; color: #fff; border: none; padding: 0.5rem; border-radius: 0.25rem; font-size: 0.9rem; cursor: pointer; }
.product-card button:hover { background: #218838; }

/* 功能简介 */
.features ul { list-style: none; }
.features li { margin-bottom: 0.5rem; font-size: 0.95rem; }
.features li:before { content: "\2713\0020"; color: #28a745; }

/* 底部 */
footer { text-align: center; padding: 1rem 0; font-size: 0.85rem; color: #666; }

/* 响应式调整 */
@media (min-width: 576px) {
  .main-nav { padding: 1rem 2rem; }
  section { margin: 1rem 2rem; padding: 1.5rem; }
}

@media (min-width: 768px) {
  .product-list .products { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .main-nav a { font-size: 1.125rem; }
}

@media (min-width: 992px) {
  body { max-width: 960px; margin: 0 auto; }
  section { margin: 1.5rem 0; }
}


/*以下秒出个人证书页面专用 */
.product-detail {
  background: #fff;
  padding: 1rem;
  margin: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.product-detail h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.product-detail p {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.product-detail .price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.current-price {
  font-size: 1.75rem;
  font-weight: bold;
  color: #d9534f;
}

.old-price {
  font-size: 1rem;
  color: #999;
}

/* 下单表单 */
#buy-form {
  margin-top: 1rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0.75rem;
}

.form-row label {
  width: 80px;
  font-size: 0.95rem;
  color: #555;
}

.form-row input {
  flex: 1;
  padding: 0.5rem;
  font-size: 0.95rem;
  border: 1px solid #ddd;
  border-radius: 0.25rem;
}

#place-order {
  display: block;
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  background: #28a745;
  color: #fff;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
}

#place-order:hover {
  background: #218838;
}

/* 商品描述区 */
.product-description {
  background: #fff;
  padding: 1rem;
  margin: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.product-description h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.product-description ul {
  list-style: disc inside;
}

.product-description li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #444;
}

/* 支付弹窗 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 200;
}

.modal-content {
  background: #fff;
  padding: 1.5rem;
  border-radius: 0.5rem;
  width: 100%;
  max-width: 320px;
  text-align: center;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 1.25rem;
  cursor: pointer;
}

.modal-content h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.modal-content img {
  width: 200px;
  height: 200px;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 0.25rem;
}

/* 响应式调整 */
@media (max-width: 576px) {
  .form-row {
    flex-direction: column;
    align-items: stretch;
  }
  .form-row label {
    width: 100%;
    margin-bottom: 0.25rem;
  }
  .modal-content {
    max-width: 90%;
  }
}


/* 兑换系统页面样式 */

.exchange-system {
  background: #fff;
  margin: 1rem;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.exchange-system h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #333;
}

#exchange-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.form-row label {
  width: 80px;
  font-size: 0.95rem;
  color: #555;
}

.form-row input {
  flex: 1;
  padding: 0.5rem;
  font-size: 0.95rem;
  border: 1px solid #ddd;
  border-radius: 0.25rem;
}

#exchange-form button {
  padding: 0.75rem;
  font-size: 1rem;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
}

#exchange-form button:hover {
  background: #0069d9;
}

/* 兑换结果提示 */
.result-message {
  margin-top: 1rem;
  font-size: 1rem;
  text-align: center;
  color: #28a745;
}

/* 使用说明 */
.usage-instruction {
  background: #fff;
  margin: 1rem;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.usage-instruction h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #333;
}

.usage-instruction ul {
  list-style: disc inside;
}

.usage-instruction li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #444;
}

/* 响应式调整 */
@media (max-width: 576px) {
  .form-row {
    flex-direction: column;
    align-items: stretch;
  }
  .form-row label {
    width: 100%;
    margin-bottom: 0.25rem;
  }
}

/* 订单查询页面样式 */

.order-query {
  background: #fff;
  margin: 1rem;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.order-query h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #333;
}

#order-query-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.form-row label {
  width: 80px;
  font-size: 0.95rem;
  color: #555;
}

.form-row input {
  flex: 1;
  padding: 0.5rem;
  font-size: 0.95rem;
  border: 1px solid #ddd;
  border-radius: 0.25rem;
}

#order-query-form button {
  padding: 0.75rem;
  font-size: 1rem;
  background: #17a2b8;
  color: #fff;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
}

#order-query-form button:hover {
  background: #138496;
}

/* 查询结果提示 */
.result-message {
  margin-top: 1rem;
  font-size: 1rem;
  text-align: center;
  color: #28a745;
}

/* 使用说明 */
.usage-instruction {
  background: #fff;
  margin: 1rem;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.usage-instruction h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #333;
}

.usage-instruction ul {
  list-style: disc inside;
}

.usage-instruction li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #444;
}

/* 响应式调整 */
@media (max-width: 576px) {
  .form-row {
    flex-direction: column;
    align-items: stretch;
  }
  .form-row label {
    width: 100%;
    margin-bottom: 0.25rem;
  }
}

