/*
Theme Name: Piaoxuan
Theme URI: http://piaoxuanwang.com
Author: piaoxuanwang
Description: 票选网专业投票服务主题，全新独立设计
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: piaoxuan
*/

:root{
  --brand:#7C3AED;
  --brand-dark:#5B21B6;
  --brand-light:#EDE9FE;
  --accent:#F59E0B;
  --accent-dark:#D97706;
  --ink:#1E1B2E;
  --muted:#6B7280;
  --line:#E5E7EB;
  --bg:#FFFFFF;
  --bg-soft:#F8F7FB;
  --radius:14px;
  --shadow:0 6px 24px rgba(30,27,46,.08);
}

*{margin:0;padding:0;box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
  color:var(--ink);
  background:var(--bg-soft);
  line-height:1.75;
  font-size:16px;
}
a{color:var(--brand);text-decoration:none;}
a:hover{color:var(--brand-dark);}
img{max-width:100%;height:auto;display:block;}
ul,ol{list-style:none;}
.container{max-width:1140px;margin:0 auto;padding:0 20px;}
.clearfix::after{content:"";display:block;clear:both;}

/* ---------- Header ---------- */
.site-header{
  background:var(--bg);
  border-bottom:1px solid var(--line);
  position:sticky;top:0;z-index:100;
}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:66px;}
.brand{display:flex;align-items:center;gap:10px;}
.brand .logo-mark{
  width:38px;height:38px;border-radius:10px;
  background:linear-gradient(135deg,var(--brand),var(--brand-dark));
  color:#fff;font-weight:700;font-size:20px;
  display:flex;align-items:center;justify-content:center;
}
.brand .logo-text{font-size:22px;font-weight:700;color:var(--ink);}
.brand .logo-text span{color:var(--brand);}
.main-nav ul{display:flex;gap:4px;}
.main-nav a{
  display:block;padding:8px 14px;border-radius:8px;
  color:var(--ink);font-size:15px;font-weight:500;
}
.main-nav a:hover,.main-nav .current-menu-item a{background:var(--brand-light);color:var(--brand);}
.nav-toggle{display:none;font-size:26px;background:none;border:none;color:var(--ink);cursor:pointer;}

/* ---------- Hero ---------- */
.hero{
  background:linear-gradient(135deg,#7C3AED 0%,#5B21B6 55%,#4C1D95 100%);
  color:#fff;padding:72px 0 64px;position:relative;overflow:hidden;
}
.hero::after{
  content:"";position:absolute;right:-80px;top:-80px;width:340px;height:340px;
  background:rgba(255,255,255,.08);border-radius:50%;
}
.hero-inner{position:relative;z-index:2;}
.hero .badge{
  display:inline-block;background:rgba(255,255,255,.18);
  padding:5px 14px;border-radius:999px;font-size:13px;margin-bottom:18px;
}
.hero h1{font-size:40px;line-height:1.25;font-weight:800;margin-bottom:16px;}
.hero h1 .hl{color:#FDE68A;}
.hero p{font-size:18px;color:#EDE9FE;max-width:640px;margin-bottom:28px;}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;}
.btn{
  display:inline-block;padding:13px 28px;border-radius:10px;font-size:16px;font-weight:600;
  transition:.2s;
}
.btn-primary{background:var(--accent);color:#78350F;}
.btn-primary:hover{background:var(--accent-dark);color:#fff;}
.btn-ghost{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.35);}
.btn-ghost:hover{background:rgba(255,255,255,.26);color:#fff;}

/* ---------- Section ---------- */
.section{padding:56px 0;}
.section-head{text-align:center;margin-bottom:36px;}
.section-head h2{font-size:30px;font-weight:800;margin-bottom:10px;}
.section-head .sub{color:var(--muted);font-size:16px;}

/* ---------- Service cards ---------- */
.service-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;}
.service-card{
  background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);
  padding:28px 22px;box-shadow:var(--shadow);transition:.25s;position:relative;overflow:hidden;
}
.service-card:hover{transform:translateY(-6px);border-color:var(--brand);}
.service-card .card-ico{
  width:52px;height:52px;border-radius:14px;margin-bottom:16px;
  display:flex;align-items:center;justify-content:center;font-size:26px;
}
.ico-a{background:#EDE9FE;color:#7C3AED;}
.ico-b{background:#DBEAFE;color:#2563EB;}
.ico-c{background:#FEF3C7;color:#D97706;}
.ico-d{background:#D1FAE5;color:#059669;}
.service-card h3{font-size:19px;font-weight:700;margin-bottom:8px;}
.service-card p{color:var(--muted);font-size:14.5px;line-height:1.7;}
.service-card .more{display:inline-block;margin-top:14px;font-size:14px;font-weight:600;}

/* ---------- Article list ---------- */
.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
.post-card{
  background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;box-shadow:var(--shadow);transition:.25s;display:flex;flex-direction:column;
}
.post-card:hover{transform:translateY(-4px);}
.post-card .thumb{height:170px;overflow:hidden;background:var(--brand-light);}
.post-card .thumb img{width:100%;height:100%;object-fit:cover;}
.post-card .body{padding:18px 20px 20px;display:flex;flex-direction:column;flex:1;}
.post-card .cat{
  display:inline-block;font-size:12px;color:var(--brand);
  background:var(--brand-light);padding:2px 10px;border-radius:999px;margin-bottom:10px;align-self:flex-start;
}
.post-card h3{font-size:17px;font-weight:700;line-height:1.5;margin-bottom:8px;}
.post-card h3 a{color:var(--ink);}
.post-card h3 a:hover{color:var(--brand);}
.post-card .excerpt{color:var(--muted);font-size:14px;line-height:1.7;flex:1;}
.post-card .meta{font-size:12.5px;color:#9CA3AF;margin-top:12px;}

/* ---------- Breadcrumb ---------- */
.crumb{background:var(--bg);border-bottom:1px solid var(--line);padding:14px 0;font-size:14px;color:var(--muted);}
.crumb a{color:var(--muted);}
.crumb a:hover{color:var(--brand);}
.crumb .sep{margin:0 8px;color:#D1D5DB;}

/* ---------- Category page ---------- */
.cat-header{
  background:linear-gradient(135deg,var(--brand),var(--brand-dark));color:#fff;padding:44px 0;
}
.cat-header h1{font-size:32px;font-weight:800;margin-bottom:8px;}
.cat-header .desc{color:#EDE9FE;font-size:16px;max-width:720px;}

/* ---------- Single ---------- */
.article-wrap{display:grid;grid-template-columns:1fr 300px;gap:36px;align-items:start;padding:44px 0;}
.article-main{background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);padding:36px 40px;box-shadow:var(--shadow);}
.article-main h1{font-size:30px;font-weight:800;line-height:1.4;margin-bottom:16px;}
.article-meta{color:#9CA3AF;font-size:13px;margin-bottom:24px;padding-bottom:18px;border-bottom:1px solid var(--line);}
.article-content{font-size:18px;line-height:1.9;color:#374151;}
.article-cover{border-radius:12px;overflow:hidden;margin-bottom:24px;}
.article-cover img{width:100%;height:auto;}
.article-content h2{font-size:23px;font-weight:700;margin:28px 0 14px;color:var(--ink);}
.article-content h3{font-size:20px;font-weight:700;margin:22px 0 12px;color:var(--ink);}
.article-content p{margin-bottom:16px;}
.article-content img{border-radius:12px;margin:20px auto;box-shadow:var(--shadow);}
.article-content ul,.article-content ol{margin:0 0 16px 22px;}
.article-content ul li{list-style:disc;margin-bottom:8px;}
.article-content ol li{list-style:decimal;margin-bottom:8px;}
.article-content blockquote{
  border-left:4px solid var(--brand);background:var(--brand-light);
  padding:14px 18px;border-radius:0 10px 10px 0;margin:20px 0;color:var(--brand-dark);
}
.article-content a{border-bottom:1px solid var(--brand);}
.article-content a:hover{border-bottom-color:var(--brand-dark);}

/* ---------- Sidebar ---------- */
.sidebar .widget{
  background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);
  padding:22px;margin-bottom:24px;box-shadow:var(--shadow);
}
.sidebar .widget h4{font-size:17px;font-weight:700;margin-bottom:14px;padding-bottom:10px;border-bottom:2px solid var(--brand-light);}
.sidebar .widget ul li{margin-bottom:10px;font-size:14.5px;}
.sidebar .widget ul li a{color:var(--ink);}
.sidebar .widget ul li a:hover{color:var(--brand);}

/* ---------- Page ---------- */
.page-wrap{background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);padding:40px;box-shadow:var(--shadow);}
.page-wrap h1{font-size:30px;font-weight:800;margin-bottom:20px;}
.page-content{font-size:17px;line-height:1.9;color:#374151;}
.page-content h2{font-size:22px;margin:24px 0 12px;}
.page-content p{margin-bottom:14px;}
.page-content ul li{list-style:disc;margin:0 0 8px 20px;}

/* ---------- Quote / 合作方式 ---------- */
.quote-sec{background:var(--bg);}
.quote-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
.quote-card{
  background:var(--bg-soft);border:1px solid var(--line);border-radius:var(--radius);
  padding:26px 22px;box-shadow:var(--shadow);
}
.quote-card.featured{border-color:var(--accent);background:#FFFBEB;}
.quote-card .q-tag{
  display:inline-block;font-size:12px;font-weight:700;color:var(--brand);
  background:var(--brand-light);padding:3px 10px;border-radius:999px;margin-bottom:12px;
}
.quote-card.featured .q-tag{color:#92400E;background:#FDE68A;}
.quote-card h3{font-size:18px;font-weight:700;margin-bottom:8px;}
.quote-card p{color:var(--muted);font-size:14.5px;line-height:1.7;}
.quote-cta{
  margin-top:32px;text-align:center;background:var(--brand-light);
  border-radius:var(--radius);padding:28px 20px;
}
.quote-cta p{font-size:16px;color:var(--ink);margin-bottom:16px;}
.quote-cta b{color:var(--brand-dark);}

.article-cta{
  margin-top:32px;padding:22px 24px;border-radius:12px;
  background:linear-gradient(135deg,#EDE9FE,#FFF7ED);border:1px solid #DDD6FE;
}
.article-cta strong{display:block;font-size:17px;margin-bottom:8px;}
.article-cta p{margin:0 0 12px;color:#4B5563;font-size:15px;}
.article-cta a{font-weight:700;}

.px-floatbar{
  position:fixed;left:0;right:0;bottom:0;z-index:999;
  background:#171522;color:#fff;box-shadow:0 -8px 24px rgba(0,0,0,.18);
}
.px-floatbar-inner{
  max-width:1140px;margin:0 auto;padding:10px 20px 12px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
}
.px-floatbar-copy strong{display:block;font-size:15px;}
.px-floatbar-copy span{font-size:13px;color:#C4B5FD;}
.px-floatbar-actions{display:flex;gap:10px;flex-shrink:0;}
.px-copywx,.px-quote{
  display:inline-block;padding:10px 16px;border-radius:8px;font-size:14px;font-weight:700;border:0;cursor:pointer;
}
.px-copywx{background:var(--accent);color:#78350F;}
.px-quote{background:#fff;color:var(--brand-dark);}
body{padding-bottom:72px;}

/* ---------- Contact ---------- */
.contact-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:28px 0;}
.contact-card{background:var(--bg-soft);border:1px solid var(--line);border-radius:var(--radius);padding:24px;text-align:center;}
.contact-card .k{font-size:15px;color:var(--muted);margin-bottom:8px;}
.contact-card .v{font-size:20px;font-weight:700;color:var(--brand);}

/* ---------- Footer ---------- */
.site-footer{background:#171522;color:#C4B5FD;padding:48px 0 28px;margin-top:0;}
.footer-inner{display:grid;grid-template-columns:2fr 1fr 1fr;gap:36px;margin-bottom:32px;}
.site-footer h4{color:#fff;font-size:16px;margin-bottom:16px;}
.site-footer p{font-size:14px;line-height:1.8;color:#9CA3AF;}
.site-footer ul li{margin-bottom:10px;}
.site-footer ul li a{color:#C4B5FD;font-size:14px;}
.site-footer ul li a:hover{color:#fff;}
.footer-bottom{border-top:1px solid #2E2939;padding-top:22px;text-align:center;font-size:13px;color:#6B7280;}

/* ---------- Pagination ---------- */
.pagination{text-align:center;margin-top:36px;}
.pagination .page-numbers{
  display:inline-block;padding:8px 14px;margin:0 4px;border-radius:8px;
  background:var(--bg);border:1px solid var(--line);color:var(--ink);font-size:14px;
}
.pagination .page-numbers.current{background:var(--brand);color:#fff;border-color:var(--brand);}

/* ---------- Related ---------- */
.related{margin-top:36px;padding-top:28px;border-top:1px solid var(--line);}
.related h4{font-size:19px;font-weight:700;margin-bottom:18px;}
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.related-card{background:var(--bg-soft);border:1px solid var(--line);border-radius:10px;padding:16px;}
.related-card a{color:var(--ink);font-size:14.5px;font-weight:600;line-height:1.5;}

/* ---------- Responsive ---------- */
@media(max-width:960px){
  .service-grid{grid-template-columns:repeat(2,1fr);}
  .post-grid{grid-template-columns:repeat(2,1fr);}
  .article-wrap{grid-template-columns:1fr;}
  .sidebar{display:none;}
  .footer-inner{grid-template-columns:1fr;}
}
@media(max-width:640px){
  .hero h1{font-size:30px;}
  .service-grid{grid-template-columns:1fr;}
  .post-grid{grid-template-columns:1fr;}
  .article-main{padding:24px 20px;}
  .article-content{font-size:17px;}
  .contact-cards{grid-template-columns:1fr;}
  .quote-grid{grid-template-columns:1fr;}
  .px-floatbar-inner{flex-direction:column;align-items:stretch;text-align:center;}
  .px-floatbar-actions{justify-content:center;}
  .nav-toggle{display:block;}
  .main-nav{display:none;position:absolute;top:66px;left:0;right:0;background:var(--bg);border-bottom:1px solid var(--line);}
  .main-nav.open{display:block;}
  .main-nav ul{flex-direction:column;padding:10px 20px;}
}

