/**
 * Overseas theme UI base — transcribed from docs/cankao/abcdlink_ui_static(1).html.
 * This IS the front-end style source of truth for rebuilt pages; templates are
 * rebuilt on this markup vocabulary (topbar/nav/hero/search-panel/service-grid/
 * stats/section-head/cards/layout/side-filter/list-shell/table/pagination/
 * detail-card/member-grid/footer/toast).
 * Removed vs reference: the data-page SPA rules (.page{display:none}) — pages
 * are real server routes here.
 */

:root{
  --blue:#1062ee;
  --blue2:#2b7cff;
  --green:#10b981;
  --orange:#f97316;
  --purple:#7c3aed;
  --red:#ff4d35;
  --text:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;
  --bg:#f6f9ff;
  --card:#ffffff;
  --shadow:0 16px 42px rgba(15, 35, 80, .08);
  --radius:18px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  /* latin-first stack for US/EU audiences, CJK fallbacks preserved */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(16,98,238,.12), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(43,124,255,.14), transparent 24%),
    linear-gradient(180deg,#f8fbff 0%,#f6f9ff 42%,#ffffff 100%);
}
a{text-decoration:none;color:inherit}
button,input,select{font:inherit}
.ovs-container{width:min(1320px, calc(100% - 48px));margin:0 auto}
.topbar{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom:1px solid rgba(226,232,240,.8);
}
.topbar .nav{
  height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px;
}
.logo{
  font-size:30px;font-weight:900;color:var(--blue);letter-spacing:-1.5px;
  display:flex;align-items:center;gap:8px;
}
.logo img{max-height:52px;width:auto;display:block}
.navlinks{display:flex;align-items:center;gap:26px;font-weight:700;font-size:15px;color:#1f2937}
.navlinks a{position:relative;padding:28px 0;white-space:nowrap;cursor:pointer}
.navlinks a.active,.navlinks a:hover{color:var(--blue)}
.navlinks a.active:after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--blue);border-radius:10px 10px 0 0;
}
.navlinks .has-dropdown{position:relative}
.navlinks .sub-menu{
  display:none;position:absolute;left:50%;top:100%;transform:translateX(-50%);
  min-width:180px;background:#fff;border:1px solid #e8eef8;border-radius:12px;
  box-shadow:var(--shadow);padding:8px;z-index:60;
}
.navlinks .has-dropdown:hover .sub-menu{display:block}
.navlinks .sub-menu a{display:block;padding:10px 12px;border-radius:8px;font-weight:700}
.navlinks .sub-menu a:hover{background:#eef5ff}
.actions{display:flex;align-items:center;gap:12px;white-space:nowrap}
.icon-btn{
  border:0;background:#fff;width:42px;height:42px;border-radius:14px;
  display:inline-flex;align-items:center;justify-content:center;
  box-shadow:0 8px 22px rgba(15,35,80,.08);cursor:pointer;position:relative;color:#334155;
}
.icon-btn:hover{color:var(--blue)}
.cart-count{
  position:absolute;right:-4px;top:-5px;background:#ef4444;color:#fff;font-size:11px;font-weight:900;
  min-width:18px;height:18px;border-radius:20px;display:inline-flex;align-items:center;justify-content:center;
  border:2px solid #fff;padding:0 4px;font-style:normal;
}
.btn{
  border:1px solid transparent;border-radius:10px;padding:12px 18px;font-weight:800;cursor:pointer;transition:.18s ease;
  display:inline-flex;align-items:center;gap:8px;justify-content:center;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:linear-gradient(135deg,var(--blue),#004bdb);color:#fff;box-shadow:0 12px 28px rgba(16,98,238,.24)}
.btn-primary:hover,.btn-primary:focus{color:#fff}
.btn-outline{border-color:#b8d0ff;background:#fff;color:var(--blue)}
.btn-outline:hover,.btn-outline:focus{color:#fff;background:var(--blue);border-color:var(--blue)}
.btn-soft{background:#eef5ff;color:var(--blue);border-color:#d8e8ff}
.btn-orange{background:linear-gradient(135deg,#ff7a18,#ff4d35);color:#fff}
.btn-orange:hover,.btn-orange:focus{color:#fff}
.btn-sm{padding:8px 12px;border-radius:9px;font-size:13px}

.hero{padding:58px 0 22px}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:58px}
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;background:#eaf3ff;color:var(--blue);
  border:1px solid #cfe0ff;padding:8px 12px;border-radius:999px;font-weight:800;margin-bottom:20px;
}
.hero h1{margin:0;font-size:54px;line-height:1.08;letter-spacing:-2.3px}
.hero h1 span{color:var(--blue)}
.hero h2{margin:18px 0 14px;font-size:26px;line-height:1.35;font-weight:700}
.hero p{margin:0;color:var(--muted);font-size:17px;line-height:1.9;max-width:650px}
.hero-cta{margin-top:24px;display:flex;gap:14px;flex-wrap:wrap}
.hero-art{
  min-height:360px;position:relative;display:grid;place-items:center;
}
.ill-card{
  width:460px;height:290px;border-radius:34px;background:linear-gradient(145deg,#0061ff,#0e8bff 48%,#78beff);
  box-shadow:0 30px 80px rgba(16,98,238,.23);
  transform:perspective(900px) rotateX(58deg) rotateZ(-30deg);
  position:relative;
}
.ill-card:before{
  content:"";position:absolute;inset:34px;border-radius:24px;border:2px solid rgba(255,255,255,.35);
  background:linear-gradient(135deg,rgba(255,255,255,.2),rgba(255,255,255,.05));
}
.ill-card:after{
  content:"\f0c1";font-family:FontAwesome;position:absolute;left:50%;top:50%;
  transform:translate(-50%,-50%) rotateZ(30deg) rotateX(-58deg);
  color:#fff;font-size:84px;text-shadow:0 14px 30px rgba(0,0,0,.16);
}
.float-badge{
  position:absolute;background:rgba(255,255,255,.9);border:1px solid #e6efff;border-radius:16px;padding:14px 18px;
  box-shadow:var(--shadow);font-weight:900;display:flex;align-items:center;gap:10px;
}
.float-badge.green{right:28px;top:40px;color:var(--green)}
.float-badge.orange{right:110px;top:145px;color:var(--orange)}
.float-badge.blue{left:60px;bottom:54px;color:var(--blue)}
.float-badge i{font-style:normal;color:#fff;width:28px;height:28px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center}
.float-badge.green i{background:var(--green)}
.float-badge.orange i{background:var(--orange)}
.float-badge.blue i{background:var(--blue)}

.search-panel{
  margin:16px auto 24px;background:rgba(255,255,255,.92);border:1px solid #e8eef8;border-radius:20px;box-shadow:var(--shadow);
  padding:0 24px 22px;
}
.tabs{display:flex;border-bottom:1px solid var(--line);gap:36px;margin-bottom:18px}
.tab{
  border:0;background:transparent;padding:18px 30px 14px;cursor:pointer;font-weight:900;color:#4b5563;
  position:relative;
}
.tab.active{color:var(--blue)}
.tab.active:after{content:"";position:absolute;left:12px;right:12px;bottom:-1px;height:3px;background:var(--blue);border-radius:10px}
.search-row{display:grid;grid-template-columns:170px 1fr 170px 170px 160px;gap:12px}
.field{
  height:48px;border:1px solid #dbe4f0;border-radius:10px;background:#fff;padding:0 14px;color:#374151;outline:none;
}
.field:focus{border-color:#8bb9ff;box-shadow:0 0 0 4px rgba(16,98,238,.08)}
.hot{margin-top:14px;color:#6b7280;font-size:14px;display:flex;gap:18px;flex-wrap:wrap}
.hot strong{color:#374151}
.hot span{cursor:pointer}
.hot span:hover{color:var(--blue)}

.service-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:20px}
.service-card{
  background:rgba(255,255,255,.92);border:1px solid #e8eef8;border-radius:18px;padding:24px;box-shadow:var(--shadow);
  transition:.18s ease;position:relative;overflow:hidden;display:block;
}
.service-card:hover{transform:translateY(-4px)}
.service-card:before{
  content:"";position:absolute;inset:auto 0 0 0;height:5px;background:linear-gradient(90deg,var(--c),transparent);
}
.round-icon{width:56px;height:56px;border-radius:18px;display:inline-flex;align-items:center;justify-content:center;color:#fff;background:var(--c);font-size:25px;margin-bottom:16px}
.service-card h3{margin:0 0 7px;font-size:20px;color:var(--text)}
.service-card p{margin:0 0 16px;color:var(--muted);line-height:1.7}
.service-card .service-more{color:var(--c);font-weight:800;font-size:14px}
.checks{display:flex;gap:14px;flex-wrap:wrap;color:#4b5563;font-size:14px;margin-bottom:18px}
.checks span:before{content:"\2713";color:var(--c);font-weight:900;margin-right:6px}

.stats{
  margin:20px 0 28px;display:grid;grid-template-columns:repeat(4,1fr);gap:18px;
  background:#fff;border:1px solid #e8eef8;border-radius:18px;padding:18px;box-shadow:var(--shadow)
}
.stats-5{grid-template-columns:repeat(5,1fr)}
.stat{display:flex;align-items:center;justify-content:center;gap:14px}
.stat .num{font-size:26px;font-weight:900}
.stat .label{color:var(--muted);font-size:14px}
.stat .sicon{font-size:31px;color:var(--blue)}

.section-head{display:flex;align-items:end;justify-content:space-between;margin:28px 0 16px}
.section-head h2{margin:0;font-size:25px}
.section-head a{font-weight:900;color:var(--blue);cursor:pointer}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.resource-card{
  background:#fff;border:1px solid #e7edf7;border-radius:16px;box-shadow:var(--shadow);padding:14px;position:relative;overflow:hidden;display:block;
}
.thumb{
  height:116px;border-radius:12px;background:
    linear-gradient(135deg,rgba(255,255,255,.15),rgba(255,255,255,0)),
    linear-gradient(135deg,var(--g1,#0ea5e9),var(--g2,#1d4ed8));
  display:flex;align-items:end;justify-content:start;padding:12px;color:#fff;font-weight:900;overflow:hidden;
  background-size:cover;background-position:center;
}
.thumb:after{content:"";width:84px;height:84px;border-radius:50%;background:rgba(255,255,255,.24);margin-left:auto;margin-bottom:-28px}
.rtag{
  position:absolute;right:18px;top:18px;font-size:12px;font-weight:900;padding:5px 9px;border-radius:8px;background:#e7fff5;color:var(--green);border:1px solid #a8f0d2;z-index:2;
}
.rtag.hot{background:#fff1ef;color:#ef4444;border-color:#ffc8c0}
.rtag.recommend{background:#fff7ed;color:#f97316;border-color:#fed7aa}
.r-head{display:flex;align-items:center;gap:8px;margin:12px 0 4px;min-width:0}
.r-title{flex:1 1 auto;min-width:0;font-size:17px;font-weight:900;margin:0;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.r-head .star{flex:0 0 auto;width:32px;height:32px;font-size:16px}
.r-sub{color:#6b7280;font-size:13px;margin-bottom:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:12px 0;border-top:1px solid #eef2f7;border-bottom:1px solid #eef2f7}
.metric small{display:block;color:#6b7280;font-size:12px}
.metric b{font-size:16px}
.r-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:13px}
.price{color:#ff3f22;font-size:24px;font-weight:950}
.price small{font-size:12px;color:#6b7280;font-weight:700}
.star{border:0;background:#f8fafc;width:36px;height:36px;border-radius:10px;cursor:pointer;color:#94a3b8;font-size:20px}
.star.active,.star.is-collected{color:#f59e0b;background:#fff7ed}

.layout{display:grid;grid-template-columns:260px 1fr;gap:22px;padding:26px 0 50px}
.side-filter{background:#fff;border:1px solid #e8eef8;border-radius:18px;box-shadow:var(--shadow);padding:18px;height:max-content;position:sticky;top:94px}
.filter-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.filter-title h3{margin:0;font-size:17px}
.reset{border:0;background:transparent;color:#6b7280;cursor:pointer}
.filter-group{border-top:1px solid #edf2f7;padding:14px 0}
.filter-group h4{margin:0 0 10px;font-size:14px;color:#374151}
.checkline{display:flex;align-items:center;gap:8px;color:#4b5563;font-size:14px;margin:9px 0;cursor:pointer}
.checkline input{accent-color:var(--blue)}
.list-shell{background:#fff;border:1px solid #e8eef8;border-radius:18px;box-shadow:var(--shadow);padding:18px;min-width:0}
.list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #edf2f7;padding-bottom:14px;flex-wrap:wrap}
.sorts{display:flex;gap:18px;font-size:14px;color:#6b7280;flex-wrap:wrap}
.sorts button,.sorts .sort-item{border:0;background:transparent;cursor:pointer;color:#6b7280;font-weight:800;padding:0}
.sorts button.active,.sorts .sort-item.active{color:var(--blue)}
.view-title{font-size:20px;font-weight:950}
.ovs-table{width:100%;border-collapse:collapse}
.ovs-table th{color:#6b7280;font-size:13px;text-align:left;padding:16px 8px;border-bottom:1px solid #edf2f7;white-space:nowrap}
.ovs-table td{padding:15px 8px;border-bottom:1px solid #edf2f7;vertical-align:middle;font-size:14px}
.site-cell{display:flex;align-items:center;gap:12px;min-width:220px}
.mini-thumb{width:72px;height:50px;border-radius:9px;background:linear-gradient(135deg,var(--g1,#0ea5e9),var(--g2,#1d4ed8));flex:0 0 auto;background-size:cover;background-position:center}
.site-name{font-weight:900}
.site-meta{color:#6b7280;font-size:12px;margin-top:4px}
.num-cell b{display:block;font-size:17px}
.num-cell small{color:#6b7280;font-size:11px}
.ovs-table .price2{color:#ff3f22;font-weight:950}
.pagination{display:flex;align-items:center;justify-content:center;gap:8px;padding:18px 0 4px;flex-wrap:wrap}
.page-btn{
  border:1px solid #d8e2f2;background:#fff;min-width:36px;height:36px;border-radius:10px;cursor:pointer;
  color:#374151;font-weight:900;
}
.page-btn.active{background:var(--blue);color:#fff;border-color:var(--blue)}
.page-btn:disabled{opacity:.45;cursor:not-allowed}

.detail-wrap{padding:30px 0 55px}
.back{margin-bottom:16px}
.detail-card{display:grid;grid-template-columns:1.1fr .9fr;gap:24px;background:#fff;border:1px solid #e8eef8;border-radius:20px;box-shadow:var(--shadow);padding:22px}
.gallery-main{height:330px;border-radius:18px;background:linear-gradient(135deg,#0ea5e9,#1d4ed8);position:relative;overflow:hidden;color:#fff;padding:26px;display:flex;align-items:end;font-size:28px;font-weight:950;background-size:cover;background-position:center}
.gallery-main:after{content:"";position:absolute;right:-70px;bottom:-70px;width:240px;height:240px;background:rgba(255,255,255,.2);border-radius:50%}
.thumb-row{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:12px}
.gallery-thumb{height:62px;border-radius:11px;background:linear-gradient(135deg,#dbeafe,#60a5fa);border:2px solid transparent;cursor:pointer;background-size:cover;background-position:center}
.gallery-thumb.active{border-color:var(--blue)}
.detail-info h1{margin:0;font-size:28px}
.badges{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.pill{padding:6px 10px;border-radius:999px;font-size:12px;font-weight:900;background:#eef5ff;color:var(--blue)}
.pill.green{background:#eafff6;color:#059669}
.pill.orange{background:#fff7ed;color:#ea580c}
.data-strip{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;background:#f8fbff;border:1px solid #edf2f7;border-radius:14px;padding:12px;margin:18px 0}
.data-box{text-align:center}
.data-box small{display:block;color:#6b7280;font-size:12px}
.data-box b{font-size:18px}
.buy-box{border:1px solid #edf2f7;border-radius:16px;padding:18px;background:#fff}
.duration{display:flex;gap:8px;margin:12px 0;flex-wrap:wrap}
.duration button{border:1px solid #d8e2f2;background:#fff;border-radius:9px;padding:8px 13px;cursor:pointer;font-weight:800}
.duration button.active{border-color:var(--blue);background:#eef5ff;color:var(--blue)}
.qty{display:flex;align-items:center;gap:8px;margin:10px 0}
.qty button{width:34px;height:34px;border:1px solid #d8e2f2;background:#fff;border-radius:8px;cursor:pointer}
.qty input{width:54px;height:34px;text-align:center;border:1px solid #d8e2f2;border-radius:8px}
.detail-tabs{margin-top:20px;border-top:1px solid #edf2f7;padding-top:16px}
.detail-tabs nav{display:flex;gap:30px;border-bottom:1px solid #edf2f7}
.detail-tabs nav button{border:0;background:transparent;padding:12px 0;font-weight:900;cursor:pointer;color:#6b7280}
.detail-tabs nav button.active{color:var(--blue);border-bottom:3px solid var(--blue)}
.tab-content{line-height:2;color:#374151;padding:14px 0}
.tab-content ul{columns:2;margin:0;padding-left:18px}

.member-grid{display:grid;grid-template-columns:260px 1fr 290px;gap:20px;padding:30px 0 55px}
.member-panel,.order-panel,.account-panel{background:#fff;border:1px solid #e8eef8;border-radius:18px;box-shadow:var(--shadow);padding:18px}
.avatar{width:62px;height:62px;border-radius:50%;background:linear-gradient(135deg,#dbeafe,#60a5fa);display:inline-flex;align-items:center;justify-content:center;font-size:28px;margin-bottom:10px;overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover}
.menu-item{display:flex;align-items:center;gap:10px;padding:12px;border-radius:12px;color:#4b5563;font-weight:800;cursor:pointer}
.menu-item.active,.menu-item:hover{background:#eef5ff;color:var(--blue)}
.order-tabs{display:flex;gap:22px;border-bottom:1px solid #edf2f7;margin-bottom:12px;flex-wrap:wrap}
.order-tabs button{border:0;background:transparent;font-weight:900;color:#6b7280;padding:12px 0;cursor:pointer}
.order-tabs button.active{color:var(--blue);border-bottom:3px solid var(--blue)}
.order-line{display:grid;grid-template-columns:1fr 90px 90px 90px;gap:14px;align-items:center;border-bottom:1px solid #edf2f7;padding:14px 0}
.status{font-size:12px;font-weight:900;padding:6px 9px;border-radius:999px;text-align:center;background:#eafff6;color:#059669}
.status.wait{background:#fff7ed;color:#ea580c}
.quick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:14px}
.quick{border:1px solid #edf2f7;border-radius:14px;padding:16px;text-align:center;font-weight:900;color:#4b5563;cursor:pointer;display:block}
.quick:hover{border-color:#b8d0ff;color:var(--blue);background:#f8fbff}

.ovs-footer{background:#0f172a;color:#cbd5e1;padding:36px 0;margin-top:28px}
.footer-grid{display:grid;grid-template-columns:1.2fr repeat(3,1fr);gap:28px}
.footer-flex{display:flex;flex-wrap:wrap;gap:28px}
.footer-flex .footer-brand{flex:1.5 1 240px;min-width:220px}
.footer-flex .footer-col{flex:1 1 150px;min-width:140px}
.ovs-footer h3,.ovs-footer h4,.ovs-footer b{color:#fff;margin:0 0 12px;display:block}
.ovs-footer p,.ovs-footer a{color:#cbd5e1;line-height:1.8;font-size:14px;display:block}
.ovs-footer a:hover{color:#fff}
.ovs-footer ul{list-style:none;margin:0;padding:0}
.ovs-footer li{margin:8px 0}
.footer-copyright{border-top:1px solid rgba(255,255,255,.08);margin-top:24px;padding-top:16px;text-align:center;font-size:13px}
.footer-copyright a{display:inline}

.toast{
  position:fixed;right:24px;bottom:24px;background:#111827;color:#fff;padding:14px 18px;border-radius:12px;
  box-shadow:0 15px 40px rgba(0,0,0,.18);opacity:0;transform:translateY(12px);pointer-events:none;transition:.2s;z-index:200;
}
.toast.show{opacity:1;transform:translateY(0)}

/* topbar helpers not present in the static reference */
.actions .dropdown{position:relative;display:inline-flex}
.actions .dropdown-menu{
  border:1px solid #e8eef8;border-radius:12px;box-shadow:var(--shadow);padding:6px;min-width:170px;
}
.actions .dropdown-menu > li > a{border-radius:8px;font-weight:700;padding:9px 12px}
.actions .dropdown-menu > li > a:hover{background:#eef5ff;color:var(--blue)}
.actions .dropdown-menu > li.active > a{background:#eef5ff;color:var(--blue)}
.ovs-menu-toggle{display:none}

@media (max-width: 1100px){
  .ovs-menu-toggle{display:inline-flex}
  .navlinks{
    display:none;position:absolute;left:12px;right:12px;top:calc(100% + 8px);
    background:#fff;border:1px solid #e8eef8;border-radius:16px;box-shadow:var(--shadow);
    padding:10px;flex-direction:column;gap:2px;z-index:70;
  }
  .navlinks.open{display:flex}
  .navlinks a{padding:12px 12px;border-radius:10px}
  .navlinks a.active:after{content:none}
  .navlinks a.active,.navlinks a:hover{background:#eef5ff}
  .navlinks .has-dropdown .sub-menu{
    display:block;position:static;transform:none;border:0;box-shadow:none;padding:0 0 0 18px;
  }
  .topbar .nav{position:relative}
}

@media (max-width: 1100px){
  .navlinks{display:none}
  .hero-grid,.detail-card,.member-grid{grid-template-columns:1fr}
  .search-row{grid-template-columns:1fr 1fr}
  .service-grid,.cards,.stats{grid-template-columns:repeat(2,1fr)}
  .layout{grid-template-columns:1fr}
  .side-filter{position:static}
  .table-wrap{overflow:auto}
  .float-badge{display:none}
}
@media (max-width: 640px){
  .ovs-container{width:min(100% - 28px,1320px)}
  .actions .hide-sm{display:none}
  .hero h1{font-size:38px}
  .hero h2{font-size:21px}
  .search-row,.service-grid,.cards,.stats,.data-strip,.footer-grid{grid-template-columns:1fr}
  .hero-art{display:none}
  .tabs{gap:8px;overflow:auto}
  .tab{padding-left:18px;padding-right:18px}
  .member-grid{grid-template-columns:1fr}
  .order-line{grid-template-columns:1fr}
  .detail-card{padding:14px}
  .gallery-main{height:230px}
  .topbar .nav{height:66px}
  .logo{font-size:24px}
}
