/* PetiLives 主题主样式 */
:root {
	--pl-blue: #0a4a8f;
	--pl-blue-dark: #083a72;
	--pl-blue-deep: #062c57;
	--pl-orange: #e8650d;
	--pl-text: #333;
	--pl-gray: #f4f6f9;
	--pl-border: #e3e8ef;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
	font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
	color: var(--pl-text);
	font-size: 15px;
	line-height: 1.75;
	background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pl-blue); text-decoration: none; }
a:hover { color: var(--pl-orange); }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 顶栏 */
.topbar { background: var(--pl-blue-deep); color: #c6d6ea; font-size: 13px; }
.topbar a { color: #c6d6ea; }
.topbar-inner { display: flex; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar-right strong { color: #ffd089; }

/* 页头 */
.site-header { background: #fff; border-bottom: 1px solid var(--pl-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; gap: 14px; }
.logo-text { display: flex; align-items: center; gap: 12px; }
.logo-mark {
	width: 56px; height: 56px; border-radius: 8px;
	background: linear-gradient(135deg, var(--pl-blue), #1668c4);
	color: #fff; font-size: 26px; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
	font-family: Georgia, serif;
}
.logo-name strong { display: block; font-size: 22px; color: #15202e; letter-spacing: 1px; }
.logo-name em { font-style: normal; font-size: 12px; color: #8a97a8; letter-spacing: 3px; }
.header-contact { display: flex; align-items: center; gap: 22px; }
.header-phone { text-align: right; }
.phone-label { display: block; font-size: 12px; color: #8a97a8; }
.phone-number { font-size: 22px; font-weight: 700; color: var(--pl-orange); font-family: Arial, sans-serif; }

/* 搜索框 */
.search-form { display: flex; }
.search-field { border: 1px solid var(--pl-border); padding: 8px 12px; width: 190px; outline: none; border-radius: 3px 0 0 3px; font-size: 13px; }
.search-submit { background: var(--pl-blue); color: #fff; border: 0; padding: 0 16px; cursor: pointer; border-radius: 0 3px 3px 0; }
.search-submit:hover { background: var(--pl-orange); }

/* 导航 */
.main-navigation { background: var(--pl-blue); }
.main-navigation .menu { display: flex; flex-wrap: wrap; }
.main-navigation .menu > li { position: relative; }
.main-navigation .menu > li > a { display: block; color: #fff; padding: 15px 30px; font-size: 16px; transition: background 0.2s; }
.main-navigation .menu > li > a:hover,
.main-navigation .current-menu-item > a { background: var(--pl-orange); }
.main-navigation .sub-menu {
	display: none; position: absolute; top: 100%; left: 0; z-index: 50;
	background: var(--pl-blue-dark); min-width: 200px;
}
.main-navigation li:hover > .sub-menu { display: block; }
.main-navigation .sub-menu a { display: block; color: #dbe7f5; padding: 11px 18px; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.main-navigation .sub-menu a:hover { background: var(--pl-orange); color: #fff; }
.menu-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,0.5); color: #fff; padding: 9px 18px; margin: 9px 0; cursor: pointer; border-radius: 3px; }

/* 幻灯片 */
.hero-slider { position: relative; height: 560px; overflow: hidden; background: var(--pl-blue-deep); }
.hero-slider .slide {
	position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s;
	background-size: cover; background-position: center; display: flex; align-items: center;
}
.hero-slider .slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,24,48,0.72), rgba(4,24,48,0.15)); }
.hero-slider .slide.is-active { opacity: 1; z-index: 2; }
.slide-caption { position: relative; z-index: 3; color: #fff; width: 100%; }
.slide-caption h2 { font-size: 44px; letter-spacing: 2px; margin-bottom: 14px; text-shadow: 0 3px 12px rgba(0,0,0,0.4); }
.slide-caption p { font-size: 19px; color: #d8e4f2; margin-bottom: 28px; }
.slider-dots { position: absolute; bottom: 24px; left: 0; right: 0; z-index: 5; display: flex; justify-content: center; gap: 10px; }
.slider-dots button { width: 34px; height: 4px; border: 0; background: rgba(255,255,255,0.4); cursor: pointer; }
.slider-dots button.is-active { background: var(--pl-orange); }

/* 按钮 */
.btn-primary {
	display: inline-block; background: var(--pl-orange); color: #fff !important;
	padding: 11px 34px; border-radius: 3px; font-size: 15px; transition: background 0.2s;
}
.btn-primary:hover { background: #c9550a; }
.btn-outline { display: inline-block; border: 1px solid var(--pl-blue); color: var(--pl-blue); padding: 9px 30px; border-radius: 3px; }
.btn-outline:hover { background: var(--pl-blue); color: #fff; }
.btn-outline.small { padding: 5px 18px; font-size: 13px; }

/* 区块 */
.section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: 30px; color: #15202e; letter-spacing: 1px; }
.section-head p { color: #9aa7b6; letter-spacing: 4px; font-size: 13px; margin-top: 6px; text-transform: uppercase; }
.section-head.left { text-align: left; }
.section-head.light h2 { color: #fff; }
.section-head.light p { color: rgba(255,255,255,0.55); }

/* 产品 */
.section-products { background: var(--pl-gray); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { background: #fff; border: 1px solid var(--pl-border); transition: box-shadow 0.25s, transform 0.25s; }
.product-card:hover { box-shadow: 0 12px 30px rgba(10,74,143,0.14); transform: translateY(-4px); }
.card-thumb { overflow: hidden; aspect-ratio: 3 / 2; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .card-thumb img { transform: scale(1.06); }
.product-card .card-body { padding: 18px 20px 22px; }
.product-card h3 { font-size: 17px; color: #15202e; margin-bottom: 8px; }
.product-card p { font-size: 13px; color: #76828f; min-height: 60px; }
.product-card .more { color: var(--pl-orange); font-size: 13px; }

/* 关于 */
.about-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.about-media img { border-radius: 6px; box-shadow: 14px 14px 0 rgba(10,74,143,0.1); }
.about-text p { color: #5a6673; margin-bottom: 14px; text-indent: 2em; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 26px 0; }
.about-stats strong { font-size: 30px; color: var(--pl-blue); font-family: Arial, sans-serif; }
.about-stats strong span { font-size: 14px; color: var(--pl-orange); }
.about-stats em { display: block; font-style: normal; font-size: 12px; color: #8a97a8; }

/* 优势 */
.section-strength { background: linear-gradient(135deg, var(--pl-blue-deep), var(--pl-blue)); }
.strength-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.strength-item { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); padding: 28px 22px; border-radius: 4px; }
.strength-item .num { font-size: 30px; color: var(--pl-orange); font-family: Georgia, serif; font-weight: 700; }
.strength-item h3 { color: #fff; margin: 10px 0 8px; font-size: 18px; }
.strength-item p { color: #b9c9dd; font-size: 13px; }

/* 新闻 */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border: 1px solid var(--pl-border); transition: box-shadow 0.25s; }
.news-card:hover { box-shadow: 0 12px 30px rgba(10,74,143,0.12); }
.news-card .card-body { padding: 18px 20px 22px; }
.news-card time { font-size: 12px; color: #9aa7b6; }
.news-card h3 { font-size: 16px; margin: 8px 0; color: #15202e; line-height: 1.5; }
.news-card p { font-size: 13px; color: #76828f; }
.section-more { text-align: center; margin-top: 34px; }

/* CTA */
.section-cta { background: var(--pl-gray); }
.cta-inner { text-align: center; }
.cta-inner h2 { font-size: 26px; color: #15202e; margin-bottom: 8px; }
.cta-inner p { color: #76828f; margin-bottom: 20px; }

/* 内页布局 */
.site-main.container { padding-top: 44px; padding-bottom: 60px; }
.with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 36px; }
.page-header { border-bottom: 2px solid var(--pl-blue); padding-bottom: 12px; margin-bottom: 26px; }
.page-title { font-size: 24px; color: #15202e; }
.post-item { display: grid; grid-template-columns: 260px 1fr; gap: 22px; padding: 22px 0; border-bottom: 1px dashed var(--pl-border); }
.post-item .entry-title { font-size: 18px; margin-bottom: 6px; }
.entry-meta { font-size: 12px; color: #9aa7b6; display: flex; gap: 14px; margin-bottom: 8px; }
.single-post .entry-title { font-size: 26px; margin-bottom: 10px; }
.entry-content { margin-top: 18px; }
.entry-content p { margin-bottom: 14px; }
.entry-content h2, .entry-content h3 { margin: 22px 0 10px; color: #15202e; }
.post-navigation { display: flex; justify-content: space-between; gap: 20px; margin: 28px 0; font-size: 14px; }
.pagination { margin-top: 28px; text-align: center; }
.page-numbers { display: inline-block; padding: 6px 13px; border: 1px solid var(--pl-border); margin: 0 3px; border-radius: 3px; }
.page-numbers.current { background: var(--pl-blue); color: #fff; border-color: var(--pl-blue); }

/* 小工具 */
.widget { background: var(--pl-gray); padding: 20px; margin-bottom: 22px; border-radius: 4px; }
.widget-title { font-size: 16px; color: var(--pl-blue); border-left: 4px solid var(--pl-orange); padding-left: 10px; margin-bottom: 14px; }
.widget ul li { padding: 6px 0; border-bottom: 1px dashed var(--pl-border); font-size: 14px; }

/* 评论 */
.comments-area { margin-top: 40px; }
.comments-title { font-size: 20px; margin-bottom: 18px; }
.comment-list .comment { padding: 14px 0; border-bottom: 1px dashed var(--pl-border); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; border: 1px solid var(--pl-border); padding: 9px 12px; border-radius: 3px; margin-bottom: 10px;
}
.comment-form .submit { background: var(--pl-blue); color: #fff; border: 0; padding: 10px 28px; cursor: pointer; border-radius: 3px; }

/* 404 */
.error-404 { text-align: center; padding: 50px 0 60px; }
.error-code { font-size: 100px; color: var(--pl-blue); font-family: Arial, sans-serif; line-height: 1; }
.error-404 h2 { margin: 12px 0; }
.error-404 .search-form { justify-content: center; margin: 22px 0; }

/* 页脚 */
.site-footer { background: var(--pl-blue-deep); color: #a9bcd3; margin-top: 0; }
.footer-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding-top: 48px; padding-bottom: 36px; }
.site-footer .widget { background: transparent; padding: 0; }
.site-footer .widget-title { color: #fff; border-left-color: var(--pl-orange); }
.footer-links li { padding: 5px 0; font-size: 14px; }
.footer-links a { color: #a9bcd3; }
.footer-links a:hover { color: #fff; }
.site-info { border-top: 1px solid rgba(255,255,255,0.1); padding: 16px 0; font-size: 13px; text-align: center; }
.site-info a { color: #a9bcd3; }
.site-info a:hover { color: #fff; }

/* 响应式 */
@media (max-width: 992px) {
	.product-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
	.strength-grid { grid-template-columns: repeat(2, 1fr); }
	.about-inner { grid-template-columns: 1fr; }
	.with-sidebar { grid-template-columns: 1fr; }
	.hero-slider { height: 420px; }
	.slide-caption h2 { font-size: 32px; }
}
@media (max-width: 640px) {
	.product-grid, .news-grid, .footer-widgets { grid-template-columns: 1fr; }
	.menu-toggle { display: block; }
	.main-navigation .menu { display: none; flex-direction: column; }
	.main-navigation .menu.is-open { display: flex; }
	.main-navigation .menu > li > a { padding: 12px 18px; border-top: 1px solid rgba(255,255,255,0.08); }
	.hero-slider { height: 320px; }
	.slide-caption h2 { font-size: 24px; }
	.post-item { grid-template-columns: 1fr; }
	.header-search { display: none; }
}
