/* 通用样式 */
:root {
  --primary-color: #ff6633;
  --secondary-color: #8b4513;
  --bs-primary-rgb: 226, 88, 34;
  --bs-btn-active-bg: #ff6633;
  --bs-btn-active-bg-rgb: 226, 88, 34;
  --bs-btn-active-border-color: #ff6633;
  --bs-btn-bg: #ff6633;
}

/* 覆盖 Bootstrap 按钮样式 */
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #ff6633;
  --bs-btn-border-color: #ff6633;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #cc4b1c;
  --bs-btn-hover-border-color: #cc4b1c;
  --bs-btn-focus-shadow-rgb: 226, 88, 34;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #b03d15;
  --bs-btn-active-border-color: #b03d15;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #ff6633;
  --bs-btn-disabled-border-color: #ff6633;
}

.btn-outline-primary {
  --bs-btn-color: #ff6633;
  --bs-btn-border-color: #ff6633;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #ff6633;
  --bs-btn-hover-border-color: #ff6633;
  --bs-btn-focus-shadow-rgb: 226, 88, 34;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #ff6633;
  --bs-btn-active-border-color: #ff6633;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #ff6633;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #ff6633;
  --bs-gradient: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body main {
  background: #ffffff;
  min-height: 400px;
}

header nav.navbar a.navbar-brand {color: #ff6633;}

/* 英雄区域样式 */
.hero-section {
  background: #ff6633;
  color: white;
  padding: 100px 0;
}

.hero-section.small {
  padding: 50px 0;
}

/* 功能卡片样式 */
.feature-card {
  transition: transform 0.3s ease;
  border: none;
  box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  background: #ff6633;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

/* 价格卡片样式 */
.price-card {
  transition: transform 0.3s ease;
  position: relative;
  overflow: visible;
}

.price-card:hover {
  transform: translateY(-5px);
}

.popular-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: #fa1717;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
}

.price-card.popular {
  border: 2px solid #fa1717;
  box-shadow: 0 8px 25px rgba(226, 88, 34, 0.2);
}

/* 下载页面样式 */
.download-card {
  transition: transform 0.3s ease;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.download-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.version-badge {
  background: linear-gradient(135deg, #ff6633 0%, #8b4513 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

/* 语言切换样式 */
.dropdown-menu {
  min-width: 120px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: none;
}

.dropdown-item {
  padding: 8px 16px;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background: var(--bs-dark);
  color: white;
}

.dropdown-item.active {
  background: var(--bs-dark);
  color: white;
}

#languageDropdown {
  border-radius: 20px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

#languageDropdown:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 文章样式 */


  .article {
    padding: 1rem 0;
  }


  .article a {
    text-decoration: none;
  }


  


  /* 主内容区域样式 */
  .article .main-content {
    padding: 20px;
    width: calc(100% - 300px);
  }

  .article .article-meta {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }

  .article .article-meta i {
    margin-right: 0.25rem;
  }

  .article .article-content {
    line-height: 1.7;
    font-size: 1rem;
  }

  .article .article-content h1,
  .article .article-content h2,
  .article .article-content h3,
  .article .article-content h4,
  .article .article-content h5,
  .article .article-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
  }

  .article .article-content p {
    margin-bottom: 1rem;
  }

  .article .article-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
  }

  .article .article-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.375rem;
    overflow-x: auto;
    margin-bottom: 1rem;
  }

  .article .article-content pre code {
    background-color: transparent;
    padding: 0;
  }

  .article .article-content blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #6c757d;
  }

  .article .article-content table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
  }

  .article .article-content table th,
  .article .article-content table td {
    padding: 0.5rem;
    border: 1px solid #dee2e6;
  }

  .article .article-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
  }

  .article .articles-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
  }

  /* 文章列表样式 */
  .article .article-list {
    list-style: none;
    padding: 0;
  }

  .article .article-item {
    border-bottom: 1px solid #dee2e6;
    padding: 1.5rem 0;
  }

  .article .article-item:last-child {
    border-bottom: none;
  }

  .article .article-title, .article .category-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }


  .article .article-summary {
    color: #6c757d;
    margin-bottom: 0.75rem;
    line-height: 1.6;
  }

  .article .article-meta {
    font-size: 0.875rem;
    color: #6c757d;
  }

  .article .article-meta span {
    margin-right: 1rem;
  }

  .article .article-meta i {
    margin-right: 0.25rem;
  }

  /* 标签样式 */
  .article .article-tags {
    margin-top: 1rem;
  }

  .article .article-tags .badge {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
  }

  /* 分页样式 */
  .article .pagination {
    margin-top: 2rem;
  }

  /* 面包屑导航 */
  .article .breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
  }

  .article .breadcrumb-item+.breadcrumb-item::before {
    content: ">";
  }

  /* 上一篇下一篇导航 */
  .article .article-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
  }

  .article .article-navigation .nav-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    text-decoration: none;
    color: #495057;
    transition: all 0.2s ease-in-out;
  }

  .article .article-navigation .nav-link:hover {
    background-color: #f8f9fa;
    border-color: #0d6efd;
    color: #0d6efd;
  }

  .article .article-navigation .nav-link.prev {
    margin-right: 1rem;
  }

  .article .article-navigation .nav-link.next {
    margin-left: 1rem;
  }

  .article .article-navigation .nav-link .nav-text {
    flex: 1;
  }

  .article .article-navigation .nav-link .nav-label {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
  }

  .article .article-navigation .nav-link .nav-title {
    font-weight: 500;
    margin: 0;
  }

  .article .article-navigation .nav-link .nav-icon {
    font-size: 1.25rem;
    margin: 0 0.5rem;
  }

/* 页脚样式 */
footer {
  background: #666666;
  color: #ffffff;
  font-weight: 400;
}

footer h6 {
  color: white;
  font-weight: 700;
}

footer a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #ffcc33;
}

/* 响应式样式 */
@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0;
  }

  .hero-section.small {
    padding: 50px 0;
  }

  .hero-section h1.display-4 {
    font-size: 2rem;
  }

  .feature-card,
  .price-card,
  .download-card {
    margin-bottom: 20px;
  }
}

/* 加载状态样式 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-spinner {
  border: 4px solid #f5f5db;
  border-top: 4px solid #ff6633;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* 会员中心样式 */
.avatar img {
  transition: all 0.3s ease;
}

.avatar:hover img {
  transform: scale(1.05);
}

.nav-tabs .nav-link {
  border-radius: 8px 8px 0 0;
  margin-right: 5px;
  transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
  background-color: #f8d4c6;
}

.nav-tabs .nav-link.active {
  background: #ff6633;
  color: white;
  border-color: transparent;
}

.form-switch .form-check-input {
  width: 3rem;
  height: 1.5rem;
}

.form-switch .form-check-input:checked {
  background-color: #ff6633;
  border-color: #ff6633;
}

.card {
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.badge {
  font-size: 0.75em;
}

.list-group-item.active {
  background: #ff6633;
  border-color: #ff6633;
}

/* 表单验证样式 */
.is-invalid {
  border-color: #dc3545;
}

.is-valid {
  border-color: #28a745;
}

/* 会员中心侧边栏样式 */
.list-group-item {
  transition: all 0.3s ease;
  border: none;
  border-bottom: 1px solid #dee2e6;
}

.list-group-item:hover {
  background: #f8d4c6;
  padding-left: 1.5rem;
}

.list-group-item.active:hover {
  background: #f8723e;
  padding-left: 1.25rem;
}

/* 设置页面标签样式 */
.tab-content {
  min-height: 400px;
}

.form-check-label {
  font-weight: 500;
}

.text-muted.small {
  font-size: 0.875rem;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .avatar img {
    width: 80px !important;
    height: 80px !important;
  }

  .nav-tabs {
    flex-wrap: wrap;
  }

  .nav-tabs .nav-link {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }
}
