/* ===========================================
   AIncome Support Center - Stylesheet
   =========================================== */

/* CSS Variables - Theme Colors */
:root {
  --theme-blue:       #ABD6F2;
  --theme-indigo:     #4D6EA3;
  --theme-navy-gray:  #4D4F5C;
  --theme-coral:      #EC9194;
  --theme-pink:       #F6CFD1;
  --theme-cream:      #F4E5E1;
  --theme-light-gray: #F2F1F1;
  
  /* Derived colors */
  --gradient-primary: linear-gradient(135deg, var(--theme-indigo) 0%, var(--theme-coral) 100%);
  --gradient-soft: linear-gradient(135deg, var(--theme-blue) 0%, var(--theme-pink) 100%);
  
  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(77, 110, 163, 0.1);
  --shadow-hover: 0 8px 30px rgba(77, 110, 163, 0.15);
  
  /* Border Radius */
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body { 
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
  max-width: 900px; 
  margin: 0 auto; 
  padding: 24px; 
  line-height: 1.8; 
  color: var(--theme-navy-gray); 
  background: linear-gradient(180deg, #fafbff 0%, #ffffff 50%, var(--theme-cream) 100%);
  min-height: 100vh;
}

/* ===========================================
   Hero Section
   =========================================== */
.hero {
  text-align: center;
  padding: 60px 24px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.3; }
}

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

.hero-logo {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero h1 { 
  color: #fff; 
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero .tagline {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  margin-bottom: 28px;
}

/* ===========================================
   App Store Button
   =========================================== */
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.app-store-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  text-decoration: none;
}

.app-store-btn svg {
  width: 26px;
  height: 26px;
}

.app-store-btn .btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.app-store-btn .btn-text small {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.9;
}

.app-store-btn .btn-text span {
  font-size: 1.1rem;
}

/* ===========================================
   Intro Text
   =========================================== */
.intro-text {
  text-align: center;
  color: #666;
  margin-bottom: 48px;
  font-size: 0.95rem;
}

/* ===========================================
   Section Headers
   =========================================== */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 48px 0 20px 0;
  color: var(--theme-navy-gray);
  font-size: 1.4rem;
  font-weight: 600;
}

.section-header .icon {
  width: 28px;
  height: 28px;
  color: var(--theme-indigo);
}

.section-desc {
  color: #666;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* ===========================================
   Shortcuts Grid
   =========================================== */
.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.shortcut-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: var(--theme-navy-gray);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.shortcut-card:hover {
  border-color: var(--theme-indigo);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  text-decoration: none;
}

.shortcut-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--gradient-soft);
}

.shortcut-icon svg {
  width: 26px;
  height: 26px;
  color: var(--theme-indigo);
}

.shortcut-info h3 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  font-weight: 600;
}

.shortcut-info p {
  margin: 0;
  font-size: 0.85rem;
  color: #888;
}

/* ===========================================
   FAQ Section
   =========================================== */
.faq {
  list-style: none;
}

.faq dt {
  position: relative;
  padding: 18px 50px 18px 20px;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--theme-navy-gray);
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.faq dt:first-of-type {
  margin-top: 0;
}

.faq dt:hover {
  border-color: var(--theme-blue);
}

.faq dt::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--theme-indigo);
  transition: transform 0.3s ease;
  font-weight: 400;
}

.faq dt.expanded {
  background: var(--theme-indigo);
  color: #fff;
  border-color: transparent;
}

.faq dt.expanded::after {
  content: "−";
  color: #fff;
}

.faq dd {
  display: none;
  margin: 0;
  padding: 20px 24px;
  background: #fff;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  border-left: 3px solid var(--theme-indigo);
  margin-top: -8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  animation: slideDown 0.3s ease;
  line-height: 1.8;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.faq dd a {
  color: var(--theme-indigo);
  word-break: break-all;
}

.faq dd a:hover {
  text-decoration: underline;
}

.faq dd strong {
  color: var(--theme-coral);
}

/* ===========================================
   Contact Section
   =========================================== */
.contact-card {
  background: linear-gradient(135deg, var(--theme-light-gray) 0%, var(--theme-cream) 100%);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
}

.contact-card p {
  margin: 0 0 16px 0;
  color: #666;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--theme-indigo);
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.email-link:hover {
  background: var(--theme-navy-gray);
  transform: scale(1.03);
}

.email-link svg {
  width: 20px;
  height: 20px;
}

/* ===========================================
   Card Style
   =========================================== */
.card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.card p {
  margin: 0;
}

.card a {
  color: var(--theme-indigo);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card a:hover {
  color: var(--theme-coral);
}

.card a svg {
  width: 18px;
  height: 18px;
}

/* ===========================================
   Floating Download Button
   =========================================== */
.floating-download {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  animation: float 3s ease-in-out infinite;
}

.floating-download a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  padding: 14px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.floating-download a:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(0,0,0,0.4);
}

.floating-download svg {
  width: 22px;
  height: 22px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ===========================================
   Footer
   =========================================== */
footer { 
  text-align: center; 
  margin-top: 64px; 
  padding: 32px 0;
  font-size: 0.9rem; 
  color: #888;
  border-top: 1px solid var(--theme-light-gray);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--theme-navy-gray);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

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

.footer-links svg {
  width: 16px;
  height: 16px;
}

footer .copyright {
  color: #aaa;
  font-size: 0.85rem;
}

/* ===========================================
   Responsive Design
   =========================================== */
@media (max-width: 600px) {
  body {
    padding: 16px;
  }
  
  .hero {
    padding: 40px 20px;
    border-radius: var(--radius-md);
  }
  
  .hero-logo {
    width: 64px;
    height: 64px;
  }
  
  .hero h1 {
    font-size: 1.6rem;
  }
  
  .shortcuts-grid {
    grid-template-columns: 1fr;
  }
  
  .floating-download a span {
    display: none;
  }
  
  .floating-download a {
    padding: 14px;
    border-radius: 50%;
  }
  
  .section-header {
    font-size: 1.2rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
}
