
:root{
  --bg:#f8fafc;
  --card:#ffffff;
  --muted:#64748b;
  --text:#0f172a;
  --accent:#06b6d4;
  --accent-2:#7c3aed;
  --border:#e2e8f0;
  --radius:14px;
}

*{box-sizing:border-box;margin:0;padding:0;}
html,body{height:100%;}
body{
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--text);
  line-height:1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a{color:inherit;text-decoration:none;}
.container{max-width:1200px;margin:0 auto;padding:28px;}
header{backdrop-filter: blur(6px);position:sticky;top:0;z-index:40;background:rgba(255,255,255,0.9);box-shadow:0 2px 10px rgba(15,23,42,0.05);}
.nav{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;flex-wrap:wrap;}
.brand{display:flex;align-items:center;gap:12px;}
.logo{
  width:44px;height:44px;border-radius:10px;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  display:flex;align-items:center;justify-content:center;font-weight:700;color:#fff;
  box-shadow:0 6px 18px rgba(124,58,237,0.18);
}
.brand .site-title{margin:0;font-size:16px;letter-spacing:0.2px;font-weight:bold}
nav ul{display:flex;gap:18px;align-items:center;list-style:none;}
nav li{font-weight:500;color:var(--muted);font-size:15px;}
.btn{display:inline-block;padding:10px 16px;border-radius:10px;font-weight:600;cursor:pointer;transition:all .2s;text-align:center;font-size:14px}
.btn-primary{background:linear-gradient(90deg,var(--accent),var(--accent-2));color:#fff;box-shadow:0 6px 18px rgba(124,58,237,0.18);}
.btn-primary:hover{opacity:0.9;}
.btn-ghost{background:transparent;border:1px solid var(--border);color:var(--muted);}
.btn-ghost:hover{border-color:var(--accent);color:var(--accent);}
.btn-small{
    padding:8px 15px;
    font-size: 14px;
}

/* HERO */
.hero{display:grid;grid-template-columns:1fr 420px;gap:28px;align-items:center;padding:25px 0;}
.eyebrow{display:inline-block;padding:6px 10px;border-radius:999px;background:#e0f2fe;color:var(--accent);font-weight:600;font-size:13px;}
.h-title{font-size:28px;margin:16px 0 12px;line-height:1.15;color:var(--text);}
.h-sub{color:var(--muted);font-size:15px;margin-bottom:20px;}
.hero-cta{display:flex;gap:12px;flex-wrap:wrap;}
.hero-card{background: var(--card);padding:18px;border-radius:14px;border:1px solid var(--border);box-shadow:0 8px 24px rgba(15,23,42,0.05);}

/* GRID */
.grid{display:grid;gap:18px;}
.plugins{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));}
.services{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));}
.portfolio{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));}

.card{background: var(--card);padding:18px;border-radius:12px;border:1px solid var(--border);box-shadow:0 6px 14px rgba(15,23,42,0.04);transition:transform .15s ease;}
.card:hover{transform:translateY(-3px);}
.plugin-img, .case-img{width:100%;height:160px;background:linear-gradient(135deg,#e2e8f0,#f8fafc);display:flex;align-items:center;justify-content:center;color:var(--muted);font-weight:600;}
.plugin-img img, .case-img img{
    width: 100%;
    height: 100%;
    border-radius:8px;
    object-fit: cover;
}
.meta{color:var(--muted);font-size:13px;margin-top:10px;}
.tags{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap;}
.tags a{background:#f1f5f9;padding:6px 8px;border-radius:8px;font-size:12px;color:var(--muted);}

/* themes */
.themes{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));}
.theme-img{
  width:100%;height:160px;
  background:linear-gradient(135deg,#e2e8f0,#f8fafc);
  display:flex;align-items:center;justify-content:center;
  color:var(--muted);font-weight:600;
  border-radius:8px;overflow:hidden;
}
.theme-img img{
  width:100%;height:100%;object-fit:cover;
}

/* services icon */
.icon{ 
  width:48px;height:48px;border-radius:10px;background:linear-gradient(90deg,#f8fafc,#e2e8f0);
  display:flex;align-items:center;justify-content:center;font-weight:700;color:var(--accent);
  box-shadow:inset 0 -2px 8px rgba(0,0,0,0.05);
  padding:0 6px;
}

/* Blog */
.blog{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));}
.blog-img{
  width:100%;height:160px;
  background:linear-gradient(135deg,#e2e8f0,#f8fafc);
  display:flex;align-items:center;justify-content:center;
  color:var(--muted);font-weight:600;
  border-radius:8px;overflow:hidden;
}
.blog-img img{
  width:100%;height:100%;object-fit:cover;
}



/* testimonials */
.testi{display:flex;gap:12px;align-items:center;}
.avatar{width:56px;height:56px;border-radius:999px;background:linear-gradient(90deg,#f1f5f9,#e2e8f0);display:flex;align-items:center;justify-content:center;color:var(--muted);font-weight:700;}

/* about */
.about{display:flex;gap:20px;align-items:center;}
.about-figure{width:160px;height:160px;border-radius:18px;background:linear-gradient(135deg,#f1f5f9,#e2e8f0);display:flex;align-items:center;justify-content:center;font-size:28px;color:var(--muted);}

/* contact */
form{display:grid;gap:10px;}
input,textarea,select{background:#fff;border:1px solid var(--border);padding:12px;border-radius:10px;color:inherit;font-size:14px;}
textarea{min-height:120px;resize:vertical;}
.contact{
    margin-top:44px;margin-bottom:30px
}
.contact .card-wrap{
    display:grid;gap:18px;margin-top:14px
}
@media (min-width:768px){
    .contact .card-wrap{
        grid-template-columns:1fr 360px;
    }
}


footer{margin-top:46px;color:var(--muted);border-top:1px solid var(--border);}
.mobile-nav{display:none;}

footer nav a{
    color:var(--muted);
    font-size: 14px;
}
/* 移动端菜单隐藏 */
#mobile-menu{
  display:none;
  flex-direction:column;
  gap:20px;
}

/* 响应式 */
@media (max-width:767px){
  .hero{grid-template-columns:1fr;gap:24px;}
  nav ul{display:none;}
  .mobile-nav{display:flex;flex-direction:column;align-items:flex-start;}
  #mobile-menu{
	width:100%;
  }
  #mobile-menu li{
      list-style-type: none;
  }
  #mobile-menu a{
    padding:8px 12px;
    border-radius:10px;
    background:var(--card);
    box-shadow:0 4px 10px rgba(0,0,0,0.05);
	width:auto;
	align-self: flex-start;
  }
  nav ul.footer-menu {display:flex;}
  nav ul.footer-menu li{display:none;}
  nav ul.footer-menu li:first-child{display:inline-block;}
}

@media (max-width:768px){
  .container{padding:16px;}
  .hero-cta{flex-direction:column;gap:8px;}
  .plugins, .services, .portfolio{grid-template-columns:1fr;}
  .about{flex-direction:column;align-items:flex-start;}
  #contact > div{grid-template-columns:1fr;}
  #contact form button,#contact form a{width:100%;}
}

@media (max-width:480px){
  .h-title{font-size:22px;}
  .h-sub{font-size:14px;}
  .eyebrow{font-size:12px;padding:4px 8px;}
  .btn{padding:8px 12px;font-size:14px;}
  .card{padding:12px;}
  .plugin-img,.case-img{height:160px;}
  .about-figure{width:120px;height:120px;font-size:22px;}
  input,textarea,select{padding:10px;font-size:13px;}
}


.breadcrumb .container{
    color: var(--muted);
    font-size: 14px;
    padding:10px;
}


/* single post styles */
.single-post-container{ display:grid; grid-template-columns: 1fr 320px; gap:28px; }
.single-post-container main{ min-width:0; }
.single-sidebar{  }

.post-header{
    padding: 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    position: static;
}
@media (max-width: 767px) {
    .post-header{
        padding: 14px;
    }
}
.post-header .post-meta{ color:var(--muted); font-size:13px; margin-bottom:8px; }
.post-title{ font-size:30px; margin:6px 0 12px; line-height:1.12; color:var(--text); }
.post-submeta{ color:var(--muted); font-size:13px; display:flex; gap:12px; align-items:center; margin-bottom:14px; }

.post-hero{ margin:14px 0; border-radius:12px; overflow:hidden; }
.post-hero img{ width:100%; height:auto; display:block; }

.post-content{ background:var(--card); padding:18px; border-radius:12px; border:1px solid var(--border); box-shadow:0 6px 14px rgba(15,23,42,0.04); margin-top:16px; line-height:1.7; color:var(--text); }
.post-content p{ margin:0 0 14px; color:var(--text); }
.post-content h2, .post-content h3{ margin-top:18px; margin-bottom:8px; }

.post-footer{ display:flex; justify-content:space-between; align-items:center; margin-top:18px; color:var(--muted); font-size:14px; }
.post-tags .tag { margin-right:6px; display:inline-block; }

/* === Post Content 基础样式 === */
.post-content {
  color: #1e1e1e;
  font-size: 16px;
  line-height: 1.8;
  word-break: break-word;
}

/* 段落 */
.post-content p {
  margin-bottom: 1.2em;
}

/* 标题 */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  color: #111827;
}
.post-content h1 { font-size: 2em; }
.post-content h2 { font-size: 1.75em; }
.post-content h3 { font-size: 1.5em; }
.post-content h4 { font-size: 1.25em; }
.post-content h5 { font-size: 1.1em; }
.post-content h6 { font-size: 1em; color: #555; }

/* 链接 */
.post-content a {
  color: #0073aa;
  transition: color 0.2s ease;
}
.post-content a:hover {
  color: #005177;
}

/* 引用 */
.post-content blockquote {
  border-left: 4px solid #0073aa;
  margin: 1.5em 0;
  padding: 0.8em 1em;
  background: #f8f9fa;
  color: #444;
  font-style: italic;
}

/* 列表 */
.post-content ul,
.post-content ol {
  margin: 1em 0 1em 1.8em;
}
.post-content li {
  margin-bottom: 0.4em;
}

/* 图片 */
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.post-content figure {
  margin: 1.5em 0;
  text-align: center;
}
.post-content figcaption {
  font-size: 14px;
  color: #666;
  margin-top: 6px;
}

/* 表格 */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 15px;
}
.post-content th,
.post-content td {
  border: 1px solid #dcdcdc;
  padding: 8px 12px;
}
.post-content th {
  background: #f1f1f1;
  font-weight: 600;
}

/* 代码 */
.post-content pre,
.post-content code {
  font-family: Consolas, Monaco, 'Courier New', monospace;
  background: #f5f5f5;
  border-radius: 6px;
}
.post-content code {
  padding: 2px 5px;
}
.post-content pre {
  padding: 12px;
  overflow-x: auto;
  line-height: 1.6;
}

/* 分隔线 */
.post-content hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2em 0;
}

/* 对齐 */
.post-content .alignleft {
  text-align: left;
  margin: 0.5em 1.5em 1em 0;
}
.post-content .alignright {
  text-align: right;
  margin: 0.5em 0 1em 1.5em;
}
.post-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .post-content {
    font-size: 15px;
    line-height: 1.7;
  }
  .post-content h1 { font-size: 1.6em; }
  .post-content h2 { font-size: 1.4em; }
  .post-content h3 { font-size: 1.2em; }
}




/* comments */
.comment-list{ list-style:none; margin:12px 0 0; padding:0; display:grid; gap:12px; margin-bottom: 20px;}
.comment-item{ padding:12px; border-radius:10px; border:1px solid var(--border); background:var(--card); display:flex; gap:12px; align-items:flex-start; flex-direction: column;}
.comment-item .children{ 
    list-style: none; 
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
    width: 100%;
    margin-bottom: 20px;
}
.comment-meta{
    display: flex;
    align-items: center;
    margin-top: 0;
    border: none;
    padding: 10px;
    gap:8px;
}
.comment-meta .comment-author-info{
    display: flex;
    flex-direction: column;
}
.comment-meta .comment-author-info time{
    font-size:14px;
}
.comment-author-avatar img{ border-radius:999px; }
.comment-content{ color:var(--text); }
.comment-actions{ 
    margin-top:8px; 
    font-size: 14px;
}

/* comment form inputs consistent with homepage contact form */
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea, .comment-form input[type="url"]{
  width:100%; border:1px solid var(--border); padding:12px; border-radius:10px; margin-top:6px;
}
.comment-form .btn-primary{ margin-top:8px; }

/* responsive */
@media (max-width: 767px) {
  .single-post-container{ grid-template-columns: 1fr; padding:0 16px; }
  .single-sidebar{ order:2; }
  .post-content{ padding:14px; }
}




/* SIDEBAR STYLES */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 90px;
}

.sidebar .widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 6px 14px rgba(15,23,42,0.04);
}

.widget-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--text);
}

.widget-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.widget-list li a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color .2s;
}

.widget-list li a:hover {
  color: var(--accent);
}

/* search form */
.widget-search form {
  display: flex;
  align-items: center;
  gap: 6px;
}
.widget-search input[type="search"] {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
}
.widget-search button,
.widget-search input[type="submit"] {
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(90deg,var(--accent),var(--accent-2));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
}
.widget-search button:hover { opacity: 0.9; }

/* tag cloud */
.widget-tags .tagcloud a {
  display: inline-block;
  background: #f1f5f9;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px !important;
  color: var(--muted);
  margin: 4px 6px 0 0;
  transition: all .2s;
}
.widget-tags .tagcloud a:hover {
  background: var(--accent);
  color: #fff;
}

/* responsive */
@media (max-width: 768px) {
  .sidebar {
    position: static;
    top: auto;
    order: 2;
  }
}



/* === Archive Layout === */
.archive-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
}


/* === Archive Header === */

.archive-header{
    padding: 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    position: static;
    margin-bottom: 1.5rem;
}
.archive-header h1{
    margin-bottom: 0;
    font-size: 20px;
}
@media (max-width: 767px) {
    .archive-header{
        padding: 14px;
    }
}
.archive-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5em;
}
.archive-description {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

/* === Posts Grid === */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.archive-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.archive-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.archive-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.no-thumb {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #aaa;
  font-size: 2rem;
}

.archive-content {
  padding: 1.2rem 1.5rem;
}
.archive-post-title {
  font-size: 1.1rem;
  margin-bottom: 0.4em;
  line-height: 1.4;
}
.archive-post-title a {
  color: #111;
  text-decoration: none;
}
.archive-post-title a:hover {
  color: #0073aa;
}

.archive-meta {
  font-size: 13px;
  color: #777;
  margin-bottom: 0.6em;
}
.archive-excerpt {
  color: #444;
  line-height: 1.6;
  font-size: 15px;
}

/* === Pagination === */
.archive-pagination {
  margin-top: 2.5rem;
  text-align: center;
}
.archive-pagination .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 3px;
  border-radius: 6px;
  background: #f2f2f2;
  color: #333;
  text-decoration: none;
  transition: background 0.2s;
}
.archive-pagination .page-numbers:hover {
  background: #0073aa;
  color: #fff;
}
.archive-pagination .current {
  background: #0073aa;
  color: #fff;
  font-weight: 600;
}

/* === 响应式 === */
@media (max-width: 1024px) {
  .archive-container {
    grid-template-columns: 1fr;
  }
  .archive-sidebar {
    margin-top: 2rem;
  }
}
@media (max-width: 768px) {
  .archive-title {
    font-size: 1.4rem;
  }
  .archive-grid {
    grid-template-columns: 1fr;
  }
}




/* === Search Layout === */
.search-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
}

.search-header{
    padding: 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    position: static;
    margin-bottom: 1.5rem;
}
.search-header h1{
    margin-bottom: 0;
    font-size: 20px;
}
@media (max-width: 767px) {
    .search-header{
        padding: 14px;
    }
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* 搜索结果卡片 */
.search-item {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.search-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.search-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.no-thumb {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #aaa;
  font-size: 2rem;
}

.search-content {
  padding: 1.2rem 1.5rem;
}
.search-post-title {
  font-size: 1.1rem;
  margin-bottom: 0.4em;
}
.search-post-title a {
  color: var(--text);
  text-decoration: none;
}
.search-post-title a:hover {
  color: var(--accent);
}

.search-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0.6em;
}
.search-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

/* 分页 */
.search-pagination {
  margin-top: 2rem;
  text-align: center;
}
.search-pagination .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 3px;
  border-radius: 6px;
  background: #f2f2f2;
  color: #333;
  text-decoration: none;
  transition: background 0.2s;
}
.search-pagination .page-numbers:hover {
  background: var(--accent);
  color: #fff;
}
.search-pagination .current {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}


/* 响应式 */
@media (max-width: 1024px) {
  .search-container {
    grid-template-columns: 1fr;
  }
  .search-sidebar {
    margin-top: 2rem;
  }
}
@media (max-width: 768px) {
  .search-grid {
    grid-template-columns: 1fr;
  }
}


/* === 404 Page === */
.notfound-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 3rem 1rem;
}

.notfound-main {
  text-align: center;
}

.notfound-card {
  background: var(--card);
  padding: 2rem 2.5rem;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(15,23,42,0.08);
}

.notfound-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.notfound-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.notfound-actions .btn {
  margin: 0 8px;
  padding: 12px 18px;
  font-size: 15px;
}

.notfound-actions .btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
}

.notfound-actions .btn-primary:hover {
  opacity: 0.9;
}

.notfound-actions .btn-ghost {
  border: 1px solid var(--border);
  color: var(--muted);
}

.notfound-actions .btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 响应式 */
@media (max-width: 768px) {
  .notfound-title {
    font-size: 2rem;
  }
  .notfound-subtitle {
    font-size: 1rem;
  }
  .notfound-actions .btn {
    width: 100%;
    margin: 6px 0;
  }
}
