/* ===== WB Tech Styles for StabilRide ===== */

/* 1. Logo 缩小 + 清晰度保持 */
.ast-custom-logo img,
.site-logo-img img {
    max-height: 30px !important;
    max-width: 120px !important;
    width: auto !important;
    height: auto !important;
    image-rendering: -webkit-optimize-contrast;
    transition: transform 0.25s ease;
}
.ast-custom-logo img:hover {
    transform: scale(1.06);
}

/* 2. 导航栏科技感 — 毛玻璃 + 精致阴影 */
#masthead,
.ast-primary-header-bar,
.main-header-bar {
    background: rgba(255,255,255,0.92) !important;
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.04);
    border-bottom: none !important;
}

/* 导航链接现代感 */
.main-header-menu .menu-item > a,
.ast-builder-menu .menu-link {
    font-weight: 500 !important;
    letter-spacing: 0.02em;
    font-size: 15px;
    color: #1a1a2e !important;
    position: relative;
    transition: color 0.2s ease;
}
.main-header-menu .menu-item > a::after,
.ast-builder-menu .menu-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f5a623;
    transition: width 0.3s ease;
    border-radius: 2px;
}
.main-header-menu .menu-item > a:hover::after,
.ast-builder-menu .menu-link:hover::after {
    width: 100%;
}
.main-header-menu .menu-item > a:hover,
.ast-builder-menu .menu-link:hover {
    color: #f5a623 !important;
}

/* 3. 按钮 — 现代圆角 + 悬浮动效 */
.ast-custom-button,
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wp-block-button__link,
.ast-button,
.btn {
    border-radius: 8px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    transition: all 0.25s ease !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.ast-custom-button:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.wp-block-button__link:hover,
.ast-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12) !important;
}

/* 4. 产品卡片 — 统一卡片 + 悬浮提升 */
.woocommerce ul.products li.product,
.wc-block-grid__product,
.ast-woo-shop-archive .site-main .ast-article-post {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
}
.woocommerce ul.products li.product:hover,
.wc-block-grid__product:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}
.woocommerce ul.products li.product img,
.wc-block-grid__product-image img {
    border-radius: 8px 8px 0 0;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.05em;
    font-weight: 600;
    color: #1a1a2e;
    padding: 12px 16px 4px;
}
.woocommerce ul.products li.product .price {
    font-weight: 700;
    color: #f5a623;
    padding: 0 16px 16px;
}

/* 5. Value Props / Feature 卡片优化 */
.ast-plain-container .entry-content > div[style*="background:#f5f7fa"] {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ast-plain-container .entry-content > div[style*="background:#f5f7fa"]:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* 6. Hero 区微调 — 更锐利 */
.entry-content > div:first-child[style*="linear-gradient"] {
    border-radius: 0 0 16px 16px !important;
    margin-bottom: 56px !important;
}
.entry-content > div:first-child h1 {
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

/* 7. 整体排版 — 现代无衬线 + 行高 */
body, .ast-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #2c2c3a;
    line-height: 1.65;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #1a1a2e;
}

/* 8. Footer 精致化 */
.site-footer {
    background: #0f1c2e !important;
    color: rgba(255,255,255,0.75);
    padding-top: 48px;
    padding-bottom: 32px;
}
.site-footer a {
    color: rgba(255,255,255,0.85);
    transition: color 0.2s;
}
.site-footer a:hover {
    color: #f5a623;
}

/* 9. 增加全局模块间距 */
.entry-content > * + * {
    margin-top: 1.2em;
}
.ast-plain-container .site-content .entry-content {
    padding-top: 0;
    padding-bottom: 48px;
}

/* 10. 页面标题 + 面包屑优化 */
.ast-archive-title, .page-title {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1a1a2e;
}

/* 11. 移除 Astra 默认的灰色底部边框，让页面更干净 */
.ast-single-post .entry-content,
.ast-separate-container .ast-article-post {
    box-shadow: none !important;
    border: none !important;
}
