/* ========================================
   EyouCMS 科技感主题样式
   设计理念：现代、简洁、未来感
   ======================================== */

/* 全局变量 */
:root {
  --primary-color: #00d4ff;
  --secondary-color: #7b2ff7;
  --accent-color: #ff006e;
  --bg-dark: #0a0e27;
  --bg-card: rgba(15, 23, 42, 0.8);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --border-color: rgba(0, 212, 255, 0.2);
  --glow-primary: 0 0 20px rgba(0, 212, 255, 0.5);
  --glow-secondary: 0 0 20px rgba(123, 47, 247, 0.5);
  --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7b2ff7 100%);
  --gradient-bg: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f172a 100%);
}

/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 
               'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--gradient-bg);
  background-attachment: fixed;
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

a:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--primary-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 容器 */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  margin-top: 30px;
}

.col-md-8 {
  min-width: 0;
}

.col-md-4 {
  position: sticky;
  top: 100px;
  align-self: start;
}

/* ========================================
   头部导航 - 玻璃态效果
   ======================================== */
.header {
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.logo:hover::after {
  transform: scaleX(1);
}

.nav {
  display: flex;
  gap: 5px;
}

.nav a {
  padding: 10px 20px;
  color: var(--text-secondary);
  font-weight: 500;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.nav a:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
}

.nav a:hover::before {
  opacity: 0.2;
}

.mobile-menu-btn {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.mobile-menu-btn:hover {
  transform: rotate(90deg);
}

/* ========================================
   面包屑导航
   ======================================== */
.breadcrumb {
  padding: 20px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb a {
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--primary-color);
  background: rgba(0, 212, 255, 0.1);
}

.breadcrumb span {
  color: var(--primary-color);
  font-weight: 600;
}

/* ========================================
   标题栏 - 霓虹效果
   ======================================== */
.title-bar {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: 20px 25px;
  margin-bottom: 25px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.title-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
}

.title-bar h1 {
  font-size: 24px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

/* ========================================
   文章列表卡片 - 悬浮效果
   ======================================== */
.article-item {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.article-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.article-item:hover::before {
  left: 100%;
}

.article-item:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--primary-color);
  box-shadow: var(--glow-primary), 0 12px 40px rgba(0, 0, 0, 0.4);
}

.article-item .time {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-item .time::before {
  content: '📅';
  font-size: 14px;
}

.article-item h2 {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

.article-item h2 a {
  color: var(--text-primary);
  display: inline-block;
  transition: all 0.3s ease;
}

.article-item h2 a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.article-item .intro {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

.article-meta .views {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-meta .views::before {
  content: '👁';
  font-size: 14px;
}

/* ========================================
   文章详情页
   ======================================== */
.article-view {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.arc-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.4;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.arc-info {
  color: var(--text-secondary);
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 25px;
  font-size: 14px;
  flex-wrap: wrap;
}

.arc-info span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.arc-content {
  line-height: 2;
  font-size: 16px;
  color: var(--text-primary);
}

.arc-content p {
  margin-bottom: 20px;
  text-align: justify;
}

.arc-content img {
  max-width: 100%;
  height: auto;
  margin: 25px 0;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
}

.arc-content h2,
.arc-content h3 {
  margin: 35px 0 20px;
  color: var(--primary-color);
  font-weight: 700;
  position: relative;
  padding-left: 20px;
}

.arc-content h2::before,
.arc-content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.arc-content h2 {
  font-size: 26px;
}

.arc-content h3 {
  font-size: 22px;
}

.arc-content a {
  color: var(--primary-color);
  border-bottom: 1px dashed var(--primary-color);
  padding-bottom: 2px;
}

.arc-content a:hover {
  border-bottom-style: solid;
  text-shadow: 0 0 8px var(--primary-color);
}

/* 文章标签 */
.article-tags {
  margin: 30px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.article-tags strong {
  color: var(--text-secondary);
  margin-right: 10px;
}

.article-tags a {
  display: inline-block;
  padding: 6px 16px;
  margin: 5px 8px 5px 0;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 13px;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.article-tags a:hover {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
}

/* 分享按钮 */
.article-share {
  margin: 25px 0;
  padding: 20px 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.article-share span {
  color: var(--text-secondary);
  font-size: 14px;
}

.article-share a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.article-share a:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-primary);
}

/* 上下篇导航 */
.article-nav {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid var(--border-color);
}

.article-nav .prev,
.article-nav .next {
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.article-nav span {
  color: var(--text-secondary);
  margin-right: 8px;
}

.article-nav a {
  color: var(--primary-color);
  font-weight: 500;
}

.article-nav a:hover {
  text-decoration: underline;
}

/* ========================================
   右侧边栏 - 玻璃态卡片
   ======================================== */
.right-box {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: 25px;
  margin-bottom: 25px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.right-box:hover {
  border-color: var(--primary-color);
  box-shadow: var(--glow-primary);
}

.right-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid transparent;
  border-image: var(--gradient-primary) 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.right-box li {
  list-style: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.right-box li:last-child {
  border-bottom: none;
}

.right-box li:hover {
  padding-left: 10px;
}

.right-box li a {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-secondary);
  font-size: 14px;
  transition: all 0.3s ease;
}

.right-box li a:hover {
  color: var(--primary-color);
}

.right-box li .date,
.right-box li .views {
  color: var(--text-secondary);
  font-size: 12px;
  margin-left: 10px;
  white-space: nowrap;
  opacity: 0.7;
}

/* 标签云 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud a {
  padding: 6px 14px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.tag-cloud a:hover {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--glow-primary);
}

/* 栏目介绍 */
.category-info {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 14px;
}

/* ========================================
   分页 - 霓虹按钮
   ======================================== */
.page-box {
  text-align: center;
  margin: 40px 0;
}

.pagination {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination a,
.pagination span {
  padding: 10px 18px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 45px;
  text-align: center;
}

.pagination a:hover {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
}

.pagination .current {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--glow-primary);
}

/* ========================================
   页脚 - 现代简约
   ======================================== */
.footer {
  text-align: center;
  padding: 40px 30px;
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(10px);
  margin-top: 60px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
}

.footer-links {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-links a {
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
  background: rgba(0, 212, 255, 0.1);
}

.copyright {
  font-size: 13px;
  color: var(--text-secondary);
  opacity: 0.8;
}

.copyright p {
  margin: 5px 0;
}

.copyright a {
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.copyright a:hover {
  text-shadow: 0 0 8px var(--primary-color);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
  .row {
    grid-template-columns: 1fr;
  }
  
  .col-md-4 {
    position: static;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  .header .container {
    padding: 15px 20px;
  }
  
  .logo {
    font-size: 22px;
  }
  
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  }
  
  .nav.active {
    display: flex;
  }
  
  .nav a {
    padding: 12px 20px;
    border-radius: 8px;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .article-view {
    padding: 25px;
  }
  
  .arc-title {
    font-size: 24px;
  }
  
  .arc-content {
    font-size: 15px;
  }
  
  .arc-info {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .friend-links a {
    margin: 3px 5px;
    padding: 3px 8px;
    font-size: 12px;
  }
  
  .search-box {
    display: none;
  }
}

/* 搜索框样式 */
.search-box {
  margin-left: 20px;
}

.search-box form {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 25px;
  padding: 5px 15px;
  transition: all 0.3s ease;
}

.search-box form:focus-within {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.search-box input[type="text"] {
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 5px 10px;
  width: 200px;
  font-size: 14px;
  outline: none;
}

.search-box input[type="text"]::placeholder {
  color: var(--text-secondary);
}

.search-box button {
  background: transparent;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  font-size: 16px;
  padding: 5px;
  transition: transform 0.3s ease;
}

.search-box button:hover {
  transform: scale(1.2);
}

@media (max-width: 1024px) {
  .search-box input[type="text"] {
    width: 150px;
  }
}

/* 搜索与留言板样式 */
.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  transition: all 0.3s;
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
  outline: none;
}

.swiper-wrapper {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 0;
}

.swiper-slide {
  min-width: 300px;
  height: 200px;
  background: var(--bg-card);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

/* 友情链接样式 */
.friend-links {
  margin: 20px 0;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.friend-links strong {
  color: var(--text-secondary);
  font-size: 14px;
  margin-right: 10px;
}

.friend-links a {
  display: inline-block;
  margin: 5px 8px;
  padding: 4px 10px;
  color: var(--text-secondary);
  font-size: 13px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.friend-links a:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
}

/* 广告位样式 */
.ad-box {
  margin: 20px 0;
  text-align: center;
  overflow: hidden;
  border-radius: 8px;
}

.ad-box img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.ad-box:hover img {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .friend-links a {
    margin: 3px 5px;
    padding: 3px 8px;
    font-size: 12px;
  }
}
