/* ============================================
   搜同网传媒社区 - 原创样式表
   品牌：搜同网 | 域名：4m6kao.cn
   配色：樱花粉 #E8739A / 深紫 #5B2D8E / 暖金 #D4A843
   ============================================ */

/* ---- Reset & Base ---- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:16px}
body{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;color:#2d2d3a;background:#faf7f9;line-height:1.7}
a{color:#5B2D8E;text-decoration:none;transition:color .25s}
a:hover{color:#E8739A}
img{max-width:100%;height:auto;display:block}
ul,ol{list-style:none}
h1,h2,h3,h4,h5,h6{font-weight:700;line-height:1.3;color:#2d2d3a}

/* ---- Container ---- */
.xh-container{max-width:1200px;margin:0 auto;padding:0 20px}

/* ---- Header ---- */
.xh-header{position:fixed;top:0;left:0;right:0;z-index:1000;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);box-shadow:0 1px 8px rgba(91,45,142,.08);transition:box-shadow .3s}
.xh-nav-wrap{max-width:1200px;margin:0 auto;padding:0 20px;display:flex;align-items:center;justify-content:space-between;height:64px}
.xh-brand{display:flex;align-items:center;gap:10px;font-size:1.25rem;font-weight:800;color:#5B2D8E}
.xh-brand img{border-radius:8px}
.xh-nav-menu{display:flex;gap:6px}
.xh-nav-link{padding:8px 16px;border-radius:20px;font-size:.9rem;font-weight:500;color:#4a4a5a;transition:all .25s}
.xh-nav-link:hover,.xh-nav-link.active{background:linear-gradient(135deg,#E8739A,#5B2D8E);color:#fff}
.xh-nav-toggle{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:6px}
.xh-nav-toggle span{width:24px;height:2px;background:#5B2D8E;border-radius:2px;transition:all .3s}

/* ---- Search Bar ---- */
.xh-search-bar{margin-top:64px;background:linear-gradient(135deg,#f5e6f0,#e8daf5);padding:18px 0}
.xh-search-wrap{display:flex;max-width:600px;margin:0 auto}
.xh-search-input{flex:1;padding:10px 18px;border:2px solid #d4b8e8;border-radius:24px 0 0 24px;font-size:.95rem;outline:none;background:#fff;transition:border-color .25s}
.xh-search-input:focus{border-color:#E8739A}
.xh-search-btn{padding:10px 28px;background:linear-gradient(135deg,#E8739A,#5B2D8E);color:#fff;border:none;border-radius:0 24px 24px 0;font-size:.95rem;cursor:pointer;font-weight:600;transition:opacity .25s}
.xh-search-btn:hover{opacity:.88}
.xh-hot-tags{text-align:center;margin-top:10px;font-size:.82rem;color:#7a6b8a}
.xh-hot-tags a{display:inline-block;margin:0 6px;padding:3px 10px;background:rgba(255,255,255,.7);border-radius:12px;color:#5B2D8E;font-size:.8rem;transition:all .2s}
.xh-hot-tags a:hover{background:#E8739A;color:#fff}

/* ---- Hero ---- */
.xh-hero{position:relative;min-height:520px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.xh-hero-bg{position:absolute;inset:0}
.xh-hero-bg img{width:100%;height:100%;object-fit:cover}
.xh-hero-overlay{position:absolute;inset:0;background:linear-gradient(135deg,rgba(91,45,142,.72),rgba(232,115,154,.55))}
.xh-hero-content{position:relative;z-index:2;text-align:center;max-width:780px;padding:60px 20px}
.xh-hero-content h1{font-size:2.4rem;color:#fff;margin-bottom:18px;text-shadow:0 2px 12px rgba(0,0,0,.25)}
.xh-highlight{font-style:normal;color:#ffd700;font-size:2.8rem}
.xh-hero-desc{color:rgba(255,255,255,.92);font-size:1.05rem;line-height:1.8;margin-bottom:28px}
.xh-hero-btns{display:flex;gap:16px;justify-content:center;flex-wrap:wrap}
.xh-btn-primary{display:inline-block;padding:12px 32px;background:linear-gradient(135deg,#E8739A,#d4527e);color:#fff;border-radius:28px;font-weight:600;font-size:.95rem;transition:transform .25s,box-shadow .25s;box-shadow:0 4px 16px rgba(232,115,154,.35)}
.xh-btn-primary:hover{transform:translateY(-2px);box-shadow:0 6px 24px rgba(232,115,154,.5);color:#fff}
.xh-btn-outline{display:inline-block;padding:12px 32px;border:2px solid rgba(255,255,255,.8);color:#fff;border-radius:28px;font-weight:600;font-size:.95rem;transition:all .25s}
.xh-btn-outline:hover{background:rgba(255,255,255,.15);color:#fff}

/* ---- Stats ---- */
.xh-stats{background:linear-gradient(135deg,#5B2D8E,#3a1a5e);padding:40px 0}
.xh-stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;text-align:center}
.xh-stat-item strong{display:block;font-size:2rem;color:#ffd700;font-weight:800}
.xh-stat-item span{color:rgba(255,255,255,.85);font-size:.88rem;margin-top:4px;display:block}

/* ---- Section ---- */
.xh-section{padding:60px 0}
.xh-section-alt{background:#f3eef8}
.xh-section-header{text-align:center;margin-bottom:40px}
.xh-section-header h2{font-size:1.8rem;color:#5B2D8E;margin-bottom:10px}
.xh-section-header p{color:#6b5c7a;font-size:.95rem;max-width:680px;margin:0 auto}

/* ---- Tabs ---- */
.xh-tab-nav{display:flex;justify-content:center;gap:8px;margin-bottom:30px;flex-wrap:wrap}
.xh-tab-btn{padding:8px 22px;border:2px solid #d4b8e8;background:transparent;border-radius:20px;color:#5B2D8E;font-size:.88rem;cursor:pointer;font-weight:500;transition:all .25s}
.xh-tab-btn.active,.xh-tab-btn:hover{background:linear-gradient(135deg,#E8739A,#5B2D8E);color:#fff;border-color:transparent}
.xh-tab-panel{display:none}
.xh-tab-panel.active{display:block}

/* ---- Video Grid ---- */
.xh-video-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.xh-video-card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 12px rgba(91,45,142,.08);transition:transform .3s,box-shadow .3s}
.xh-video-card:hover{transform:translateY(-4px);box-shadow:0 8px 28px rgba(91,45,142,.15)}
.xh-thumb{position:relative;overflow:hidden;aspect-ratio:16/9;cursor:pointer}
.xh-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.xh-video-card:hover .xh-thumb img{transform:scale(1.06)}
.xh-duration{position:absolute;bottom:8px;right:8px;background:rgba(0,0,0,.72);color:#fff;padding:2px 8px;border-radius:4px;font-size:.75rem}
.xh-play-btn{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:3rem;color:rgba(255,255,255,.9);opacity:0;transition:opacity .3s;text-shadow:0 2px 8px rgba(0,0,0,.4);background:rgba(91,45,142,.2)}
.xh-video-card:hover .xh-play-btn{opacity:1}
.xh-card-body{padding:14px}
.xh-card-body h3{font-size:.88rem;font-weight:600;color:#2d2d3a;margin-bottom:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.4}
.xh-card-meta{display:flex;gap:10px;font-size:.75rem;color:#9a8aaa;flex-wrap:wrap}

/* ---- Feature Grid ---- */
.xh-feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.xh-feature-card{background:#fff;border-radius:14px;padding:30px 22px;text-align:center;box-shadow:0 2px 12px rgba(91,45,142,.06);transition:transform .3s}
.xh-feature-card:hover{transform:translateY(-4px)}
.xh-feature-card h3{font-size:1.05rem;color:#5B2D8E;margin:14px 0 10px}
.xh-feature-card p{font-size:.85rem;color:#6b5c7a;line-height:1.7}
.xh-icon-wrap{width:56px;height:56px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:1.6rem;margin:0 auto}
.xh-icon-pink{background:linear-gradient(135deg,#fce4ec,#f8bbd0);color:#c2185b}
.xh-icon-purple{background:linear-gradient(135deg,#ede7f6,#d1c4e9);color:#5B2D8E}
.xh-icon-gold{background:linear-gradient(135deg,#fff8e1,#ffe082);color:#f57f17}
.xh-icon-teal{background:linear-gradient(135deg,#e0f2f1,#b2dfdb);color:#00695c}

/* ---- AI Showcase ---- */
.xh-ai-showcase{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}
.xh-ai-img{border-radius:14px;overflow:hidden;box-shadow:0 4px 20px rgba(91,45,142,.12)}
.xh-ai-img img{width:100%;display:block}
.xh-ai-text h3{font-size:1.4rem;color:#5B2D8E;margin-bottom:12px}
.xh-ai-text>p{color:#6b5c7a;margin-bottom:18px;font-size:.92rem}
.xh-ai-features{margin-bottom:24px}
.xh-ai-features li{padding:8px 0;border-bottom:1px solid #ede7f6;font-size:.88rem;color:#4a4a5a}
.xh-ai-features li strong{color:#E8739A}

/* ---- Community Grid ---- */
.xh-community-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.xh-community-item{position:relative;border-radius:14px;overflow:hidden;min-height:240px;background-size:cover;background-position:center;cursor:pointer}
.xh-community-overlay{position:absolute;inset:0;background:linear-gradient(180deg,transparent 20%,rgba(91,45,142,.82) 100%);display:flex;flex-direction:column;justify-content:flex-end;padding:22px;transition:background .3s}
.xh-community-item:hover .xh-community-overlay{background:linear-gradient(180deg,transparent 10%,rgba(232,115,154,.85) 100%)}
.xh-community-overlay h3{color:#fff;font-size:1.05rem;margin-bottom:6px}
.xh-community-overlay p{color:rgba(255,255,255,.88);font-size:.82rem;line-height:1.6}

/* ---- Expert Grid ---- */
.xh-expert-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.xh-expert-card{background:#fff;border-radius:14px;padding:28px 20px;text-align:center;box-shadow:0 2px 12px rgba(91,45,142,.06);transition:transform .3s}
.xh-expert-card:hover{transform:translateY(-4px)}
.xh-avatar{width:80px;height:80px;border-radius:50%;overflow:hidden;margin:0 auto 14px;border:3px solid #E8739A;box-shadow:0 2px 12px rgba(232,115,154,.25)}
.xh-avatar img{width:100%;height:100%;object-fit:cover}
.xh-expert-card h4{font-size:1.05rem;color:#2d2d3a;margin-bottom:4px}
.xh-role{display:inline-block;font-size:.78rem;color:#E8739A;background:#fce4ec;padding:2px 12px;border-radius:10px;margin-bottom:10px}
.xh-expert-card p{font-size:.82rem;color:#6b5c7a;line-height:1.7;margin-bottom:14px}
.xh-expert-btns{display:flex;gap:8px;justify-content:center}
.xh-btn-sm{padding:6px 16px;background:linear-gradient(135deg,#E8739A,#5B2D8E);color:#fff;border-radius:16px;font-size:.78rem;font-weight:500;transition:opacity .25s}
.xh-btn-sm:hover{opacity:.85;color:#fff}
.xh-btn-sm-outline{padding:6px 16px;border:1px solid #d4b8e8;color:#5B2D8E;border-radius:16px;font-size:.78rem;font-weight:500;transition:all .25s}
.xh-btn-sm-outline:hover{background:#5B2D8E;color:#fff;border-color:#5B2D8E}

/* ---- Brand Wall ---- */
.xh-brand-wall{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.xh-brand-item{background:#fff;border-radius:10px;padding:22px;text-align:center;font-size:.95rem;font-weight:600;color:#5B2D8E;box-shadow:0 1px 6px rgba(91,45,142,.06);transition:all .25s;border:1px solid #ede7f6}
.xh-brand-item:hover{border-color:#E8739A;color:#E8739A;transform:translateY(-2px)}

/* ---- HowTo ---- */
.xh-howto-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}
.xh-howto-step{background:#fff;border-radius:14px;padding:32px 24px;text-align:center;box-shadow:0 2px 12px rgba(91,45,142,.06);position:relative}
.xh-step-num{font-size:2.4rem;font-weight:900;color:#E8739A;opacity:.2;position:absolute;top:12px;left:20px}
.xh-howto-step h4{font-size:1.05rem;color:#5B2D8E;margin-bottom:10px}
.xh-howto-step p{font-size:.85rem;color:#6b5c7a;line-height:1.7}

/* ---- FAQ ---- */
.xh-faq-list{max-width:800px;margin:0 auto}
.xh-faq-item{background:#fff;border-radius:10px;margin-bottom:10px;overflow:hidden;box-shadow:0 1px 6px rgba(91,45,142,.05)}
.xh-faq-q{padding:16px 20px;display:flex;justify-content:space-between;align-items:center;cursor:pointer;font-weight:600;font-size:.92rem;color:#2d2d3a;transition:background .2s}
.xh-faq-q:hover{background:#f8f4fc}
.xh-arrow{font-size:.7rem;color:#9a8aaa;transition:transform .3s}
.xh-faq-item.open .xh-arrow{transform:rotate(180deg)}
.xh-faq-a{max-height:0;overflow:hidden;transition:max-height .35s ease,padding .35s ease;padding:0 20px}
.xh-faq-item.open .xh-faq-a{max-height:300px;padding:0 20px 16px}
.xh-faq-a p{font-size:.88rem;color:#6b5c7a;line-height:1.8}

/* ---- Reviews ---- */
.xh-review-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.xh-review-card{background:#fff;border-radius:14px;padding:24px;box-shadow:0 2px 12px rgba(91,45,142,.06)}
.xh-stars{color:#D4A843;font-size:1.1rem;margin-bottom:10px;letter-spacing:2px}
.xh-review-card p{font-size:.85rem;color:#4a4a5a;line-height:1.7;margin-bottom:14px;font-style:italic}
.xh-reviewer strong{display:block;font-size:.88rem;color:#2d2d3a}
.xh-reviewer span{font-size:.75rem;color:#9a8aaa}

/* ---- Contact ---- */
.xh-contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px}
.xh-contact-card{background:#fff;border-radius:14px;padding:30px;box-shadow:0 2px 12px rgba(91,45,142,.06)}
.xh-contact-card h4{font-size:1.1rem;color:#5B2D8E;margin-bottom:14px;padding-bottom:10px;border-bottom:2px solid #ede7f6}
.xh-contact-card p{font-size:.88rem;color:#4a4a5a;margin-bottom:8px;line-height:1.6}
.xh-qr-wrap{display:flex;gap:20px;margin-top:16px}
.xh-qr-item{text-align:center}
.xh-qr-item img{width:100px;height:100px;border-radius:8px;border:1px solid #ede7f6}
.xh-qr-item span{display:block;font-size:.75rem;color:#9a8aaa;margin-top:6px}

/* ---- Share Bar ---- */
.xh-share-bar{text-align:center;padding:20px 0}
.xh-share-bar span{font-size:.9rem;color:#6b5c7a;margin-right:10px}
.xh-share-btn{display:inline-block;padding:6px 18px;margin:4px;background:#fff;border:1px solid #d4b8e8;border-radius:16px;font-size:.82rem;color:#5B2D8E;transition:all .25s}
.xh-share-btn:hover{background:#5B2D8E;color:#fff;border-color:#5B2D8E}

/* ---- Footer ---- */
.xh-footer{background:linear-gradient(135deg,#2d1a4e,#1a0e30);color:rgba(255,255,255,.8);padding:50px 0 0}
.xh-footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:30px;padding-bottom:30px;border-bottom:1px solid rgba(255,255,255,.1)}
.xh-footer-brand img{border-radius:10px;margin-bottom:12px}
.xh-footer-brand p{font-size:.82rem;line-height:1.7;color:rgba(255,255,255,.65)}
.xh-footer-col h5{font-size:.92rem;color:#E8739A;margin-bottom:14px;font-weight:600}
.xh-footer-col a{display:block;font-size:.82rem;color:rgba(255,255,255,.65);margin-bottom:8px;transition:color .2s}
.xh-footer-col a:hover{color:#E8739A}
.xh-footer-qr{display:flex;gap:10px}
.xh-footer-qr img{border-radius:6px;border:1px solid rgba(255,255,255,.15)}
.xh-footer-bottom{text-align:center;padding:20px 0;font-size:.78rem;color:rgba(255,255,255,.45)}

/* ---- Back to Top ---- */
.xh-back-top{position:fixed;bottom:30px;right:30px;width:44px;height:44px;background:linear-gradient(135deg,#E8739A,#5B2D8E);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.1rem;cursor:pointer;opacity:0;transform:translateY(20px);transition:all .3s;box-shadow:0 4px 16px rgba(91,45,142,.3);z-index:999}
.xh-back-top.visible{opacity:1;transform:translateY(0)}
.xh-back-top:hover{transform:translateY(-3px)}

/* ---- Breadcrumb (subpages) ---- */
.xh-breadcrumb{padding:12px 0;font-size:.82rem;color:#9a8aaa;margin-top:64px;background:#f8f4fc}
.xh-breadcrumb a{color:#5B2D8E}
.xh-breadcrumb a:hover{color:#E8739A}

/* ---- Subpage Content ---- */
.xh-page-hero{background:linear-gradient(135deg,#5B2D8E,#E8739A);padding:60px 0;text-align:center;margin-top:64px}
.xh-page-hero h1{color:#fff;font-size:2rem;margin-bottom:10px}
.xh-page-hero p{color:rgba(255,255,255,.85);font-size:.95rem}
.xh-content{padding:40px 0}
.xh-content h2{color:#5B2D8E;font-size:1.5rem;margin:30px 0 14px;padding-bottom:8px;border-bottom:2px solid #ede7f6}
.xh-content h3{color:#E8739A;font-size:1.15rem;margin:20px 0 10px}
.xh-content p{font-size:.92rem;color:#4a4a5a;line-height:1.8;margin-bottom:14px}
.xh-content ul{margin:10px 0 20px 20px}
.xh-content ul li{font-size:.88rem;color:#4a4a5a;margin-bottom:6px;position:relative;padding-left:16px}
.xh-content ul li::before{content:"";position:absolute;left:0;top:10px;width:6px;height:6px;background:#E8739A;border-radius:50%}

/* ---- Article Cards (subpages) ---- */
.xh-article-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:20px 0}
.xh-article-card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 12px rgba(91,45,142,.06);transition:transform .3s}
.xh-article-card:hover{transform:translateY(-3px)}
.xh-article-card img{width:100%;aspect-ratio:16/9;object-fit:cover}
.xh-article-card .xh-article-body{padding:16px}
.xh-article-card h3{font-size:.92rem;color:#2d2d3a;margin-bottom:6px}
.xh-article-card p{font-size:.8rem;color:#6b5c7a;line-height:1.6}

/* ---- Responsive ---- */
@media(max-width:1024px){
  .xh-video-grid,.xh-feature-grid,.xh-community-grid,.xh-expert-grid{grid-template-columns:repeat(2,1fr)}
  .xh-stats-grid{grid-template-columns:repeat(2,1fr)}
  .xh-ai-showcase{grid-template-columns:1fr}
  .xh-footer-grid{grid-template-columns:1fr 1fr}
  .xh-brand-wall{grid-template-columns:repeat(2,1fr)}
  .xh-article-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:768px){
  .xh-nav-menu{display:none;position:absolute;top:64px;left:0;right:0;background:#fff;flex-direction:column;padding:16px;box-shadow:0 4px 16px rgba(0,0,0,.1);gap:4px}
  .xh-nav-menu.open{display:flex}
  .xh-nav-toggle{display:flex}
  .xh-hero-content h1{font-size:1.6rem}
  .xh-highlight{font-size:1.9rem}
  .xh-section-header h2{font-size:1.4rem}
  .xh-video-grid,.xh-feature-grid,.xh-community-grid,.xh-expert-grid,.xh-review-grid{grid-template-columns:1fr}
  .xh-stats-grid{grid-template-columns:repeat(2,1fr)}
  .xh-howto-grid{grid-template-columns:1fr}
  .xh-contact-grid{grid-template-columns:1fr}
  .xh-footer-grid{grid-template-columns:1fr}
  .xh-brand-wall{grid-template-columns:repeat(2,1fr)}
  .xh-article-grid{grid-template-columns:1fr}
  .xh-hero{min-height:400px}
  .xh-hero-content{padding:40px 16px}
}
@media(max-width:480px){
  .xh-stats-grid{grid-template-columns:1fr 1fr}
  .xh-stat-item strong{font-size:1.5rem}
  .xh-brand-wall{grid-template-columns:1fr 1fr}
}
