/*
Theme Name: AirComp B2B
Theme URI: https://example.com/aircomp
Author: WorkBuddy
Author URI: https://example.com
Description: 空气压缩机外贸 B2B 询盘主题，由 zanall.5fa.cn/1158 前端模板还原为 WordPress 主题。内置产品（Product）/FAQ/证书（Certificate）自定义文章类型、询盘报价表单、询价清单（Quote List）、产品分类树侧边栏、规格表、产品图库、FAQ 手风琴与筛选、WhatsApp 浮动按钮、Cookie 提示等功能。
Version: 1.1.3
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aircomp
Tags: custom-post-types, customizer, b2b, inquiry, manufacturing, translation-ready
*/

/* 主题主样式位于 assets/css/aircomp.css（沿用原模板样式）。
   本文件仅放置 WordPress 兼容性补充样式。 */

/* WordPress 对齐类 */
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.alignwide { max-width: var(--wp--style--global--wide-size, 1200px); margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: #6b7f8f; text-align: center; }
.sticky { position: relative; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.detail-content img { max-width: 100%; height: auto; }

/* 询价清单（Quote List）页面 */
.ac-qrow { display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid #e3ebf1; border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.ac-qrow-img { width: 96px; height: 96px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: #f2f6f9; }
.ac-qrow-img img { width: 100%; height: 100%; object-fit: cover; }
.ac-qrow-main { flex: 1; min-width: 0; }
.ac-qrow-main h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.4; }
.ac-qrow-main h3 a { color: #0f2537; text-decoration: none; }
.ac-qrow-main h3 a:hover { color: #f2600c; }
.ac-qrow-main em { color: #6b7f8f; font-size: 13px; font-style: normal; }
.ac-qrow-qty { display: flex; align-items: center; gap: 8px; }
.ac-qrow-qty input { width: 72px; padding: 8px 10px; border: 1px solid #cfdce5; border-radius: 6px; text-align: center; }
.ac-qrow-del { color: #b0413e; background: none; border: none; cursor: pointer; font-size: 15px; padding: 8px; }
.ac-qrow-del:hover { color: #d24f04; }
.ac-quote-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 900px) { .ac-quote-grid { grid-template-columns: 1fr; } }

/* 表单状态提示 */
.ac-form-note { display: none; margin-top: 12px; padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.ac-form-note.error { display: block; background: #fdecea; color: #b0413e; }
.ac-form-note.ok { display: block; background: #e8f7ee; color: #1e7e42; }

/* 管理员栏兼容 */
body.admin-bar .ac-mainbar.stuck { top: 32px; }
@media (max-width: 782px) { body.admin-bar .ac-mainbar.stuck { top: 46px; } }

/* Cookie 提示条（原模板内联样式迁移） */
.ac-cookie{position:fixed;left:24px;bottom:24px;z-index:9999;background:#0f2537;border-left:4px solid #f2600c;border-radius:12px;box-shadow:0 16px 44px rgba(4,14,24,.45);width:min(460px,calc(100vw - 48px))}
.ac-cookie-inner{padding:20px 22px}
.ac-cookie-copy{display:flex;align-items:flex-start;gap:13px;color:#b7c9d7;font-size:13.5px;line-height:1.55}
.ac-cookie-copy i{color:#f2600c;font-size:20px;flex-shrink:0;margin-top:2px}
.ac-cookie-copy strong{color:#fff}
.ac-cookie-copy p{margin:0}
.ac-cookie-copy a{color:#7fd6b2;text-decoration:underline}
.ac-cookie-actions{display:flex;gap:10px;margin-top:16px}
.ac-cookie-accept,.ac-cookie-decline{cursor:pointer;font-size:13px;font-weight:700;letter-spacing:.03em;padding:10px 20px;border-radius:6px;transition:all .25s;flex:1}
.ac-cookie-accept{background:#f2600c;border:1.5px solid #f2600c;color:#fff}
.ac-cookie-accept:hover{background:#d24f04;border-color:#d24f04}
.ac-cookie-decline{background:none;border:1.5px solid rgba(255,255,255,.3);color:#b7c9d7}
.ac-cookie-decline:hover{border-color:#f2600c;color:#fff}
@media (max-width:900px){.ac-cookie{left:16px;right:16px;bottom:84px;width:auto}}
