/*
Theme Name:   Astra Child — Stone Industry
Theme URI:    https://example.com/
Description:  石材行业外贸独立站子主题。基于 Astra，针对石材 B2B 建站场景定制。
Author:       Your Name
Author URI:   https://example.com/
Template:     astra
Version:      1.0.0
License:      GNU General Public License v2 or later
Text Domain:  astra-child-stone
*/

/* ===== 覆盖 Astra 默认样式 ===== */

/* 询盘按钮 — 行业专属色（德国市场偏深蓝，中东市场偏金，此处为通用版） */
:root {
  --cta-color: #1a5276;
  --cta-hover: #0d3b5e;
  --trust-bar-bg: #f5f5f5;
  --section-gap: 4rem;
}

.wp-block-button__link,
.ast-custom-button {
  background-color: var(--cta-color) !important;
  border-radius: 4px !important;
  text-transform: none !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  padding: 14px 32px !important;
  transition: background-color 0.2s ease !important;
}

.wp-block-button__link:hover,
.ast-custom-button:hover {
  background-color: var(--cta-hover) !important;
}

/* ===== 产品卡片网格（用于产品列表页） ===== */
.product-card {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  margin-bottom: 2rem;
}

.product-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.product-card__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.product-card__body {
  padding: 1.25rem;
}

.product-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.product-card__specs {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.5;
}

.product-card__cta {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 8px 20px;
  background: var(--cta-color);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.product-card__cta:hover {
  background: var(--cta-hover);
  color: #fff;
}

/* ===== 询盘表单样式 ===== */
.inquiry-form {
  background: var(--trust-bar-bg);
  padding: 2rem;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.inquiry-form label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.inquiry-form input,
.inquiry-form textarea,
.inquiry-form select {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px 12px;
  width: 100%;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
  border-color: var(--cta-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(26, 82, 118, 0.15);
}

/* ===== 信任条（首页证书+数字展示区） ===== */
.trust-bar {
  background: var(--trust-bar-bg);
  padding: 1.5rem 0;
  border-top: 3px solid var(--cta-color);
  border-bottom: 1px solid #e0e0e0;
}

.trust-bar__item {
  text-align: center;
  padding: 0.5rem 1rem;
}

.trust-bar__number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cta-color);
}

.trust-bar__label {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
}

/* ===== OE/ODM 能力展示区块 ===== */
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-title p {
  color: #777;
  font-size: 1rem;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  :root {
    --section-gap: 2.5rem;
  }

  .product-card__body {
    padding: 1rem;
  }

  .inquiry-form {
    padding: 1.25rem;
  }

  .trust-bar__number {
    font-size: 1.4rem;
  }
}
