/* Watt Toolkit Stylesheet */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --accent: #06b6d4;
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  --bg-section: #f8fafc;
  --text-dark: #1e293b;
  --text-gray: #64748b;
  --white: #ffffff;
  --border: #e2e8f0;
  --success: #10b981;
  --gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 40px -12px rgba(37,99,235,0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

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

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-gray);
  position: relative;
  padding: 8px 0;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 1px;
}

.nav .btn-download {
  background: var(--gradient);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
}

.nav .btn-download:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.nav .btn-download::after {
  display: none !important;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: all 0.3s;
}

/* Hero */
.hero {
  padding: 150px 0 80px;
  background: linear-gradient(180deg, #eff6ff 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.hero-content h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 25px 50px -12px rgba(37,99,235,0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--text-dark);
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--border);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

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

.hero-stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.hero-stat .label {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-top: 4px;
}

/* Platforms */
.platforms {
  padding: 80px 0;
  background: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-gray);
  font-size: 1.05rem;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.platform-card {
  background: var(--bg-section);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.platform-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.platform-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: var(--gradient);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
}

.platform-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.platform-card p {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.platform-card .btn-sm {
  display: inline-block;
  background: var(--white);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

.platform-card .btn-sm:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Features Section */
.features-section {
  padding: 80px 0;
  background: var(--bg-section);
}

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

.feature-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-gray);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Main Features */
.main-features {
  padding: 80px 0;
  background: var(--white);
}

.main-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.main-feature-item {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--bg-section);
  border-radius: 14px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.main-feature-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.main-feature-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
}

.main-feature-text h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.main-feature-text p {
  color: var(--text-gray);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* CTA */
.cta-section {
  padding: 80px 0;
  background: var(--gradient);
  text-align: center;
  color: var(--white);
}

.cta-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

.cta-section .btn-primary {
  background: var(--white) !important;
  color: var(--primary) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* FAQ */
.faq-section {
  padding: 80px 0;
  background: var(--bg-section);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dark);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-arrow {
  transition: transform 0.3s;
  font-size: 1.2rem;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-gray);
  line-height: 1.8;
}

/* Footer */
.footer {
  background: var(--bg-darker);
  padding: 60px 0 30px;
  color: #94a3b8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 12px;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer-links a:hover {
  color: var(--white);
}

/* Page Header */
.page-header {
  padding: 120px 0 60px;
  background: linear-gradient(180deg, #eff6ff 0%, var(--white) 100%);
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-header p {
  color: var(--text-gray);
  font-size: 1.1rem;
}

/* Download Page */
.download-section {
  padding: 60px 0 80px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.download-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  transition: all 0.3s ease;
}

.download-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.download-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, #eff6ff 0%, var(--white) 100%);
}

.platform-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--gradient);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--white);
}

.download-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.download-card .version {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.download-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-links .btn-primary {
  justify-content: center;
  width: 100%;
}

/* Features Page */
.feature-detail {
  padding: 60px 0 80px;
}

.feature-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.feature-detail-grid.reverse {
  direction: rtl;
}

.feature-detail-grid.reverse > * {
  direction: ltr;
}

.feature-detail-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.feature-detail-text p {
  color: var(--text-gray);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.feature-detail-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

/* FAQ Page */
.faq-page-section {
  padding: 60px 0 80px;
  max-width: 800px;
  margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.9rem;
  color: var(--text-gray);
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 8px;
  color: var(--text-gray);
}

/* Responsive */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-content h1 {
    font-size: 2.4rem;
  }
  
  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .main-features-list {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .feature-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .feature-detail-grid .feature-detail-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .platform-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .download-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-stats {
    gap: 24px;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* QR Code Breathing Effect */
@keyframes qrBreathing {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    transform: scale(1);
  }
}

.qrcode-img {
  animation: qrBreathing 2.5s ease-in-out infinite;
  border-radius: 12px;
  padding: 4px;
  background: var(--white);
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--white);
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  padding: 40px 32px;
  position: relative;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-section);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  transition: all 0.3s;
}

.modal-close:hover {
  background: #fee2e2;
  color: #ef4444;
}

.modal-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.modal-subtitle {
  text-align: center;
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.qrcode-container {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.qrcode-container img {
  width: 180px;
  height: 180px;
  border-radius: 12px;
}

.modal-tips {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.modal-tips p {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 4px;
}

.modal-tips .highlight {
  color: var(--primary);
  font-weight: 600;
}

.modal-tips .warning {
  color: #f59e0b;
  font-weight: 600;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.modal-actions .btn-primary {
  flex: 1;
  justify-content: center;
  text-align: center;
}

/* Download Card Button States */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.download-btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.download-btn i {
  font-style: normal;
}
