/* ========================================
   TG中文版 官网样式表
   ======================================== */

/* ---- 全局重置 ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

ul, ol {
  list-style: none;
}

/* ---- 变量定义 ---- */
:root {
  --primary: #0088cc;
  --primary-dark: #006699;
  --primary-light: #e7f3fa;
  --accent: #34b7f1;
  --success: #2ecc71;
  --warning: #f39c12;
  --danger: #e74c3c;
  --dark: #1a1a2e;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1200px;
}

/* ---- 动画 ---- */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* ---- 布局容器 ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-gray {
  background: var(--gray-100);
}

.section-dark {
  background: var(--dark);
  color: #fff;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--dark);
}

.section-dark .section-title {
  color: #fff;
}

.section-subtitle {
  font-size: 1.1rem;
  text-align: center;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto 50px;
  line-height: 1.7;
}

.section-dark .section-subtitle {
  color: var(--gray-400);
}

/* ---- 导航栏 ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
}

.navbar-brand svg {
  width: 32px;
  height: 32px;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}

.nav-link svg {
  width: 18px;
  height: 18px;
}

.navbar-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- 按钮 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,136,204,0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,136,204,0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-light);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.btn-ghost:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
}

.btn-dark {
  background: var(--dark);
  color: #fff;
}

.btn-dark:hover {
  background: #2d2d44;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* ---- 卡片 ---- */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--gray-300);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--dark);
}

.card-text {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ---- 网格系统 ---- */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ---- 标签 ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
}

.badge-success {
  background: #d4edda;
  color: #155724;
}

.badge-warning {
  background: #fff3cd;
  color: #856404;
}

/* ---- 表格 ---- */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table th {
  background: var(--gray-100);
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  color: var(--gray-800);
  border-bottom: 2px solid var(--gray-200);
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: var(--gray-100);
}

/* ---- FAQ ---- */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 24px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  padding: 4px 0;
}

.faq-question::before {
  content: "Q";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-answer {
  margin-top: 12px;
  margin-left: 40px;
  color: var(--gray-600);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ---- 评价卡片 ---- */
.review-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--gray-200);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.review-meta {
  flex: 1;
}

.review-name {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-top: 2px;
}

.review-stars svg {
  width: 16px;
  height: 16px;
  color: var(--warning);
}

.review-text {
  color: var(--gray-600);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ---- 数据统计 ---- */
.stat-item {
  text-align: center;
  padding: 24px;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--gray-600);
  font-weight: 500;
}

.stat-desc {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ---- 步骤流程 ---- */
.step-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 6px;
}

.step-desc {
  color: var(--gray-600);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ---- 页脚 ---- */
.footer {
  background: var(--dark);
  color: var(--gray-400);
  padding: 40px 0 30px;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.3);
  border-radius: var(--radius-md);
  color: var(--success);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.footer-badge svg {
  width: 18px;
  height: 18px;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.8;
}

/* ---- 面包屑 ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 0.9rem;
  color: var(--gray-500);
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ---- 平台下载卡片 ---- */
.platform-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: all 0.3s ease;
}

.platform-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--primary);
}

.platform-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-icon svg {
  width: 36px;
  height: 36px;
  color: var(--primary);
}

.platform-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.platform-version {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 16px;
}

/* ---- 版本日志 ---- */
.version-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
}

.version-item:last-child {
  border-bottom: none;
}

.version-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.version-tag {
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.version-date {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.version-changes {
  margin-left: 8px;
}

.version-changes li {
  padding: 4px 0;
  color: var(--gray-600);
  font-size: 0.92rem;
  position: relative;
  padding-left: 16px;
}

.version-changes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ---- 高亮文本 ---- */
.highlight {
  background: linear-gradient(120deg, rgba(0,136,204,0.1) 0%, rgba(0,136,204,0.1) 100%);
  background-repeat: no-repeat;
  background-size: 100% 40%;
  background-position: 0 88%;
  padding: 0 4px;
}

/* ---- SEO文章样式 ---- */
.article {
  max-width: 800px;
  margin: 0 auto;
}

.article h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  margin: 40px 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
}

.article h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 28px 0 14px;
}

.article p {
  margin-bottom: 16px;
  color: var(--gray-700);
  line-height: 1.8;
  font-size: 0.98rem;
}

.article ul {
  margin: 16px 0;
  padding-left: 20px;
}

.article ul li {
  list-style: disc;
  margin-bottom: 8px;
  color: var(--gray-700);
  line-height: 1.7;
}

.article strong {
  color: var(--dark);
  font-weight: 600;
}

/* ---- 响应式 ---- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 50px 0;
  }
  .section-title {
    font-size: 1.7rem;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .navbar-inner {
    height: 56px;
  }
  .nav-link {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
  .nav-link svg {
    display: none;
  }
  .btn-lg {
    padding: 14px 24px;
    font-size: 0.95rem;
  }
  .stat-number {
    font-size: 2rem;
  }
  .footer-badge {
    font-size: 0.8rem;
    padding: 8px 14px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .navbar-inner {
    padding: 0 16px;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .card {
    padding: 20px;
  }
}

/* ---- 辅助类 ---- */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-gray { color: var(--gray-500); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
