﻿/*
Theme Name: HaiYiTong (海译通)
Theme URI: https://www.heiyt.com/
Author: 海译通
Author URI: https://www.heiyt.com/
Description: 海译通翻译 - 跨境电商客服聊天AI实时翻译软件主题，支持WhatsApp/Telegram/Line等社交应用聚合翻译，包含语音翻译、AI智能回复等功能。专为海译通翻译品牌定制的WordPress主题。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: heiyt
Tags: translation, ai-translation, cross-border-ecommerce, responsive, seo-optimized
*/

/* ===== 海译通翻译 AI实时翻译 语音翻译 SEO关键词区 ===== */
/* 海译通翻译 - 跨境电商客服聊天AI实时翻译软件 */
/* AI实时翻译 - 支持WhatsApp/Telegram/Line等社交应用聚合翻译 */
/* 语音翻译 - AI自定义克隆音色，实现高效语音交流 */

/* ===== Reset & Base ===== */
*{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}
body,html{min-width:1400px;background:#fff;color:#333;overflow-x:hidden;overflow-y:auto;-webkit-font-smoothing:antialiased;font-family:"Microsoft YaHei","微软雅黑",Helvetica,Arial,sans-serif}
ol,ul{list-style:none}
table{border-collapse:collapse;border-spacing:0}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%}
input:focus{outline:0}

/* ===== Utility ===== */
.flex{display:flex}
.flex-v{flex-direction:column}
.flex-1{flex:1}
.flex-wrap{flex-wrap:wrap}
.align-center{align-items:center}
.align-start{align-items:flex-start}
.align-end{align-items:flex-end}
.justify-center{justify-content:center}
.justify-between{justify-content:space-between}
.justify-around{justify-content:space-around}
.justify-end{justify-content:flex-end}
.container{margin:0 auto;width:1400px}
.box{padding:70px 0}
.box .title{text-align:center;font-size:32px;font-weight:700;margin-bottom:4px;color:#232323}
.box .sub-title{max-width:50%;text-align:center;font-size:18px;line-height:40px;color:#596178;margin:0 auto 32px}

/* ===== Header ===== */
.header{
  position:fixed;top:0;left:0;right:0;z-index:1000;
  height:70px;background:#fff;
  box-shadow:0 1px 8px rgba(0,0,0,.06);
  display:flex;align-items:center;
}
.header .container{display:flex;align-items:center;justify-content:space-between;height:100%}
.header .logo{display:flex;align-items:center;gap:10px}
.header .logo img{width:42px;height:42px}
.header .logo span{font-size:24px;font-weight:700;color:#1a1a1a}
.header .nav{display:flex;align-items:center;gap:36px}
.header .nav a{font-size:17px;color:#1a1a1a;transition:color .3s;position:relative;font-weight:700}
.header .nav a:hover{color:#2468f2}
.header .nav a.active{color:#2468f2;font-weight:700}
.header .nav a.hot::after{
  content:"HOT";position:absolute;top:-10px;right:-22px;
  background:#f14942;color:#fff;font-size:10px;
  padding:1px 5px;border-radius:8px;font-weight:700;line-height:1.2;
}
.header .nav a .nav-badge{
  display:inline-block;background:#f14942;color:#fff;
  font-size:10px;padding:1px 5px;border-radius:8px;
  font-weight:700;line-height:1.2;margin-left:2px;vertical-align:top;
}
.header .actions{display:flex;align-items:center;gap:14px}
.header .actions .btn-login{
  font-size:15px;color:#2468f2;cursor:pointer;
}
.header .actions .btn-reg{
  background:#2468f2;color:#fff;font-size:15px;
  padding:8px 20px;border-radius:6px;cursor:pointer;
  transition:background .3s;display:flex;align-items:center;gap:4px;
}
.header .actions .btn-reg:hover{background:#1d56d9}
.header .actions .btn-reg .reg-tip{
  display:inline-flex;align-items:center;gap:3px;
  background:#ffbb2b;color:#fff;font-size:10px;
  padding:1px 6px;border-radius:8px;font-weight:700;line-height:1.2;
}

/* ===== Hero / Carousel ===== */
.intro-wrap{margin-top:70px}
.carousel{position:relative;height:420px;overflow:hidden}
.carousel-track{display:flex;height:100%;transition:transform .6s ease}
.carousel-slide{min-width:100%;height:100%;position:relative;display:flex;align-items:center;justify-content:center}
.carousel-slide img{width:100%;height:100%;object-fit:cover;position:absolute;top:0;left:0}
.carousel-slide .desc{position:relative;z-index:2}
.carousel-slide .desc p.name{font-size:36px;font-weight:700;color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.3);margin-bottom:16px}
.carousel-slide .desc p.subname{font-size:22px;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.3);margin-bottom:20px}
.carousel-slide .desc .desc-box{display:flex;gap:24px;margin-bottom:24px;flex-wrap:wrap}
.carousel-slide .desc .desc-box .item-box{background:rgba(255,255,255,.15);backdrop-filter:blur(8px);padding:10px 20px;border-radius:8px}
.carousel-slide .desc .desc-box .item-box p{color:#fff;font-size:15px}
.carousel-slide .desc .btn-wrap{display:flex;gap:16px}
.carousel-slide .desc .btn,
.carousel-slide .desc .reg-btn{
  display:inline-block;background:#2468f2;color:#fff;
  font-size:16px;padding:12px 36px;border-radius:30px;
  cursor:pointer;transition:all .3s;
}
.carousel-slide .desc .btn:hover,
.carousel-slide .desc .reg-btn:hover{
  background:#1d56d9;transform:translateY(-2px);
  box-shadow:0 6px 20px rgba(36,104,242,.4);
}
.carousel-slide .desc .btn.outline{
  background:transparent;border:2px solid #fff;color:#fff;
}
.carousel-slide .desc .btn.outline:hover{
  background:#fff;color:#2468f2;
}
.carousel-slide .desc1{position:absolute;top:50px;right:80px;z-index:2}
.carousel-slide .desc2{position:absolute;top:80px;left:120px;z-index:2;max-width:560px}
.carousel-slide .desc3{position:absolute;top:80px;left:120px;z-index:2;max-width:600px}
.carousel-slide .desc4{position:absolute;top:50px;left:120px;z-index:2}

/* Carousel dots */
.carousel-dots{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);display:flex;gap:10px;z-index:10}
.carousel-dots span{
  width:10px;height:10px;border-radius:50%;
  background:rgba(255,255,255,.5);cursor:pointer;transition:all .3s;
}
.carousel-dots span.active{background:#fff;width:28px;border-radius:5px}
/* Carousel arrows */
.carousel-arrow{
  position:absolute;top:50%;transform:translateY(-50%);
  width:44px;height:44px;border-radius:50%;
  background:rgba(0,0,0,.2);color:#fff;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;z-index:10;transition:background .3s;
  font-size:20px;
}
.carousel-arrow:hover{background:rgba(0,0,0,.4)}
.carousel-arrow.prev{left:20px}
.carousel-arrow.next{right:20px}

/* ===== Advantage / Product Display ===== */
.advantage-wrap{background:url('https://www.heiyt.com/assets/img/advantage-bg.f7a2a042.webp') no-repeat;background-size:100% 100%;padding:64px 0 100px}
.advantage-wrap .title{text-align:center;font-size:32px;font-weight:700;margin-bottom:4px;color:#232323}
.advantage-wrap .sub-title{text-align:center;font-size:18px;line-height:40px;color:#596178;margin:0 auto 32px;max-width:50%}
.advantage-wrap video{display:block;margin:0 auto;object-fit:contain;border:8px solid #232323;border-radius:8px;height:400px}

/* ===== Product Features ===== */
.advantage-box{background:url('https://www.heiyt.com/assets/img/ability-bg.482c605c.webp') no-repeat;background-size:100% 100%;padding:64px 0 100px;box-sizing:border-box}
.advantage-box .title{text-align:center;font-size:32px;font-weight:700;margin-bottom:4px;color:#232323}
.advantage-box .sub-title{text-align:center;font-size:18px;line-height:40px;color:#596178;margin:0 auto 32px;max-width:50%}
.advantage-list{position:relative;height:512px;width:100%}
.advantage-list .item{
  margin:0 14px;box-sizing:border-box;position:absolute;width:400px;
}
.advantage-list .item .name{font-size:20px;margin-bottom:12px;font-weight:700;color:#232323}
.advantage-list .item .desc{color:#596178;font-size:16px;line-height:32px}
.advantage-list .item:first-child{left:-3%;top:3%}
.advantage-list .item:first-child .desc,
.advantage-list .item:first-child .name{text-align:right}
.advantage-list .item:nth-child(2){left:-3%;top:42%}
.advantage-list .item:nth-child(2) .desc,
.advantage-list .item:nth-child(2) .name{text-align:right}
.advantage-list .item:nth-child(3){left:-3%;top:82%}
.advantage-list .item:nth-child(3) .desc,
.advantage-list .item:nth-child(3) .name{text-align:right}
.advantage-list .item:nth-child(4){left:71%;top:3%}
.advantage-list .item:nth-child(5){left:71%;top:42%}
.advantage-list .item:nth-child(6){left:71%;top:82%}

/* ===== Membership Package ===== */
.package-wrap{background:linear-gradient(180deg,#f0f4ff,#fff)}
.package-box{display:flex;flex-wrap:wrap;gap:20px;justify-content:center}
.package-box .item{
  width:300px;background:linear-gradient(180deg,#ffffff 0%,#f0f6ff 100%);border-radius:12px;
  overflow:hidden;transition:all .3s;cursor:pointer;
  border:1px solid #c8dbff;
}
.package-box .item:hover{
  box-shadow:0 8px 30px rgba(36,104,242,.15);
  transform:translateY(-6px);
}
.package-box .item .package-detail{padding:30px 24px}
.package-box .item .name{font-size:18px;font-weight:600;color:#333;margin-bottom:16px}
.package-box .item .price{font-size:30px;font-weight:700;background:linear-gradient(90deg,#2468f2,#409eff);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin-bottom:20px}
.package-box .item .price .currency{font-size:16px}
.package-box .item .txt-box{margin-top:12px}
.package-box .item .txt-box p{
  font-size:14px;color:#666;line-height:1.8;
  padding:4px 0;position:relative;padding-left:20px;
}
.package-box .item .txt-box p::before{
  content:"";position:absolute;left:0;top:10px;
  width:6px;height:6px;border-radius:50%;background:#2468f2;
}
.package-box .item.highlight{border:2px solid #2468f2;position:relative;background:linear-gradient(180deg,#f8faff 0%,#e8f2ff 100%)}
.package-box .item.highlight::before{
  content:"推荐";position:absolute;top:0;right:0;
  background:#ffbb2b;color:#fff;font-size:12px;
  padding:4px 12px;border-radius:0 10px 0 10px;font-weight:600;
}
.package-wrap .btn{
  display:inline-block;background:#2468f2;color:#fff;
  font-size:16px;padding:12px 48px;border-radius:30px;
  margin-top:40px;cursor:pointer;transition:all .3s;
}
.package-wrap .btn:hover{
  background:#1d56d9;transform:translateY(-2px);
  box-shadow:0 6px 20px rgba(36,104,242,.4);
}

/* ===== Customer Reviews ===== */
.serve-wrap{background:#fff}
.serve-box{display:flex;gap:24px;justify-content:center}
.serve-box .item{
  width:400px;padding:28px;border-radius:12px;
  background:#f8faff;transition:all .3s;
}
.serve-box .item:hover{
  box-shadow:0 6px 24px rgba(0,0,0,.08);
}
.serve-box .item .user-box{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.serve-box .item .user-info{display:flex;align-items:center;gap:10px}
.serve-box .item .avatar{
  width:48px;height:48px;border-radius:50%;
  overflow:hidden;flex-shrink:0;
  border:1px solid #e6e9f0;
}
.serve-box .item .avatar svg{width:100%;height:100%;display:block}
.serve-box .item .avatar img{width:100%;height:100%;display:block;object-fit:cover;border-radius:50%}
.serve-box .item .name{font-size:15px;font-weight:600;color:#333}
.serve-box .item .stars{color:#ff9900;font-size:16px;letter-spacing:2px}
.serve-box .item .txt{font-size:14px;color:#666;line-height:1.8}

/* ===== Slogan / Stats ===== */
.slogan-wrap{
  background:#fff;
  padding:60px 0;
}
.slogan-wrap .txt{
  text-align:center;color:#1a1a1a;font-size:42px;font-weight:700;
  margin-bottom:40px;letter-spacing:1px;
}
.slogan-content{gap:0;width:100%}
.slogan-content .item{text-align:center;flex:1;padding:0 10px}
.slogan-content .item .name{
  font-size:36px;font-weight:700;color:#1a1a1a;margin-bottom:8px;
  line-height:1.2;
}
.slogan-content .item p{font-size:14px;color:#1a1a1a}

/* ===== Footer ===== */
.footer{background:#fff;color:#1a1a1a;padding:50px 0 20px;border-top:1px solid #e0e0e0}
.footer .footer-top{
  display:flex;justify-content:space-between;
  padding-bottom:30px;border-bottom:1px solid #e0e0e0;
}
.footer .footer-col{min-width:160px}
.footer .footer-col .footer-title{
  font-size:15px;color:#1a1a1a;font-weight:600;margin-bottom:18px;
}
.footer .footer-col a{
  display:block;font-size:13px;color:#1a1a1a;
  margin-bottom:12px;transition:color .3s;
}
.footer .footer-col a:hover{color:#2468f2}
.footer .footer-brand{display:flex;align-items:center;gap:10px;margin-bottom:16px}
.footer .footer-brand img{width:36px;height:36px}
.footer .footer-brand span{font-size:20px;font-weight:700;color:#1a1a1a}
.footer .footer-reg-btn{
  display:inline-block;background:#2468f2;color:#fff;
  font-size:13px;padding:8px 20px;border-radius:6px;
  transition:background .3s;
}
.footer .footer-reg-btn:hover{background:#1d56d9}
.footer .footer-bottom{
  text-align:center;padding-top:20px;font-size:13px;color:#1a1a1a;
}

/* ===== Side Service Bar ===== */
.side-service{
  position:fixed;right:20px;top:50%;transform:translateY(-50%);
  z-index:999;display:flex;flex-direction:column;gap:12px;
}
.side-service .side-item{
  width:56px;height:56px;border-radius:10px;
  background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.1);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  cursor:pointer;transition:all .3s;text-align:center;
}
.side-service .side-item:hover{
  background:#2468f2;transform:translateX(-4px);
}
.side-service .side-item:hover svg,
.side-service .side-item:hover span{color:#fff}
.side-service .side-item svg{width:22px;height:22px;color:#2468f2;margin-bottom:2px}
.side-service .side-item span{font-size:10px;color:#666}

/* ===== QR Code Popup ===== */
.qr-popup{
  position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);
  z-index:2000;background:#fff;border-radius:12px;
  padding:24px;display:none;box-shadow:0 8px 40px rgba(0,0,0,.2);
}
.qr-popup.show{display:block}
.qr-popup .qr-title{font-size:16px;font-weight:600;text-align:center;margin-bottom:16px}
.qr-popup .qr-img{
  width:200px;height:200px;background:#f0f4ff;
  display:flex;align-items:center;justify-content:center;
  border-radius:8px;
}
.qr-popup .qr-img svg{width:120px;height:120px;color:#2468f2}
.qr-popup .qr-close{
  position:absolute;top:8px;right:12px;
  font-size:20px;cursor:pointer;color:#999;
}

/* ===== Overlay ===== */
.overlay{
  position:fixed;top:0;left:0;right:0;bottom:0;
  background:rgba(0,0,0,.4);z-index:1500;display:none;
}
.overlay.show{display:block}

/* ===== Banner background gradients ===== */
.banner-bg1{background:linear-gradient(135deg,#1a237e,#283593,#3949ab)}
.banner-bg2{background:linear-gradient(135deg,#0d47a1,#1565c0,#1976d2)}
.banner-bg3{background:linear-gradient(135deg,#1a237e,#283593)}
.banner-bg4{background:linear-gradient(135deg,#0d1b4a,#1a237e,#283593)}

/* ===== SEO Semantic Tag Styles ===== */
h1,h2,h3,h4,h5,h6{margin:0;padding:0;font-weight:inherit}
.carousel-slide .desc h1.name{font-size:36px;font-weight:700;line-height:1.3}
.advantage-list .item h3.name{font-size:20px;margin-bottom:12px;font-weight:700;color:#232323}
.package-box .item h3.name{font-size:18px;font-weight:600;color:#333;margin-bottom:16px}
.serve-wrap .item .avatar img{width:100%;height:100%;display:block;object-fit:cover;border-radius:50%}
.slogan-wrap h2.txt{text-align:center;color:#1a1a1a;font-size:42px;font-weight:700;margin-bottom:40px;letter-spacing:1px}

/* ===== WordPress 文章/排名展示区域 ===== */
.articles-wrap{padding:70px 0;background:#f8f9fb}
.articles-wrap .container{width:1400px;margin:0 auto}
.articles-wrap .box-title{text-align:center;font-size:32px;font-weight:700;margin-bottom:4px;color:#232323}
.articles-wrap .box-subtitle{text-align:center;font-size:18px;color:#596178;margin-bottom:40px}
.articles-list{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}
.articles-list .article-card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,.08);transition:transform .3s,box-shadow .3s}
.articles-list .article-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px rgba(0,0,0,.12)}
.articles-list .article-card .article-img{width:100%;height:200px;overflow:hidden}
.articles-list .article-card .article-img img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.articles-list .article-card:hover .article-img img{transform:scale(1.05)}
.articles-list .article-card .article-body{padding:20px}
.articles-list .article-card .article-title{font-size:18px;font-weight:700;color:#232323;margin-bottom:10px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.articles-list .article-card .article-excerpt{font-size:14px;color:#666;line-height:1.6;margin-bottom:12px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.articles-list .article-card .article-meta{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#999}
.articles-list .article-card .article-meta .article-date{color:#999}
.articles-list .article-card .article-meta .article-category{background:#e8f0fe;color:#2468f2;padding:2px 10px;border-radius:4px;font-weight:600}
.articles-more{text-align:center;margin-top:40px}
.articles-more .more-btn{display:inline-block;padding:12px 36px;background:#2468f2;color:#fff;border-radius:8px;font-size:16px;font-weight:700;transition:background .3s}
.articles-more .more-btn:hover{background:#1a56d8}

/* 单篇文章页面 */
.single-article{padding:60px 0;background:#fff}
.single-article .container{width:900px;margin:0 auto}
.single-article h1{font-size:32px;font-weight:700;color:#232323;margin-bottom:16px;line-height:1.4}
.single-article .article-info{display:flex;align-items:center;gap:16px;margin-bottom:30px;padding-bottom:20px;border-bottom:1px solid #eee}
.single-article .article-info .date{color:#999;font-size:14px}
.single-article .article-info .category{background:#e8f0fe;color:#2468f2;padding:4px 12px;border-radius:4px;font-size:12px;font-weight:600}
.single-article .article-content{font-size:16px;line-height:1.8;color:#333}
.single-article .article-content img{max-width:100%;height:auto;border-radius:8px;margin:20px 0}
.single-article .article-content h2{font-size:24px;font-weight:700;margin:30px 0 15px;color:#232323}
.single-article .article-content h3{font-size:20px;font-weight:700;margin:25px 0 12px;color:#232323}
.single-article .article-content p{margin-bottom:16px}
.single-article .article-nav{display:flex;justify-content:space-between;margin-top:40px;padding-top:20px;border-top:1px solid #eee}
.single-article .article-nav a{color:#2468f2;font-size:14px;font-weight:600}

/* 响应式适配 */
@media screen and (max-width:768px){
  .articles-list{grid-template-columns:1fr}
  .single-article .container{width:100%;padding:0 16px}
}