:root {
  --primary: #0099ff;
  --primary-dark: #0077cc;
  --accent: #00d4aa;
  --bg: #0a0a0f;
  --bg-card: #141420;
  --bg-card-hover: #1a1a2e;
  --text: #e8e8f0;
  --text-muted: #8888a0;
  --border: #2a2a3e;
  --whatsapp: #25D366;
  --whatsapp-dark: #1da851;
  --gold: #ffc107;
  --hot: #ff4757;
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans TC', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.logo-icon { flex-shrink: 0; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav a:hover { color: var(--accent); }

/* Hero */
.hero {
  background: linear-gradient(135deg, #0a1628 0%, #0d0d1a 50%, #1a0a2e 100%);
  padding: 4rem 1.5rem;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.hero-text p { color: var(--text-muted); margin-bottom: 0.5rem; }

.hero-text ul {
  list-style: none;
  margin: 0.5rem 0 1rem;
}

.hero-text ul li {
  padding: 0.25rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text);
}

.hero-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-whatsapp-hero {
  background: var(--whatsapp);
  color: #fff;
  margin-top: 1rem;
}

.btn-whatsapp-hero:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-1px);
}

/* Form */
.hero-form {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.hero-form h2 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.form-group { margin-bottom: 1rem; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff;
  padding: 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.btn-submit:hover { opacity: 0.9; }

/* Filter Section */
.filter-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 1rem;
}

.section-title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.filter-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-row + .filter-row { margin-top: 0.75rem; }

.search-wrapper {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.filter-input {
  width: 100%;
  padding: 0.6rem 0.75rem 0.6rem 2.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
}

.filter-input:focus { outline: none; border-color: var(--accent); }

select {
  padding: 0.6rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  min-width: 150px;
}

select:focus { outline: none; border-color: var(--accent); }

.result-count {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.btn-clear {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.btn-clear:hover { border-color: var(--accent); color: var(--accent); }

/* Plans Grid */
.plans-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

/* Plan Card */
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  transition: all 0.3s;
}

.plan-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.plan-card.hidden { display: none; }

.badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge.hot { background: var(--hot); }

.provider {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.plan-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  padding-right: 4rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  margin-bottom: 1rem;
}

.currency {
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 700;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.period {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-left: 0.25rem;
}

.features {
  list-style: none;
  margin-bottom: 1.25rem;
}

.features li {
  padding: 0.3rem 0;
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.actions {
  display: flex;
  gap: 0.5rem;
}

.btn-whatsapp {
  flex: 1;
  background: var(--whatsapp);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.btn-call {
  flex: 1;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.65rem 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.btn-call:hover { border-color: var(--accent); color: var(--accent); }

/* About Section */
.about-section {
  background: var(--bg-card);
  padding: 4rem 1.5rem;
}

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

.about-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--text);
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.about-text ul {
  list-style: none;
  margin-bottom: 1rem;
}

.about-text ul li {
  padding: 0.3rem 0 0.3rem 1.5rem;
  position: relative;
  color: var(--text-muted);
}

.about-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* Contact Section */
.contact-section {
  padding: 4rem 1.5rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.contact-section h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.contact-section > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
}

.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact-icon {
  color: var(--whatsapp);
  margin-bottom: 0.75rem;
}

.contact-icon-phone { color: var(--primary); }

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background: #050508;
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 1rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.footer-links a,
.footer-contact a {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-contact a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Mobile */
@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem;
  }

  .nav.active { display: flex; }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-text h1 { font-size: 2rem; }

  .hero { padding: 2.5rem 1.5rem; }

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

  .contact-methods { grid-template-columns: 1fr; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .filter-row { flex-direction: column; }

  select { width: 100%; }

  .search-wrapper { min-width: 100%; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 1.6rem; }
  .price { font-size: 2rem; }
  .plan-card h3 { font-size: 1rem; }
}

/* Language Switcher */
.lang-switch {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
  margin-right: 1rem;
}

.lang-btn {
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 600;
}

.lang-btn:hover:not(.active) {
  border-color: var(--accent);
  color: var(--accent);
}

/* Blog Section */
.blog-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s;
}

.blog-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.blog-date {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  color: var(--text);
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-read-more {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity 0.2s;
}

.blog-read-more:hover { opacity: 0.8; }

.blog-empty {
  text-align: center;
  color: var(--text-muted);
  grid-column: 1 / -1;
  padding: 2rem;
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .lang-switch { margin-right: 0.5rem; }
}
