/* ==========================================================================
   Cyber Ink Wash (赛博水墨写意) Theme - Telegram Standard CSS
   ========================================================================== */

:root {
  --ink-black: #080A0F;
  --ink-dark: #10141E;
  --ink-card: #181F2C;
  --ink-panel: #20293A;
  
  --cyber-blue: #00F0FF;
  --cyber-blue-glow: rgba(0, 240, 255, 0.25);
  --cyber-blue-border: rgba(0, 240, 255, 0.35);
  --cyber-cyan: #00B4D8;
  --ink-red: #E63946;
  --ink-white: #F0F4F8;
  --ink-muted: #94A3B8;
  --ink-border: rgba(255, 255, 255, 0.1);
  
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-art: "Kaiti SC", "STKaiti", "LiSu", "Georgia", serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--ink-black);
  color: var(--ink-white);
  line-height: 1.65;
  position: relative;
  overflow-x: hidden;
  /* Cyber Ink Wash background gradient simulation */
  background-image: 
    radial-gradient(ellipse at 20% 20%, rgba(0, 240, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(230, 57, 70, 0.06) 0%, transparent 60%);
}

a {
  color: var(--cyber-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px var(--cyber-blue);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Header & Navigation (Cyber Ink Wash Style)
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(8, 10, 15, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--cyber-blue-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-art);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-white);
  letter-spacing: 1px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, var(--ink-dark), var(--ink-black));
  border: 1px solid var(--cyber-blue);
  color: var(--cyber-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border-radius: 50%;
  box-shadow: 0 0 12px var(--cyber-blue-glow);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--ink-white);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.nav-link.active,
.nav-link:hover {
  color: var(--cyber-blue);
  background: rgba(0, 240, 255, 0.1);
}

/* ==========================================================================
   Buttons (Cyber Ink Wash Glowing Borders)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.35s ease;
  text-align: center;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(0, 180, 216, 0.4));
  color: #ffffff;
  border: 1px solid var(--cyber-blue);
  box-shadow: 0 0 16px var(--cyber-blue-glow);
  position: relative;
}

.btn-primary:hover {
  background: var(--cyber-blue);
  color: var(--ink-black);
  box-shadow: 0 0 24px var(--cyber-blue);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(16, 20, 30, 0.6);
  color: var(--ink-white);
  border: 1px solid var(--ink-border);
}

.btn-outline:hover {
  border-color: var(--cyber-blue);
  color: var(--cyber-blue);
  background: rgba(0, 240, 255, 0.1);
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero Banner Section (Cyber Ink Wash Banner)
   ========================================================================== */
.hero {
  padding: 65px 0;
  text-align: center;
  position: relative;
}

.ink-badge {
  display: inline-block;
  font-family: var(--font-art);
  font-size: 13px;
  font-weight: 700;
  color: var(--cyber-blue);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--cyber-blue-border);
  padding: 4px 18px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 18px;
  color: var(--ink-white);
}

.hero-title span {
  font-family: var(--font-art);
  color: var(--cyber-blue);
  text-shadow: 0 0 12px var(--cyber-blue-glow);
  border-bottom: 2px solid var(--cyber-blue);
}

.hero-subtitle {
  font-size: 17px;
  color: var(--ink-muted);
  max-width: 800px;
  margin: 0 auto 36px auto;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
}

/* Cyber Ink Wash Showcase Grid */
.ink-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 20px;
}

.ink-card {
  background: var(--ink-card);
  border: 1px solid var(--cyber-blue-border);
  border-radius: 12px;
  padding: 14px;
  position: relative;
  transition: all 0.35s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.ink-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyber-blue);
  box-shadow: 0 12px 30px var(--cyber-blue-glow);
}

.ink-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  filter: contrast(102%) brightness(95%);
}

.ink-card-label {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-white);
  font-family: var(--font-art);
}

/* ==========================================================================
   Section Components
   ========================================================================== */
.section {
  padding: 60px 0;
  border-top: 1px solid var(--ink-border);
}

.section-panel {
  background: var(--ink-panel);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink-white);
  margin-bottom: 12px;
  font-family: var(--font-art);
}

.section-title p {
  color: var(--ink-muted);
  font-size: 16px;
}

/* 3x3 Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--ink-card);
  border: 1px solid var(--cyber-blue-border);
  padding: 28px 24px;
  border-radius: 10px;
  transition: all 0.35s ease;
  position: relative;
}

.feature-card:hover {
  border-color: var(--cyber-blue);
  box-shadow: 0 8px 24px var(--cyber-blue-glow);
  transform: translateY(-4px);
  background: #1e2838;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--cyber-blue);
  background: rgba(0, 240, 255, 0.1);
  color: var(--cyber-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 18px;
  font-family: var(--font-art);
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--ink-white);
}

.feature-card p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* Blog / Tutorial Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.blog-card {
  background: var(--ink-card);
  border: 1px solid var(--cyber-blue-border);
  padding: 26px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s ease;
}

.blog-card:hover {
  border-color: var(--cyber-blue);
  box-shadow: 0 8px 24px var(--cyber-blue-glow);
}

.blog-date {
  font-family: var(--font-art);
  font-size: 13px;
  color: var(--cyber-blue);
  margin-bottom: 8px;
}

.blog-card h3 {
  font-size: 17px;
  color: var(--ink-white);
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card p {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.blog-link {
  font-weight: 700;
  font-size: 14px;
  color: var(--cyber-blue);
}

.more-wrapper {
  text-align: center;
  margin-top: 36px;
}

/* FAQ Section */
.faq-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq-item {
  background: var(--ink-card);
  border: 1px solid var(--cyber-blue-border);
  border-radius: 10px;
  padding: 22px;
}

.faq-question {
  font-size: 17px;
  font-weight: 700;
  color: var(--cyber-blue);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-question::before {
  content: '问';
  font-family: var(--font-art);
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyber-blue);
  border: 1px solid var(--cyber-blue-border);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
}

.faq-answer {
  font-size: 14px;
  color: var(--ink-white);
  line-height: 1.7;
  padding-left: 32px;
}

/* Download Grid */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.download-card {
  background: var(--ink-card);
  border: 1px solid var(--cyber-blue-border);
  padding: 32px 24px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.35s ease;
}

.download-card:hover {
  border-color: var(--cyber-blue);
  box-shadow: 0 12px 30px var(--cyber-blue-glow);
}

.download-card-icon {
  font-size: 38px;
  margin-bottom: 16px;
}

.download-card h3 {
  font-size: 20px;
  color: var(--ink-white);
  margin-bottom: 12px;
}

.download-card p {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.download-web-banner {
  margin-top: 36px;
  background: var(--ink-panel);
  border: 1px solid var(--cyber-blue);
  padding: 32px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 0 20px var(--cyber-blue-glow);
}

.download-web-banner h3 {
  font-size: 20px;
  color: var(--ink-white);
  margin-bottom: 8px;
}

.download-web-banner p {
  color: var(--ink-muted);
  font-size: 14px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--ink-black);
  border-top: 1px solid var(--cyber-blue-border);
  padding: 60px 0 30px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--cyber-blue);
  margin-bottom: 18px;
  font-family: var(--font-art);
}

.footer-col p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.7;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--ink-muted);
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--cyber-blue);
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
  font-family: var(--font-art);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .features-grid,
  .download-grid,
  .ink-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 12px 0;
    gap: 12px;
  }
  
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .features-grid,
  .blog-grid,
  .download-grid,
  .ink-showcase {
    grid-template-columns: 1fr;
  }
  
  .download-web-banner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
