* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --primary: #4a6cf7;
  --secondary: #6a7c92;
  --dark: #1d2144;
  --light: #f5f8ff;
  --flutter-color: #02569b;
  --uni-app-color: #2b9939;
  --swift-color: #f05138;
  --react-native-color: #61dafb;
  --xamarin-color: #3498db;
  --kotlin-mp-color: #7f52ff;
  --ionic-color: #3880ff;
  --cordova-color: #e8e8e8;
  --weex-color: #00b4ff;
  --taro-color: #13ce66;
}

body {
  background-color: #f0f5ff;
  color: #333;
  line-height: 1.6;
}

/* 辅助功能 - 仅供屏幕阅读器 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

@media (min-width: 1600px) {
  .container {
    max-width: 1600px;
  }
}

/* 头部样式 */
header {
  background: linear-gradient(135deg, var(--primary), #6c5ce7);
  color: white;
  padding: 20px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.8rem;
  font-weight: 700;
}

.logo i {
  font-size: 2.2rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.search-bar {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 30px;
  padding: 5px 15px;
  width: 250px;
}

.search-bar input {
  border: none;
  outline: none;
  padding: 8px;
  width: 100%;
  background: transparent;
}

.search-bar i {
  color: var(--secondary);
}

/* 轮播区域 */
.slider {
  position: relative;
  height: 350px;
  overflow: hidden;
  border-radius: 15px;
  margin: 40px 0;
  box-shadow: 0 15px 40px rgba(74, 108, 247, 0.15);
}

.slides {
  display: flex;
  width: 400%;
  height: 100%;
  transition: transform 0.8s ease;
}

.slide {
  width: 25%;
  height: 100%;
  position: relative;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 30px;
}

.slide-content h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.slide-content p {
  font-size: 1rem;
  max-width: 600px;
}

.slider-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}

.slider-dot.active {
  background: white;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.slider-arrow.prev {
  left: 20px;
}

.slider-arrow.next {
  right: 20px;
}

/* 技术栏目 */
.tech-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  font-size: 2.5rem;
  color: var(--dark);
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #6c5ce7);
  border-radius: 2px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

@media (min-width: 1200px) {
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1600px) {
  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
  }
}

.tech-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(74, 108, 247, 0.08);
}

.tech-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(74, 108, 247, 0.15);
  border-color: rgba(74, 108, 247, 0.2);
}

.tech-header {
  padding: 15px 10px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  position: relative;
  overflow: hidden;
}

.tech-header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  z-index: 1;
}

.tech-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 70%
  );
  transition: transform 0.6s ease;
}

.tech-card:hover .tech-header::before {
  transform: translate(-25%, -25%);
}

.flutter {
  background-color: var(--flutter-color);
}

.uni-app {
  background-color: var(--uni-app-color);
}

.swift {
  background-color: var(--swift-color);
}

.react-native {
  background-color: var(--react-native-color);
}

.xamarin {
  background-color: var(--xamarin-color);
}

.kotlin-mp {
  background-color: var(--kotlin-mp-color);
}

.ionic {
  background-color: var(--ionic-color);
}

.cordova {
  background-color: #4cc2e4;
}
.electron{
  background-color: #47848f;
}
.nativescript{
  background-color: #3655ff;
}
.dotnet-maui {
  background-color: #512bd4;
}

.taro {
  background-color: var(--taro-color);
}
.tech-icon {
  font-size: 2.5rem;
  position: relative;
  z-index: 1;
}

.tech-name {
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.tech-content {
  padding: 25px 20px 20px;
  position: relative;
}

.tech-content h3 {
  margin-bottom: 15px;
  color: var(--dark);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tech-content h3::before {
  content: '';
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, var(--primary), #6c5ce7);
  border-radius: 2px;
}

.tech-article-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech-article-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  color: var(--secondary);
  font-size: 0.88rem;
  transition: all 0.3s ease;
  cursor: pointer;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.link-dark{
  color: var(--secondary);
  text-decoration: none;
}
.tech-article-list li:last-child {
  border-bottom: none;
}

.tech-article-list li:hover {
  color: var(--primary);
  padding-left: 5px;
  background: rgba(74, 108, 247, 0.03);
  border-radius: 4px;
}

.tech-article-list li::before {
  content: '▸';
  margin-top: 1px;
  color: var(--primary);
  font-weight: bold;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.tech-article-list li:hover::before {
  transform: translateX(3px);
}

.view-more-btn {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.view-more-btn:hover {
  background: white;
  color: var(--primary);
  gap: 10px;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-color: white;
}

.view-more-btn i {
  transition: transform 0.3s ease;
  font-size: 0.8rem;
}

.view-more-btn:hover i {
  transform: translateX(3px);
}

/* 文章列表 */
.articles-container {
  margin-top: 40px;
}

.articles-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.article-item {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary);
}

.article-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--secondary);
}

.article-tag {
  background: linear-gradient(135deg, var(--primary), #6c5ce7);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-item h4 {
  margin-bottom: 10px;
  color: var(--dark);
  font-size: 1.1rem;
}

.article-item p {
  color: var(--secondary);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.view-count {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: var(--secondary);
}

/* 热门文章 */
.articles-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

@media (min-width: 1200px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
  }
}

@media (min-width: 1600px) {
  .articles-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.article-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(74, 108, 247, 0.08);
}

.article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(74, 108, 247, 0.15);
  border-color: rgba(74, 108, 247, 0.2);
}

.article-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.article-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
  transition: opacity 0.3s ease;
}

.article-card:hover .article-img::after {
  opacity: 0.7;
}

.article-content {
  padding: 25px;
}

.article-content h3 {
  margin-bottom: 12px;
  color: var(--dark);
  font-size: 1.2rem;
  line-height: 1.4;
  font-weight: 600;
}

.article-content p {
  color: var(--secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.read-more {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.3s ease;
}

.read-more:hover {
  gap: 10px;
}

/* 页脚 */
footer {
  background: var(--dark);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #a0a7c2;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #a0a7c2;
  font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 20px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .slider {
    height: 400px;
  }

  .slide-content h2 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .articles-list {
    grid-template-columns: 1fr;
  }
}
