/*
Theme Name: PP Aurora 极光渐变
Theme URI: https://example.com/pp-aurora
Author: PP Theme Studio
Author URI: https://example.com
Description: 面向 PP 酸洗槽厂家的亮底渐变 SaaS 风 WordPress 主题。白底之上铺开蓝紫粉极光光斑,玻璃拟态浮卡、渐变文字标题与服务套餐三卡,把工业设备卖出互联网产品的清爽体验,适合面向年轻采购群体、注重线上转化的现代化厂家。
Version: 1.0.0
Requires at least: 5.9
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: pp-aurora
Tags: light, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
  --bg: #fbfbfe;
  --ink: #1d1b31;
  --dim: #6b6a80;
  --violet: #6d5ae8;
  --cyan: #0ea5e9;
  --pink: #ec6aa8;
  --line: #e7e6f2;
  --glass: rgba(255, 255, 255, 0.66);
  --glass-line: rgba(255, 255, 255, 0.9);
  --r: 20px;
  --shadow: 0 16px 44px rgba(70, 60, 150, 0.12);
  --grad: linear-gradient(96deg, var(--cyan) 0%, var(--violet) 55%, var(--pink) 100%);
  --container: 1160px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ===== Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background:
    radial-gradient(680px 420px at 12% 4%, rgba(125, 211, 252, 0.4) 0%, transparent 60%),
    radial-gradient(720px 460px at 88% 12%, rgba(196, 181, 253, 0.42) 0%, transparent 60%),
    radial-gradient(600px 420px at 55% 92%, rgba(249, 168, 212, 0.3) 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--pink); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.32; font-weight: 800; }
table { border-collapse: collapse; width: 100%; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
::selection { background: rgba(109, 90, 232, 0.25); }

.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--r);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: all 0.24s ease;
}
.btn:hover { border-color: var(--violet); color: var(--violet); transform: translateY(-2px); }
.btn-grad { background: var(--grad); border: none; color: #fff; box-shadow: 0 10px 26px rgba(109, 90, 232, 0.35); }
.btn-grad:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(109, 90, 232, 0.45); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 251, 254, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 24px; }
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding .custom-logo { max-height: 44px; width: auto; }
.brand-mark {
  width: 42px; height: 42px; flex: none;
  border-radius: 13px;
  background: var(--grad);
  color: #fff;
  font-weight: 900; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(109, 90, 232, 0.35);
}
.site-title { font-size: 20px; font-weight: 800; }
.site-title a { color: var(--ink); }
.site-desc { font-size: 11.5px; color: var(--dim); letter-spacing: 1px; }

.nav-toggle-input { display: none; }
.nav-toggle-label {
  display: none;
  width: 42px; height: 42px;
  cursor: pointer;
  flex-direction: column; justify-content: center; gap: 6px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.nav-toggle-label span { display: block; height: 2px; border-radius: 2px; background: var(--violet); }

.site-nav ul { display: flex; gap: 4px; }
.site-nav li { position: relative; }
.site-nav a {
  display: block;
  padding: 9px 16px;
  margin: 16px 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: #37354e;
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a { background: rgba(109, 90, 232, 0.1); color: var(--violet); }
.site-nav .sub-menu {
  position: absolute; top: 100%; left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  z-index: 99;
}
.site-nav li:hover > .sub-menu { display: block; }
.site-nav .sub-menu a { margin: 0; padding: 10px 14px; border-radius: 10px; font-size: 14px; }

/* ===== Hero ===== */
.hero { text-align: center; padding: 88px 0 64px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dim);
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(70, 60, 150, 0.08);
}
.hero-chip b { color: var(--violet); }
.hero h1 { font-size: 52px; line-height: 1.2; max-width: 820px; margin: 0 auto 18px; letter-spacing: 0.5px; }
.hero-sub { max-width: 620px; margin: 0 auto 34px; color: var(--dim); font-size: 17px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 54px; }

.hero-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 940px; margin: 0 auto; }
.hcard { padding: 26px 24px; text-align: left; transition: transform 0.28s ease; }
.hcard:nth-child(1) { transform: rotate(-1.6deg); }
.hcard:nth-child(3) { transform: rotate(1.6deg); }
.hcard:hover { transform: rotate(0) translateY(-6px); }
.hcard-ico {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.hcard h3 { font-size: 17px; margin-bottom: 6px; }
.hcard p { font-size: 13.5px; color: var(--dim); }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.sec-pill {
  display: inline-block;
  background: rgba(109, 90, 232, 0.1);
  color: var(--violet);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 18px;
  margin-bottom: 14px;
}
.section-head h2 { font-size: 36px; margin-bottom: 12px; }
.section-head p { color: var(--dim); font-size: 15.5px; }

/* ===== Products ===== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.p-card { padding: 30px 28px; display: flex; flex-direction: column; transition: transform 0.26s ease; }
.p-card:hover { transform: translateY(-8px); }
.p-ico {
  width: 56px; height: 56px;
  border-radius: 18px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.p-ico svg { width: 32px; height: 32px; }
.p-card h3 { font-size: 19px; margin-bottom: 8px; }
.p-card h3 a { color: var(--ink); }
.p-card h3 a:hover { color: var(--violet); }
.p-card p { font-size: 14px; color: var(--dim); flex: 1; }
.p-more { margin-top: 16px; font-size: 14px; font-weight: 700; }

/* ===== Plans(服务套餐) ===== */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.plan { padding: 36px 32px; text-align: center; display: flex; flex-direction: column; position: relative; }
.plan-hot { border: 2px solid transparent; background:
  linear-gradient(var(--glass), var(--glass)) padding-box,
  var(--grad) border-box; }
.plan-tag {
  position: absolute; top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 5px 18px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan h3 { font-size: 20px; margin-bottom: 6px; }
.plan-price { font-size: 15px; color: var(--dim); margin-bottom: 20px; }
.plan-price b { display: block; font-size: 30px; font-weight: 900; color: var(--ink); }
.plan ul { text-align: left; flex: 1; margin-bottom: 24px; }
.plan li { padding: 8px 0 8px 28px; position: relative; font-size: 14px; color: #47455e; border-bottom: 1px dashed var(--line); }
.plan li:last-child { border-bottom: none; }
.plan li::before {
  content: "✓";
  position: absolute; left: 0; top: 8px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.14);
  color: var(--cyan);
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ===== Feature rows ===== */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 64px; }
.frow:last-child { margin-bottom: 0; }
.frow:nth-child(even) .frow-media { order: 2; }
.frow-media { padding: 36px; display: flex; justify-content: center; }
.frow-media svg { width: 100%; max-width: 360px; height: auto; }
.frow-copy .sec-pill { margin-bottom: 12px; }
.frow-copy h3 { font-size: 27px; margin-bottom: 12px; }
.frow-copy p { color: var(--dim); font-size: 15px; margin-bottom: 12px; }
.frow-points li { padding: 6px 0 6px 26px; position: relative; font-size: 14.5px; color: #47455e; }
.frow-points li::before { content: "→"; position: absolute; left: 0; color: var(--pink); font-weight: 800; }

/* ===== Stats ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { padding: 30px 20px; text-align: center; }
.stat b { display: block; font-size: 40px; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.15; }
.stat span { font-size: 13.5px; color: var(--dim); }

/* ===== News ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { padding: 26px; display: flex; flex-direction: column; transition: transform 0.24s ease; }
.news-card:hover { transform: translateY(-6px); }
.news-date { align-self: flex-start; font-size: 12.5px; font-weight: 700; color: var(--violet); background: rgba(109, 90, 232, 0.1); border-radius: 999px; padding: 4px 14px; }
.news-card h3 { font-size: 17.5px; margin: 14px 0 8px; line-height: 1.5; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a:hover { color: var(--violet); }
.news-card p { font-size: 13.5px; color: var(--dim); flex: 1; }
.news-more { margin-top: 14px; font-size: 14px; font-weight: 700; }

/* ===== CTA ===== */
.cta-aurora {
  border-radius: 28px;
  background: var(--grad);
  color: #fff;
  padding: 60px 56px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(109, 90, 232, 0.35);
}
.cta-aurora h2 { color: #fff; font-size: 32px; margin-bottom: 10px; }
.cta-aurora p { color: rgba(255, 255, 255, 0.85); max-width: 520px; margin: 0 auto 30px; font-size: 15px; }
.cta-aurora .cta-phone { display: block; font-size: 27px; font-weight: 900; letter-spacing: 1px; margin-bottom: 24px; }
.cta-aurora .btn { background: #fff; border: none; color: var(--violet); font-weight: 800; }
.cta-aurora .btn:hover { transform: translateY(-2px); color: var(--pink); }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(10px); font-size: 14px; color: var(--dim); margin-top: 84px; }
.footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 42px; padding: 56px 0 44px; }
.footer-col h3 { font-size: 13px; font-weight: 800; letter-spacing: 2px; color: var(--ink); margin-bottom: 18px; text-transform: uppercase; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--dim); }
.footer-col a:hover { color: var(--violet); }
.footer-col p { margin-bottom: 10px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand strong { color: var(--ink); font-size: 18px; font-weight: 800; }
.footer-contact li b { color: var(--ink); font-weight: 700; margin-right: 8px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 16px 0; font-size: 13px; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ===== Inner pages ===== */
.page-hero { text-align: center; padding: 60px 0 48px; }
.page-hero h1 { font-size: 36px; }
.breadcrumbs { margin-top: 10px; font-size: 13px; color: var(--dim); }
.breadcrumbs a { color: var(--violet); }

.layout { display: grid; grid-template-columns: 1fr 310px; gap: 42px; padding: 20px 0 70px; }
.layout-full { padding: 20px 0 70px; }
.main-col { min-width: 0; }

.entry-card {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--r);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 28px 30px;
  margin-bottom: 24px;
  transition: transform 0.22s ease;
}
.entry-card:hover { transform: translateY(-4px); }
.entry-card h2 { font-size: 21px; margin-bottom: 8px; }
.entry-card h2 a { color: var(--ink); }
.entry-card h2 a:hover { color: var(--violet); }
.entry-meta { font-size: 13px; color: var(--dim); margin-bottom: 10px; }
.entry-meta span { margin-right: 16px; }
.entry-excerpt { color: var(--dim); font-size: 14.5px; }
.entry-thumb { margin-bottom: 16px; border-radius: 14px; overflow: hidden; }

.entry-content { font-size: 16px; }
.entry-content h2, .entry-content h3 { margin: 1.6em 0 0.7em; }
.entry-content h2 { font-size: 25px; }
.entry-content h2::after { content: ""; display: block; width: 52px; height: 4px; border-radius: 4px; background: var(--grad); margin-top: 10px; }
.entry-content h3 { font-size: 20px; }
.entry-content p { margin-bottom: 1.1em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em 1.6em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content blockquote {
  background: rgba(109, 90, 232, 0.07);
  border-left: 4px solid var(--violet);
  border-radius: 0 14px 14px 0;
  padding: 16px 22px;
  margin: 1.4em 0;
  color: #47455e;
}
.entry-content table th, .entry-content table td { border: 1px solid var(--line); padding: 10px 14px; }
.entry-content table th { background: rgba(109, 90, 232, 0.08); }
.entry-content a { text-decoration: underline; }
.entry-content img { border-radius: 14px; }
.single-header { text-align: left; margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.single-header h1 { font-size: 30px; margin-bottom: 8px; }
.post-nav { display: flex; justify-content: space-between; gap: 18px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; }

/* Sidebar */
.sidebar .widget {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--r);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 26px;
  margin-bottom: 24px;
}
.sidebar .widget-title, .sidebar .widget h2 { font-size: 16px; margin-bottom: 16px; }
.sidebar .widget ul li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.sidebar .widget ul li:last-child { border-bottom: none; }
.sidebar-cta {
  border-radius: var(--r);
  background: var(--grad);
  color: #fff;
  padding: 30px 26px;
  margin-bottom: 24px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(109, 90, 232, 0.35);
}
.sidebar-cta h3 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.sidebar-cta p { font-size: 13px; color: rgba(255, 255, 255, 0.85); margin-bottom: 12px; }
.sidebar-cta strong { display: block; font-size: 22px; font-weight: 900; margin-bottom: 16px; }
.sidebar-cta .btn-grad { background: #fff; color: var(--violet); box-shadow: none; }
.sidebar-cta .btn-grad:hover { color: var(--pink); }

/* Search form */
.search-form { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.search-form:focus-within { border-color: var(--violet); }
.search-form .search-field { flex: 1; min-width: 0; padding: 11px 18px; border: none; outline: none; background: transparent; }
.search-form .search-submit {
  margin: 4px;
  padding: 8px 20px;
  border: none;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-block;
  min-width: 42px;
  padding: 9px 14px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--grad); border-color: transparent; color: #fff; }

/* Comments */
.comments-area { margin-top: 46px; }
.comments-area > h2 { font-size: 21px; margin-bottom: 20px; }
.comment-list > li { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 16px; padding: 18px; margin-bottom: 16px; }
.comment-list .children { margin: 14px 0 0 24px; }
.comment-meta { font-size: 13px; color: var(--dim); margin-bottom: 8px; }
.comment-meta b { color: var(--violet); }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  outline: none;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--violet); }

/* 404 */
.error-page { text-align: center; padding: 96px 20px; }
.error-code {
  font-size: 120px; font-weight: 900; line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-page h1 { font-size: 27px; margin: 16px 0 10px; }
.error-page p { color: var(--dim); margin-bottom: 30px; }
.error-page .search-form { max-width: 430px; margin: 0 auto 28px; }

/* WP core */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12.5px; color: var(--dim); text-align: center; padding: 8px 0; }
.sticky { outline: 2px solid var(--violet); outline-offset: 3px; }
.bypostauthor { display: block; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-cards, .product-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .plan-hot { order: -1; }
  .frow { grid-template-columns: 1fr; gap: 30px; }
  .frow:nth-child(even) .frow-media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle-label { display: flex; }
  .header-cta { display: none; }
  .site-nav {
    position: absolute; top: 100%; left: 12px; right: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
  }
  .nav-toggle-input:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a { margin: 0; border-radius: 12px; }
  .site-nav .sub-menu { position: static; display: block; box-shadow: none; border: none; padding-left: 14px; }
  .hero { padding: 60px 0 48px; }
  .hero h1 { font-size: 36px; }
  .cta-aurora { padding: 42px 30px; }
}
@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .hero h1 { font-size: 29px; }
  .section-head h2 { font-size: 27px; }
  .hero-cards, .product-grid, .news-grid, .stats { grid-template-columns: 1fr; }
  .hcard, .hcard:nth-child(1), .hcard:nth-child(3) { transform: none; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
}
