/**
Theme Name: Astra
Theme URI: https://wpastra.com/
Author: Brainstorm Force
Author URI: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme
Description: The Astra WordPress theme is lightning-fast and highly customizable. It has over 1 million downloads and the only theme in the world with 6,000+ five-star reviews! It’s ideal for professional web designers, solopreneurs, small businesses, eCommerce, membership sites and any type of website. It offers special features and templates so it works perfectly with all page builders like Spectra, Elementor, Beaver Builder, etc. Fast performance, clean code, mobile-first design and schema markup are all built-in, making the theme exceptionally SEO-friendly. It’s fully compatible with WooCommerce, SureCart and other eCommerce plugins and comes with lots of store-friendly features and templates. Astra also provides expert support for free users. A dedicated team of fully trained WordPress experts are on hand to help with every aspect of the theme. Try the live demo of Astra: https://zipwp.org/themes/astra/
Version: 4.12.1
Requires at least: 5.3
WC requires at least: 3.0
WC tested up to: 9.6
Tested up to: 6.9
Requires PHP: 5.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra
Domain Path: /languages
Tags: custom-menu, custom-logo, entertainment, one-column, two-columns, left-sidebar, e-commerce, right-sidebar, custom-colors, editor-style, featured-images, full-width-template, microformats, post-formats, rtl-language-support, theme-options, threaded-comments, translation-ready, blog
AMP: true

Astra WordPress Theme, Copyright 2020 WPAstra.
Astra is distributed under the terms of the GNU GPL.

Astra is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of.
Nicolas Gallagher and Jonathan Neal https://necolas.github.com/normalize.css/

Astra icon font is based on IcoMoon-Free vector icon by Keyamoon.
IcoMoon-Free vector icon distributed under terms of CC BY 4.0 or GPL. (https://creativecommons.org/licenses/by/4.0/ or https://www.gnu.org/licenses/gpl.html)
Source: http://keyamoon.com/

Flexibility is a JavaScript polyfill for Flexbox By Jonathan Neal, 10up. (https://github.com/jonathantneal/flexibility)
Licensed under MIT ( https://github.com/jonathantneal/flexibility/blob/master/LICENSE.md )

Screenshot image is a collage of actual sites created using the Astra WordPress Theme.

Icons used in the Screenshot image are all licensed under Creative Commons ( CC BY 4.0 ) License ( https://fontawesome.com/license/free )
https://fontawesome.com/v5.15/icons/store?style=solid
https://fontawesome.com/v5.15/icons/shopping-cart?style=solid
https://fontawesome.com/v5.15/icons/pen-square?style=solid
https://fontawesome.com/v5.15/icons/user-tie?style=solid
https://fontawesome.com/v5.15/icons/user-tie?style=solid

Illustrations used in the Screenshot images are all licensed under Creative Commons ( CC0 ) License ( https://gumroad.com/l/humaaans )
https://websitedemos.net/web-design-agency-08/wp-content/uploads/sites/796/2021/05/standing-24.png
https://websitedemos.net/web-design-agency-08/wp-content/uploads/sites/796/2021/05/sitting-2.png

Hand-drawn illustrations used are created by Brainstorm Force and released under Creative Commons ( CC0 ) License.
https://websitedemos.net/web-design-agency-08/wp-content/uploads/sites/796/2021/05/girl-with-image-container.png
https://websitedemos.net/web-design-agency-08/wp-content/uploads/sites/796/2021/05/boy-with-code-container.png
https://websitedemos.net/web-design-agency-08/wp-content/uploads/sites/796/2021/05/web-browser.png

The same site as screenshot can be imported from here https://websitedemos.net/web-design-agency-08/.

For more information, refer to this document on how to create a page like in the screenshot - https://wpastra.com/docs/replicating-the-screenshot/.

Astra default breadcrumb is based on Breadcrumb Trail by Justin Tadlock. (https://github.com/justintadlock/breadcrumb-trail)
Breadcrumb Trail is distributed under the terms of the GNU GPL v2 or later.

Astra local fonts feature is based on Webfonts Loader by WordPress Themes Team (WPTT). (https://github.com/WPTT/webfont-loader)
Licensed under MIT ( https://github.com/WPTT/webfont-loader/blob/master/LICENSE )

/* Note: The CSS files are loaded from assets/css/ folder. */
/* 容器基础样式 */
/* 卡片容器 */
/* 容器设置为网格布局，方便你直接放两个短代码就并排 */
.bh-news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    padding: 10px;
}

/* 单个卡片样式 */
.bh-news-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.bh-news-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* 头部布局：左右分屏 */
.bh-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #f5f5f5;
    background: linear-gradient(to right, #ffffff, #fafafa);
}

.bh-card-title {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

/* 蓝色小条装饰 */
.bh-title-accent {
    width: 4px;
    height: 18px;
    background: #3b66f5;
    margin-right: 12px;
    border-radius: 10px;
}

.bh-card-more {
    font-size: 13px;
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.bh-card-more:hover {
    color: #3b66f5;
}

/* 列表样式 */
.bh-news-ul {
    list-style: none;
    padding: 10px 20px;
    margin: 0;
}

.bh-news-ul li {
    padding: 12px 0;
    border-bottom: 1px solid #f9f9f9;
}

.bh-news-ul li:last-child {
    border-bottom: none;
}

.bh-news-ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #4a4a4a;
}

.news-t {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* 标题过长自动点点点 */
    padding-right: 20px;
    font-size: 15px;
}

.news-d {
    font-size: 13px;
    color: #bbb;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.bh-news-ul li a:hover .news-t {
    color: #3b66f5;
    padding-left: 5px; /* 悬停微动感 */
    transition: all 0.2s;
}

.bh-news-empty {
    padding: 40px;
    text-align: center;
    color: #ccc;
    font-size: 14px;
}

/* 新闻内页（左侧最新 + 右侧历史分页） */
.bh-news-page {
	display: grid;
	grid-template-columns: 620px minmax(0, 1fr);
	gap: 40px;
	max-width: 1320px;
	margin: 0 auto;
	padding: 30px 26px 42px;
	background: #fff;
}

.bh-news-page.bh-news-page--no-right {
	grid-template-columns: 620px;
	max-width: 760px;
	padding: 30px 20px 40px;
}

.bh-news-page--no-right .bh-news-left {
	max-width: 620px;
}

.bh-news-page--no-right .bh-news-hero-card {
	right: 0;
}

.bh-news-left {
	position: relative;
	width: 620px;
	max-width: 620px;
	min-height: 770px;
}

.bh-news-hero-image {
	width: 520px;
}

.bh-news-hero-image img {
	width: 100%;
	height: 360px;
	object-fit: cover;
	display: block;
}

.bh-news-hero-date {
	position: absolute;
	left: 18px;
	top: 404px;
	display: flex;
	flex-direction: column;
	line-height: 1;
	z-index: 2;
}

.bh-news-hero-date .day {
	font-size: clamp(36px, 3.2vw, 52px);
	font-weight: 700;
	color: #111;
}

.bh-news-hero-date .month {
	font-size: clamp(16px, 1.4vw, 24px);
	margin-top: 8px;
	color: #7a7a7a;
}

.bh-news-hero-card {
	position: absolute;
	left: 136px;
	right: 0;
	top: 288px;
	background: #0c5db8;
	padding: 24px 28px 20px;
	min-height: 400px;
	color: #fff;
	box-sizing: border-box;
	z-index: 3;
}

.bh-news-hero-card h3 {
	margin: 0 0 14px;
	font-size: clamp(20px, 1.75vw, 32px);
	line-height: 1.55;
	font-weight: 700;
}

.bh-news-hero-card h3 a {
	color: #fff;
	text-decoration: none !important;
	font-size: inherit;
	line-height: inherit;
	font-weight: inherit;
}

.bh-news-hero-card p {
	margin: 0;
	font-size: 16px;
	line-height: 1.9;
	color: #d8e7ff;
}

.bh-news-right {
	min-width: 0;
	align-self: start;
	padding-top: 8px;
}

.bh-news-page.bh-news-page--no-right .bh-news-right {
	display: none;
}

.bh-news-page.bh-news-page--no-right .bh-news-hero-card {
	min-height: 360px;
}

.bh-news-right .bh-news-item {
	padding: 18px 0 24px;
	border-bottom: 1px solid #d8d8d8;
}

.bh-news-right .bh-news-item h4 {
	margin: 0 0 14px;
	font-size: 22px;
	line-height: 1.45;
}

.bh-news-right .bh-news-item h4 a {
	color: #111;
	text-decoration: none;
}

.bh-news-right .bh-news-item p {
	margin: 0 0 12px;
	font-size: 16px;
	line-height: 1.85;
	color: #666;
}

.bh-news-right .bh-news-item time {
	color: #8d8d8d;
	font-size: 16px;
}

.bh-news-pagination ul {
	list-style: none;
	margin: 22px 0 0;
	padding: 0;
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	align-items: center;
}

.bh-news-pagination li {
	margin: 0;
}

.bh-news-pagination a,
.bh-news-pagination span {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	background: #e9e9e9;
	color: #666;
}

.bh-news-pagination .current {
	background: #0c5db8;
	color: #fff;
}

.bh-news-page .bh-news-empty {
	color: #777;
	padding: 24px 0;
}

@media (max-width: 1280px) {
	.bh-news-page {
		grid-template-columns: 560px minmax(0, 1fr);
		gap: 30px;
		padding: 24px 16px 34px;
	}

	.bh-news-page.bh-news-page--no-right {
		grid-template-columns: 560px;
		max-width: 670px;
	}

	.bh-news-left,
	.bh-news-page--no-right .bh-news-left {
		width: 560px;
		max-width: 560px;
		min-height: 700px;
	}

	.bh-news-hero-image {
		width: 470px;
	}

	.bh-news-hero-image img {
		height: 330px;
	}

	.bh-news-hero-date {
		top: 372px;
	}

	.bh-news-hero-card {
		left: 112px;
		top: 268px;
		min-height: 350px;
	}

	.bh-news-hero-card h3 {
		font-size: clamp(18px, 2vw, 28px);
	}
}

@media (max-width: 1024px) {
	.bh-news-page,
	.bh-news-page.bh-news-page--no-right {
		display: block;
		max-width: 100%;
		padding: 16px 0 24px;
		background: #fff;
	}

	.bh-news-left,
	.bh-news-page--no-right .bh-news-left {
		width: 100%;
		max-width: none;
		min-height: 0;
	}

	.bh-news-hero-image {
		width: 100%;
	}

	.bh-news-hero-image img {
		height: 300px;
	}

	.bh-news-hero-date,
	.bh-news-hero-card {
		position: static;
	}

	.bh-news-hero-date {
		flex-direction: row;
		align-items: flex-end;
		gap: 10px;
		margin: 12px 0;
	}

	.bh-news-hero-date .day {
		font-size: 30px;
	}

	.bh-news-hero-date .month {
		font-size: 16px;
		margin: 0;
	}

	.bh-news-hero-card,
	.bh-news-page.bh-news-page--no-right .bh-news-hero-card {
		min-height: 0;
		padding: 20px;
	}

	.bh-news-hero-card h3 {
		font-size: 22px;
		line-height: 1.35;
	}

	.bh-news-hero-card p {
		font-size: 16px;
		line-height: 1.8;
	}

	.bh-news-right {
		margin-top: 18px;
		padding-top: 0;
	}

	.bh-news-right .bh-news-item h4 {
		font-size: 22px;
	}
}
