/**
 * Shanghai Shipping Exchange — English homepage (new design)
 * Scope: body.sse-home only — does not replace legacy allen.css / styleen.css
 */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-sans-regular.ttf") format("truetype");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/dm-sans-medium.ttf") format("truetype");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/dm-sans-semibold.ttf") format("truetype");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/dm-sans-bold.ttf") format("truetype");
}

@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-sans-italic.ttf") format("truetype");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-regular.ttf") format("truetype");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic.ttf") format("truetype");
}

:root {
  --sse-navy: #0b1f3a;
  --sse-navy-mid: #12325c;
  --sse-ocean: #1a5f8a;
  --sse-teal: #2a8f8f;
  --sse-gold: #c4a052;
  --sse-gold-soft: #e8d5a3;
  --sse-bg: #eef3f8;
  --sse-surface: #ffffff;
  --sse-surface-alt: #f7fafc;
  --sse-border: #d4dee8;
  --sse-text: #1a2d42;
  --sse-text-muted: #5c7086;
  --sse-link: #1a5f8a;
  --sse-link-hover: #0e4568;
  --sse-accent-hover: #d4b76a;
  --sse-radius: 6px;
  --sse-shadow: 0 2px 12px rgba(11, 31, 58, 0.08);
  --sse-shadow-lg: 0 8px 28px rgba(11, 31, 58, 0.12);
  --sse-font: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --sse-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sse-width: 1200px;
  --sse-left-col-width: 248px;
  --sse-main-gap: 16px;
  --sse-grid-gap: 15px;
  --sse-grid-row-height: 309px;
}

/* ── Base ── */
body.sse-home {
  width: var(--sse-width);
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0 24px;
  font: 13px/1.6 var(--sse-font);
  color: var(--sse-text);
  background: var(--sse-bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(26, 95, 138, 0.14), transparent 55%),
    linear-gradient(180deg, #e4edf5 0%, var(--sse-bg) 120px);
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

body.sse-home::after {
  content: "";
  display: table;
  clear: both;
}

/* ── Main layout: sidebar + 3×3 grid ── */
body.sse-home .sse-home-main {
  display: flex;
  align-items: stretch;
  gap: var(--sse-main-gap);
  margin-top: 16px;
}

body.sse-home .sse-home-grid {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sse-grid-gap);
  align-items: start;
}

body.sse-home .sse-home-grid .defzs01 {
  grid-column: 1 / -1;
}

body.sse-home .sse-home-grid .defzs02.defzs03 {
  grid-column: 1 / -1;
  min-height: var(--sse-grid-row-height);
  height: auto;
  overflow: visible;
}

body.sse-home a:link,
body.sse-home a:visited {
  color: var(--sse-link);
  text-decoration: none;
  transition: color 0.15s ease;
}

body.sse-home a:hover {
  color: var(--sse-link-hover);
  text-decoration: underline;
}

body.sse-home img {
  border: 0;
  max-width: 100%;
  height: auto;
}

body.sse-home td,
body.sse-home select,
body.sse-home input,
body.sse-home form,
body.sse-home table,
body.sse-home ul,
body.sse-home p,
body.sse-home li {
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
  vertical-align: middle;
}
/* ─ Notice ─ */
body.sse-home .notice {
  position: fixed;
  top: 50%; /* 垂直居中 */
  transform: translateY(-50%);
  z-index: 9999; /* 确保在最上层 */
}
/* 右侧 */
body.sse-home .notice.notice-right {
  right: 10px; /* 距离右边 */
}
/* 左侧 */
body.sse-home .notice.notice-left {
  left: 10px; /* 距离左边 */
}
/* 图片样式 */
body.sse-home .notice img {
  width: 100px; /* 根据需要调整 */
  cursor: pointer;
}
/* 文本样式 */
body.sse-home .notice .notice-txt {
  align-items: center;
  display: flex;
  justify-content: center;
  text-align: center;
  color: #0a7ab4;
}

/* ── Header / Logo (shared: home + eninfo detail) ── */
body.sse-home #logo,
body.sse-eninfo-detail:not(.sse-eninfo-list) #logo {
  width: 100%;
  min-height: 180px;
  background: linear-gradient(135deg, var(--sse-navy) 0%, var(--sse-navy-mid) 42%, var(--sse-ocean) 100%);
  box-shadow: var(--sse-shadow-lg);
  position: relative;
  overflow: hidden;
}

body.sse-home #logo::after,
body.sse-eninfo-detail:not(.sse-eninfo-list) #logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(196, 160, 82, 0.06) 50%, transparent 100%),
    repeating-linear-gradient(
      -55deg,
      transparent,
      transparent 18px,
      rgba(255, 255, 255, 0.025) 18px,
      rgba(255, 255, 255, 0.025) 19px
    );
  pointer-events: none;
}

body.sse-home .sse-home-banner,
body.sse-eninfo-detail:not(.sse-eninfo-list) .sse-home-banner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 160px;
  padding: 36px 40px 32px;
  box-sizing: border-box;
}

body.sse-home .sse-home-banner__title,
body.sse-eninfo-detail:not(.sse-eninfo-list) .sse-home-banner__title {
  margin: 0;
  font-family: var(--sse-serif);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.sse-home .sse-home-banner__subtitle,
body.sse-eninfo-detail:not(.sse-eninfo-list) .sse-home-banner__subtitle {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sse-gold-soft);
}

/* ── Navigation (shared: home + eninfo detail) ── */
body.sse-home #menu,
body.sse-eninfo-detail:not(.sse-eninfo-list) #menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  min-height: 44px;
  padding: 8px 14px;
  background: linear-gradient(180deg, var(--sse-navy-mid) 0%, var(--sse-navy) 100%);
  border-bottom: 3px solid var(--sse-gold);
  box-shadow: var(--sse-shadow);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

body.sse-home #menu.whitezi,
body.sse-home #menu a,
body.sse-eninfo-detail:not(.sse-eninfo-list) #menu.whitezi,
body.sse-eninfo-detail:not(.sse-eninfo-list) #menu a {
  color: #f0f4f8 !important;
}

body.sse-home #menu a,
body.sse-eninfo-detail:not(.sse-eninfo-list) #menu a {
  padding: 6px 14px;
  border-radius: 4px;
  line-height: 1.4;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

body.sse-home #menu a:hover,
body.sse-eninfo-detail:not(.sse-eninfo-list) #menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--sse-gold-soft) !important;
  text-decoration: none !important;
}

body.sse-home #menu .sse-menu-logo,
body.sse-eninfo-detail:not(.sse-eninfo-list) #menu .sse-menu-logo {
  padding: 0;
}

body.sse-home #menu .sse-menu-logo:hover,
body.sse-eninfo-detail:not(.sse-eninfo-list) #menu .sse-menu-logo:hover {
  background: transparent;
  opacity: 0.9;
}

body.sse-home #menu a#menuUserAccount,
body.sse-eninfo-detail:not(.sse-eninfo-list) #menu a#menuUserAccount {
  font-weight: 600;
  color: var(--sse-gold-soft) !important;
}

body.sse-home #loginIndexFront,
body.sse-eninfo-detail:not(.sse-eninfo-list) #loginIndexFront {
  display: none;
}

body.sse-eninfo-detail:not(.sse-eninfo-list) #sse-eninfo-menu-mount {
  width: 100%;
}

/* ── Left column: login + sidebar ── */
body.sse-home .sse-home-left-col {
  flex: 0 0 var(--sse-left-col-width);
  width: var(--sse-left-col-width);
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

body.sse-home .sse-home-left-col .login {
  float: none;
  width: 100%;
  margin: 0 0 14px 0;
  box-sizing: border-box;
}

body.sse-home .sse-home-left-col .left230.leftlink {
  float: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  min-height: 100%;
  box-sizing: border-box;
}

/* ── Login panels ── */
body.sse-home .login {
  float: left;
  width: 248px;
  margin: 16px 0 0 0;
  padding: 18px 20px 20px;
  background: var(--sse-surface);
  border: 1px solid var(--sse-border);
  border-radius: var(--sse-radius);
  box-shadow: var(--sse-shadow);
  color: var(--sse-text);
  display: none;
}

body.sse-home #indexImgLoginTip {
  display: none;
}

body.sse-home #menu a#menuUserLogin,
body.sse-eninfo-detail:not(.sse-eninfo-list) #menu a#menuUserLogin {
  font-weight: 600;
  color: var(--sse-gold-soft) !important;
}

body.sse-home .login table {
  width: 100% !important;
}

body.sse-home .login td {
  font-size: 12px;
  color: var(--sse-text-muted);
  padding: 3px 0;
}

body.sse-home .login .input2,
body.sse-home .login .input3 {
  width: 100%;
  max-width: 130px;
  height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--sse-border);
  border-radius: 4px;
  font: 12px/1.4 var(--sse-font);
  color: var(--sse-text);
  background: var(--sse-surface-alt);
  box-sizing: border-box;
  margin-left: 0;
  text-indent: 0;
}

body.sse-home .login .input3 {
  max-width: 52px;
  display: inline-block;
  vertical-align: middle;
}

body.sse-home .login .input2:focus,
body.sse-home .login .input3:focus {
  outline: none;
  border-color: var(--sse-ocean);
  box-shadow: 0 0 0 2px rgba(26, 95, 138, 0.15);
}

body.sse-home .login #indexCHKImg {
  vertical-align: middle;
  border-radius: 3px;
  border: 1px solid var(--sse-border);
}

body.sse-home .login .sse-home-btn {
  display: inline-block;
  min-width: 186px;
  height: 34px;
  padding: 0 20px;
  border: none;
  border-radius: 4px;
  font: 600 13px/34px var(--sse-font);
  letter-spacing: 0.04em;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

body.sse-home .login .sse-home-btn--primary {
  color: #fff;
  background: linear-gradient(180deg, var(--sse-ocean) 0%, var(--sse-navy-mid) 100%);
  box-shadow: 0 2px 6px rgba(11, 31, 58, 0.18);
}

body.sse-home .login .sse-home-btn--primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(11, 31, 58, 0.22);
}

body.sse-home .login .sse-home-btn--secondary {
  color: var(--sse-navy);
  background: linear-gradient(180deg, #fff 0%, var(--sse-surface-alt) 100%);
  border: 1px solid var(--sse-border);
}

body.sse-home .login .sse-home-btn--secondary:hover {
  border-color: var(--sse-ocean);
  color: var(--sse-ocean);
  transform: translateY(-1px);
}

body.sse-home .login .sse-home-btn--outline {
  color: var(--sse-ocean);
  background: transparent;
  border: 1px solid var(--sse-ocean);
  line-height: 32px;
}

body.sse-home .login .sse-home-btn--outline:hover {
  color: #fff;
  background: var(--sse-ocean);
  transform: translateY(-1px);
}

body.sse-home .login .sse-home-btn:active {
  transform: translateY(0);
}

/* ── SCFI intro block ── */
body.sse-home .defzs01 {
  display: flex;
  align-items: stretch;
  gap: 24px;
  min-height: 140px;
  padding: 20px 24px;
  box-sizing: border-box;
  background: var(--sse-surface);
  border: 1px solid var(--sse-border);
  border-left: 4px solid var(--sse-gold);
  border-radius: var(--sse-radius);
  box-shadow: var(--sse-shadow);
  color: var(--sse-text);
  line-height: 1.65;
  text-align: left;
}

body.sse-home .defzs01__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

body.sse-home .defzs01__title {
  margin: 0 0 12px;
  padding: 0;
  font-family: var(--sse-font);
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.3;
  color: #004b97;
  letter-spacing: 0.02em;
}

body.sse-home .defzs01__text {
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--sse-text-muted);
}

/* ── Market report & bulletin ── */
body.sse-home .defzs02.defzs03 {
  padding: 16px 20px 18px;
  box-sizing: border-box;
  background: var(--sse-surface);
  border: 1px solid var(--sse-border);
  border-radius: var(--sse-radius);
  box-shadow: var(--sse-shadow);
  text-align: left;
  line-height: 1.65;
  color: var(--sse-text);
}

body.sse-home .defzs03 > p:nth-child(odd) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--sse-border);
  font-size: 0;
}

body.sse-home .defzs03 > p:nth-child(odd) a {
  font-size: 13px;
}

body.sse-home .defzs03 > p:nth-child(odd) a:last-child {
  margin-left: auto;
  font-weight: 600;
  font-size: 12px;
}

body.sse-home .defzs03 #info1,
body.sse-home .defzs03 #info2 {
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--sse-text);
  line-height: 1.6;
}

body.sse-home .defzs03 #info1 a,
body.sse-home .defzs03 #info2 a {
  display: inline-block;
  max-width: 100%;
  line-height: 1.55;
  word-break: break-word;
}

/* ── Left sidebar: members & links ── */
body.sse-home .left230.leftlink {
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--sse-surface);
  border: 1px solid var(--sse-border);
  border-radius: var(--sse-radius);
  box-shadow: var(--sse-shadow);
  overflow: hidden;
}

body.sse-home .sse-home-left-col .member {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

body.sse-home .member {
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

body.sse-home .supermember.topmember,
body.sse-home .linkstitle.topmember {
  height: auto;
  min-height: 36px;
  margin: 0;
  padding: 10px 16px;
  background: linear-gradient(90deg, var(--sse-navy-mid), var(--sse-ocean));
  color: #fff;
  font-family: var(--sse-serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

body.sse-home .supermember.topmember::before {
  content: "Super Members";
}

body.sse-home .linkstitle.topmember::before {
  content: "Related Links";
}

body.sse-home .supermemberlist {
  padding: 12px 10px;
  text-align: center;
  background: var(--sse-surface-alt);
}

body.sse-home .supermemberlist iframe {
  border: 1px solid var(--sse-border);
  border-radius: 4px;
  background: #fff;
}

body.sse-home .newmemberlist {
  background: var(--sse-surface-alt);
  padding: 8px 0 12px;
  max-height: 405px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(26, 95, 138, 0.35) transparent;
}

body.sse-home .newmemberlist::-webkit-scrollbar {
  width: 6px;
}

body.sse-home .newmemberlist::-webkit-scrollbar-thumb {
  background: rgba(26, 95, 138, 0.35);
  border-radius: 3px;
}

body.sse-home .sse-home-left-col .newmemberlist {
  flex: 1;
}

body.sse-home .newmemberlist.topmargin {
  padding-top: 8px;
}

body.sse-home .newmemberlist li {
  margin: 0;
  padding: 8px 16px 8px 28px;
  line-height: 1.45;
  font-size: 12px;
  border-bottom: 1px solid rgba(212, 222, 232, 0.6);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' viewBox='0 0 6 6'%3E%3Ccircle cx='3' cy='3' r='2' fill='%231a5f8a'/%3E%3C/svg%3E") no-repeat 14px 14px;
}

body.sse-home .newmemberlist li:last-child {
  border-bottom: none;
}

body.sse-home .defzs01 .sse-home-sidebar-actions {
  flex: 0 0 178px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  box-sizing: border-box;

}

body.sse-home .defzs01 .sse-home-sidebar-actions a {
  display: block;
  margin: 0;
}

body.sse-home .defzs01 .sse-home-sidebar-actions a img {
  display: block;
  width: 100%;
  max-width: 162px;
  height: auto;
  margin: 0 auto;
  border-radius: 4px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

body.sse-home .defzs01 .sse-home-sidebar-actions a:hover img {
  box-shadow: var(--sse-shadow);
  transform: translateY(-2px);
}

body.sse-home .sse-home-left-col .imgdown {
  flex: 0 0 auto;
  margin-top: auto;
}

body.sse-home .imgdown {
  height: 4px;
  background: linear-gradient(90deg, var(--sse-gold), var(--sse-teal));
}

/* ── News panels (SSE Updates / News / Laws) ── */
body.sse-home .sse-home-grid .md1 {
  width: 100%;
  height: var(--sse-grid-row-height);
  margin: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: var(--sse-surface);
  border: 1px solid var(--sse-border);
  border-radius: var(--sse-radius);
  box-shadow: var(--sse-shadow);
  overflow: hidden;
}

body.sse-home .md1 {
  box-sizing: border-box;
  background: var(--sse-surface);
  border: 1px solid var(--sse-border);
  border-radius: var(--sse-radius);
  box-shadow: var(--sse-shadow);
  overflow: hidden;
}

body.sse-home .md2 {
  background: var(--sse-surface);
}

body.sse-home .hd {
  overflow: hidden;
  height: auto;
  min-height: 40px;
  background: linear-gradient(180deg, var(--sse-navy-mid) 0%, var(--sse-navy) 100%);
  border-bottom: 2px solid var(--sse-gold);
}

body.sse-home .hd ul {
  float: left;
  overflow: hidden;
  width: 100%;
  height: auto;
  text-align: center;
}

body.sse-home .hd li {
  float: left;
  overflow: hidden;
  height: 40px;
  background: transparent;
}

body.sse-home .hd.dongtai li {
  float: none;
  width: 100%;
  cursor: default;
}

body.sse-home .hd:not(.dongtai) li {
  cursor: pointer;
  transition: background 0.15s ease;
}

body.sse-home .hd li .capsl,
body.sse-home .hd li .capsr {
  display: none;
}

body.sse-home .hd li .capname {
  display: block;
  float: left;
  height: 40px;
  padding: 0 16px;
  font-weight: 600;
  font-size: 13px;
  line-height: 40px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  text-transform: capitalize;
  letter-spacing: 0.04em;
  box-sizing: border-box;
}

body.sse-home .hd li .capname.dongtai {
  width: 100%;
  text-align: center;
  float: none;
}

body.sse-home .hd li.on {
  background: rgba(255, 255, 255, 0.08);
}

body.sse-home .hd li.on .capname {
  color: #fff;
  background: transparent;
  border-bottom: 2px solid var(--sse-gold);
  margin-bottom: -2px;
}

body.sse-home .hd li.on a {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

body.sse-home #capname_dongtai a {
  display: block;
  font-size: 13px;
  overflow: visible;
  width: auto;
  height: auto;
  line-height: 40px;
  background: none;
  color: inherit;
}

body.sse-home #capname_dongtai a::before {
  content: "SSE Updates";
  font-weight: 600;
  letter-spacing: 0.04em;
}

body.sse-home .hd.dongtai .capname a {
  display: block;
  font-size: 13px;
  overflow: visible;
  width: auto;
  height: auto;
  line-height: 40px;
  background: none !important;
  color: inherit;
  text-transform: capitalize;
  font-weight: 600;
  letter-spacing: 0.04em;
}

body.sse-home .md1_con {
  height: calc(100% - 42px);
  overflow: hidden;
}

body.sse-home .it01txt {
  padding: 14px 16px 12px;
  margin: 0;
  height: 100%;
  box-sizing: border-box;
}

body.sse-home .sse-home-grid .md1_con {
  flex: 1;
  min-height: 0;
  height: auto;
  overflow: hidden;
}

body.sse-home .sse-home-grid .it01txt {
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

body.sse-home .sse-home-grid .it01txt .list_009 {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}

body.sse-home .it01txt .list_009 {
  margin: 0;
  padding: 0;
  max-height: 230px;
  overflow: hidden;
}

body.sse-home .it01txt .list_009 li {
  line-height: 1.55;
  min-height: 22px;
  padding: 4px 0 4px 14px;
  font-size: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' viewBox='0 0 6 6'%3E%3Ccircle cx='3' cy='3' r='2' fill='%23c4a052'/%3E%3C/svg%3E") no-repeat 0 10px;
  width: auto;
  text-indent: 0;
}

body.sse-home .it01txt span {
  display: block;
  line-height: 1;
  padding: 10px 0 0;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
}

body.sse-home .it01txt span a {
  color: var(--sse-ocean);
}

body.sse-home .cl {
  clear: both;
}

