:root {
  --primary-color: #ff7b00;
  --primary-light: #ffa34d;
  --primary-dark: #e66a00;
  --secondary-color: #3498db;
  --accent-color: #9b59b6;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --info-color: #3498db;
  --dark-bg: #1a1a1a;
  --dark-card: #2d2d2d;
  --light-bg: #f8f9fa;
  --light-card: #ffffff;
  --text-dark: #333333;
  --text-light: #ffffff;
  --text-gray: #6c757d;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--light-bg);
  color: var(--text-dark);
  font-size: 14px;
  line-height: 1.6;
  transition: var(--transition);
}

body.dark-mode {
  background-color: var(--dark-bg);
  color: var(--text-light);
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

.header {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

body.dark-mode .header {
  background: rgba(26, 26, 26, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
}

.nav-item {
  position: relative;
  margin: 0 3px;
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-weight: 500;
  display: flex;
  align-items: center;
  font-size: 14px;
}

body.dark-mode .nav-link {
  color: var(--text-light);
}

.nav-link:hover, .nav-link.selected {
  background-color: var(--primary-color);
  color: white;
}

.nav-link svg {
  margin-left: 5px;
  width: 12px;
  height: 12px;
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  width: 130px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
  list-style: none;
}

body.dark-mode .sub-menu {
  background: var(--dark-card);
}

.nav-item:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li {
  padding: 0;
}

.sub-menu a {
  display: block;
  padding: 10px 15px;
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
  font-size: 13px;
}

body.dark-mode .sub-menu a {
  color: var(--text-light);
}

.sub-menu a:hover {
  background-color: var(--primary-color);
  color: white;
}

.nav-actions {
  display: flex;
  align-items: center;
}

.search-container {
  position: relative;
  margin-right: 15px;
}

.search-form {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 30px;
  overflow: hidden;
  height: 36px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

body.dark-mode .search-form {
  background: #333;
}

.search-input {
  padding: 0 15px;
  border: none;
  font-size: 14px;
  width: 160px;
  transition: var(--transition);
  height: 100%;
  background: transparent;
}

body.dark-mode .search-input {
  color: var(--text-light);
}

.template-select {
  padding: 0 10px;
  border: none;
  background: #e9e9e9;
  font-size: 12px;
  height: 100%;
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 20px;
}

body.dark-mode .template-select {
  background-color: #444;
  color: var(--text-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.search-submit {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0 15px;
  height: 100%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-submit:hover {
  background: var(--primary-dark);
}

.theme-toggle, .auth-buttons {
  margin-left: 10px;
  display: flex;
}

.theme-toggle-btn, .auth-btn {
  background: none;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  padding: 6px 12px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  font-size: 13px;
}

body.dark-mode .theme-toggle-btn, 
body.dark-mode .auth-btn {
  border-color: #444;
  color: var(--text-light);
}

.theme-toggle-btn:hover, .auth-btn:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.auth-btn {
  margin-left: 8px;
  text-decoration: none;
  color: inherit;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-dark);
}

body.dark-mode .mobile-toggle {
  color: var(--text-light);
}

.banner {
  background: linear-gradient(135deg, #ff7b00 0%, #ff9900 100%);
  padding: 50px 0;
  margin: 0 0 20px;
  color: white;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.1) 75%, rgba(255,255,255,0.1) 0),
    linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.1) 75%, rgba(255,255,255,0.1) 0),
    rgb(255, 123, 0);
  background-position: 0 0, 10px 10px;
  background-origin: padding-box;
  background-clip: border-box;
  background-size: 20px 20px;
}

.banner::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
  animation: pulse 15s infinite linear;
}

@keyframes pulse {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.banner-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  text-align: center;
}

.banner h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.banner p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  opacity: 0.9;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.banner-btn {
  display: inline-block;
  background: white;
  color: var(--primary-color);
  padding: 10px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.banner-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  background: var(--primary-light);
  color: white;
}

.main-content {
  display: flex;
  gap: 5px;
  margin: 10px 0;
}

.left-sidebar {
  flex: 0 0 200px;
  position: sticky;
  top: 80px;
  height: fit-content;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  align-self: flex-start;
  padding-right: 10px;
}

.sidebar-card {
  background: var(--light-card);
  border-radius: var(--border-radius);
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

body.dark-mode .sidebar-card {
  background: var(--dark-card);
}

.sidebar-title {
  font-size: 15px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
}

.subcategory-list {
  list-style: none;
}

.subcategory-item {
  margin-bottom: 6px;
}

.subcategory-link {
  display: block;
  padding: 6px 10px;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-size: 13px;
}

body.dark-mode .subcategory-link {
  color: var(--text-light);
}

.subcategory-link:hover {
  background-color: var(--primary-color);
  color: white;
  padding-left: 12px;
}

.contact-info p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  font-size: 13px;
}

.contact-info svg {
  margin-right: 10px;
  color: var(--primary-color);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.main-area {
  flex: 1;
}

.section-title {
  font-size: 18px;
  margin: 5px 0 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  display: flex;
  align-items: center;
}

.section-title svg {
  margin-right: 8px;
  width: 18px;
  height: 18px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.tool-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    padding: 12px;
    height: 80px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.tool-img {
    flex-shrink: 0;
    margin-right: 12px;
}

.tool-img img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
}

.tool-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tool-content h3 {
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-content h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.tool-content h3 a:hover {
    color: #3498db;
}

.tool-content p {
    font-size: 12px;
    color: #7f8c8d;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s ease forwards;
}

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

/* 为每个卡片设置不同的延迟时间 */
.tool-card:nth-child(1) { animation-delay: 0.1s; }
.tool-card:nth-child(2) { animation-delay: 0.2s; }
.tool-card:nth-child(3) { animation-delay: 0.3s; }
.tool-card:nth-child(4) { animation-delay: 0.4s; }
.tool-card:nth-child(5) { animation-delay: 0.5s; }
.tool-card:nth-child(6) { animation-delay: 0.6s; }
.tool-card:nth-child(7) { animation-delay: 0.7s; }
.tool-card:nth-child(8) { animation-delay: 0.8s; }
.tool-card:nth-child(9) { animation-delay: 0.9s; }

.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 25px;
}

.tutorial-card {
  background: var(--light-card);
  border-radius: var(--border-radius);
  padding: 12px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

body.dark-mode .tutorial-card {
  background: var(--dark-card);
}

.tutorial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.tutorial-card h3 {
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.4;
  flex-grow: 1;
}

.tutorial-card h3 a {
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
}

body.dark-mode .tutorial-card h3 a {
  color: var(--text-light);
}

.tutorial-card h3 a:hover {
  color: var(--primary-color);
}

.tutorial-card p {
  color: var(--text-gray);
  font-size: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

body.dark-mode .tutorial-card p {
  color: #aaa;
}

.source-code-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 25px;
}

.source-code-card {
  background: var(--light-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
  position: relative;
}

body.dark-mode .source-code-card {
  background: var(--dark-card);
}

.source-code-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.source-code-img {
  height: 170px;
  overflow: hidden;
}

.source-code-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.source-code-card:hover .source-code-img img {
  transform: scale(1.05);
}

.source-code-content {
  padding: 12px;
}

.source-code-content h3 {
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.source-code-content h3 a {
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
}

body.dark-mode .source-code-content h3 a {
  color: var(--text-light);
}

.source-code-content h3 a:hover {
  color: var(--primary-color);
}

.source-code-content p {
  color: var(--text-gray);
  font-size: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

body.dark-mode .source-code-content p {
  color: #aaa;
}

.tab-section {
  margin-bottom: 25px;
}

.tab-headers {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

body.dark-mode .tab-headers {
  border-color: #444;
}

.tab-header {
  padding: 8px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
}

.tab-header.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.cms-article {
  background: var(--light-card);
  border-radius: var(--border-radius);
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
}

body.dark-mode .cms-article {
  background: var(--dark-card);
}

.cms-article:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cms-article h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.cms-article p {
  color: var(--text-gray);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 10px;
}

body.dark-mode .cms-article p {
  color: #aaa;
}

.article-meta {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--text-gray);
  flex-wrap: wrap;
}

body.dark-mode .article-meta {
  color: #888;
}

.article-meta span {
  margin-right: 15px;
  display: flex;
  align-items: center;
}

.article-meta svg {
  margin-right: 5px;
  width: 12px;
  height: 12px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.news-card {
  display: flex;
  background: var(--light-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  height: 100%;
  position: relative;
}

body.dark-mode .news-card {
  background: var(--dark-card);
}

.news-img {
  flex: 0 0 90px;
}

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

.news-content {
  padding: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-content h3 {
  font-size: 14px;
  margin-bottom: 3px;
  line-height: 1.4;
}

.news-content h3 a {
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
}

body.dark-mode .news-content h3 a {
  color: var(--text-light);
}

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

.news-content p {
  color: var(--text-gray);
  font-size: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
margin-bottom: 3px;
}

body.dark-mode .news-content p {
  color: #aaa;
}

.cms-tutorials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.cms-tutorial-card {
  background: var(--light-card);
  border-radius: var(--border-radius);
  padding: 15px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
}

body.dark-mode .cms-tutorial-card {
  background: var(--dark-card);
}

.cms-tutorial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.cms-tutorial-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--primary-color);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cms-tutorial-card h3 a {
  text-decoration: none;
}

.cms-tutorial-card p {
  color: var(--text-gray);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.dark-mode .cms-tutorial-card p {
  color: #aaa;
}

.cms-tutorial-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-gray);
  flex-wrap: wrap;
}

body.dark-mode .cms-tutorial-meta {
  color: #888;
}

.cms-tutorial-meta span {
  display: flex;
  align-items: center;
}

.cms-tutorial-meta svg {
  margin-right: 5px;
  width: 12px;
  height: 12px;
}

.right-sidebar {
  flex: 0 0 280px;
  align-self: flex-start;
  position: sticky;
  top: 80px;
}

.profile-card, .side-card {
  background: var(--light-card);
  border-radius: var(--border-radius);
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: var(--box-shadow);
}

body.dark-mode .profile-card, 
body.dark-mode .side-card {
  background: var(--dark-card);
}

.profile-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.profile-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 12px;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.profile-info p {
  color: var(--text-gray);
  font-size: 12px;
}

body.dark-mode .profile-info p {
  color: #aaa;
}

.profile-details {
  margin-bottom: 12px;
}

.profile-details p {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  font-size: 13px;
}

.profile-details svg {
  margin-right: 8px;
  color: var(--primary-color);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: 8px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f5f5f5;
  color: #666;
  transition: var(--transition);
  text-decoration: none;
}

body.dark-mode .social-link {
  background: #3d3d3d;
  color: var(--text-light);
}

.social-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.social-link svg {
  width: 14px;
  height: 14px;
}

.side-list {
  list-style: none;
}

.side-item {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

body.dark-mode .side-item {
  border-color: #444;
}

.side-item:last-child {
  border-bottom: none;
}

.side-item a {
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  font-size: 13px;
}

body.dark-mode .side-item a {
  color: var(--text-light);
}

.side-item a:hover {
  color: var(--primary-color);
}

.side-item a svg {
  margin-right: 6px;
  color: var(--primary-color);
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag {
  display: inline-block;
  background: #f0f0f0;
  color: #666;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  text-decoration: none;
  transition: var(--transition);
}

body.dark-mode .tag {
  background: #3d3d3d;
  color: #ccc;
}

.tag:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.friend-links {
  display: flex;
  gap: 1px;
  flex-direction: row;
  flex-wrap: wrap;
}

.friend-link {
  display: flex;
  align-items: center;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition);
  padding: 5px 0;
}

body.dark-mode .friend-link {
  color: var(--text-light);
}

.friend-link:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.friend-link svg {
  margin-right: 8px;
  color: var(--primary-color);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.function-buttons {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.function-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: none;
  position: relative;
}

.function-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.function-btn svg {
  width: 20px;
  height: 20px;
}

.wechat-qrcode {
  position: absolute;
  bottom: 50px;
  right: 0;
  width: 150px;
  background: white;
  border-radius: var(--border-radius);
  padding: 10px;
  box-shadow: var(--box-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 1000;
}

body.dark-mode .wechat-qrcode {
  background: var(--dark-card);
}

.function-btn:hover .wechat-qrcode {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wechat-qrcode img {
  width: 100%;
  border-radius: 4px;
}

.wechat-qrcode p {
  text-align: center;
  font-size: 12px;
  margin-top: 5px;
  color: var(--text-dark);
}

body.dark-mode .wechat-qrcode p {
  color: var(--text-light);
}

.footer {
  background: var(--dark-bg);
  color: var(--text-light);
  padding: 30px 0 15px;
  margin-top: 10px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: space-between;
  padding: 0 100px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-section h3 {
  font-size: 15px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
  width: 30%;
}

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

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

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: var(--transition);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 3px;
}

.footer-bottom {
  text-align: center;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid #444;
}

.footer-bottom p {
  color: #999;
  font-size: 12px;
}

.footer-bottom a {
  color: #ccc;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--primary-color);
}

@media (max-width: 1200px) {
  .main-content {
   flex-direction: column;
  }
  
  .logo {
   display: none;
  }

  .nav-menu {
   display: none;
  }
  .mobile-toggle {
   z-index: 1000;
  }

  .mobile-toggle {
   display: block;
  }
	
  .nav-menu.active {
   display: flex;
    }
  .nav-item {
   width: 100%;
   margin: 3px 0;
    }
  .nav-link {
   padding: 10px 15px;
    }
  .nav-menu {
   display: none;
   position: fixed;
   top: 60px;
   left: 0;
   right: 0;
   background: white;
   box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
   flex-direction: column;
   padding: 15px;
   max-height: calc(100vh - 60px);
   overflow-y: auto;
   z-index: 999;
    }
	
  .sub-menu {
   position: static;
   width: 100%;
   opacity: 1;
   visibility: visible;
   transform: none;
   box-shadow: none;
   margin-top: 5px;
   display: none;
    }
	
  .left-sidebar, .right-sidebar {
   flex: 1;
   position: static;
   margin-bottom: 5px;
   width: 100%;
  }
  
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .tools-grid, .tutorials-grid, .source-code-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .news-grid, .cms-tutorials-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-menu {
    overflow-x: auto;
    padding-bottom: 5px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: 15px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    z-index: 999;
  }
  
  body.dark-mode .nav-menu {
    background: var(--dark-card);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-item {
    width: 100%;
    margin: 3px 0;
  }
  
  .nav-link {
    padding: 10px 15px;
  }
  
  .sub-menu {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    margin-top: 5px;
    display: none;
  }
  
  .nav-item:hover .sub-menu {
    display: block;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav-actions {
    width: 100%;
    margin-top: 1px;
    justify-content: space-between;
  }
  
  .search-container {
    flex: 1;
    margin-right: 0;
  }
  
  .search-form {
    width: 100%;
  }
  
  .search-input {
    width: 100%;
  }
  
  .tutorials-grid {
    grid-template-columns: 1fr;
  }
  
  .tools-grid, .source-code-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .banner h1 {
    font-size: 1.6rem;
  }
  
  .banner p {
    font-size: 0.95rem;
  }
  
  .news-img {
    flex: 0.5;
    height: 120px;
  }
  
  .theme-toggle, .auth-buttons {
    margin-left: 5px;
  }
  
  .theme-toggle-btn, .auth-btn {
    padding: 5px 10px;
    font-size: 12px;
  }
  
  .tab-headers {
    overflow-x: auto;
    padding-bottom: 5px;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch
  }
  
  .function-buttons {
    bottom: 70px;
    right: 10px;
  }

  .logo{
    display:none;
  }

    .footer-container {
   flex-direction: column;
   gap: 20px;
   padding: 0 20px;
  }

}

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

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

body.dark-mode ::-webkit-scrollbar-track {
  background: #2d2d2d;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

body.dark-mode ::-webkit-scrollbar-thumb {
  background: #555;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

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

a:hover {
  color: var(--primary-dark);
}

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes slideOut {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@media (max-width: 768px) {
  .nav-menu {
    animation: slideIn 0.3s ease forwards;
  }
  
  .nav-menu.hide {
    animation: slideOut 0.3s ease forwards;
  }
  
  .nav-container {
    position: relative;
  }
  
  .mobile-toggle {
    z-index: 1000;
  }
}

#templateSelect {
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  border-radius: 0;
}

body.dark-mode #templateSelect {
  border-color: #555;
}