/* 邮储企业网银演示门户首页 - 对齐 #/choseDemo */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: #333;
  background: #fff;
  min-width: 1200px;
}

a { text-decoration: none; color: inherit; }

.page { min-width: 1200px; }

/* ========== Header ========== */
.portal-header {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid #ebebeb;
}

.portal-header-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.portal-logo {
  height: 40px;
  display: block;
}

.portal-header-divider {
  width: 1px;
  height: 32px;
  background: #d8d8d8;
}

.portal-deposit {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
}

.portal-deposit img {
  height: 36px;
  display: block;
}

.portal-header-right {
  display: flex;
  align-items: center;
  gap: 36px;
}

.portal-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: color 0.2s;
}

.portal-nav-link:hover { color: #00b672; }

.portal-nav-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* ========== Hero ========== */
.portal-hero {
  position: relative;
  min-height: 520px;
  background-color: #0a1f4f;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.portal-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 42px 20px 36px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.portal-hero-left {
  flex: 1;
  color: #fff;
  padding-top: 8px;
  max-width: 640px;
}

.portal-hero-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  line-height: 1.1;
}

.portal-hero-title .label {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: 2px;
}

.portal-hero-title .ver {
  font-size: 62px;
  font-weight: 700;
  color: #f39800;
  line-height: 1;
}

.portal-hero-subtitle {
  font-size: 24px;
  letter-spacing: 3px;
  margin-bottom: 28px;
  font-weight: 400;
}

.portal-hero-subtitle .em {
  color: #f39800;
}

.portal-qr-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.portal-qr-box {
  position: relative;
  width: 96px;
  height: 96px;
  background: #fff;
  border-radius: 4px;
  padding: 5px;
  flex-shrink: 0;
}

.portal-qr-box svg {
  width: 100%;
  height: 100%;
  display: block;
}

.portal-qr-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 4px;
  padding: 2px;
  box-shadow: 0 0 0 2px #fff;
}

.portal-qr-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portal-qr-text {
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.95);
}

.portal-promo {
  display: inline-block;
  max-width: 520px;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(8, 48, 88, 0.55);
  border: 1px solid rgba(120, 210, 255, 0.35);
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
}

.portal-promo .num {
  color: #f39800;
  font-size: 18px;
  font-weight: 700;
  margin: 0 2px;
}

.portal-promo .date {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}

/* ========== Login Card ========== */
.portal-login-card {
  width: 420px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.18);
  padding: 0 0 18px;
  margin-top: 6px;
  position: relative;
  overflow: visible;
}

.portal-login-qr {
  position: absolute;
  top: 0;
  right: 0;
  width: 52px;
  height: 52px;
  padding: 10px;
  cursor: pointer;
  background: linear-gradient(135deg, transparent 50%, #f5f5f5 50%);
  border-radius: 0 8px 0 0;
  z-index: 2;
}

.portal-login-qr svg {
  width: 32px;
  height: 32px;
  display: block;
  margin-left: auto;
}

.portal-login-tabs {
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid #eee;
  padding: 0 16px;
  margin-right: 40px;
}

.portal-login-tab {
  flex: 1;
  border: none;
  background: none;
  padding: 16px 4px 12px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1.3;
}

.portal-login-tab:hover { color: #00b672; }

.portal-login-tab.active {
  color: #00b672;
  font-weight: 600;
}

.portal-login-tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: calc(100% - 8px);
  max-width: 88px;
  height: 2px;
  background: #00b672;
  border-radius: 1px;
}

.portal-login-form {
  display: flex;
  flex-direction: column;
  padding: 18px 28px 0;
}

.portal-login-panel {
  display: none;
}

.portal-login-panel.active {
  display: block;
}

.portal-login-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  margin-bottom: 22px;
  transition: border-color 0.2s;
  background: #fff;
}

.portal-login-item:hover,
.portal-login-item:focus-within {
  border-color: #00b672;
}

.portal-login-item.is-error {
  border-color: #f56c6c;
}

.portal-login-item-label {
  flex-shrink: 0;
  width: 78px;
  padding-left: 14px;
  font-size: 14px;
  color: #333;
  line-height: 40px;
  user-select: none;
}

.portal-login-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px 0 0;
  border: none;
  border-radius: 0 4px 4px 0;
  font-size: 14px;
  color: #333;
  outline: none;
  background: transparent;
}

.portal-login-error {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  font-size: 12px;
  color: #f56c6c;
  line-height: 1.6;
  padding-top: 2px;
}

.portal-login-error.show {
  display: block;
}

.portal-login-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2px 0 16px;
  font-size: 12px;
  line-height: 1.5;
}

.portal-login-links a {
  cursor: pointer;
  text-decoration: none;
}

.portal-login-links .link-help {
  color: #666;
}

.portal-login-links .link-help a {
  color: #e65100;
}

.portal-login-links .link-forgot {
  color: #666;
}

.portal-login-links .link-forgot:hover {
  color: #00b672;
}

.portal-login-btn {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 4px;
  background: #00b672;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 6px;
  text-indent: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.portal-login-btn:hover {
  background: #00a366;
}

.portal-login-btn:disabled {
  background: #a8dcc8;
  cursor: not-allowed;
}

.portal-login-tip {
  margin: 14px 28px 0;
  font-size: 11px;
  color: #999;
  line-height: 1.7;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.portal-login-tip-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f39800;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  margin-top: 1px;
}

.portal-login-tip a {
  color: #409eff;
  text-decoration: none;
}

.portal-login-tip a:hover {
  text-decoration: underline;
}

.portal-login-assist {
  position: absolute;
  right: -62px;
  top: 108px;
  width: 52px;
  pointer-events: none;
  z-index: 3;
}

.portal-login-assist img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: block;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  border: 2px solid #fff;
}

/* ========== Demo Card (legacy, removed) ========== */
/* ========== Announcement ========== */
.portal-notice {
  background: #f4f6f8;
  border-bottom: 1px solid #e8eaed;
  height: 52px;
}

.portal-notice-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.portal-notice-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.portal-notice-tag {
  flex-shrink: 0;
  background: #00b672;
  color: #fff;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 2px;
  line-height: 1.4;
}

.portal-notice-track {
  flex: 1;
  height: 24px;
  overflow: hidden;
  position: relative;
}

.portal-notice-item {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  font-size: 14px;
  color: #444;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.45s, transform 0.45s;
  cursor: pointer;
}

.portal-notice-item.active {
  opacity: 1;
  transform: translateY(0);
}

.portal-notice-date {
  flex-shrink: 0;
  font-size: 13px;
  color: #999;
}

/* ========== Features ========== */
.portal-features {
  background: #fff;
  padding: 36px 20px 44px;
}

.portal-features-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4px;
}

.portal-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  max-width: 120px;
  cursor: pointer;
  transition: transform 0.2s;
}

.portal-feature:hover { transform: translateY(-3px); }

.portal-feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.portal-feature-icon svg {
  width: 34px;
  height: 34px;
  display: block;
}

.portal-feature-icon--demo {
  background: linear-gradient(145deg, #4facfe 0%, #2f80ed 100%);
}

.portal-feature-icon--install {
  background: linear-gradient(145deg, #43e97b 0%, #1cb5a3 100%);
}

.portal-feature-icon--receipt {
  background: linear-gradient(145deg, #fccb6f 0%, #f7971e 100%);
}

.portal-feature-icon--guarantee {
  background: linear-gradient(145deg, #ff8a8a 0%, #f45c7a 100%);
}

.portal-feature-icon--helper {
  background: linear-gradient(145deg, #6a85e6 0%, #4b6cb7 100%);
}

.portal-feature-icon--client {
  background: linear-gradient(145deg, #5fe1c0 0%, #2ec4b6 100%);
}

.portal-feature-icon--download {
  background: linear-gradient(145deg, #5d9cec 0%, #4a89dc 100%);
}

.portal-feature-label {
  font-size: 14px;
  color: #444;
  text-align: center;
  line-height: 1.3;
}

/* ========== Footer ========== */
.portal-footer {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 22px 20px;
}

.portal-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: #888;
  line-height: 1.8;
}

.portal-footer-copy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.portal-footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
  white-space: nowrap;
}

.portal-footer-phone img {
  width: 16px;
  height: 16px;
}

/* ========== Modal ========== */
.portal-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.portal-modal-overlay.show { display: flex; }

.portal-modal {
  background: #fff;
  border-radius: 8px;
  width: 420px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.portal-modal h3 {
  font-size: 18px;
  color: #00b672;
  margin-bottom: 16px;
}

.portal-modal p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 24px;
  white-space: pre-line;
}

.portal-modal-close {
  background: #00b672;
  color: #fff;
  border: none;
  padding: 10px 48px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.portal-modal-close:hover { background: #009e65; }
