/* 全局样式 */
:root {
  --primary-blue: #0a2463;
  --secondary-blue: #1e88e5;
  --accent-blue: #3d5afe;
  --silver: #e8eaf6;
  --dark-silver: #b0bec5;
  --light-bg: rgba(255, 255, 255, 0.95);
  --dark-bg: rgba(10, 36, 99, 0.9);
  --tech-gradient: linear-gradient(135deg, #0a2463 0%, #1e88e5 50%, #3d5afe 100%);
  --card-shadow: 0 8px 30px rgba(10, 36, 99, 0.15);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f5f7fa;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(29, 151, 255, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(61, 90, 254, 0.05) 0%, transparent 20%),
    linear-gradient(45deg, transparent 49%, rgba(232, 234, 246, 0.1) 50%, transparent 51%),
    linear-gradient(-45deg, transparent 49%, rgba(232, 234, 246, 0.1) 50%, transparent 51%);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(10, 36, 99, 0.02)"/><circle cx="20" cy="80" r="5" fill="rgba(61, 90, 254, 0.05)"/><circle cx="80" cy="20" r="5" fill="rgba(61, 90, 254, 0.05)"/></svg>');
  z-index: -1;
  opacity: 0.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Exo 2', sans-serif;
  font-weight: 600;
  color: var(--primary-blue);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 头部样式 */
.site-header {
  background-color: var(--light-bg);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(10, 36, 99, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(30, 136, 229, 0.2);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo h1 {
  font-size: 16px;
  background: var(--tech-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

.logo span {
  color: var(--secondary-blue);
  font-weight: 300;
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin: 0 15px;list-style:none; 
float: left;

}

.main-nav a {
  text-decoration: none;
  color: var(--primary-blue);
  font-weight: 500;
  font-size: 16px;
  padding: 8px 5px;
  position: relative;
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--accent-blue);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: var(--transition);
}

.main-nav a:hover::after {
  width: 100%;
}

.search-icon {
  background: none;
  border: none;
  color: var(--primary-blue);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  transition: var(--transition);
}

.search-icon:hover {
  color: var(--accent-blue);
  transform: scale(1.1);
}

.search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 36, 99, 0.95);
  z-index: 1100;
  justify-content: center;
  align-items: center;
}

.search-box {
  width: 90%;
  max-width: 600px;
  background: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--card-shadow);
}

.search-box input {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  border: 2px solid var(--silver);
  border-radius: 4px;
  margin-bottom: 15px;
}

.search-box button {
  background: var(--accent-blue);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.search-box button:hover {
  background: var(--primary-blue);
}

.close-search {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* 轮播样式 */
.slider-section {
  padding: 30px 0;
}

.fullscreen-slider {
  position: relative;
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(10, 36, 99, 0.9));
  color: white;
  padding: 30px;
}

.slide-content h2 {
  color: white;
  font-size: 28px;
  margin-bottom: 10px;
}

.slider-nav {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  margin: 0 5px;
  cursor: pointer;
}

.slider-dot.active {
  background: white;
}

/* 主要内容区 */
.main-content {
  display: flex;
  padding: 40px 0;
  gap: 30px;
}

.content-left {
  flex: 0 0 70%;
}

.content-right {
  flex: 0 0 30%;
}

/* 最新文章样式 */
.latest-articles {
  background: var(--light-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(5px);
  margin-bottom: 30px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--silver);
}

.section-title h2 {
  font-size: 24px;
}

.category-tabs {
  display: flex;
}

.category-tab {
  padding: 8px 15px;
  background: white;
  border: 1px solid var(--silver);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.category-tab:first-child {
  border-radius: 4px 0 0 4px;
}

.category-tab:last-child {
  border-radius: 0 4px 4px 0;
}

.category-tab.active {
  background: var(--accent-blue);
  color: white;
  border-color: var(--accent-blue);
}

.category-tab:hover:not(.active) {
  background: var(--silver);
}

.articles-list {
  margin-top: 20px;
}

.article-item {
  display: flex;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--silver);
}

.article-img {
  flex: 0 0 30%;
  margin-right: 20px;
}

.article-img img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
}

.article-info h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.article-meta {
  color: var(--dark-silver);
  font-size: 14px;
  margin-bottom: 10px;
}

.article-meta span {
  margin-right: 15px;
}

/* 右侧边栏样式 */
.sidebar-widget {
  background: var(--light-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(5px);
  margin-bottom: 30px;
}

.widget-title {
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--silver);
  color: var(--primary-blue);
}

.headlines-list {
  list-style: none;
}

.headlines-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--silver);
}

.headlines-list li:last-child {
  border-bottom: none;
}

.headlines-list a {
  text-decoration: none;
  color: var(--primary-blue);
  transition: var(--transition);
  display: block;
}

.headlines-list a:hover {
  color: var(--accent-blue);
  transform: translateX(5px);
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.news-item {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.news-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.news-item p {
  padding: 10px;
  background: white;
  font-size: 14px;
}

.advertisement img {
  width: 100%;
  border-radius: 8px;
  transition: var(--transition);
}

.advertisement img:hover {
  transform: scale(1.02);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud a {
  background: white;
  padding: 8px 15px;
  border-radius: 30px;
  font-size: 14px;
  text-decoration: none;
  color: var(--primary-blue);
  border: 1px solid var(--silver);
  transition: var(--transition);
}

.tag-cloud a:hover {
  background: var(--accent-blue);
  color: white;
  border-color: var(--accent-blue);
}

/* 倒计时样式 */
.countdown-banner {
  background: var(--tech-gradient);
  color: white;
  border-radius: 12px;
  padding: 25px;
  margin: 40px 0;
  text-align: center;
  box-shadow: var(--card-shadow);
}

.countdown-banner h3 {
  color: white;
  font-size: 28px;
  margin-bottom: 10px;
}

.countdown-banner p {
  font-size: 18px;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.countdown-unit {
  background: rgba(255, 255, 255, 0.2);
  padding: 15px;
  border-radius: 8px;
  min-width: 80px;
}

.countdown-value {
  font-size: 32px;
  font-weight: 700;
  display: block;
}

.countdown-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button {
  display: inline-block;
  background: white;
  color: var(--primary-blue);
  padding: 15px 40px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  font-size: 18px;
  transition: var(--transition);
  margin-top: 10px;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* 页脚样式 */
.site-footer {
  background: var(--dark-bg);
  color: white;
  padding: 60px 0 30px;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-column {
  flex: 1;
  min-width: 200px;
  margin-bottom: 30px;
  padding-right: 20px;
}

.footer-column h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-blue);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--silver);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.friend-links a {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 15px;
  border-radius: 4px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.friend-links a:hover {
  background: var(--accent-blue);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-icons 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;
  font-size: 18px;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--accent-blue);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--silver);
  font-size: 14px;
}

/* WhatsApp浮动图标 */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  z-index: 1000;
  cursor: pointer;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.qr-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1200;
  justify-content: center;
  align-items: center;
}

.qr-box {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.qr-box img {
  width: 200px;
  height: 200px;
  margin-bottom: 20px;
}

.close-qr {
  background: var(--primary-blue);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 15px;
}

/* 专业数据样式 */
.data-highlight {
  background: var(--silver);
  border-left: 4px solid var(--accent-blue);
  padding: 15px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
}

.authority-badge {
  display: inline-flex;
  align-items: center;
  background: white;
  border: 1px solid var(--silver);
  padding: 8px 15px;
  border-radius: 30px;
  margin: 5px;
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .main-content {
    flex-direction: column;
  }
  
  .content-left, .content-right {
    flex: 1;
  }
  
  .main-nav ul {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .footer-column {
    flex: 0 0 50%;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .logo {
    margin-bottom: 15px;
  }
  
  .fullscreen-slider {
    height: 350px;
  }
  
  .slide-content h2 {
    font-size: 22px;
  }
  
  .article-item {
    flex-direction: column;
  }
  
  .article-img {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .countdown-timer {
    flex-wrap: wrap;
  }
  
  .footer-column {
    flex: 0 0 100%;
  }
}