/* 基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  }

  :root {
    --primary-color: #4c6ef5;
    --secondary-color: #15aabf;
    --success-color: #0ca678;
    --warning-color: #ff6b6b;
    --background-color: #f8f9fa;
    --text-color: #495057;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  
  body {
    background: linear-gradient(135deg, #f1f3f5 0%, #e9ecef 100%);
    min-height: 100vh;
    color: var(--text-color);
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
  }
  
  /* 卡片组件 */
  .card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    overflow: hidden;
    padding: 2rem;
  }
  
  /* Tab样式 */
  .tab-container {
    padding: 2rem;
  }
  
  .tabs {
    display: flex;
    gap: 1px;
    background: var(--border-color);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .tab {
    flex: 1;
    padding: 1rem;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.3s ease;
  }
  
  .tab.active {
    background: white;
    color: var(--primary-color);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
  }

  /* 表单样式 */
  .form-container {
    display: none;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .form-container.active {
    display: block;
    animation: fadeIn 0.3s ease;
  }
  
  /* 购买模式的表单样式 */
  #purchaseForm .checkout-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  /* 查询模式的表单样式 */
  #queryForm .checkout-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
  
  #queryForm .input-group {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .input-container {
    position: relative;
    width: 100%;
  }
  
  .input-label {
    position: absolute;
    left: 1rem;
    top: 0;
    padding: 0 0.5rem;
    background: white;
    color: var(--primary-color);
    font-size: 0.9rem;
    transform: translateY(-50%);
  }
  
  .input-field {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
  }
  
  .input-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(76, 110, 245, 0.1);
  }
  
  /* 套餐tab样式 */
  .plans-section {
    padding: 2rem;
  }
  
  .plans-tabs-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
  }

  .plans-tabs {
    display: flex;
    gap: 1px;
    background: var(--border-color);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .plan-tab {
    flex: 1;
    min-width: 120px;
    padding: 1rem;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
  }

  .plan-tab.active {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
  }

  .plan-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
  }

  .plans-content {
    background: var(--background-color);
    border-radius: 12px;
    padding: 2rem;
    min-height: 300px;
  }

  .plan-content {
    display: none;
    animation: fadeIn 0.3s ease;
  }

  .plan-content.active {
    display: block;
  }

  .plan-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }

  .plan-info {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
  }

  .plan-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 1rem;
  }

  .plan-price-display {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: bold;
    margin: 1rem 0;
  }
  
  .plan-price-display small {
    font-size: 1rem;
    opacity: 0.7;
  }

  .plan-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
  }

  .plan-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
  }

  .plan-options {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
  }

  .options-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
  }
  
  /* 时长选项 - 改为总是显示 */
  .duration-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .duration-option {
    padding: 1rem;
    border-radius: 8px;
    background: var(--background-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
  }

  .duration-option:hover {
    background: #e7f5ff;
    color: var(--primary-color);
  }
  
  .duration-option.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-color);
    transform: translateY(-1px);
  }
  
  .duration-tag {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    background: var(--warning-color);
    color: white;
  }

  .quick-buy-button {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
  }

  .quick-buy-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
  
  /* 特性列表 */
  .feature-list {
    margin-top: 1.5rem;
  }
  
  .feature-item {
    display: flex;
    align-items: center;
    margin: 0.8rem 0;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .feature-item::before {
    content: "✓";
    color: var(--success-color);
    margin-right: 0.5rem;
    font-weight: bold;
  }
  
  /* 订单摘要 */
  .order-summary {
    background: var(--background-color);
    border-radius: 12px;
    padding: 1.5rem;
  }
  
  .summary-header {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .summary-item {
    display: flex;
    justify-content: space-between;
    margin: 0.8rem 0;
  }
  
  .summary-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
    font-weight: bold;
    font-size: 1.2rem;
  }
  
  /* 按钮样式 */
  .button {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: auto;
  }
  
  .button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
  
  .button:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }
  
  .checkout-button {
    width: 100%;
    margin-top: 1.5rem;
  }
  
  /* 设置教程和客户端下载部分 */
  .post-purchase {
    padding: 3rem;
  }
  
  .section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
  }
  
  .button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
  }
  
  .button-group .button {
    flex: 1;
    min-width: 200px;
    margin: 0;
  }
  
  .info-box {
    background: var(--background-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
  }
  
  .info-box p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-color);
  }
  
  .info-box a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  .info-box a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
  }
  
  /* 底部样式 */
  .footer-info {
    padding: 3rem;
  }
  
  .footer-info h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 2rem 0 1rem;
  }
  
  .footer-info h2:first-child {
    margin-top: 0;
  }
  
  .footer-info p {
    margin: 1rem 0;
    line-height: 1.6;
    color: var(--text-color);
  }
  
  .footer-nav {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
  }
  
  .footer-nav a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
  }
  
  .footer-nav a:hover {
    color: var(--secondary-color);
  }
  
  /* 动画 */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes highlight {
    0% {
      background: var(--background-color);
    }
    100% {
      background: var(--primary-color);
      color: white;
    }
  }
  
  /* 响应式设计 */
  @media (max-width: 768px) {
    .container {
      padding: 1rem;
    }

    .card {
      padding: 1.5rem;
    }
  
    .post-purchase {
      padding: 1.5rem;
    }
  
    #purchaseForm .checkout-section {
      grid-template-columns: 1fr;
    }
  
    .plan-details {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
  
    .plans-tabs {
      flex-direction: column;
      gap: 4px;
    }
    
    .plan-tab {
      min-width: auto;
      padding: 0.8rem;
    }
    
    .plans-content {
      padding: 1rem;
    }
  
    .plan-price-display {
      font-size: 2rem;
    }
  
    .button-group {
      flex-direction: column;
    }
  
    .button-group .button {
      width: 100%;
    }
  
    .footer-nav a {
      display: block;
      margin: 1rem 0;
    }
  }

  .payment-tabs {
    display: flex;
    gap: 1px;
    background: none;
    padding: 4px;
    border-radius: 12px;
    margin-top: 2rem;
    background: var(--border-color);
}

.payment-method {
    flex: 1;
    padding: 1rem;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.payment-method.active {
    background: white;
    color: var(--primary-color);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}