/* ============================================
   糖心 原创样式表
   品牌色系：糖心粉 #E8456B / 暖橙 #FF7E5F / 深夜蓝 #1A1A2E
   ============================================ */

/* --- Reset & Base --- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:16px}
body{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","WenQuanYi Micro Hei",sans-serif;color:#2D2D3A;background:#F8F0F4;line-height:1.7}
a{color:#E8456B;text-decoration:none;transition:color .3s}
a:hover{color:#FF7E5F}
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:#1A1A2E}

/* --- Layout --- */
.tx-container{max-width:1200px;margin:0 auto;padding:0 20px}
.tx-section{padding:60px 0}
.tx-section-alt{background:#fff}
.tx-section-dark{background:#1A1A2E;color:#fff}
.tx-section-dark h2,.tx-section-dark h3,.tx-section-dark h4{color:#fff}
.tx-section-dark p{color:#ccc}

/* --- Header & Nav --- */
.tx-header{background:#1A1A2E;position:sticky;top:0;z-index:1000;box-shadow:0 2px 20px rgba(0,0,0,.15)}
.tx-header-inner{display:flex;align-items:center;justify-content:space-between;height:68px}
.tx-logo{display:flex;align-items:center;gap:10px}
.tx-logo img{height:42px;width:auto}
.tx-logo span{font-size:1.25rem;font-weight:700;color:#fff;white-space:nowrap}
.tx-nav{display:flex;align-items:center;gap:6px}
.tx-nav a{color:#ddd;padding:8px 14px;border-radius:6px;font-size:.9rem;transition:all .3s}
.tx-nav a:hover,.tx-nav a.active{color:#fff;background:linear-gradient(135deg,#E8456B,#FF7E5F)}

/* --- Search Bar --- */
.tx-search-bar{background:rgba(232,69,107,.08);padding:12px 0}
.tx-search-wrap{display:flex;max-width:640px;margin:0 auto;gap:0}
.tx-search-wrap input{flex:1;padding:10px 18px;border:2px solid #E8456B;border-right:none;border-radius:25px 0 0 25px;font-size:.95rem;outline:none;background:#fff;color:#2D2D3A}
.tx-search-wrap input:focus{border-color:#FF7E5F;box-shadow:0 0 8px rgba(232,69,107,.2)}
.tx-search-wrap button{padding:10px 28px;background:linear-gradient(135deg,#E8456B,#FF7E5F);color:#fff;border:none;border-radius:0 25px 25px 0;font-size:.95rem;cursor:pointer;transition:opacity .3s}
.tx-search-wrap button:hover{opacity:.85}

/* --- Hero Banner --- */
.tx-hero{position:relative;height:520px;overflow:hidden;display:flex;align-items:center;justify-content:center;text-align:center}
.tx-hero-bg{position:absolute;inset:0;background-size:cover;background-position:center;filter:brightness(.45)}
.tx-hero-content{position:relative;z-index:2;color:#fff;max-width:700px;padding:0 20px}
.tx-hero h1{font-size:2.8rem;margin-bottom:16px;text-shadow:0 2px 12px rgba(0,0,0,.4)}
.tx-hero h1 span{color:#FF7E5F}
.tx-hero p{font-size:1.15rem;margin-bottom:28px;opacity:.92;text-shadow:0 1px 6px rgba(0,0,0,.3)}
.tx-hero-btn{display:inline-block;padding:14px 40px;background:linear-gradient(135deg,#E8456B,#FF7E5F);color:#fff;border-radius:30px;font-size:1.05rem;font-weight:600;transition:transform .3s,box-shadow .3s}
.tx-hero-btn:hover{transform:translateY(-2px);box-shadow:0 8px 25px rgba(232,69,107,.4);color:#fff}

/* --- Section Titles --- */
.tx-stitle{text-align:center;margin-bottom:45px}
.tx-stitle h2{font-size:2rem;margin-bottom:10px}
.tx-stitle h2 span{color:#E8456B}
.tx-stitle p{color:#8A8A9A;font-size:1rem;max-width:600px;margin:0 auto}
.tx-stitle-line{width:60px;height:3px;background:linear-gradient(90deg,#E8456B,#FF7E5F);margin:12px auto 0;border-radius:2px}

/* --- Video Grid --- */
.tx-vgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.tx-vcard{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 4px 18px rgba(0,0,0,.06);transition:transform .3s,box-shadow .3s}
.tx-vcard:hover{transform:translateY(-5px);box-shadow:0 12px 35px rgba(232,69,107,.12)}
.tx-vcard-thumb{position:relative;padding-top:56.25%;overflow:hidden}
.tx-vcard-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .4s}
.tx-vcard:hover .tx-vcard-thumb img{transform:scale(1.06)}
.tx-vcard-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.35);opacity:0;transition:opacity .3s}
.tx-vcard:hover .tx-vcard-play{opacity:1}
.tx-vcard-play svg{width:52px;height:52px;fill:#fff;filter:drop-shadow(0 2px 8px rgba(0,0,0,.3))}
.tx-vcard-info{padding:14px 16px}
.tx-vcard-info h3{font-size:.95rem;margin-bottom:6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tx-vcard-meta{display:flex;gap:12px;color:#8A8A9A;font-size:.8rem}
.tx-vcard-meta span{display:flex;align-items:center;gap:3px}
.tx-vcard-tag{display:inline-block;padding:2px 8px;background:rgba(232,69,107,.1);color:#E8456B;border-radius:4px;font-size:.75rem;margin-top:6px}

/* --- Service Cards --- */
.tx-srv-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.tx-srv-card{background:#fff;border-radius:14px;padding:32px 26px;text-align:center;box-shadow:0 4px 18px rgba(0,0,0,.05);transition:transform .3s}
.tx-srv-card:hover{transform:translateY(-4px)}
.tx-srv-card .tx-srv-icon{width:72px;height:72px;margin:0 auto 18px;background:linear-gradient(135deg,#E8456B,#FF7E5F);border-radius:50%;display:flex;align-items:center;justify-content:center}
.tx-srv-card .tx-srv-icon svg{width:36px;height:36px;fill:#fff}
.tx-srv-card h3{font-size:1.15rem;margin-bottom:10px}
.tx-srv-card p{color:#8A8A9A;font-size:.9rem;line-height:1.6}

/* --- Expert Cards --- */
.tx-expert-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.tx-expert-card{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 4px 18px rgba(0,0,0,.06);text-align:center;transition:transform .3s}
.tx-expert-card:hover{transform:translateY(-4px)}
.tx-expert-card img{width:100%;aspect-ratio:1;object-fit:cover}
.tx-expert-card-info{padding:18px 16px}
.tx-expert-card-info h4{font-size:1.05rem;margin-bottom:4px}
.tx-expert-card-info .tx-expert-role{color:#E8456B;font-size:.85rem;margin-bottom:8px}
.tx-expert-card-info p{color:#8A8A9A;font-size:.82rem;line-height:1.5}
.tx-expert-btns{display:flex;gap:8px;justify-content:center;margin-top:12px}
.tx-expert-btns a{padding:6px 14px;border-radius:20px;font-size:.8rem;border:1px solid #E8456B;color:#E8456B;transition:all .3s}
.tx-expert-btns a:hover{background:#E8456B;color:#fff}

/* --- Partner Logos --- */
.tx-partner-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:30px;align-items:center}
.tx-partner-grid .tx-partner-item{width:140px;height:70px;background:#fff;border-radius:10px;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 10px rgba(0,0,0,.05);padding:12px;opacity:.7;transition:opacity .3s}
.tx-partner-grid .tx-partner-item:hover{opacity:1}

/* --- How-To Steps --- */
.tx-howto-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;counter-reset:step}
.tx-howto-step{text-align:center;padding:24px 18px;position:relative}
.tx-howto-step::before{counter-increment:step;content:counter(step);display:block;width:48px;height:48px;line-height:48px;background:linear-gradient(135deg,#E8456B,#FF7E5F);color:#fff;border-radius:50%;font-size:1.3rem;font-weight:700;margin:0 auto 14px}
.tx-howto-step h4{font-size:1rem;margin-bottom:8px}
.tx-howto-step p{color:#8A8A9A;font-size:.88rem}

/* --- FAQ --- */
.tx-faq-list{max-width:800px;margin:0 auto}
.tx-faq-item{border-bottom:1px solid #eee;padding:18px 0}
.tx-faq-q{font-weight:600;font-size:1rem;cursor:pointer;display:flex;justify-content:space-between;align-items:center;color:#1A1A2E}
.tx-faq-q::after{content:"+";font-size:1.4rem;color:#E8456B;transition:transform .3s}
.tx-faq-item.active .tx-faq-q::after{transform:rotate(45deg)}
.tx-faq-a{max-height:0;overflow:hidden;transition:max-height .4s ease;color:#666;font-size:.92rem;line-height:1.7}
.tx-faq-item.active .tx-faq-a{max-height:300px;padding-top:12px}

/* --- Reviews --- */
.tx-review-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.tx-review-card{background:#fff;border-radius:14px;padding:26px;box-shadow:0 4px 18px rgba(0,0,0,.05)}
.tx-review-stars{color:#FFD700;font-size:1rem;margin-bottom:10px}
.tx-review-card p{color:#555;font-size:.92rem;line-height:1.7;margin-bottom:14px;font-style:italic}
.tx-review-author{display:flex;align-items:center;gap:10px}
.tx-review-avatar{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#E8456B,#FF7E5F);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:.9rem}
.tx-review-name{font-weight:600;font-size:.88rem}
.tx-review-date{color:#aaa;font-size:.78rem}

/* --- Contact --- */
.tx-contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start}
.tx-contact-info h3{font-size:1.3rem;margin-bottom:18px}
.tx-contact-item{display:flex;gap:12px;margin-bottom:16px;align-items:flex-start}
.tx-contact-item .tx-ci-icon{width:40px;height:40px;min-width:40px;background:linear-gradient(135deg,#E8456B,#FF7E5F);border-radius:10px;display:flex;align-items:center;justify-content:center}
.tx-contact-item .tx-ci-icon svg{width:20px;height:20px;fill:#fff}
.tx-contact-item .tx-ci-text h5{font-size:.95rem;margin-bottom:2px}
.tx-contact-item .tx-ci-text p{color:#8A8A9A;font-size:.88rem}
.tx-contact-qr{display:flex;gap:24px}
.tx-contact-qr .tx-qr-item{text-align:center}
.tx-contact-qr .tx-qr-item img{width:140px;height:140px;border-radius:10px;margin-bottom:8px}
.tx-contact-qr .tx-qr-item span{font-size:.82rem;color:#8A8A9A}

/* --- Footer --- */
.tx-footer{background:#111;color:#aaa;padding:40px 0 20px}
.tx-footer-inner{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:30px;margin-bottom:30px}
.tx-footer h4{color:#fff;font-size:1rem;margin-bottom:14px}
.tx-footer p{font-size:.85rem;line-height:1.7}
.tx-footer a{color:#aaa;font-size:.85rem;display:block;margin-bottom:8px}
.tx-footer a:hover{color:#E8456B}
.tx-footer-logo{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.tx-footer-logo img{height:36px}
.tx-footer-logo span{color:#fff;font-weight:700;font-size:1.1rem}
.tx-footer-bottom{border-top:1px solid #333;padding-top:18px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px}
.tx-footer-bottom p{font-size:.82rem}
.tx-footer-share{display:flex;gap:10px}
.tx-footer-share a{width:34px;height:34px;border-radius:50%;background:#333;display:flex;align-items:center;justify-content:center;transition:background .3s}
.tx-footer-share a:hover{background:#E8456B}
.tx-footer-share a svg{width:16px;height:16px;fill:#fff}

/* --- Community Section --- */
.tx-community-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.tx-community-card{background:linear-gradient(135deg,rgba(232,69,107,.05),rgba(255,126,95,.05));border:1px solid rgba(232,69,107,.12);border-radius:14px;padding:28px 22px;text-align:center;transition:transform .3s,border-color .3s}
.tx-community-card:hover{transform:translateY(-3px);border-color:#E8456B}
.tx-community-card .tx-comm-icon{font-size:2.2rem;margin-bottom:12px}
.tx-community-card h4{font-size:1rem;margin-bottom:8px}
.tx-community-card p{color:#8A8A9A;font-size:.88rem}

/* --- Breadcrumb --- */
.tx-breadcrumb{padding:14px 0;font-size:.85rem;color:#8A8A9A}
.tx-breadcrumb a{color:#E8456B}
.tx-breadcrumb span{margin:0 6px;color:#ccc}

/* --- Mobile Menu --- */
.tx-menu-toggle{display:none;background:none;border:none;cursor:pointer;padding:8px}
.tx-menu-toggle span{display:block;width:24px;height:2px;background:#fff;margin:5px 0;transition:all .3s}

/* --- Responsive --- */
@media(max-width:1024px){
.tx-vgrid{grid-template-columns:repeat(3,1fr)}
.tx-expert-grid{grid-template-columns:repeat(2,1fr)}
.tx-footer-inner{grid-template-columns:1fr 1fr}
}
@media(max-width:768px){
.tx-menu-toggle{display:block}
.tx-nav{display:none;position:absolute;top:68px;left:0;right:0;background:#1A1A2E;flex-direction:column;padding:16px;gap:4px;box-shadow:0 8px 20px rgba(0,0,0,.2)}
.tx-nav.active{display:flex}
.tx-nav a{width:100%;text-align:center;padding:12px}
.tx-hero{height:400px}
.tx-hero h1{font-size:1.8rem}
.tx-vgrid{grid-template-columns:repeat(2,1fr);gap:14px}
.tx-srv-grid{grid-template-columns:1fr}
.tx-expert-grid{grid-template-columns:repeat(2,1fr)}
.tx-review-grid{grid-template-columns:1fr}
.tx-contact-grid{grid-template-columns:1fr}
.tx-howto-steps{grid-template-columns:repeat(2,1fr)}
.tx-footer-inner{grid-template-columns:1fr}
.tx-community-grid{grid-template-columns:1fr}
.tx-stitle h2{font-size:1.5rem}
}
@media(max-width:480px){
.tx-vgrid{grid-template-columns:1fr}
.tx-howto-steps{grid-template-columns:1fr}
.tx-expert-grid{grid-template-columns:1fr}
}

/* --- Lazy Load --- */
img[data-src]{opacity:0;transition:opacity .4s}
img.loaded{opacity:1}

/* --- Page Content --- */
.tx-page-hero{background:linear-gradient(135deg,#1A1A2E,#2D2D3A);padding:50px 0;text-align:center;color:#fff}
.tx-page-hero h1{font-size:2rem;margin-bottom:8px}
.tx-page-hero p{color:#ccc;font-size:1rem}
.tx-page-content{padding:40px 0}
.tx-page-content p{margin-bottom:16px;line-height:1.8;color:#555}
.tx-page-content h2{margin:30px 0 16px;font-size:1.5rem}
.tx-page-content h3{margin:24px 0 12px;font-size:1.2rem}

/* --- Update Time --- */
.tx-update-time{text-align:center;padding:10px;color:#8A8A9A;font-size:.82rem;background:rgba(0,0,0,.02)}
