/*
Theme Name: Clover OPC Site
Author: clover-opc
Description: WordPress-first starter theme for local service and business websites. Four layout styles: portal, showcase, marketing, culture.
Version: 0.2.0
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: clover-opc
*/

/* ===== 基础层：所有版式共用。颜色与个别结构由 assets/styles/<style>.css 覆盖 ===== */
:root { --opc-ink:#172026; --opc-muted:#607078; --opc-paper:#f6f8f7; --opc-card:#fff; --opc-brand:#126b5b; --opc-dark:#0b443a; --opc-accent:#f0a64d; --opc-line:#dce6e2; --opc-gutter:max(16px, calc((100% - 1120px) / 2)); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; color: var(--opc-ink); background: var(--opc-paper); font-family: "Segoe UI", "Microsoft YaHei", sans-serif; line-height: 1.65; }
a { color: var(--opc-brand); }
.opc-wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

/* ===== 顶栏（仅门户型输出） ===== */
.opc-topbar { background:#38393b; color:#d9dbdd; font-size:13px; }
.opc-topbar__inner { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:34px; }
.opc-topbar__hello { margin:0; }
.opc-topbar__links { display:flex; gap:0; margin:0; padding:0; list-style:none; }
.opc-topbar__links li { position:relative; padding:0 12px; }
.opc-topbar__links li + li::before { content:""; position:absolute; left:0; top:50%; width:1px; height:12px; margin-top:-6px; background:#5c5e61; }
.opc-topbar__links a { color:#d9dbdd; text-decoration:none; }
.opc-topbar__links a:hover { color:#fff; }

/* ===== 站点头部 ===== */
.opc-header { background: var(--opc-card); }
.opc-header__inner { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:18px 0; }
.opc-brandbox { min-width:0; }
.opc-brand { display:flex; flex-direction:column; gap:2px; color:var(--opc-dark); text-decoration:none; }
.opc-brand__name { font-size:1.35rem; font-weight:800; line-height:1.25; }
.opc-brand__tag { font-size:.8rem; font-weight:400; color:var(--opc-muted); }

.opc-hotline { display:flex; flex-direction:column; align-items:flex-end; line-height:1.2; }
.opc-hotline__label { font-size:12px; color:var(--opc-muted); }
.opc-hotline__num { font-size:26px; font-weight:800; color:var(--opc-accent); text-decoration:none; letter-spacing:.02em; font-variant-numeric:tabular-nums; }
.opc-hotline__hours { font-size:12px; color:var(--opc-muted); }

.opc-header__contact { display:flex; flex-direction:column; align-items:flex-end; line-height:1.25; }
.opc-header__label { font-size:12px; color:var(--opc-muted); }
.opc-header__phone { font-size:22px; font-weight:800; text-decoration:none; color:var(--opc-brand); font-variant-numeric:tabular-nums; }
.opc-header__cta { display:inline-flex; align-items:center; height:44px; padding:0 22px; border-radius:6px; background:var(--opc-accent); color:#fff; font-weight:700; text-decoration:none; white-space:nowrap; }

/* ===== 导航 ===== */
.opc-navbar { background:var(--opc-brand); }
.opc-navrow { border-top:1px solid var(--opc-line); }
.opc-menu { display:flex; flex-wrap:wrap; gap:0; list-style:none; margin:0; padding:0; }
.opc-menu > li { position:relative; }
.opc-menu a { display:flex; flex-direction:column; justify-content:center; gap:1px; padding:14px 20px; text-decoration:none; white-space:nowrap; }
.opc-menu__en { font-size:11px; font-weight:400; letter-spacing:.06em; text-transform:uppercase; opacity:.62; }
.opc-menu-toggle { display:none; align-items:center; gap:8px; min-height:44px; padding:0 14px; border:1px solid var(--opc-line); border-radius:8px; background:#fff; color:var(--opc-ink); font:inherit; font-size:14px; cursor:pointer; }
.opc-menu-toggle__bar { position:relative; display:block; width:18px; height:2px; background:currentColor; }
.opc-menu-toggle__bar::before, .opc-menu-toggle__bar::after { content:""; position:absolute; left:0; width:18px; height:2px; background:currentColor; }
.opc-menu-toggle__bar::before { top:-6px; }
.opc-menu-toggle__bar::after { top:6px; }

/* ===== 版块 ===== */
.opc-hero { padding:80px var(--opc-gutter) 68px; background:linear-gradient(135deg,#e7f2ed,#fff9ef); }
.opc-kicker { color:var(--opc-brand); font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.opc-hero h1 { max-width:860px; margin:12px 0 18px; font-size:clamp(2rem,5vw,3.2rem); line-height:1.2; }
.opc-lead { max-width:760px; color:var(--opc-muted); font-size:1.15rem; }
.opc-points { color:var(--opc-dark); font-size:.95rem; font-weight:600; margin-top:24px; }
.opc-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; }
.opc-button { display:inline-block; padding:12px 18px; border-radius:10px; color:#fff; background:var(--opc-brand); font-weight:700; text-decoration:none; }
.opc-button.alt { color:var(--opc-dark); background:#fff; border:1px solid var(--opc-brand); }
.opc-section { padding:64px var(--opc-gutter); }
.opc-section > .opc-wrap { width:100%; }
.opc-section.alt { background:var(--opc-card); }
.opc-section h2 { margin-top:0; font-size:clamp(1.6rem,3vw,2.4rem); line-height:1.2; }
.opc-section h3 { margin:32px 0 14px; font-size:1.2rem; }
.opc-card h3 { margin:0 0 6px; }
.opc-card p { margin:8px 0 0; }
.opc-tags { color:var(--opc-muted); font-size:.85rem; }
.opc-note { color:var(--opc-muted); font-size:.95rem; }
.opc-hero .wp-block-image { max-width:520px; margin:28px 0 0; }
.wp-block-image img { border-radius:14px; }
.wp-element-caption { color:var(--opc-muted); font-size:.85rem; }
.opc-section .wp-block-list { padding-left:1.4em; }
.opc-section .wp-block-list li { margin-bottom:8px; }
.wp-block-details { padding:14px 0; border-bottom:1px solid var(--opc-line); }
.wp-block-details summary { cursor:pointer; font-weight:700; }
.wp-block-details p { color:var(--opc-muted); margin:10px 0 0; }
.opc-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.wp-block-columns { display:flex; gap:18px; margin-bottom:18px; }
.wp-block-column { flex:1; min-width:0; }
.wp-block-button__link { display:inline-block; background:var(--opc-brand); color:white; border:2px solid var(--opc-brand); border-radius:10px; padding:12px 18px; font-weight:700; text-decoration:none; }
.wp-block-button.is-style-outline .wp-block-button__link { background:transparent; color:var(--opc-dark); }
.wp-block-buttons { display:flex; flex-wrap:wrap; gap:12px; }
.wp-block-gallery { display:flex; flex-wrap:wrap; gap:12px; }
img { max-width:100%; height:auto; }
.custom-logo { max-width:220px; max-height:70px; width:auto; }
.opc-skip { position:absolute; left:-10000px; }
.opc-skip:focus { left:16px; top:8px; background:white; padding:8px; z-index:10; }
pre { white-space:pre-wrap; overflow-wrap:anywhere; }
:focus-visible { outline:3px solid var(--opc-accent); outline-offset:4px; }
.opc-grid.two { grid-template-columns:repeat(2,1fr); }
.opc-card { padding:24px; background:var(--opc-card); border:1px solid var(--opc-line); border-radius:16px; box-shadow:0 8px 24px rgba(25,52,45,.05); }
.opc-section.alt .opc-card { background:var(--opc-paper); }
.opc-price { color:var(--opc-dark); font-size:1.5rem; font-weight:800; }
.opc-muted { color:var(--opc-muted); }
.opc-list { padding-left:20px; }

/* ===== 页脚 ===== */
.opc-footer { padding:36px 0 28px; color:var(--opc-muted); border-top:1px solid var(--opc-line); }
.opc-footer__cols { display:grid; grid-template-columns:1.4fr 1fr 1.2fr; gap:32px; }
.opc-footer__title { margin:0 0 12px; font-size:15px; font-weight:700; color:var(--opc-ink); }
.opc-footer__desc { margin:0; font-size:13px; line-height:1.7; }
.opc-footer__list, .opc-footer__menu { margin:0; padding:0; list-style:none; font-size:13px; line-height:1.9; }
.opc-footer__menu { display:flex; flex-wrap:wrap; gap:0 16px; }
.opc-footer__list a { color:inherit; text-decoration:none; }
.opc-footer__bottom { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; margin-top:28px; padding-top:16px; border-top:1px solid var(--opc-line); font-size:12.5px; }
.opc-footer__simple { text-align:center; }
.opc-footer__brand { margin:0 0 4px; font-size:15px; font-weight:700; color:var(--opc-ink); }
.opc-footer__simple .opc-footer__list { display:flex; flex-wrap:wrap; justify-content:center; gap:0 20px; margin:12px 0; }
.opc-footer__copy { margin:0; font-size:12.5px; }
.opc-beian { display:block; margin-top:6px; font-size:.9rem; }
.opc-beian a { color:var(--opc-muted); margin-right:12px; }
.alignwide { width:min(1120px,calc(100% - 32px)); margin-left:auto; margin-right:auto; }

/* ===== 移动端 ===== */
@media (max-width:900px) {
	.opc-menu-toggle { display:inline-flex; }
	.opc-topbar__inner { min-height:auto; padding:6px 0; }
	.opc-topbar__hello { display:none; }
	.opc-topbar__links { margin-left:auto; }
	.opc-header__inner { flex-wrap:wrap; gap:12px; padding:14px 0; }
	.opc-brand__name { font-size:1.15rem; }
	.opc-hotline__num { font-size:22px; }
	.opc-header__phone { font-size:19px; }
	.opc-navbar, .opc-navrow { border-top:1px solid var(--opc-line); }
	.opc-navbar .opc-menu, .opc-navrow .opc-menu { display:none; flex-direction:column; gap:0; padding:4px 0 10px; }
	.opc-navbar.is-open .opc-menu, .opc-navrow.is-open .opc-menu { display:flex; }
	.opc-menu a { padding:12px 0; border-bottom:1px solid rgba(0,0,0,.06); }
	.opc-footer__cols { grid-template-columns:1fr; gap:22px; }
}
@media (max-width:760px) {
	.opc-hero{padding-top:52px;}
	.opc-grid,.opc-grid.two{grid-template-columns:1fr;}
	.wp-block-columns{flex-direction:column;}
	.opc-section{padding-top:46px;padding-bottom:46px;}
}
