/* 逍遥门户 V1 · 总入口与业务分流 */
.portal-page{
  --portal-ink:#2e312c;
  --portal-deep:#23332b;
  --portal-soft:#f6f0e5;
  --portal-gold:#b5894e;
  --portal-clay:#9b5b46;
  --portal-line:rgba(72,61,45,.15);
  overflow-x:hidden;
}
.portal-page p,
.portal-page h1,
.portal-page h2,
.portal-page h3,
.portal-page h4{margin:0}
.portal-shell{width:min(1180px,calc(100% - 40px));margin:0 auto}
.portal-header{
  position:sticky;z-index:90;top:0;border-bottom:1px solid var(--portal-line);
  background:rgba(248,244,236,.91);backdrop-filter:blur(20px);
}
.portal-header-inner{height:80px;display:flex;align-items:center;gap:20px}
.portal-nav{display:flex;align-items:center;gap:20px;margin-left:auto;color:var(--xy-muted);font-size:12px}
.portal-nav > a,.portal-more > summary{
  min-height:40px;display:inline-flex;align-items:center;padding:0 2px;border-bottom:1px solid transparent;
}
.portal-nav > a:hover,.portal-nav > a[aria-current="page"],.portal-more > summary:hover{
  color:var(--xy-primary-deep);border-color:var(--portal-gold);
}
.portal-more{position:relative}
.portal-more > summary{list-style:none;cursor:pointer;gap:5px}
.portal-more > summary::-webkit-details-marker{display:none}
.portal-more > summary:after{content:"⌄";font-size:12px}
.portal-more-menu{
  position:absolute;right:0;top:44px;width:188px;padding:8px;border-radius:15px;
  border:1px solid var(--portal-line);background:rgba(255,253,247,.98);
  box-shadow:0 18px 48px rgba(62,50,37,.14);
}
.portal-more-menu a{display:flex;min-height:40px;align-items:center;padding:0 11px;border-radius:9px}
.portal-more-menu a:hover{background:rgba(90,74,58,.07)}
.portal-actions{display:flex;align-items:center;gap:8px}
.portal-actions .xy-btn{min-height:42px;padding:0 16px}
.portal-menu-btn{display:none}
.portal-mobile-nav{
  position:fixed;z-index:130;inset:0;padding:22px;background:rgba(248,244,236,.985);
  backdrop-filter:blur(22px);overflow:auto;
}
.portal-mobile-nav[hidden]{display:none}
.portal-mobile-head{display:flex;align-items:center;justify-content:space-between}
.portal-mobile-links{margin-top:38px;border-top:1px solid var(--portal-line)}
.portal-mobile-links a{
  min-height:58px;display:flex;align-items:center;justify-content:space-between;
  border-bottom:1px solid var(--portal-line);font-family:var(--xy-serif);font-size:22px;
}
.portal-mobile-links a:after{content:"→";font-family:var(--xy-sans);font-size:13px;color:var(--portal-gold)}
.portal-mobile-links a.sub{font-family:var(--xy-sans);font-size:15px;min-height:48px;color:var(--xy-muted)}
.portal-mobile-cta{margin-top:24px}

.portal-hero{
  min-height:calc(100svh - 80px);padding:clamp(50px,8vh,92px) 0 70px;
  display:grid;grid-template-columns:minmax(0,1.22fr) minmax(340px,.78fr);
  gap:clamp(40px,6vw,82px);align-items:center;
}
.portal-hero h1{
  margin-top:16px;font-family:var(--xy-serif);font-size:clamp(46px,6vw,70px);
  font-weight:600;line-height:1.15;letter-spacing:.015em;
}
.portal-hero h1 em{font-style:normal;color:var(--xy-primary)}
.portal-hero-lead{max-width:620px;margin-top:24px;color:var(--xy-muted);font-size:16px;line-height:1.95}
.portal-actions-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}
.portal-status-inline{display:flex;gap:18px;flex-wrap:wrap;margin-top:23px;color:var(--xy-muted);font-size:11px}
.portal-status-inline span{display:inline-flex;align-items:center;gap:7px}
.portal-status-inline span:before{content:"";width:6px;height:6px;border-radius:50%;background:var(--portal-gold)}
.portal-hero-map{position:relative;min-height:560px;display:grid;place-items:center}
.portal-hero-map:before{
  content:"";position:absolute;inset:7%;
  border-radius:48% 52% 45% 55%;
  background:
    radial-gradient(circle at 50% 42%,rgba(182,139,76,.20),transparent 27%),
    linear-gradient(150deg,rgba(255,255,255,.72),rgba(224,211,189,.38));
  transform:rotate(4deg);
}
.portal-hero-orbit{position:absolute;width:min(455px,90%);aspect-ratio:1;border:1px solid rgba(78,67,52,.22);border-radius:50%}
.portal-hero-portrait{
  position:absolute;inset:5% 4%;z-index:2;overflow:hidden;border-radius:30px;
  background:linear-gradient(150deg,rgba(255,255,255,.86),rgba(226,211,186,.72));
  box-shadow:0 28px 68px rgba(65,51,34,.18),inset 0 0 70px rgba(255,255,255,.65);
}
.portal-hero-portrait img{width:100%;height:100%;object-fit:cover;object-position:center}
.portal-hero-core{position:absolute;left:24px;bottom:22px;z-index:3;width:80px;height:80px;padding:5px;border-radius:50%;background:rgba(255,253,248,.92);box-shadow:0 12px 30px rgba(65,51,34,.14)}
.portal-hero-orbit:before,.portal-hero-orbit:after{content:"";position:absolute;border-radius:50%;border:1px solid rgba(181,137,78,.24)}
.portal-hero-orbit:before{inset:13%}.portal-hero-orbit:after{inset:28%}
.portal-hero-core img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.portal-node{
  position:absolute;z-index:3;min-width:104px;padding:10px 13px;border-radius:13px;
  border:1px solid var(--portal-line);background:rgba(255,253,247,.84);
  text-align:center;backdrop-filter:blur(10px);
}
.portal-node b{display:block;font-size:12px}.portal-node span{display:block;margin-top:3px;color:var(--xy-muted);font-size:9px}
.portal-node.n1{left:0;top:17%}.portal-node.n2{right:0;top:27%}
.portal-node.n3{right:4%;bottom:18%}.portal-node.n4{left:5%;bottom:23%}
.portal-hero-note{position:absolute;left:50%;bottom:2%;transform:translateX(-50%);width:min(330px,84%);text-align:center;color:var(--xy-muted);font-size:10px;line-height:1.7}

.portal-section{padding:92px 0;border-top:1px solid var(--portal-line)}
.portal-section-head{display:grid;grid-template-columns:.8fr 1.2fr;gap:52px;align-items:end;margin-bottom:38px}
.portal-section-head h2{margin-top:10px;font-family:var(--xy-serif);font-size:clamp(34px,4.7vw,56px);font-weight:600;line-height:1.26}
.portal-section-head > p{max-width:620px;color:var(--xy-muted);font-size:14px;line-height:1.9}
.portal-stage-grid{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--portal-line);border-radius:22px;overflow:hidden}
.portal-stage{
  min-height:230px;padding:27px 23px;background:rgba(255,253,247,.55);
  border-right:1px solid var(--portal-line);display:flex;flex-direction:column;transition:.18s;
}
.portal-stage:last-child{border-right:0}
.portal-stage:hover{background:rgba(255,255,255,.92)}
.portal-stage .idx{font-size:10px;color:var(--portal-gold);letter-spacing:.18em}
.portal-stage h3{font-family:var(--xy-serif);font-size:23px;margin-top:25px}
.portal-stage p{margin-top:10px;color:var(--xy-muted);font-size:12px;line-height:1.75}
.portal-stage .go{margin-top:auto;padding-top:18px;color:var(--xy-primary);font-size:12px}

.portal-business-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.portal-business{
  min-height:275px;padding:26px;border-radius:22px;border:1px solid var(--portal-line);
  background:rgba(255,253,247,.72);display:flex;flex-direction:column;position:relative;overflow:hidden;
}
.portal-business:hover{background:rgba(255,255,255,.92);transform:translateY(-2px);box-shadow:0 18px 36px rgba(65,51,34,.06)}
.portal-business .status{font-size:10px;color:var(--portal-gold);letter-spacing:.12em}
.portal-business h3{font-family:var(--xy-serif);font-size:25px;margin-top:26px}
.portal-business p{margin-top:11px;color:var(--xy-muted);font-size:13px;line-height:1.8}
.portal-business .go{margin-top:auto;padding-top:22px;font-size:12px;color:var(--xy-primary)}
.portal-business.live .status:before{content:"●";font-size:8px;margin-right:6px;color:#5f866a}
.portal-business.soon .status:before{content:"●";font-size:8px;margin-right:6px;color:var(--portal-gold)}
.portal-business.project .status:before{content:"●";font-size:8px;margin-right:6px;color:var(--portal-clay)}

.portal-manifesto{
  margin:0 calc(50% - 50vw);padding:88px max(24px,calc((100vw - 1180px)/2));
  background:
    radial-gradient(circle at 78% 24%,rgba(200,165,109,.12),transparent 28%),
    var(--portal-deep);color:#f5efe5;
}
.portal-manifesto-inner{display:grid;grid-template-columns:150px 1fr;gap:44px;align-items:start}
.portal-manifesto .glyph{font-family:var(--xy-serif);font-size:92px;line-height:1;color:rgba(224,195,145,.28)}
.portal-manifesto h2{font-family:var(--xy-serif);font-size:clamp(34px,5vw,62px);font-weight:600;line-height:1.3}
.portal-manifesto p{max-width:770px;margin-top:22px;color:rgba(245,239,229,.66);font-size:14px;line-height:1.95}

.portal-status-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.portal-status-card{min-height:120px;padding:19px;border-top:2px solid var(--portal-gold);background:rgba(255,253,247,.64)}
.portal-status-card b{font-size:13px}.portal-status-card span{display:block;margin-top:9px;color:var(--xy-muted);font-size:11px;line-height:1.7}
.portal-home-cta{text-align:center;padding:96px 20px 104px;border-top:1px solid var(--portal-line)}
.portal-home-cta h2{font-family:var(--xy-serif);font-size:clamp(36px,5vw,60px);font-weight:600;line-height:1.3}
.portal-home-cta p{max-width:620px;margin:16px auto 25px;color:var(--xy-muted);font-size:14px}

.portal-pageview[hidden]{display:none}
.portal-page-hero{padding:clamp(64px,9vh,108px) 0 74px;border-bottom:1px solid var(--portal-line)}
.portal-page-hero-inner{display:grid;grid-template-columns:1.15fr .85fr;gap:70px;align-items:center}
.portal-page-hero h1{font-family:var(--xy-serif);font-size:clamp(44px,6vw,76px);font-weight:600;line-height:1.18;margin-top:14px}
.portal-page-hero-copy p:last-child{max-width:650px;margin-top:22px;color:var(--xy-muted);font-size:15px;line-height:1.9}
.portal-page-visual{
  min-height:370px;border-radius:34px;position:relative;display:grid;place-items:center;
  background:
    radial-gradient(circle at 50% 45%,rgba(182,139,76,.20),transparent 30%),
    linear-gradient(145deg,rgba(255,255,255,.70),rgba(223,210,189,.42));
  border:1px solid rgba(255,255,255,.75);overflow:hidden;
}
.portal-page-visual:before,.portal-page-visual:after{content:"";position:absolute;border-radius:50%;border:1px solid rgba(85,72,54,.18)}
.portal-page-visual:before{width:280px;height:280px}.portal-page-visual:after{width:190px;height:190px}
.portal-page-visual img{position:relative;z-index:2;width:130px;height:130px;border-radius:50%;object-fit:cover;box-shadow:0 18px 44px rgba(65,51,34,.15)}
.portal-page-visual .visual-label{position:absolute;z-index:3;bottom:22px;color:var(--xy-muted);font-size:10px;letter-spacing:.12em}
.portal-page-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.portal-page-card{
  min-height:250px;padding:26px;border-radius:20px;border:1px solid var(--portal-line);
  background:rgba(255,253,247,.72);display:flex;flex-direction:column;
}
.portal-page-card .tag{color:var(--portal-gold);font-size:10px;letter-spacing:.12em}
.portal-page-card h3{font-family:var(--xy-serif);font-size:24px;margin-top:22px}
.portal-page-card p{margin-top:11px;color:var(--xy-muted);font-size:12px;line-height:1.8}
.portal-page-card .bottom{margin-top:auto;padding-top:20px;font-size:12px;color:var(--xy-primary)}
.portal-list{border-top:1px solid var(--portal-line)}
.portal-list-row{display:grid;grid-template-columns:64px minmax(150px,.5fr) 1fr;gap:20px;padding:22px 0;border-bottom:1px solid var(--portal-line)}
.portal-list-row > span{color:var(--portal-gold);font-size:11px;letter-spacing:.1em;padding-top:3px}
.portal-list-row h3{font-size:15px}.portal-list-row p{color:var(--xy-muted);font-size:13px;line-height:1.8}
.portal-timeline{display:grid;grid-template-columns:repeat(3,1fr);gap:0;border-top:1px solid var(--portal-line)}
.portal-timeline > div{padding:25px 28px 28px 0;border-right:1px solid var(--portal-line);min-height:190px}
.portal-timeline > div:not(:first-child){padding-left:28px}
.portal-timeline > div:last-child{border-right:0}
.portal-timeline span{font-size:10px;color:var(--portal-gold);letter-spacing:.12em}
.portal-timeline h3{font-family:var(--xy-serif);font-size:21px;margin-top:16px}
.portal-timeline p{margin-top:9px;color:var(--xy-muted);font-size:12px;line-height:1.8}
.portal-notice{
  padding:18px 20px;border-radius:14px;background:rgba(182,139,76,.10);
  color:var(--xy-muted);font-size:12px;line-height:1.75;margin-top:26px;
}
.portal-demo-grid{display:grid;grid-template-columns:.78fr 1.22fr;gap:54px;align-items:start;margin-top:30px}
.portal-demo-title{font-family:var(--xy-serif);font-size:clamp(30px,4vw,48px);font-weight:600;line-height:1.3;margin-top:12px}
.portal-demo-samples{display:grid;gap:9px;margin-top:25px}
.portal-demo-samples button{
  min-height:44px;padding:11px 14px;border:1px solid var(--portal-line);border-radius:12px;
  background:rgba(255,253,247,.65);color:var(--xy-primary);font-size:12px;text-align:left;
}
.portal-demo-samples button:hover{background:#fff;border-color:var(--xy-accent)}
.portal-demo-chat{
  overflow:hidden;border:1px solid var(--portal-line);border-radius:24px;
  background:rgba(255,253,247,.92);box-shadow:0 22px 50px rgba(62,50,37,.08);
}
.portal-demo-chat-head{min-height:62px;padding:12px 16px;display:flex;align-items:center;gap:11px;border-bottom:1px solid var(--portal-line)}
.portal-demo-chat-head b{display:block;font-family:var(--xy-serif);font-size:15px}
.portal-demo-chat-head small{display:block;color:var(--xy-muted);font-size:10px;margin-top:2px}
.portal-demo-avatar{width:38px;height:38px;border-radius:50%;padding:4px;background:#fff;border:1px solid var(--portal-line)}
.portal-demo-avatar img{width:100%;height:100%;object-fit:contain}
.portal-demo-log{height:340px;overflow:auto;padding:20px 16px;display:flex;flex-direction:column;gap:11px;overscroll-behavior:contain}
.portal-demo-message{max-width:88%;padding:11px 14px;border-radius:5px 16px 16px 16px;background:var(--incu-soft,#f6f0e5);font-size:13px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}
.portal-demo-message.user{align-self:flex-end;border-radius:16px 5px 16px 16px;background:var(--xy-primary-deep);color:#fff}
.portal-demo-message.typing{color:var(--xy-muted)}
.portal-demo-compose{display:flex;gap:9px;padding:12px;border-top:1px solid var(--portal-line)}
.portal-demo-compose textarea{flex:1;min-height:48px;max-height:120px;resize:vertical;border:1px solid var(--portal-line);border-radius:12px;background:#f9f5ed;padding:10px 12px;outline:none}
.portal-demo-compose textarea:focus{border-color:var(--xy-accent)}
.portal-demo-compose .xy-btn{min-width:76px;padding:0 14px}
.portal-demo-status{min-height:22px;padding:0 14px 10px;color:var(--xy-muted);font-size:11px}
.portal-demo-admin-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;border:1px solid var(--portal-line);background:var(--portal-line);border-radius:20px;overflow:hidden}
.portal-demo-admin-grid > div{min-height:190px;padding:23px;background:rgba(255,253,247,.93)}
.portal-demo-admin-grid span{color:var(--portal-gold);font-size:10px;letter-spacing:.12em}
.portal-demo-admin-grid b{display:block;font-family:var(--xy-serif);font-size:19px;margin-top:17px}
.portal-demo-admin-grid p{margin-top:10px;color:var(--xy-muted);font-size:12px;line-height:1.75}
.portal-product-table{width:100%;border-collapse:collapse;font-size:13px}
.portal-product-table th,.portal-product-table td{padding:18px 16px;border-bottom:1px solid var(--portal-line);text-align:left;vertical-align:top}
.portal-product-table th{font-size:11px;color:var(--xy-muted);font-weight:500}
.portal-product-table td:first-child{font-family:var(--xy-serif);font-size:16px}
.portal-product-table td:nth-child(4){white-space:nowrap;color:var(--portal-primary)}
.portal-product-table a{color:var(--xy-primary)}
.portal-about-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:72px;align-items:center}
.portal-about-copy h2{font-family:var(--xy-serif);font-size:clamp(34px,4.7vw,56px);font-weight:600;line-height:1.3;margin-top:12px}
.portal-about-copy p{margin-top:18px;color:var(--xy-muted);font-size:14px;line-height:2}
.portal-contact-grid{display:grid;grid-template-columns:.78fr 1.22fr;gap:64px;align-items:start}
.portal-contact-copy h2{font-family:var(--xy-serif);font-size:clamp(38px,5vw,62px);font-weight:600;line-height:1.25;margin-top:12px}
.portal-contact-copy p{margin-top:18px;color:var(--xy-muted);font-size:14px;line-height:1.9}
.portal-contact-points{display:grid;gap:10px;margin-top:22px;color:var(--xy-muted);font-size:12px}
.portal-contact-points span{padding-left:18px;position:relative}
.portal-contact-points span:before{content:"";position:absolute;left:0;top:.62em;width:6px;height:6px;border-radius:50%;background:var(--portal-gold)}
.portal-form{padding:30px;border-radius:24px;border:1px solid rgba(255,255,255,.82);background:rgba(255,253,247,.88);box-shadow:0 24px 60px rgba(65,51,34,.09)}
.portal-form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.portal-field{display:grid;gap:7px}.portal-field.full{grid-column:1/-1}
.portal-field label{font-size:11px;color:var(--xy-muted)}
.portal-field input,.portal-field select,.portal-field textarea{
  min-height:46px;width:100%;padding:10px 13px;border:1px solid var(--portal-line);border-radius:11px;
  background:rgba(248,244,236,.75);outline:none;color:var(--xy-ink);
}
.portal-field textarea{min-height:96px;resize:vertical}
.portal-field input:focus,.portal-field select:focus,.portal-field textarea:focus{border-color:var(--portal-gold);box-shadow:0 0 0 3px rgba(182,139,76,.10)}
.portal-submit{width:100%;margin-top:17px}
.portal-form-status{min-height:20px;margin-top:12px;font-size:12px;color:var(--xy-primary)}
.portal-form-status.error{color:var(--portal-clay)}
.portal-form-note{margin-top:10px;color:var(--xy-muted);font-size:10px;line-height:1.65}
.portal-contact-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}
.portal-foot{padding:44px 0;border-top:1px solid var(--portal-line)}
.portal-foot-inner{display:grid;grid-template-columns:1.2fr .8fr;gap:60px}
.portal-foot-copy p{max-width:430px;margin-top:14px;color:var(--xy-muted);font-size:12px;line-height:1.8}
.portal-foot-links{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;align-content:start}
.portal-foot-links a{font-size:12px;color:var(--xy-muted)}
.portal-foot-links a:hover{color:var(--xy-primary)}

@media (max-width:940px){
  .portal-nav,.portal-actions .xy-btn{display:none}
  .portal-menu-btn{display:grid;place-items:center;margin-left:auto}
  .portal-hero{grid-template-columns:1fr;padding-top:50px}
  .portal-hero-map{min-height:430px}
  .portal-stage-grid{grid-template-columns:repeat(2,1fr)}
  .portal-stage:nth-child(2){border-right:0}
  .portal-stage:nth-child(-n+2){border-bottom:1px solid var(--portal-line)}
  .portal-business-grid,.portal-page-grid{grid-template-columns:1fr 1fr}
  .portal-section-head{grid-template-columns:1fr;gap:16px}
  .portal-manifesto-inner{grid-template-columns:1fr;gap:18px}
  .portal-manifesto .glyph{font-size:54px}
  .portal-status-grid{grid-template-columns:repeat(2,1fr)}
  .portal-page-hero-inner,.portal-about-grid,.portal-contact-grid{grid-template-columns:1fr}
  .portal-demo-grid{grid-template-columns:1fr}
  .portal-demo-admin-grid{grid-template-columns:repeat(2,1fr)}
  .portal-page-visual{min-height:310px}
  .portal-timeline{grid-template-columns:1fr}
  .portal-timeline > div,.portal-timeline > div:not(:first-child){padding:20px 0;border-right:0;border-bottom:1px solid var(--portal-line);min-height:0}
  .portal-timeline > div:last-child{border-bottom:0}
  .portal-foot-inner{grid-template-columns:1fr;gap:30px}
}

@media (max-width:620px){
  .portal-shell{width:calc(100% - 32px)}
  .portal-header-inner{height:68px}
  .portal-hero h1{font-size:clamp(36px,9.5vw,50px)}
  .portal-hero-lead{font-size:14px}
  .portal-actions-row{flex-direction:column}
  .portal-actions-row .xy-btn{width:100%}
  .portal-hero-map{min-height:360px}
  .portal-hero-core{width:72px;height:72px;left:16px;bottom:16px}
  .portal-node{min-width:87px;padding:8px 9px}.portal-node b{font-size:10px}
  .portal-section{padding:64px 0}
  .portal-stage-grid{grid-template-columns:1fr}
  .portal-stage{border-right:0;border-bottom:1px solid var(--portal-line);min-height:190px}
  .portal-stage:last-child{border-bottom:0}
  .portal-business-grid,.portal-page-grid{grid-template-columns:1fr}
  .portal-business{min-height:240px}
  .portal-status-grid{grid-template-columns:1fr}
  .portal-home-cta{padding:70px 20px 80px}
  .portal-list-row{grid-template-columns:38px 1fr;gap:8px 12px}
  .portal-list-row p{grid-column:2}
  .portal-product-table{min-width:700px}
  .portal-demo-compose{flex-direction:column}
  .portal-demo-compose .xy-btn{width:100%}
  .portal-demo-log{height:310px}
  .portal-demo-admin-grid{grid-template-columns:1fr}
  .portal-form{padding:21px}
  .portal-form-grid{grid-template-columns:1fr}
  .portal-field.full{grid-column:auto}
  .portal-foot-links{grid-template-columns:1fr 1fr}
}
