/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 28px;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 15px;
  color: #555;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #667eea;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.admin-link {
  padding: 8px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff !important;
  border-radius: 25px;
  font-weight: 500;
}

.admin-link::after {
  display: none !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: #333;
  transition: 0.3s;
}

/* 轮播图区域 */
.hero {
  margin-top: 70px;
  position: relative;
}

.swiper-container {
  width: 100%;
  height: auto;
}

.swiper-wrapper {
  height: auto !important;
}

.swiper-slide {
  height: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 600px;
  object-fit: contain;
  background: #f5f5f5;
}

.swiper-pagination {
  bottom: 30px !important;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.6);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: #fff !important;
  width: 30px;
  border-radius: 6px;
}

.swiper-button-next,
.swiper-button-prev {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.2);
  width: 50px !important;
  height: 50px !important;
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 20px !important;
}

/* 轮播图内容 */
.banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 10;
  width: 90%;
  max-width: 800px;
}

.banner-icon {
  font-size: 80px;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.banner-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.banner-content p {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.banner-btn {
  display: inline-block;
  padding: 15px 40px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  text-decoration: none;
}

.banner-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: #fff;
  text-decoration: none;
}

/* 区块标题 */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #222;
  margin-bottom: 15px;
}

.section-header p {
  font-size: 18px;
  color: #888;
}

/* 功能特点 */
.features {
  padding: 100px 0;
  background: #f8fafc;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
}

.feature-icon {
  font-size: 50px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  color: #222;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
}

/* 下载区域 */
.download {
  padding: 100px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.download .section-header h2 {
  color: #fff;
}

.download .section-header p {
  color: rgba(255, 255, 255, 0.8);
}

.download-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.download-info {
  flex: 1;
}

.download-info h3 {
  font-size: 28px;
  margin-bottom: 25px;
}

.download-features {
  margin-bottom: 30px;
}

.download-features li {
  font-size: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: #fff;
  color: #667eea;
  font-size: 18px;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s;
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.download-tip {
  margin-top: 20px;
  font-size: 14px;
  opacity: 0.8;
}

.download-preview {
  flex: 1;
  display: flex;
  justify-content: center;
}

.preview-mockup {
  width: 400px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.mockup-header {
  background: #e8e8e8;
  padding: 12px 15px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mockup-dot.red { background: #ff5f57; }
.mockup-dot.yellow { background: #febc2e; }
.mockup-dot.green { background: #28c840; }

.mockup-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mockup-note {
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mockup-note-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.mockup-note-text {
  font-size: 12px;
  color: #666;
}

/* 关于我们 */
.about {
  padding: 100px 0;
  background: #f8fafc;
}

.about-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.about-content > p {
  font-size: 18px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 50px;
}

.about-stats {
  display: flex;
  justify-content: center;
  gap: 80px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 16px;
  color: #888;
}

/* 页脚 */
.footer {
  background: #1a1a2e;
  color: #fff;
  padding: 60px 0 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  margin-bottom: 15px;
}

.footer-brand p {
  color: #888;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 16px;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #aaa;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #667eea;
}

.footer-contact p {
  color: #aaa;
  margin-bottom: 10px;
}

.footer-bottom {
  padding: 25px 0;
  text-align: center;
  color: #666;
  font-size: 14px;
}

.footer-bottom a {
  color: #888;
  margin: 0 5px;
}

.footer-bottom a:hover {
  color: #667eea;
}

/* 响应式 */
@media (max-width: 992px) {
  .swiper-container {
    height: 400px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-content {
    flex-direction: column;
    text-align: center;
  }

  .download-preview {
    order: -1;
  }

  .about-stats {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .swiper-container {
    height: 350px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .preview-mockup {
    width: 100%;
    max-width: 350px;
  }
  
  .about-stats {
    flex-direction: column;
    gap: 30px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-success {
  background: #10B981;
  color: #fff;
}

.btn-success:hover {
  background: #059669;
}

/* 购买VIP区域 */
.pricing {
  padding: 100px 0;
  background: #fff;
}

/* VIP套餐卡片 */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.package-card {
  background: #fff;
  border: 2px solid #e8e8e8;
  border-radius: 20px;
  padding: 35px 25px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
}

.package-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
  border-color: #667eea;
}

.package-card.recommended {
  border-color: #667eea;
  background: linear-gradient(180deg, #f8f9ff 0%, #fff 100%);
  transform: scale(1.02);
}

.package-card.recommended:hover {
  transform: scale(1.02) translateY(-8px);
}

.package-card .badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: #fff;
  padding: 6px 22px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.package-name {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.package-price {
  margin-bottom: 8px;
}

.package-price .currency {
  font-size: 20px;
  color: #667eea;
  vertical-align: top;
  font-weight: 600;
}

.package-price .amount {
  font-size: 42px;
  font-weight: 700;
  color: #667eea;
}

.package-period {
  font-size: 15px;
  color: #888;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px dashed #e8e8e8;
}

.package-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  text-align: left;
}

.package-features li {
  font-size: 15px;
  color: #555;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.package-features li::before {
  content: '✓';
  color: #10B981;
  font-weight: 700;
}

.package-card .btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 16px;
}

/* VIP特权说明 */
.pricing-features {
  display: flex;
  justify-content: center;
  gap: 50px;
  padding: 40px;
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
  border-radius: 20px;
  border: 1px solid #e8e8e8;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 18px;
}

.pricing-feature-item .feature-icon {
  font-size: 40px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.feature-text {
  text-align: left;
}

.feature-text strong {
  display: block;
  font-size: 17px;
  color: #333;
  margin-bottom: 4px;
}

.feature-text span {
  font-size: 14px;
  color: #888;
}

/* 支付弹窗 */
.modal-content {
  border-radius: 16px;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 20px 25px;
}

.modal-header .close {
  color: #fff;
  opacity: 0.8;
}

.modal-header .close:hover {
  opacity: 1;
}

.modal-body {
  padding: 30px;
  text-align: center;
}

.payment-product {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  font-size: 18px;
}

.product-label {
  color: #888;
}

.product-price {
  color: #667eea;
  font-weight: 700;
  font-size: 24px;
}

.qr-wrapper {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.qr-wrapper .qr-placeholder {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 8px;
  color: #888;
}

.payment-hint {
  color: #666;
  margin-bottom: 15px;
}

.qr-tip {
  font-size: 14px;
  color: #888;
}

.payment-status {
  margin-top: 15px;
}

.payment-status .success-box {
  background: #d4edda;
  color: #155724;
  padding: 20px;
  border-radius: 12px;
}

.payment-status .success-box .success-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.payment-status .success-box h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
}

.payment-status .expired-box {
  background: #fff3cd;
  color: #856404;
  padding: 20px;
  border-radius: 12px;
}

.activation-code-box {
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 12px;
  text-align: left;
}

.activation-code-box label {
  display: block;
  font-size: 16px;
  color: #333;
  margin-bottom: 10px;
}

.code-display {
  display: flex;
  gap: 10px;
}

.code-input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #667eea;
  border-radius: 8px;
  font-size: 18px;
  font-family: monospace;
  letter-spacing: 2px;
  background: #fff;
}

.btn-copy {
  padding: 12px 25px;
  background: #667eea;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-copy:hover {
  background: #764ba2;
}

.btn-paid {
  padding: 12px 30px;
  background: #07c160;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
  width: 100%;
  margin-top: 5px;
}

.btn-paid:hover {
  background: #06ae56;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(7, 193, 96, 0.35);
}

.code-info {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}

.toast-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 15px 30px;
  border-radius: 8px;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.loading-qr {
  width: 200px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 8px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e8e8e8;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 响应式 - 购买区域 */
@media (max-width: 1200px) {
  .packages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .package-card.recommended {
    transform: none;
  }
  
  .package-card.recommended:hover {
    transform: translateY(-8px);
  }
}

@media (max-width: 992px) {
  .packages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .pricing-features {
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .pricing {
    padding: 60px 0;
  }
  
  .packages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .package-card {
    padding: 30px 25px;
  }
  
  .pricing-features {
    flex-direction: column;
    gap: 25px;
    align-items: center;
    padding: 30px 20px;
  }
  
  .pricing-feature-item {
    width: 100%;
    max-width: 300px;
  }
}
