/*
Theme Name: 站壳主题独立版
Theme URI: https://www.zhankr.net
Author: 站壳网
Author URI: https://www.zhankr.net
Description: 基于原日主题子主题重构的独立WordPress主题，保持原有样式和功能，可直接安装使用
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zhankr
Domain Path: /languages
Tags: blog, news, responsive, custom-menu, custom-logo, featured-images
*/

/*
 * 主题说明：
 * 本主题为独立版本，不依赖任何父主题
 * 包含完整的文章展示、分类、搜索、用户中心、VIP系统等功能
 * 保持原日主题子主题的视觉样式和用户体验
 */

/* 基础样式导入 */
@import url('css/bootstrap.min.css');
@import url('css/font-awesome.min.css');

/* 主题基础变量 */
:root {
  --primary-color: #fd7221;
  --secondary-color: #007bff;
  --text-color: #333;
  --text-muted: #666;
  --bg-color: #f5f5f5;
  --border-color: #e5e5e5;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --vip-color: #fd7221;
  --svip-color: #ff6b6b;
}

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--bg-color);
  margin: 0;
  padding: 0;
}

/* 链接样式 */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #e56420;
  text-decoration: none;
}

/* 图片样式 */
img {
  max-width: 100%;
  height: auto;
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 行布局 */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-6, .col-sm-6, .col-md-4, .col-md-6, .col-lg-3, .col-lg-6 {
  padding: 0 15px;
  flex: 0 0 100%;
}

.col-6 {
  flex: 0 0 50%;
}

@media (min-width: 576px) {
  .col-sm-6 {
    flex: 0 0 50%;
  }
}

@media (min-width: 768px) {
  .col-md-4 {
    flex: 0 0 33.333333%;
  }
  .col-md-6 {
    flex: 0 0 50%;
  }
}

@media (min-width: 992px) {
  .col-lg-1-5 {
    flex: 0 0 20%;
    max-width: 20%;
  }
  .col-lg-3 {
    flex: 0 0 25%;
  }
  .col-lg-6 {
    flex: 0 0 50%;
  }
}

/* 导航栏 */
.navbar {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.navbar-brand {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-nav li {
  margin: 0 15px;
}

.navbar-nav a {
  color: var(--text-color);
  font-weight: 500;
}

.navbar-nav a:hover {
  color: var(--primary-color);
}

.login-btn {
  background-color: var(--primary-color);
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
}

/* 页头 */
.site-header {
  background: #fff;
}

/* 幻灯片 */
.slider {
  position: relative;
  overflow: hidden;
}

.slider.big {
  border-radius: 15px;
  height: 400px;
}

.slider .post {
  position: relative;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* 内容区域 */
.site-content {
  padding: 30px 0;
}

/* 文章卡片 */
.post-grid {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-grid:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.post-grid .entry-media {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
}

.post-grid .entry-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-grid .entry-wrapper {
  padding: 20px;
}

.post-grid .entry-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.4;
}

.post-grid .entry-title a {
  color: var(--text-color);
}

.post-grid .entry-excerpt {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* 文章列表 */
.post-list {
  display: flex;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.post-list .entry-media {
  flex: 0 0 200px;
  position: relative;
}

.post-list .entry-wrapper {
  flex: 1;
  padding: 20px;
}

/* 分类页面 */
.term-bar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.term-bar h1 {
  font-size: 32px;
  margin: 0 0 10px;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.pagination li {
  margin: 0 5px;
}

.pagination a,
.pagination span {
  display: block;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-color);
}

.pagination .current {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* 页脚 */
.site-footer {
  background: #2c3e50;
  color: #fff;
  padding: 40px 0 20px;
}

.site-footer a {
  color: #bdc3c7;
}

.site-footer a:hover {
  color: #fff;
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background: #e56420;
  color: #fff;
}

/* VIP相关 */
.vip-badge {
  background: linear-gradient(45deg, #fd7221, #ff6b6b);
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
}

/* 价格标签 */
.price-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  
  .navbar .container {
    height: 50px;
  }
  
  .slider.big {
    height: 200px;
    border-radius: 0;
  }
  
  .post-list {
    flex-direction: column;
  }
  
  .post-list .entry-media {
    flex: none;
    padding-top: 56.25%;
  }
  
  .col-lg-1-5 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 544px) {
  .col-lg-1-5,
  .col-sm-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* 辅助类 */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.d-flex {
  display: flex;
}

.justify-content-between {
  justify-content: space-between;
}

.align-items-center {
  align-items: center;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mt-3 {
  margin-top: 1rem;
}

.p-3 {
  padding: 1rem;
}

/* 加载动画 */
.lazyload {
  opacity: 0;
  transition: opacity 0.3s;
}

.lazyloaded {
  opacity: 1;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* 打印样式 */
@media print {
  .navbar,
  .site-footer,
  .sidebar {
    display: none;
  }
  
  .site-content {
    padding: 0;
  }
}