/* TronLink Download Center - Global Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #1B1F3B;
  --primary-light: #2D325A;
  --accent: #4C6EF5;
  --accent-hover: #3B5BDB;
  --warning: #FF6B35;
  --danger: #E74C3C;
  --success: #2ECC71;
  --text-dark: #1A1A2E;
  --text-light: #FFFFFF;
  --text-muted: #8892B0;
  --bg-light: #F8F9FD;
  --bg-dark: #0F1123;
  --card-bg: #FFFFFF;
  --border: #E2E8F0;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 12px;
  --transition: all 0.3s ease;
}

body {
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Noto Sans SC', 'Source Han Sans SC', sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 17, 35, 0.92);
  backdrop-filter: blur(12px);
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-light);
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), #7C3AED);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.7);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(76, 110, 245, 0.15);
}

.nav-lang {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  margin-left: 12px;
}

.nav-lang:hover {
  border-color: var(--accent);
  color: #fff;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: linear-gradient(160deg, #0F1123 0%, #1B1F3B 40%, #2D325A 70%, #1B1F3B 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(76,110,245,0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 50%, rgba(124,58,237,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(76,110,245,0.12);
  border: 1px solid rgba(76,110,245,0.25);
  color: #8BA4F7;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent), #7C3AED);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.7;
}

.hero-trust {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 48px;
}

.hero-platforms {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.platform-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  color: rgba(255,255,255,0.8);
  transition: var(--transition);
  min-width: 140px;
}

.platform-entry:hover {
  background: rgba(76,110,245,0.1);
  border-color: rgba(76,110,245,0.3);
  transform: translateY(-4px);
  color: #fff;
}

.platform-entry-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.platform-entry-label {
  font-size: 14px;
  font-weight: 600;
}

/* Sections */
.section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-dark {
  background: var(--bg-dark);
  max-width: 100%;
  padding: 80px 24px;
}

.section-dark .section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.section-dark .section-title { color: var(--text-light); }

.section-desc {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 56px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Download Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.download-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.download-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.card-icon-android { background: linear-gradient(135deg, #3DDC84, #2ECC71); }
.card-icon-ios { background: linear-gradient(135deg, #007AFF, #5856D6); }
.card-icon-chrome { background: linear-gradient(135deg, #4285F4, #34A853); }
.card-icon-firefox { background: linear-gradient(135deg, #FF7139, #FF4500); }

.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg-light);
  border-radius: 8px;
}

.card-meta-item {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.card-meta-label { color: var(--text-muted); }
.card-meta-value { font-weight: 600; color: var(--text-dark); }

.card-warning {
  background: #FFF5F0;
  border: 1px solid #FFD4C0;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 13px;
  color: #C44D20;
  line-height: 1.6;
}

.card-warning strong { color: var(--danger); }

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76,110,245,0.3);
}

.btn-android { background: linear-gradient(135deg, #3DDC84, #2ECC71); }
.btn-ios { background: linear-gradient(135deg, #007AFF, #5856D6); }
.btn-chrome { background: linear-gradient(135deg, #4285F4, #34A853); }
.btn-firefox { background: linear-gradient(135deg, #FF7139, #FF4500); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #7C3AED); }

/* Security Section */
.security-box {
  background: linear-gradient(135deg, #1B1F3B, #2D325A);
  border-radius: 20px;
  padding: 48px;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.security-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(231,76,60,0.1), transparent);
  pointer-events: none;
}

.security-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.security-subtitle {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 15px;
}

.security-alert {
  background: rgba(231,76,60,0.12);
  border: 1px solid rgba(231,76,60,0.3);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}

.security-alert-title {
  color: #FF6B6B;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.security-alert ul {
  list-style: none;
  padding: 0;
}

.security-alert li {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  line-height: 1.7;
}

.security-alert li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #FF6B6B;
  font-weight: bold;
}

.channel-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
}

.channel-table th {
  background: rgba(76,110,245,0.15);
  padding: 14px 20px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #8BA4F7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.channel-table td {
  padding: 14px 20px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.channel-table tr:hover td {
  background: rgba(255,255,255,0.03);
}

.channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(46,204,113,0.15);
  color: #2ECC71;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.social-link:hover {
  background: rgba(76,110,245,0.15);
  border-color: rgba(76,110,245,0.3);
  color: #fff;
}

/* Changelog */
.changelog-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
  transition: var(--transition);
}

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

.changelog-version {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.version-badge {
  background: linear-gradient(135deg, var(--accent), #7C3AED);
  color: #fff;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
}

.version-date {
  color: var(--text-muted);
  font-size: 14px;
}

.version-tag {
  background: rgba(46,204,113,0.1);
  color: var(--success);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

.changelog-list {
  list-style: none;
  padding: 0;
}

.changelog-list li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

.changelog-list li::before {
  position: absolute;
  left: 0;
  top: 8px;
  font-size: 14px;
}

.changelog-list .feature::before { content: '✨'; }
.changelog-list .optimize::before { content: '🚀'; }
.changelog-list .fix::before { content: '🐛'; }

/* FAQ */
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
  transition: var(--transition);
}

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

.faq-question {
  padding: 24px 32px;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dark);
}

.faq-q-badge {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), #7C3AED);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.faq-answer {
  padding: 24px 32px;
}

.faq-steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.faq-steps li {
  counter-increment: step;
  padding: 12px 0;
  padding-left: 44px;
  position: relative;
  font-size: 14px;
  line-height: 1.8;
  color: #555;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.faq-steps li:last-child { border-bottom: none; }

.faq-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 12px;
  width: 28px;
  height: 28px;
  background: var(--bg-light);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

/* QR Code Section */
.qr-section {
  text-align: center;
  padding: 40px 0;
}

.qr-box {
  display: inline-block;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: var(--transition);
}

.qr-box:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.qr-placeholder {
  width: 150px;
  height: 150px;
  background: repeating-conic-gradient(#1A1A2E 0% 25%, #fff 0% 50%) 0 0 / 15px 15px;
  border-radius: 8px;
  margin: 0 auto 16px;
}

.qr-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.qr-sublabel {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.6);
  padding: 60px 24px 32px;
}

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

.footer-brand-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* Page Header (for sub pages) */
.page-header {
  background: linear-gradient(160deg, #0F1123 0%, #1B1F3B 50%, #2D325A 100%);
  padding: 140px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(76,110,245,0.08), transparent 60%);
  pointer-events: none;
}

.page-header h1 {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 16px;
  position: relative;
}

.page-header p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 24px;
  justify-content: center;
  position: relative;
}

.breadcrumb a {
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

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

.breadcrumb span { color: rgba(255,255,255,0.3); }

/* Stats Bar */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 32px 24px;
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* Install Guide */
.guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.guide-step {
  text-align: center;
  padding: 28px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.guide-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.guide-step-num {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), #7C3AED);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  margin: 0 auto 16px;
}

.guide-step-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.guide-step-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 991px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .hero h1 { font-size: 36px; }
  .hero-platforms { gap: 16px; }
  .platform-entry { padding: 18px 24px; min-width: 110px; }
  .section { padding: 60px 20px; }
  .section-title { font-size: 28px; }
  .cards-grid { grid-template-columns: 1fr; }
  .security-box { padding: 32px 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .page-header h1 { font-size: 32px; }
  .stats-bar { gap: 24px; }
}

@media (max-width: 767px) {
  .hero { padding: 100px 16px 60px; min-height: auto; }
  .hero h1 { font-size: 28px; }
  .hero-subtitle { font-size: 15px; }
  .hero-platforms { flex-direction: column; align-items: center; }
  .platform-entry { width: 100%; max-width: 280px; flex-direction: row; justify-content: flex-start; }
  .section { padding: 48px 16px; }
  .section-title { font-size: 24px; }
  .download-card { padding: 24px; }
  .security-box { padding: 24px 16px; }
  .channel-table { font-size: 13px; }
  .channel-table th, .channel-table td { padding: 10px 12px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-header { padding: 120px 16px 60px; }
  .page-header h1 { font-size: 26px; }
  .faq-question { padding: 18px 20px; font-size: 15px; }
  .faq-answer { padding: 18px 20px; }
  .guide-steps { grid-template-columns: 1fr; }
  .social-links { flex-direction: column; }
}
