/* AG-PowerSystem Public Page Styles */

:root {
  --aps-primary: #1e3c72;
  --aps-secondary: #2a5298;
  --aps-accent: #64b5f6;
  --aps-dark: #0f1f3d;
  --aps-light: #f5f7fa;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

/* Page Scroll Button */
#click_warp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--aps-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
}

#click_warp.visible {
  opacity: 1;
  visibility: visible;
}

#click_warp:hover {
  transform: translateY(-5px);
  background: var(--aps-secondary);
  box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
}

/* Hero Section */
.aps-hero {
  background-image: url(/img/background/city.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
}

.aps-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 60, 114, 0.85) 0%, rgba(42, 82, 152, 0.85) 100%);
  z-index: 0;
}

.aps-hero-content {
  position: relative;
  z-index: 1;
}

.aps-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}



.aps-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.aps-hero .highlight {
  color: var(--aps-accent);
}

.aps-hero .subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  font-weight: 300;
}

/* Main Content */
.aps-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.aps-section {
  margin-bottom: 80px;
}

.aps-section h2 {
  font-size: 2.5rem;
  color: var(--aps-primary);
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.aps-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--aps-accent), var(--aps-secondary));
  border-radius: 2px;
}

/* Intro Section */
.intro-text {
  font-size: 1.2rem;
  line-height: 1.8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  color: #555;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(30, 60, 114, 0.15);
  border-color: var(--aps-accent);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.feature-card h3 {
  font-size: 1.4rem;
  color: var(--aps-primary);
  margin-bottom: 10px;
}

.feature-card p {
  color: #666;
  line-height: 1.6;
}

/* System Info */
.info-box {
  background: linear-gradient(135deg, var(--aps-light) 0%, #e8eef5 100%);
  padding: 40px;
  border-radius: 12px;
  border-left: 5px solid var(--aps-accent);
}

.info-item {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item strong {
  color: var(--aps-primary);
  display: inline-block;
  min-width: 180px;
}

/* Steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: start;
}

.step-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--aps-primary), var(--aps-secondary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 1.4rem;
  color: var(--aps-primary);
  margin-bottom: 10px;
}

.step-content p {
  color: #666;
  line-height: 1.6;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.faq-item {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--aps-accent);
}

.faq-item h3 {
  font-size: 1.2rem;
  color: var(--aps-primary);
  margin-bottom: 10px;
}

.faq-item p {
  color: #666;
  line-height: 1.6;
}

/* CTA Section */
.cta {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--aps-primary) 0%, var(--aps-secondary) 100%);
  border-radius: 16px;
  color: white;
}

.cta h2 {
  color: white;
  margin-bottom: 15px;
}

.cta h2::after {
  background: white;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 15px 40px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.432);
  color: var(--aps-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .aps-hero h1 {
    font-size: 2rem;
  }

  .aps-hero .subtitle {
    font-size: 1rem;
  }

  .aps-logo {
    width: 100px;
    height: 100px;
  }

  .aps-section h2 {
    font-size: 1.8rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .info-item strong {
    display: block;
    margin-bottom: 5px;
  }

  .step {
    flex-direction: column;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
  }
}