/*
Theme Name: 123
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --glass-bg: rgba(192, 192, 192, 0.15);
    --glass-bg-hover: rgba(192, 192, 192, 0.25);
    --glass-border: rgba(192, 192, 192, 0.3);
    --text-primary: #FFFFFF;
    --text-secondary: #E0E0E0;
    --bg-gradient-start: #16213e;
    --bg-gradient-end: #1a1a2e;
    --silver: #C0C0C0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-secondary);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* Glass Effect Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.glass-hover {
    transition: all 0.3s ease;
}

.glass-hover:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Navigation */
.navbar {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.navbar-toggler {
    border: 1px solid var(--glass-border);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Header Section */
.page-header {
    padding: 3rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1) 0%, rgba(192, 192, 192, 0.05) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 3rem;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
    justify-content: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-secondary);
}

.breadcrumb-item a {
    color: var(--text-secondary);
}

/* Article Cards */
.article-card {
    margin-bottom: 2rem;
}

.article-card .card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-card .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: var(--glass-bg-hover);
}

.article-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.article-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.article-meta a {
    color: var(--text-secondary);
}

.category-badge {
    background: rgba(192, 192, 192, 0.2);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.category-badge:hover {
    background: rgba(192, 192, 192, 0.3);
}

/* Article Content */
.article-content {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.article-content p {
    margin-bottom: 1.5rem;
}

/* Sidebar */
.sidebar .widget {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar .widget h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.tagcloud a {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    margin: 0.25rem;
    border-radius: 20px;
    font-size: 0.875rem !important;
    transition: all 0.3s ease;
}

.tagcloud a:hover {
    background: rgba(192, 192, 192, 0.2);
    color: var(--text-primary);
}

/* Navigation Buttons */
.nav-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--glass-bg-hover);
    color: var(--text-primary);
    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.2);
}

.nav-btn:active {
    transform: scale(0.98);
}

/* Footer */
.site-footer {
    background: rgba(192, 192, 192, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--glass-border);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.site-footer p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* Pagination */
.pagination {
    justify-content: center;
    margin-top: 3rem;
}

.pagination .page-link {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    margin: 0 0.25rem;
    border-radius: 8px;
}

.pagination .page-link:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border);
}

.pagination .page-item.active .page-link {
    background: rgba(192, 192, 192, 0.3);
    border-color: var(--glass-border);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .page-header {
        padding: 2rem 0;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .sidebar {
        margin-top: 3rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--text-primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Skip to Content */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--glass-bg);
    color: var(--text-primary);
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    top: 0;
}

article.card > div.card-body > p { /* 列表内容 */
  line-height: 1.5;
  height: 4.5em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
  word-break: break-word;
}

article.card > div.card-body > h2.h4{ /* 列表标题 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}


@media (min-width: 992px) { /* 分类隐藏 */
  ul.navbar-nav.ms-auto>*:nth-child(n+6) {
    display: none;
  }
}


figure.wp-block-image >a >img { /* 详情页图片 */
  max-width: 100%;
}
@media (min-width: 768px) {
  figure.wp-block-image >a >img {
    max-width: 66%;
  }
}
@media (min-width: 992px) {
  figure.wp-block-image >a >img {
    max-width: 33%;
  }
}