/* compat-base.css — 合并自过时镜像 goldsun-theme 的组件样式，仅补齐 layer main.css 缺失的 search/archive/page/card/breadcrumb 类。
   本文件在 main.css 之后加载（见 inc/enqueue.php）。*/

.gds-empty{color:var(--gray-400);padding:24px 0;}

.gds-news-card{border:1px solid var(--gray-200);border-radius:var(--radius-md);padding:30px 28px;transition:border-color .25s,transform .25s,box-shadow .25s;background:#fff;}

.gds-news-card:hover{border-color:var(--color-ink);transform:translateY(-3px);box-shadow:var(--shadow-sm);}

.gds-news-card h3{font-size:18px;font-weight:600;margin-top:12px;line-height:1.5;}

.gds-news-card p:last-child{font-size:14px;color:var(--gray-500);margin-top:10px;line-height:1.7;}

@media (max-width:768px){
	.container{padding:0 24px;}
	.gds-nav-links{position:fixed;top:0;right:0;bottom:0;width:280px;background:rgba(10,10,10,.97);flex-direction:column;align-items:flex-start;padding:80px 28px 28px;gap:18px;transform:translateX(100%);transition:transform .3s var(--ease-out);z-index:99;}
	.gds-nav-links.is-open{transform:none;}
	.gds-menu{flex-direction:column;gap:18px;}
	.gds-burger{display:flex;}
	.gds-hero{padding:88px 0 64px;}
	.gds-hero-stats{grid-template-columns:repeat(2,1fr);}
	.gds-badges{grid-template-columns:repeat(2,1fr);}
	.gds-news-grid{grid-template-columns:1fr;}
	.gds-search-grid{grid-template-columns:1fr;}
	.gds-rnd-items,.gds-rnd-items.is-six{grid-template-columns:repeat(2,1fr);}
	.gds-tech-params{grid-template-columns:1fr;}
	.gds-footer__sitemap{grid-template-columns:repeat(2,1fr);gap:24px;}
	.gds-bento-card.is-lg{grid-column:span 2;grid-row:span 1;}
	.gds-bento{grid-auto-rows:170px;}
	.hero-video__content{padding:0 24px 48px;}
	.hero-duo{padding:64px 24px;}
	.trust-bar{padding:0 24px;}
	.cinematic__content{padding:80px 24px;}
	.showcase{padding:80px 24px;}
	.feature-strip{padding:80px 24px;}
	.split__text{padding:48px 24px;}
	.split__stats{grid-template-columns:repeat(3,1fr);gap:12px;}
	.clients{padding:48px 24px;}
	.news-section{padding:80px 24px;}
	.news-section__grid{grid-template-columns:1fr;}
	.faq-section{padding:80px 24px;}
	.cta-full{padding:80px 24px;}
	.cta-full__btns{flex-direction:column;align-items:center;}
	.showcase__carousel-track .showcase__card{flex:0 0 85%;}
	/* Mobile: disable cursor-based interactions */
	.gds-bento-card[data-cursor-follow]:hover,
	.gds-showcase-card[data-cursor-follow]:hover{
		transform:none !important;
	}
	/* Marquee fixed direction */
	.gds-marquee{animation-direction:ltr !important;}
}

[data-theme="dark"] .gds-badge,
[data-theme="dark"] .gds-tech-card,
[data-theme="dark"] .gds-product-card {
	background: oklch(22% 0.015 280);
	border-color: rgba(255, 255, 255, 0.1);
}

/* ---------- 搜索结果：卡片网格 ---------- */
/* 新闻(post) 与 产品(product) 统一以卡片形式呈现；页面(page)不在搜索范围内。 */
.gds-search-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:32px;}

.gds-search-item{border:1px solid var(--gray-200);border-radius:var(--radius-md);padding:24px 26px;background:#fff;}

.gds-search-item__title{font-size:18px;font-weight:600;margin:0;line-height:1.5;}

.gds-search-item__title a{color:var(--color-ink);text-decoration:none;}

.gds-search-item__title a:hover{color:var(--color-accent);}

.gds-search-item__excerpt{font-size:14px;color:var(--gray-500);margin-top:10px;line-height:1.7;}

.gds-product-card{display:block;border-radius:var(--radius-md);overflow:hidden;transition:transform .35s var(--ease-out),box-shadow .35s var(--ease-out);background:var(--color-paper);border:1px solid var(--gray-200);}

.gds-product-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);}

.gds-product-card__img{aspect-ratio:4/3;overflow:hidden;position:relative;background:var(--gray-100);}

.gds-product-card__img img{width:100%;height:100%;object-fit:cover;transition:transform .4s var(--ease-out);}

.gds-product-card:hover .gds-product-card__img img{transform:scale(1.04);}

.gds-product-card__ph{width:100%;height:100%;background:linear-gradient(135deg,#e7e5e4,#d6d3d1);}

.gds-product-card__body{padding:20px 22px 24px;}

.gds-product-card__cat{font-size:11px;letter-spacing:.12em;color:var(--color-accent);font-weight:600;text-transform:uppercase;font-family:var(--font-en);}

.gds-product-card__name{font-size:18px;font-weight:600;margin-top:6px;line-height:1.4;}

.gds-product-card__desc{font-size:13px;color:var(--gray-500);margin-top:6px;line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}

.gds-product-card__chips{display:flex;gap:6px;margin-top:12px;flex-wrap:wrap;}

.gds-product-card__chip{font-size:10px;letter-spacing:.06em;padding:4px 10px;border:1px solid var(--gray-200);border-radius:var(--radius-pill);color:var(--gray-500);}

/* 悬停位移风格 */
.gds-product-card--shift .gds-product-card__img img{transition:transform .5s var(--ease-out);}

.gds-product-card--shift:hover .gds-product-card__img img{transform:scale(1.08) translateY(-4px);}
