/*
Theme Name: purple
Theme URI: https://example.com/purple
Author: AI Developer
Author URI: https://example.com
Description: A modern WordPress theme inspired by purple, optimized for Google SEO, featuring a news module.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: purple
*/

:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --accent-color: #3b82f6;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f3f4f6;
  --bg-white: #ffffff;
  --transition: all 0.3s ease;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

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

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

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

.site-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.main-nav a {
  color: var(--text-dark);
  font-weight: 500;
}

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

/* PURPLE Download Button in Header (Top Right) */
.header-right-action {
  display: flex;
  align-items: center;
}

.header-purple-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #000000;
  color: #ffffff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.header-purple-dl-btn:hover {
  background-color: #1f2937;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.header-purple-dl-btn svg {
  stroke-width: 2.8px;
  transition: transform 0.2s ease;
}

.header-purple-dl-btn:hover svg {
  transform: translateY(2px);
}

/* Hero Section */
.hero-section {
  padding: 160px 20px 100px;
  text-align: center;
  background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

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

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  margin-left: 15px;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #fff;
}

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

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 50px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-light);
  font-size: 15px;
}

/* Stats */
.stats-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.stat-item h4 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 10px;
}

.stat-item p {
  font-size: 16px;
  opacity: 0.9;
}

/* Scenarios */
.scenarios-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.scenario-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.scenario-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.scenario-card p {
  color: var(--text-light);
  margin-bottom: 20px;
}

/* News/Blog Module for SEO */
.news-section {
  padding: 80px 0;
  background-color: var(--bg-white);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.news-thumb {
  height: 200px;
  background-color: #e5e7eb;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  padding: 25px;
}

.news-date {
  font-size: 13px;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.news-title {
  font-size: 20px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-title a {
  color: var(--text-dark);
}

.news-title a:hover {
  color: var(--primary-color);
}

.news-excerpt {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 15px;
}

.read-more {
  font-size: 14px;
  font-weight: 600;
}

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

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

.faq-item {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.faq-question {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}

.faq-section .faq-question:hover {
  background-color: #f9fafb;
}

.faq-question h3 {
  font-size: 18px;
  margin: 0;
  font-weight: 600;
  color: var(--text-dark);
}

.faq-icon {
  font-size: 24px;
  font-weight: 300;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #fff;
  padding: 0 25px;
}

.faq-answer p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 0 25px 25px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Footer */
.site-footer {
  background-color: #111827;
  color: #9ca3af;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h5 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: #9ca3af;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 30px;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 20px 0;
  }

  .main-nav ul {
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .btn-outline {
    margin-left: 0;
    margin-top: 15px;
    display: block;
  }
}

/* ==========================================================================
   Download Page Template (下载中心 - QuickQ + PURPLE Hybrid Style)
   ========================================================================== */

.download-page-wrapper {
  padding-top: 70px;
  background-color: #0b0f19;
  color: #e5e7eb;
  font-family: var(--font-main);
  word-break: break-word;
  overflow-wrap: break-word;
}

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

.dl-section-header {
  text-align: center;
  margin-bottom: 50px;
}

.dl-section-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.dl-section-header p {
  font-size: 16px;
  color: #9ca3af;
}

/* Hero Section */
.dl-hero-section {
  padding: 100px 0 80px;
  background: radial-gradient(circle at 50% 20%, #1e3a8a 0%, #0b0f19 70%);
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dl-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-size: 13px;
  color: #60a5fa;
  margin-bottom: 25px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.badge-divider {
  opacity: 0.4;
}

.dl-hero-title {
  font-size: 46px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dl-hero-subtitle {
  font-size: 18px;
  color: #9ca3af;
  max-width: 760px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Main Download Button & Aux Links */
.dl-main-cta-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.dl-btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.dl-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.6);
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.dl-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-main-label {
  font-size: 18px;
  line-height: 1.2;
}

.btn-sub-label {
  font-size: 12px;
  opacity: 0.8;
  font-weight: 400;
  margin-top: 3px;
}

.dl-hero-auxiliary {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.aux-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9ca3af;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.aux-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Multi-platform Tabs */
.dl-platforms-section {
  padding: 80px 0;
  background-color: #0b0f19;
}

.dl-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  background: #111827;
  border: 1px solid #1f2937;
  color: #9ca3af;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: #ffffff;
  border-color: #374151;
  background: #1f2937;
}

.tab-btn.active {
  color: #ffffff;
  background: #2563eb;
  border-color: #3b82f6;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

.platform-card-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.platform-card-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-head h3 {
  font-size: 26px;
  color: #ffffff;
  margin-bottom: 10px;
}

.card-head p {
  color: #9ca3af;
  font-size: 15px;
  margin-bottom: 25px;
}

.card-download-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.btn-dl-large {
  display: flex;
  flex-direction: column;
  padding: 14px 28px;
  background: #2563eb;
  color: #ffffff !important;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.btn-dl-large:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.btn-dl-large small {
  font-weight: 400;
  font-size: 12px;
  opacity: 0.8;
  margin-top: 2px;
}

.btn-dl-sub {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #374151;
  color: #d1d5db !important;
  border-radius: 8px;
  font-size: 14px;
}

.btn-dl-sub:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
}

.version-meta {
  list-style: none;
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: #6b7280;
  border-top: 1px solid #1f2937;
  padding-top: 20px;
}

.version-meta strong {
  color: #9ca3af;
}

.platform-card-side {
  background: #1f2937;
  border-radius: 12px;
  padding: 25px;
}

.platform-card-side h4 {
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 15px;
  border-bottom: 1px solid #374151;
  padding-bottom: 10px;
}

.spec-list {
  list-style: none;
  font-size: 14px;
}

.spec-list li {
  margin-bottom: 10px;
  color: #d1d5db;
}

.spec-list li span {
  color: #9ca3af;
}

.qr-box-side {
  text-align: center;
}

.qr-code-wrapper {
  background: #ffffff;
  padding: 12px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 10px;
}

.qr-tip {
  font-size: 13px;
  color: #9ca3af;
}

.code-snippet-box {
  background: #0b0f19;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 13px;
  color: #60a5fa;
  overflow-x: auto;
}

/* Feature Grid */
.dl-features-section {
  padding: 80px 0;
  background: #111827;
}

.dl-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.dl-feature-item {
  background: #1f2937;
  padding: 30px;
  border-radius: 14px;
  border: 1px solid #374151;
  transition: var(--transition);
}

.dl-feature-item:hover {
  transform: translateY(-5px);
  border-color: #2563eb;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.feature-icon-wrap {
  font-size: 36px;
  margin-bottom: 15px;
}

.dl-feature-item h3 {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 10px;
}

.dl-feature-item p {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.6;
}

/* Specs Table Section */
.dl-specs-section {
  padding: 80px 0;
  background: #0b0f19;
}

.specs-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #1f2937;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: #111827;
}

.specs-table th, .specs-table td {
  padding: 16px 24px;
  border-bottom: 1px solid #1f2937;
}

.specs-table th {
  background: #1f2937;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.specs-table td {
  color: #d1d5db;
  font-size: 14px;
}

.specs-table tr:last-child td {
  border-bottom: none;
}

/* Steps Section */
.dl-steps-section {
  padding: 80px 0;
  background: #111827;
}

.dl-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.step-card {
  background: #1f2937;
  border: 1px solid #374151;
  padding: 35px 25px;
  border-radius: 14px;
  position: relative;
}

.step-num {
  font-size: 38px;
  font-weight: 900;
  color: #2563eb;
  margin-bottom: 15px;
}

.step-card h3 {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 10px;
}

.step-card p {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.6;
}

/* FAQ Section */
.dl-faq-section {
  padding: 80px 0;
  background: #0b0f19;
}

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

.dl-faq-section .faq-item {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 10px;
  margin-bottom: 15px;
}

.dl-faq-section .faq-question {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background-color: #111827;
  transition: background-color 0.3s ease;
}

.dl-faq-section .faq-question:hover {
  background-color: #1f2937;
}

.dl-faq-section .faq-item.active .faq-question {
  background-color: #1f2937;
}

.dl-faq-section .faq-question h3 {
  font-size: 17px;
  color: #ffffff;
  margin: 0;
  font-weight: 600;
  transition: color 0.3s ease;
}

.dl-faq-section .faq-item.active .faq-question h3 {
  color: #60a5fa;
}

.dl-faq-section .faq-icon {
  font-size: 22px;
  color: #60a5fa;
  font-weight: bold;
}

.dl-faq-section .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  padding: 0 25px;
  background: #111827;
}

.dl-faq-section .faq-answer p {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.6;
}

.dl-faq-section .faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 25px 20px;
}

/* Bottom CTA Banner */
.dl-bottom-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #1e1b4b 100%);
  text-align: center;
}

.dl-bottom-cta h2 {
  font-size: 32px;
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 10px;
}

.dl-bottom-cta p {
  color: #93c5fd;
  font-size: 16px;
  margin-bottom: 30px;
}

/* Responsive Layout */
@media (max-width: 900px) {
  .platform-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dl-hero-title {
    font-size: 32px;
  }
  
  .dl-hero-subtitle {
    font-size: 15px;
  }

  .tab-btn {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .platform-card-grid {
    padding: 20px;
  }
}

/* Locale Switcher (多语言下拉菜单) */
.dl-locale-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.locale-switcher-dropdown {
  position: relative;
  display: inline-block;
}

.locale-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.locale-switcher-dropdown:hover .locale-current {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.locale-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 10px;
  padding: 8px 0;
  list-style: none;
  min-width: 140px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.locale-switcher-dropdown:hover .locale-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.locale-menu li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: #d1d5db;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.locale-menu li a:hover,
.locale-menu li a.active {
  background: #2563eb;
  color: #ffffff;
}