/*
Theme Name: ABEST Notebook V2
Theme URI: https://abestprint.com/
Description: Custom notebook & journal printing storefront inspired by PakFactory. WooCommerce-ready with quote-request support.
Version: 1.2.0
Author: WorkBuddy
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: abest-notebook
Tags: custom, woocommerce, notebook, printing, business
*/

/* ==========================================================================
   0. WordPress 基础 + 变量
   ========================================================================== */
:root {
    --green: #22c55e;
    --green-dark: #16a34a;
    --green-soft: rgba(34, 197, 94, 0.1);
    --ink: #111827;
    --ink-2: #1f2937;
    --gray-900: #111827;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --radius: 8px;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --container: 10%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Helvetica, Arial, 'PingFang SC', sans-serif;
}

ul, ol, li { list-style: none; margin: 0; padding: 0; }

body {
    background-color: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.5;
}

a {
    text-shadow: none;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

img { max-width: 100%; height: auto; display: block; }

/* 无障碍跳转链接：默认移出屏幕，仅在键盘聚焦时显示 */
.skip-link {
    position: absolute;
    top: 0;
    left: -9999px;
    z-index: 100000;
    padding: 12px 18px;
    background: var(--ink);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 700;
}
.skip-link:focus {
    left: 12px;
    top: 12px;
    outline: 3px solid var(--green);
    outline-offset: 2px;
}

.container { width: 100%; padding: 0 var(--container); }

/* ==========================================================================
   1. 双层页眉 (Header)
   ========================================================================== */
header {
    width: 100%;
    background-color: var(--white);
    position: relative;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.top-bar {
    background-color: var(--ink-2);
    color: var(--gray-400);
    font-size: 0.75rem;
    padding: 8px var(--container);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #374151;
}
.top-bar-left span { margin-right: 15px; }
.top-bar-right a { margin-left: 20px; }
.top-bar-right a:hover { color: var(--white); }

.main-header-row1 {
    padding: 20px var(--container);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(16px, 2.4vw, 36px);
    background-color: var(--white);
}
.main-header-row1 > .logo { flex: 0 0 auto; max-width: 240px; min-width: 0; overflow-wrap: anywhere; }

.main-header-row1 .logo { line-height: 0; }
.main-header-row1 .custom-logo-link { display: inline-flex; align-items: center; max-width: 100%; }
.main-header-row1 .custom-logo-link:focus-visible { outline: 2px solid #174b34; outline-offset: 5px; border-radius: 2px; }
.main-header-row1 .custom-logo { display: block; width: auto; height: 44px; max-width: 100%; object-fit: contain; }

.search-container { flex: 1 1 380px; width: 100%; max-width: 380px; min-width: 0; position: relative; }
.search-container form { position: relative; width: 100%; }
.search-container input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 1px solid var(--gray-300);
    border-radius: 9999px;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.3s ease;
}
.search-container input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-soft);
}
.search-container button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 1rem;
}
.search-container button:hover { color: var(--green); }

/* Header contact: compact hierarchy beside the search bar. */
.main-header-row1 > .header-contact {
    display: grid; gap: 4px; justify-items: end; align-content: center;
    flex: 0 0 auto; max-width: 19rem; min-width: 0; margin-left: auto;
    padding: 2px 0; text-align: right;
}
.header-contact-label { color: #6b7280; font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; }
.header-contact-phone { display: inline-flex; align-items: center; gap: 8px; color: #15803d; font-size: 22px; font-weight: 800; line-height: 1.3; letter-spacing: -.025em; white-space: nowrap; }
.header-contact-phone i { flex: 0 0 auto; font-size: 15px; }
.header-contact-email { display: inline-flex; align-items: center; gap: 7px; color: #374151; font-size: 14px; font-weight: 500; line-height: 1.5; }
.header-contact-email span { min-width: 0; overflow-wrap: anywhere; }
.header-contact-email i { flex: 0 0 auto; color: var(--gray-500); font-size: 12px; }
.header-contact-note { margin-top: 1px; color: #9ca3af; font-size: 11px; line-height: 1.5; }
.header-contact a { max-width: 100%; transition: color .2s ease; }
.header-contact a:hover { color: #246b4b; text-decoration: underline; text-underline-offset: 3px; }
.header-contact a:focus-visible { outline: 2px solid #174b34; outline-offset: 4px; border-radius: 2px; }

@media (max-width: 1023px) {
    .main-header-row1 .custom-logo { height: 36px; }
    .header-contact-phone { font-size: 18px; }
    .header-contact-note { display: none; }
}
@media (max-width: 639px) {
    .main-header-row1 { flex-wrap: wrap; gap: 8px 16px; }
    .main-header-row1 > .logo { order: 0; flex: 1 1 0; }
    .main-header-row1 > .menu-toggle { order: 1; flex: 0 0 30px; }
    .main-header-row1 > .header-contact {
        order: 2; flex: 1 1 100%; max-width: 100%; margin: 4px 0 0;
        display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
        gap: 0 16px; padding-top: 8px; border-top: 1px solid var(--gray-200);
    }
    .header-contact-label { display: none; }
    .header-contact a { display: inline-flex; align-items: center; min-height: 44px; }
    .header-contact-phone { font-size: 17px; }
}

.main-header-row2 {
    padding: 0 var(--container);
    background-color: var(--white);
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 60px;
}

/* WordPress 动态菜单适配 */
.menu-main-menu-container, .menu-main-menu-container > ul { display: flex; height: 100%; }
.menu-main-menu-container > ul > li { position: relative; height: 100%; display: flex; align-items: center; }
.menu-main-menu-container > ul > li > a {
    padding: 0 25px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-700);
    height: 100%;
    display: flex;
    align-items: center;
}
.menu-main-menu-container > ul > li:hover > a { color: var(--green); background-color: var(--gray-50); }

.menu-main-menu-container ul ul.sub-menu {
    position: absolute;
    top: 100%; left: 0;
    background-color: var(--white);
    min-width: 260px;
    box-shadow: var(--shadow-md);
    border-top: 2px solid var(--green);
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
}
.menu-main-menu-container ul > li:hover > ul.sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.menu-main-menu-container ul ul.sub-menu li { width: 100%; }
.menu-main-menu-container ul ul.sub-menu li a {
    display: block; padding: 12px 20px; font-size: 0.875rem;
    color: var(--gray-600); border-bottom: 1px solid var(--gray-100);
    white-space: nowrap; width: 100%; text-align: left;
}
.menu-main-menu-container ul ul.sub-menu li a:hover { background-color: var(--gray-100); color: var(--green); padding-left: 25px; }

.header-quote-btn {
    margin-left: auto;
    background-color: var(--green);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}
.header-quote-btn:hover { background-color: var(--green-dark); box-shadow: 0 4px 12px rgba(34, 197, 94, 0.5); }

.menu-toggle { display: none; font-size: 1.5rem; color: var(--gray-700); cursor: pointer; width: 30px; text-align: center; }

/* ==========================================================================
   2. Hero
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 var(--container);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.88) 30%, rgba(15, 23, 42, 0.25) 100%),
                url('https://images.unsplash.com/photo-1531346878377-a5be20888e57?q=80&w=1920') no-repeat center center;
    background-size: cover;
}
.hero-content { max-width: 660px; color: var(--white); }
.hero-content h1 { font-size: 3.4rem; font-weight: 700; line-height: 1.15; margin-bottom: 24px; letter-spacing: -0.02em; }
.hero-content p { font-size: 1.2rem; line-height: 1.6; margin-bottom: 36px; color: #cbd5e1; }
.hero-badges { display: flex; gap: 30px; margin-bottom: 34px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: #e2e8f0; }
.hero-badge i { color: var(--green); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* 通用按钮 */
.btn {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    padding: 15px 32px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.25s ease;
}
.btn-primary { background-color: var(--green); color: var(--white); box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4); }
.btn-primary:hover { background-color: var(--green-dark); transform: translateY(-2px); }
.btn-outline { background-color: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background-color: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-dark { background-color: var(--ink); color: var(--white); }
.btn-dark:hover { background-color: #000; }

/* ==========================================================================
   3. 通用区块标题
   ========================================================================== */
.section { padding: 80px var(--container); }
.section-white { background-color: var(--white); }
.section-gray { background-color: var(--gray-50); }
.section-title { font-size: 2.25rem; font-weight: 700; color: var(--ink); margin-bottom: 16px; letter-spacing: -0.01em; }
.section-subtitle { font-size: 1.125rem; color: var(--gray-500); max-width: 620px; margin: 0 auto 60px auto; }
.text-center { text-align: center; }

/* ==========================================================================
   4. 三步定制流程
   ========================================================================== */
.process-container { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.process-card {
    flex: 1; background: var(--gray-50); padding: 40px 30px; border-radius: 12px;
    border: 1px solid var(--gray-200); transition: all 0.3s ease; position: relative;
}
.process-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--green); }
.process-step-num {
    width: 54px; height: 54px; background-color: var(--green-soft); color: var(--green);
    font-size: 1.5rem; font-weight: 700; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 24px auto;
}
.process-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--ink); margin-bottom: 12px; text-align: center; }
.process-card p { font-size: 0.95rem; color: var(--gray-600); line-height: 1.6; text-align: center; }

/* ==========================================================================
   5. 笔记本款式网�?   ========================================================================== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 50px; }
.product-card {
    background-color: var(--white); border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--gray-200); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.product-image-wrapper { position: relative; width: 100%; padding-top: 75%; background-color: var(--gray-100); overflow: hidden; }
.product-image-wrapper img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-image-wrapper img { transform: scale(1.08); }
.product-info { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.product-info h3 { font-size: 1.2rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.product-info p { font-size: 0.875rem; color: var(--gray-500); line-height: 1.5; margin-bottom: 20px; }
.product-action-btn {
    display: inline-block; text-align: center; background-color: transparent; color: var(--ink);
    border: 1px solid var(--gray-300); padding: 10px 20px; font-size: 0.875rem; font-weight: 600;
    border-radius: 6px; transition: all 0.2s ease; align-self: flex-start;
}
.product-card:hover .product-action-btn { background-color: var(--green); color: var(--white); border-color: var(--green); }

/* ==========================================================================
   6. 行业方案
   ========================================================================== */
.industry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 50px; }
.industry-card {
    position: relative; border-radius: 12px; overflow: hidden; min-height: 220px;
    display: flex; align-items: flex-end; padding: 24px; color: var(--white);
    background-size: cover; background-position: center;
}
.industry-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,24,39,0) 30%, rgba(17,24,39,0.85) 100%); }
.industry-card > * { position: relative; z-index: 1; }
.industry-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; }
.industry-card p { font-size: 0.85rem; color: #e2e8f0; }
.industry-card .arrow { position: absolute; top: 20px; right: 20px; z-index: 1; font-size: 1.2rem; opacity: 0; transform: translateX(-6px); transition: all 0.3s ease; }
.industry-card:hover .arrow { opacity: 1; transform: translateX(0); color: var(--green); }

/* ==========================================================================
   7. 优势 / 特�?   ========================================================================== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; margin-top: 50px; }
.feature-item { text-align: center; padding: 20px; }
.feature-icon { width: 64px; height: 64px; margin: 0 auto 20px auto; background-color: var(--green-soft); color: var(--green); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.feature-item h3 { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.feature-item p { font-size: 0.9rem; color: var(--gray-500); line-height: 1.6; }

/* ==========================================================================
   8. 客户评价
   ========================================================================== */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.testimonial-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; padding: 30px; }
.testimonial-stars { color: var(--green); margin-bottom: 14px; }
.testimonial-card p { font-size: 0.95rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gray-200); display: flex; align-items: center; justify-content: center; color: var(--gray-500); font-weight: 700; }
.testimonial-author .name { font-weight: 700; color: var(--ink); font-size: 0.9rem; }
.testimonial-author .role { font-size: 0.8rem; color: var(--gray-500); }

/* ==========================================================================
   9. 统计�?/ CTA �?   ========================================================================== */
.stats-band { background-color: var(--ink); color: var(--white); padding: 60px var(--container); display: flex; justify-content: space-around; flex-wrap: wrap; gap: 30px; text-align: center; }
.stat-item .num { font-size: 2.6rem; font-weight: 800; color: var(--green); }
.stat-item .label { font-size: 0.95rem; color: var(--gray-400); margin-top: 6px; }

.cta-band { background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 100%); color: var(--white); padding: 70px var(--container); text-align: center; }
.cta-band h2 { font-size: 2rem; font-weight: 700; margin-bottom: 16px; }
.cta-band p { font-size: 1.1rem; color: #cbd5e1; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   10. 页脚
   ========================================================================== */
footer { background-color: var(--ink); color: var(--gray-400); padding: 80px var(--container) 30px var(--container); font-size: 0.875rem; }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 60px; }
.footer-column h4 { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: 24px; position: relative; }
.footer-column h4::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 30px; height: 2px; background-color: var(--green); }
.footer-column ul li { margin-bottom: 12px; }
.footer-column ul li a:hover { color: var(--green); padding-left: 5px; }
.footer-about p { line-height: 1.6; margin-bottom: 20px; }
.footer-socials a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background-color: var(--ink-2); color: var(--white); border-radius: 50%; margin-right: 10px; transition: background-color 0.3s; }
.footer-socials a:hover { background-color: var(--green); }
.footer-bottom { border-top: 1px solid var(--ink-2); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-bottom-links a { margin-left: 25px; }
.footer-bottom-links a:hover { color: var(--green); }

/* ==========================================================================
   11. 通用页面 / 内容
   ========================================================================== */
.page-hero { background: linear-gradient(90deg, rgba(17,24,39,0.9), rgba(17,24,39,0.4)), url('https://images.unsplash.com/photo-1517842645767-c639042777db?q=80&w=1920') center/cover; padding: 90px var(--container); color: var(--white); }
.page-hero h1 { font-size: 2.6rem; font-weight: 700; margin-bottom: 10px; }
.page-hero p { font-size: 1.1rem; color: #cbd5e1; max-width: 640px; }
.page-content { padding: 70px var(--container); }
.page-content h2 { font-size: 1.8rem; color: var(--ink); margin: 30px 0 16px; }
.page-content h3 { font-size: 1.3rem; color: var(--ink); margin: 24px 0 12px; }
.page-content p { color: var(--gray-600); line-height: 1.8; margin-bottom: 16px; }
.page-content ul.bullets { margin: 0 0 16px 0; }
.page-content ul.bullets li { position: relative; padding-left: 24px; margin-bottom: 10px; color: var(--gray-600); line-height: 1.7; }
.page-content ul.bullets li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--green); position: absolute; left: 0; top: 2px; }

/* ==========================================================================
   11b. 服务 / 行业 / 产品 页面模板
   ========================================================================== */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc-card { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 12px; padding: 36px 28px; text-align: center; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.svc-card:hover { transform: translateY(-5px); border-color: var(--green); box-shadow: var(--shadow-md); }
.svc-icon { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.svc-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.svc-card p { font-size: 0.92rem; color: var(--gray-600); line-height: 1.65; margin: 0; }

.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.ind-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.ind-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.ind-thumb { width: 100%; padding-top: 60%; background-size: cover; background-position: center; background-color: var(--gray-100); }
.ind-body { padding: 24px; }
.ind-body h3 { font-size: 1.2rem; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.ind-body p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.65; margin: 0; }

@media (max-width: 1024px) {
    .svc-grid, .ind-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .svc-grid, .ind-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   11c. 古腾堡内容兼容（子页面 the_content 输出，需覆盖区块默认样式）
   ========================================================================== */
/* 服务卡片网格：覆盖 wp-block-columns 默认的 flex 布局 */
.wp-block-columns.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 1024px) { .wp-block-columns.svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .wp-block-columns.svc-grid { grid-template-columns: 1fr; } }

/* 古腾堡按钮品牌绿 */
.wp-block-button.abest-btn-primary .wp-block-button__link { background-color: var(--green); color: #fff; border-radius: 8px; padding: 14px 28px; font-weight: 700; }
.wp-block-button.abest-btn-primary .wp-block-button__link:hover { background-color: var(--green-dark); }

/* 区块小标题/副标题（与首页一致） */

/* 联系页两栏间距 */
.entry-content .contact-cols { gap: 40px; align-items: start; }
.entry-content .contact-cols .wp-block-column > p { color: var(--gray-600); line-height: 2; margin-bottom: 8px; }

/* ==========================================================================
   12. 表单（询�?/ 联系�?   ========================================================================== */
.form-wrap { max-width: 720px; margin: 0 auto; background: var(--white); border-radius: 12px; padding: 40px; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); }
.form-row { display: flex; gap: 20px; flex-wrap: wrap; }
.form-field { flex: 1; min-width: 240px; margin-bottom: 20px; }
.form-field.full { flex: 1 1 100%; }
.form-field label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--gray-700); margin-bottom: 8px; }
.form-field label .req { color: #ef4444; }
.form-field input, .form-field select, .form-field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--gray-300); border-radius: 6px;
    font-size: 0.95rem; font-family: inherit; outline: none; transition: all 0.2s ease; background: var(--white); color: var(--gray-900);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.form-field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--gray-500); margin-top: 4px; }
.form-success { background: var(--green-soft); border: 1px solid var(--green); color: var(--green-dark); padding: 16px 20px; border-radius: 8px; margin-bottom: 24px; font-weight: 600; }
.form-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; }

/* ==========================================================================
   13. WooCommerce 适配
   ========================================================================== */
.woocommerce .container { padding: 0 var(--container); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; }
.product-card.wc { position: relative; }
.product-card.wc .price { color: var(--green-dark); font-weight: 700; font-size: 1.05rem; margin-bottom: 14px; }
.product-card.wc .add_to_cart_button { display: inline-block; background: var(--green); color: #fff; padding: 10px 18px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; margin-right: 8px; }
.product-card.wc .add_to_cart_button:hover { background: var(--green-dark); }
.product-card.wc .quote-link { color: var(--gray-700); font-size: 0.85rem; font-weight: 600; border-bottom: 1px dashed var(--gray-400); }
.product-card.wc .quote-link:hover { color: var(--green); border-color: var(--green); }

/* 商店页列表布局 */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; margin: 0; }
.woocommerce ul.products li.product { background: #fff; border: 1px solid var(--gray-200); border-radius: 8px; overflow: hidden; padding: 0 0 20px; display: flex; flex-direction: column; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1.05rem; padding: 16px 20px 0; color: var(--ink); }
.woocommerce ul.products li.product .price { padding: 8px 20px; color: var(--green-dark); font-weight: 700; }
.woocommerce ul.products li.product a.button { margin: 0 20px; }
.woocommerce ul.products li.product .onsale { background: var(--green); border-radius: 4px; }

.woocommerce div.product .product_title { color: var(--ink); font-size: 2rem; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--green-dark); font-size: 1.4rem; }
.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
    background: var(--green); color: #fff; border-radius: 6px; font-weight: 600;
}
.woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--green-dark); color: #fff; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--green); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--green); }

/* 商品页批量询盘框 */
.quote-box {
    margin-top: 30px; background: var(--gray-50); border: 1px solid var(--gray-200);
    border-left: 4px solid var(--green); border-radius: 8px; padding: 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.quote-box .qb-text h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: 6px; }
.quote-box .qb-text p { font-size: 0.9rem; color: var(--gray-600); margin: 0; }
.quote-box .qb-action { flex-shrink: 0; }

.woocommerce-breadcrumb { padding: 20px var(--container) 0; color: var(--gray-500); font-size: 0.85rem; }
.woocommerce-breadcrumb a { color: var(--gray-600); }

/* 购物�?结算微调 */
.woocommerce-cart-form table.shop_table, .woocommerce table.shop_table { border-radius: 8px; overflow: hidden; }
.woocommerce .quantity .qty { border-radius: 4px; }

/* ==========================================================================
   14. 响应�?   ========================================================================== */
@media (max-width: 1024px) {
    :root { --container: 5%; }
    .top-bar, .search-container { display: none; }
    .main-header-row1 { padding: 15px 5%; }
    .main-header-row2 {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background-color: var(--white); box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding: 80px 20px 30px 20px; flex-direction: column; justify-content: flex-start;
        align-items: flex-start; transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1); z-index: 9999;
    }
    .main-header-row2.active { right: 0; }
    .menu-toggle { display: block; z-index: 10000; }
    .menu-main-menu-container, .menu-main-menu-container > ul { flex-direction: column; width: 100%; height: auto; }
    .menu-main-menu-container > ul > li { width: 100%; height: auto; flex-direction: column; align-items: flex-start; }
    .menu-main-menu-container > ul > li > a { padding: 15px 0; width: 100%; height: auto; border-bottom: 1px solid var(--gray-100); }
    .menu-main-menu-container ul ul.sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: block; width: 100%; background: var(--gray-50); padding-left: 15px; border-top: none; }
    .header-quote-btn { margin-left: 0; margin-top: 20px; align-self: flex-start; }

    .hero-section { justify-content: center; text-align: center; min-height: 500px; padding: 0 5%; }
    .hero-content h1 { font-size: 2.1rem; }
    .hero-content p { font-size: 1rem; }
    .hero-actions { justify-content: center; }
    .process-container { flex-direction: column; }
    .section { padding: 50px 5%; }
    footer { padding: 50px 5% 30px 5%; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom-links a { margin: 0 10px; }
    .stats-band { padding: 40px 5%; }
    .form-wrap { padding: 28px 20px; }
}
@media (max-width: 600px) {
    .hero-content h1 { font-size: 1.8rem; }
    .section-title { font-size: 1.7rem; }
    .cta-band h2 { font-size: 1.5rem; }
}

/* 按钮 */
.abest-btn-primary, .abest-btn-outline {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 15px 32px; border-radius: 6px; font-weight: 700; font-size: 1rem;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.abest-btn-primary { background: var(--green); color: #fff; }
.abest-btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(34,197,94,.35); }
.abest-btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.abest-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.14); transform: translateY(-2px); }

/* ==========================================================================
   15. 古腾堡区块前台样式（首页后台可视化编辑后前台渲染�?   ========================================================================== */
.entry-content { max-width: 1200px; margin: 0 auto; padding: 0 var(--container); }
.entry-content > * + * { margin-top: 70px; }
.entry-content .wp-block-cover.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

.entry-content .abest-hero { min-height: 650px; display: flex; align-items: center; }
.entry-content .abest-hero .wp-block-cover__inner-container { max-width: 660px; text-align: left; }
.entry-content .abest-hero h1 { font-size: 3.4rem; font-weight: 700; line-height: 1.15; margin-bottom: 24px; }
.entry-content .abest-hero p { font-size: 1.2rem; line-height: 1.6; margin-bottom: 36px; }

.entry-content .abest-section-title { font-size: 2.25rem; font-weight: 700; color: var(--ink); margin: 0 0 16px; }
.entry-content .abest-section-subtitle { font-size: 1.125rem; color: var(--gray-500); max-width: 620px; margin: 0 auto 50px; }

.entry-content .wp-block-columns { display: flex; flex-wrap: wrap; gap: 30px; }
.entry-content .wp-block-column { flex: 1 1 0; min-width: 220px; box-sizing: border-box; }
.entry-content .abest-process .wp-block-column,
.entry-content .abest-features .wp-block-column {
    background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 12px; padding: 40px 30px;
}
.entry-content .abest-process .wp-block-column h3,
.entry-content .abest-features .wp-block-column h3 { font-size: 1.25rem; font-weight: 700; color: var(--ink); margin: 0 0 12px; text-align: center; }
.entry-content .abest-process .wp-block-column p,
.entry-content .abest-features .wp-block-column p { font-size: 0.95rem; color: var(--gray-600); line-height: 1.6; text-align: center; margin: 0; }

.entry-content .abest-industry .wp-block-column { padding: 0; }
.entry-content .abest-industry .wp-block-cover { min-height: 220px; display: flex; align-items: flex-end; }
.entry-content .abest-industry .wp-block-cover__inner-container { padding: 24px; }
.entry-content .abest-industry h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 6px; }
.entry-content .abest-industry p { font-size: 0.85rem; margin: 0; }

.entry-content .abest-stats,
.entry-content .abest-cta { width: 100vw; margin-left: calc(50% - 50vw); box-sizing: border-box; }
.entry-content .abest-stats { background: var(--ink); color: #fff; padding: 60px var(--container); }
.entry-content .abest-stats .wp-block-columns { justify-content: space-around; text-align: center; }
.entry-content .abest-stats h3 { font-size: 2.6rem; font-weight: 800; color: var(--green); margin: 0; }
.entry-content .abest-stats p { font-size: 0.95rem; color: var(--gray-400); margin: 6px 0 0; }

.entry-content .abest-testimonials .wp-block-column { background: #fff; border: 1px solid var(--gray-200); border-radius: 12px; padding: 30px; }
.entry-content .abest-testimonials p { font-size: 0.95rem; color: var(--gray-600); line-height: 1.7; margin: 0 0 16px; }
.entry-content .abest-testimonials h3 { font-size: 0.95rem; font-weight: 700; color: var(--ink); margin: 0 0 2px; }

.entry-content .abest-cta { background: linear-gradient(120deg, var(--ink), var(--ink-2)); color: #fff; padding: 70px var(--container); text-align: center; }
.entry-content .abest-cta h2 { font-size: 2rem; font-weight: 700; margin: 0 0 16px; }
.entry-content .abest-cta p { font-size: 1.1rem; color: #cbd5e1; max-width: 600px; margin: 0 auto 30px; }

.entry-content .wp-block-button__link { background: var(--green); color: #fff; border-radius: 6px; font-weight: 600; padding: 15px 32px; }
.entry-content .wp-block-button__link:hover { background: var(--green-dark); }
.entry-content .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }

/* 产品网格（[abest_product_grid] 动态输出） */
.entry-content .products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; }
.entry-content .product-card { background: #fff; border: 1px solid var(--gray-200); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.entry-content .product-image-wrapper { position: relative; width: 100%; padding-top: 75%; background: var(--gray-100); overflow: hidden; }
.entry-content .product-image-wrapper img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.entry-content .product-info { padding: 24px; display: flex; flex-direction: column; justify-content: space-between; flex-grow: 1; }
.entry-content .product-info h3 { font-size: 1.2rem; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.entry-content .product-info .price { color: var(--green-dark); font-weight: 700; margin: 0 0 16px; }
.entry-content .pi-actions { display: flex; gap: 14px; align-items: center; }
.entry-content .product-action-btn { display: inline-block; background: transparent; color: var(--ink); border: 1px solid var(--gray-300); padding: 10px 20px; font-weight: 600; border-radius: 6px; }
.entry-content .product-action-btn:hover { background: var(--green); color: #fff; border-color: var(--green); }
.entry-content .quote-link { color: var(--gray-700); font-weight: 600; border-bottom: 1px dashed var(--gray-400); }
.entry-content .quote-link:hover { color: var(--green); }

@media (max-width: 1024px) {
    .entry-content .abest-hero h1 { font-size: 2.1rem; }
    .entry-content > * + * { margin-top: 50px; }
}
@media (max-width: 768px) {
    .entry-content .wp-block-columns { flex-direction: column; }
    .entry-content .wp-block-column { flex: 1 1 100%; min-width: 100%; }
}
@media (max-width: 600px) {
    .entry-content .abest-hero h1 { font-size: 1.8rem; }
    .entry-content .abest-section-title { font-size: 1.7rem; }
    .entry-content .abest-cta h2 { font-size: 1.5rem; }
}

/* ==========================================================================
   20. Industries megamenu (optional — activates only on .has-mega menu items)
   Enable: WP admin > Appearance > Menus > add CSS class "has-mega" to Industries.
   ========================================================================== */
.nav-menu .has-mega { position: relative; }
.nav-menu .has-mega > a::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-left: 6px;
  font-size: .68em;
  opacity: .8;
  transition: transform .25s ease;
}
.nav-menu .has-mega.is-open > a::after { transform: rotate(180deg); }

.mega-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(980px, 88vw);
  background: linear-gradient(180deg, #122235, #0e1a2c);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(0,0,0,.55);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s cubic-bezier(.2,.7,.2,1), visibility .25s ease;
  z-index: 60;
}
.mega-panel::before {
  content: '';
  position: absolute;
  left: calc(50% - 7px);
  top: -7px;
  width: 14px; height: 14px;
  background: #122235;
  border-left: 1px solid rgba(255,255,255,.11);
  border-top: 1px solid rgba(255,255,255,.11);
  transform: rotate(45deg);
}
@media (hover: hover) {
  .nav-menu .has-mega:hover .mega-panel,
  .nav-menu .has-mega.is-open .mega-panel {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto;
  }
}

.mega-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.mega-intro h3 { margin: 8px 0 10px; color: #fff; font-size: 1.15rem; line-height: 1.3; }
.mega-intro p { margin: 0 0 16px; color: #aebdcc; font-size: .85rem; line-height: 1.65; }
.mega-intro .eyebrow { color: #75e39b; font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.mega-cta {
  display: inline-flex; align-items: center; gap: 8px;
  color: #75e39b; font-weight: 700; font-size: .85rem; text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.mega-cta:hover { border-color: #75e39b; }

.mega-card {
  display: block; padding: 12px; background: #172b40;
  border: 1px solid rgba(255,255,255,.11); border-radius: 12px;
  text-decoration: none; color: #fff;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s ease, background .25s ease;
}
.mega-card:hover { transform: translateY(-3px); border-color: rgba(117,227,155,.6); background: #1c3149; }
.mega-thumb { height: 120px; border-radius: 8px; overflow: hidden; background: #0e1a2c; }
.mega-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.mega-card:hover .mega-thumb img { transform: scale(1.06); }
.mega-meta { padding: 12px 4px 4px; }
.mega-meta h4 { margin: 6px 0 8px; color: #fff; font-size: .95rem; line-height: 1.3; }
.mega-meta ul { list-style: none; margin: 0; padding: 0; color: #b9c6d3; font-size: .78rem; line-height: 1.7; }
.mega-meta ul li::before { content: '\203A'; color: #75e39b; margin-right: 6px; }
.mega-meta .kicker { display: block; margin-bottom: 8px; color: #75e39b; font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

@media (max-width: 1100px) {
  .mega-grid { grid-template-columns: 1fr 1fr; }
  .mega-intro { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .mega-grid { grid-template-columns: 1fr; }
  .mega-panel { left: auto; right: 0; transform: none; width: min(420px, 90vw); }
  .mega-panel::before { display: none; }
  .nav-menu .has-mega.is-open .mega-panel { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
}
@media (max-width: 640px) {
  .nav-menu .has-mega > a::after { display: none; }
  .mega-panel { position: static; width: 100%; margin-top: 8px; display: none; }
  .nav-menu .has-mega.is-open .mega-panel { display: block; opacity: 1; visibility: visible; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .equipment-media::before, .mega-panel, .mega-thumb img, .mega-card, .nav-menu .has-mega > a::after { transition: none; animation: none; }
}


/* Shared template utilities; replaces repeated static inline declarations. */
.footer-column > p, .footer-column > ul { margin-top:15px; }
.footer-column li > i { margin-right:8px; color:var(--green); }
.abest-narrow { max-width:900px; }
.abest-empty-products { text-align:center; color:var(--gray-500); }
.abest-honeypot { display:none !important; }
header.is-scrolled { box-shadow:0 4px 16px rgba(0,0,0,.08); }
body.abest-menu-open { overflow:hidden; }
.abest-post-card { background:#fff; border:1px solid var(--gray-200); border-radius:8px; padding:28px; margin-bottom:24px; }
.abest-post-card h2 { font-size:1.4rem; margin-bottom:8px; }
.abest-post-date { color:var(--gray-500); font-size:.85rem; margin-bottom:12px; }
.abest-post-excerpt { color:var(--gray-600); line-height:1.7; }
.abest-post-card .product-action-btn { margin-top:8px; }
