/*
Theme Name: 123
*/


/* Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    color: #424242;
    background-color: #fafafa;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 500;
    color: #212121;
    margin-bottom: 1rem;
}

h1, .h1 { font-size: 2.5rem; }
h2, .h2 { font-size: 1.75rem; }
h3, .h3 { font-size: 1.5rem; }
h4, .h4 { font-size: 1.25rem; }
h5, .h5 { font-size: 1.125rem; }
h6, .h6 { font-size: 1rem; }

a {
    color: #3F51B5;
    transition: color 0.3s ease;
}

a:hover {
    color: #303F9F;
    text-decoration: none;
}

/* Navigation Styles */
.navbar {
    transition: all 0.3s ease;
    min-height: 70px;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

.navbar-brand h1 {
    margin: 0;
    font-size: 1.25rem;
}

.navbar-nav {
    flex-direction: row;
}

.navbar-nav .nav-item {
    margin-left: 0.5rem;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

/* Dropdown Menu */
.dropdown-menu {
    background-color: #3F51B5;
    border: none;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1.5rem;
    transition: background-color 0.3s ease;
}

.dropdown-menu .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shadow-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 15px rgba(0, 0, 0, 0.1) !important;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 500;
}

.card-title a:hover {
    color: #3F51B5;
}

/* Content Styles */
.content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content blockquote {
    border-left: 4px solid #3F51B5;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
}

.content code {
    background-color: #E8EAF6;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.content pre {
    background-color: #E8EAF6;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
}

.content pre code {
    background-color: transparent;
    padding: 0;
}

/* Sidebar Styles */
.tag-cloud a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-cloud a:hover {
    background-color: #3F51B5 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Breadcrumb Styles */
.breadcrumb {
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #9E9E9E;
}

/* Pagination Styles */
.pagination-wrapper ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-wrapper ul li {
    margin: 0 2px;
}

.pagination-wrapper ul li a,
.pagination-wrapper ul li span {
    display: block;
    color: #3F51B5;
    border: 1px solid #C5CAE9;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    min-width: 40px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

.pagination-wrapper ul li a:hover {
    background-color: #3F51B5;
    border-color: #3F51B5;
    color: white;
    text-decoration: none;
}

.pagination-wrapper ul li.current span,
.pagination-wrapper ul li span.current {
    background-color: #3F51B5;
    border-color: #3F51B5;
    color: white;
}

.pagination-wrapper ul li span.dots {
    border: none;
    background: transparent;
    color: #666;
}

/* Button Styles */
.btn-primary {
    background-color: #3F51B5;
    border-color: #3F51B5;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #303F9F;
    border-color: #303F9F;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-outline-primary {
    color: #3F51B5;
    border-color: #3F51B5;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-outline-primary:hover {
    background-color: #3F51B5;
    border-color: #3F51B5;
}

/* FAB Button */
#backToTop {
    z-index: 1000;
    transition: all 0.3s ease;
}

#backToTop:hover {
    background-color: #303F9F !important;
    transform: scale(1.1);
}

/* Badge Styles */
.badge-pill {
    padding: 0.375rem 0.75rem;
    font-weight: 400;
    transition: all 0.3s ease;
}



/* Footer Styles */
footer {
    border-top: 1px solid #C5CAE9;
}

footer a {
    color: #666;
}

footer a:hover {
    color: #3F51B5;
}

/* Media Object Styles */
.media {
    align-items: center;
}

.media-body h4 a {
    font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .navbar-nav {
        flex-direction: column;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-item {
        margin-left: 0;
        margin-bottom: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }
    
    .navbar-collapse {
        background-color: #3F51B5;
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    
    .navbar-collapse.show {
        display: block !important;
    }
    
    .order-last {
        margin-top: 3rem;
    }
}

@media (max-width: 767px) {
    h1, .h1 { font-size: 2rem; }
    h2, .h2 { font-size: 1.5rem; }
    h3, .h3 { font-size: 1.25rem; }
    
    .card-body {
        padding: 1rem;
    }
}

/* Scrolled Navigation Effect */
.navbar.scrolled {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

/* Shadow Utilities */
.shadow {
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08) !important;
}

.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.shadow-lg {
    box-shadow: 0 12px 15px rgba(0, 0, 0, 0.1) !important;
}

/* WordPress Core Styles */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
}

.gallery {
    margin: 1.5rem 0;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
    padding: 0.5rem;
}

.gallery-columns-2 .gallery-item { max-width: 50%; }
.gallery-columns-3 .gallery-item { max-width: 33.33%; }
.gallery-columns-4 .gallery-item { max-width: 25%; }

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Custom Logo */
.custom-logo {
    max-height: 50px;
    width: auto;
}

p.card-text { /* 列表内容 */
  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;
}

h3.card-title.h5{ /* 列表标题 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

div.entry-thumbnail > a  > img{ /* 列表缩略图 */
  aspect-ratio: 2/1;
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: block;
}

@media (min-width: 992px) { /* 分类隐藏 */
  ul.navbar-nav.ml-auto>*:nth-child(n+6) {
    display: none;
  }
}


figure.wp-block-image >img { /* 详情页图片 */
  max-width: 100%;
}
@media (min-width: 768px) {
  figure.wp-block-image >img {
    max-width: 66%;
  }
}
@media (min-width: 992px) {
  figure.wp-block-image >img {
    max-width: 33%;
  }
}