/* ========================================
   Member Center Styles
   Design: 浏阳市中宇烟花贸易有限公司-盾牌烟花
   ======================================== */

/* --- Auth Pages (Login / Register) --- */
.authPageWrap {
  background: #181818;
}
.authPage {
  min-height: calc(100vh - 1.5rem);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 2rem 0 0;
}
.authBreadcrumb {
  display: flex;
  align-items: center;
  gap: 0.06rem;
  font-size: 0.16rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1.07rem;
}
.authBreadcrumb svg {
  width: 0.19rem;
  height: 0.18rem;
  margin-right: 0.02rem;
}
.authBreadcrumb a {
  color: #fff;
  text-decoration: none;
}
.authBreadcrumb a:hover {
  text-decoration: underline;
}
.authBreadcrumb span {
  color: rgba(255,255,255,0.6);
}
.authBox {
  width: 7rem;
  max-width: 700px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #3B3B3B;
  border-radius: 0.2rem;
  padding: 0.25rem 0.3rem 0.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.authBox h1 {
  font-size: 0.24rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.06rem;
  align-self: center;
}
.authDivider {
  width: 6.47rem;
  max-width: 647px;
  height: 0;
  border-top: 1px solid #565656;
  margin: 0.25rem 0 0.35rem;
}
.authForm {
  width: 6.43rem;
  max-width: 643px;
}
.authForm .formGroup {
  margin-bottom: 0.18rem;
}
.authForm .formGroup input {
  width: 100%;
  height: 0.5rem;
  padding: 0 0.15rem;
  background: #000;
  border: 1px solid #434343;
  border-radius: 0.08rem;
  font-size: 0.14rem;
  font-family: Poppins, sans-serif;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.authForm .formGroup input:focus {
  border-color: var(--yellow);
}
.authForm .formGroup input::placeholder {
  color: #999;
}
.authForm .authBtn {
  width: 6.5rem;
  max-width: 650px;
  height: 0.43rem;
  background: var(--yellow);
  border: none;
  border-radius: 0;
  font-size: 0.18rem;
  font-weight: 700;
  font-family: Poppins, sans-serif;
  color: #000;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 0.12rem;
}
.authForm .authBtn:hover {
  opacity: 0.85;
}
.authLinks {
  display: flex;
  justify-content: space-between;
  width: 6.43rem;
  max-width: 643px;
  margin: 0.2rem auto 0;
  font-size: 0.14rem;
  font-weight: 500;
}
.authLinks a {
  color: #fff;
  text-decoration: none;
}
.authLinks a:hover {
  text-decoration: underline;
}
/* 验证码组：输入框 + 获取验证码按钮 */
.codeGroup {
  display: flex;
  gap: 0.2rem;
  align-items: center;
}
.codeGroup input {
  flex: 1;
}
.codeGroup .getCodeBtn {
  flex-shrink: 0;
  height: 0.5rem;
  padding: 0 0.2rem;
  background: #000;
  border: 1px solid #434343;
  border-radius: 0.08rem;
  font-size: 0.14rem;
  font-family: Poppins, sans-serif;
  color: #fff;
  cursor: pointer;
  transition: border-color 0.2s;
}
.codeGroup .getCodeBtn:hover {
  border-color: var(--yellow);
}
.authRegisterLink {
  width: 6.43rem;
  max-width: 643px;
  margin: 0.2rem auto 0;
  text-align: center;
  font-size: 0.14rem;
  font-weight: 500;
}
.authRegisterLink a {
  color: #fff;
  text-decoration: none;
}
.authRegisterLink a:hover {
  text-decoration: underline;
}
.authAgreement {
  display: flex;
  align-items: flex-start;
  gap: 0.08rem;
  margin-bottom: 0.18rem;
  font-size: 0.13rem;
  color: rgba(255,255,255,0.7);
  text-align: left;
}
.authAgreement input[type="checkbox"] {
  margin-top: 0.02rem;
  accent-color: var(--yellow);
}
.authAgreement a {
  color: var(--yellow);
  text-decoration: underline;
}

/* --- Member Center Layout --- */
.memberPage {
  padding: 2rem 0 0.6rem;
}
.memberBreadcrumb {
  display: flex;
  align-items: center;
  font-size: 0.16rem;
  color: #fff;
  margin-bottom: 0.2rem;
}
.memberBreadcrumb a {
  display: flex;
  align-items: center;
  gap: 0.08rem;
  color: inherit;
  text-decoration: none;
}
.memberBreadcrumb a:hover {
  color: var(--yellow);
}
.memberBreadcrumb a img {
  width: 0.18rem;
  height: 0.18rem;
  filter: brightness(0) invert(1);
}
.memberBreadcrumb span {
  margin: 0 0.04rem;
  color: inherit;
}
.memberLayout {
  display: flex;
  gap: 0.3rem;
  align-items: flex-start;
}

/* --- Sidebar --- */
.memberSidebar {
  width: 2.9rem;
  min-width: 258px;
  background: #3B3B3B;
  border-radius: 0.2rem;
  overflow: hidden;
  flex-shrink: 0;
}
.sidebarTitle {
  background: var(--yellow);
  color: #000;
  font-size: 0.2rem;
  font-weight: 700;
  padding: 0.15rem 0.2rem;
  text-align: center;
}
.sidebarNav {
  list-style: none;
  padding: 0.08rem 0;
}
.sidebarNav li {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebarNav li:last-child {
  border-bottom: none;
}
.sidebarNav a {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.13rem 0.2rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.16rem;
  text-decoration: none;
  transition: background 0.2s;
}
.sidebarNav a:hover {
  background: rgba(255,255,255,0.08);
}
.sidebarNav a.active {
  background: #2A2A2A;
  color: #fff;
}
.sidebarNav a .navIcon {
  width: 0.26rem;
  height: 0.26rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebarNav a .navIcon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sidebarNav a .navLabel {
  flex: 1;
}
.sidebarNav a .navExt {
  font-size: 0.12rem;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}

/* --- Member Content --- */
.memberContent {
  flex: 1;
  min-width: 0;
}
.memberContent h2 {
  font-size: 0.24rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}

/* --- Download / File List --- */
.fileList {
  background: rgba(0,0,0,0.6);
  border-radius: 0.15rem;
  overflow: hidden;
}
.fileListHeader {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.8fr 0.8fr;
  padding: 0.15rem 0.2rem;
  font-size: 0.14rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.fileListBody {
  list-style: none;
}
.fileRow {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.8fr 0.8fr;
  align-items: center;
  padding: 0.13rem 0.2rem;
  min-height: 0.7rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.2s;
}
.fileRow:last-child {
  border-bottom: none;
}
.fileRow:hover {
  background: rgba(255,255,255,0.03);
}
.fileRow .fileInfo {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}
.fileRow .fileThumb {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 0.04rem;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fileRow .fileThumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fileRow .fileName {
  font-size: 0.16rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fileRow .fileDate {
  font-size: 0.16rem;
  color: rgba(255,255,255,0.85);
}
.fileRow .fileSize {
  font-size: 0.16rem;
  color: rgba(255,255,255,0.85);
}
.fileRow .fileAction {
  text-align: right;
}
.fileRow .fileAction .downloadBtn {
  display: inline-flex;
  align-items: center;
  gap: 0.06rem;
  padding: 0.06rem 0.2rem;
  border: 1px solid var(--yellow);
  border-radius: 0.2rem;
  font-size: 0.14rem;
  font-family: Poppins, sans-serif;
  color: var(--yellow);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.fileRow .fileAction .downloadBtn:hover {
  background: var(--yellow);
  color: #000;
}
.fileRow .fileAction .learnMore {
  font-size: 0.14rem;
  color: var(--yellow);
  text-decoration: none;
  margin-left: 0.1rem;
}
.fileRow .fileAction .learnMore:hover {
  text-decoration: underline;
}

/* --- Pagination --- */
.filePagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.08rem;
  padding: 0.15rem 0;
  font-size: 0.14rem;
  color: rgba(255,255,255,0.5);
}
.filePagination a,
.filePagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0.3rem;
  height: 0.3rem;
  padding: 0 0.06rem;
  border-radius: 0.04rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: all 0.2s;
}
.filePagination a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.filePagination .active {
  background: var(--yellow);
  color: #000;
  font-weight: 700;
}
.filePagination .totalInfo {
  margin-left: 0.2rem;
  color: rgba(255,255,255,0.4);
}

/* --- Empty State --- */
.emptyState {
  text-align: center;
  padding: 0.6rem 0.2rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.16rem;
}
.emptyState img {
  width: 0.8rem;
  height: 0.8rem;
  margin-bottom: 0.15rem;
  opacity: 0.4;
}

/* --- Password Form (Change password) --- */
.pwdCard {
  background: rgba(0,0,0,0.6);
  border: 1px solid #3B3B3B;
  border-radius: 0.2rem;
  padding: 0.24rem 0.3rem 0.5rem;
}
.pwdCard .pwdTitle {
  font-size: 0.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}
.pwdCard .pwdDivider {
  height: 0;
  border-top: 1px solid #404040;
  margin-bottom: 1.02rem;
}
.pwdCard .passwordForm {
  max-width: 6.09rem;
  margin: 0 auto;
}
.pwdCard .pwdRow {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  margin-bottom: 0.24rem;
}
.pwdCard .pwdRow label {
  width: 1.81rem;
  flex-shrink: 0;
  text-align: right;
  font-size: 0.16rem;
  color: #fff;
}
.pwdCard .pwdRow input {
  flex: 1;
  max-width: 4rem;
  height: 0.5rem;
  padding: 0 0.15rem;
  background: #212121;
  border: 1px solid #424242;
  border-radius: 0.04rem;
  font-size: 0.16rem;
  font-family: Poppins, sans-serif;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.pwdCard .pwdRow input::placeholder {
  color: #fff;
  opacity: 1;
}
.pwdCard .pwdRow input:focus {
  border-color: var(--yellow);
}
.pwdCard .pwdBtns {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: 2.09rem;
  margin-top: 0.32rem;
}
.pwdCard .pwdBtns button {
  width: 1.33rem;
  height: 0.4rem;
  border-radius: 0.04rem;
  font-size: 0.16rem;
  font-family: Poppins, sans-serif;
  cursor: pointer;
  transition: opacity 0.2s;
}
.pwdCard .pwdBtns .pwdCancel {
  background: #f5f5f5;
  color: #333;
  border: 1px solid #d7d7d7;
}
.pwdCard .pwdBtns .pwdSubmit {
  background: var(--yellow);
  color: #000;
  border: none;
  font-weight: 500;
}
.pwdCard .pwdBtns button:hover {
  opacity: 0.85;
}

/* --- Alert Messages --- */
.alert {
  padding: 0.12rem 0.16rem;
  border-radius: 0.06rem;
  font-size: 0.14rem;
  margin-bottom: 0.15rem;
}
.alert-success {
  background: rgba(46, 204, 113, 0.2);
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #2ecc71;
}
.alert-error {
  background: rgba(231, 76, 60, 0.2);
  border: 1px solid rgba(231, 76, 60, 0.4);
  color: #e74c3c;
}

/* --- Registration Agreement Modal --- */
.agreementOverlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.agreementOverlay.show {
  display: flex;
}
.agreementModal {
  background: #2A2A2A;
  border-radius: 0.15rem;
  width: 6rem;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  padding: 0.3rem;
}
.agreementModal h3 {
  font-size: 0.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.15rem;
}
.agreementModal .agreementBody {
  font-size: 0.14rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
}
.agreementModal .agreementClose {
  display: block;
  margin: 0.2rem auto 0;
  padding: 0.08rem 0.3rem;
  background: var(--yellow);
  border: none;
  border-radius: 0.06rem;
  font-size: 0.15rem;
  font-family: Poppins, sans-serif;
  font-weight: 500;
  color: #000;
  cursor: pointer;
}