.nav-works .icon,
.nav-home .icon,
.nav-about .icon,
.nav-contact .icon,
.nav-cart .icon {
  transform: rotate(180deg);
}
/* 颜色、字体、阴影等设计变量 */


body {
  margin: 0;
  background: url('../assets/bg.png') no-repeat center center fixed;
  background-size: cover;
  font-family: var(--font-main);
  background-color: var(--color-bg-main);
}

.header {
  width: 100%;
  height: 80px;
  background: var(--color-bg-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  box-shadow: var(--shadow-card);
  backdrop-filter: var(--blur-bg);
}

.logo {
  width: 51px;
  height: 36px;
}

.nav {

  display: flex;
  align-items: center;
  gap: 32px;
}

:root {
  --color-bg-main: #ffffff;
  --color-bg-header: rgba(255, 255, 255, 0.8);
  --color-bg-card: rgba(255, 255, 255, 0.9);
  --color-primary: #4F46E5;
  --color-success: #22C55E;
  --color-info: #3B82F6;
  --color-danger: #EF4444;
  --color-gray: #9CA3AF;
  --color-dark: #312F49;
  --color-title: #A28CD7;
  --color-text-main: #4B5563;
  --color-text-light: #475569;
  --color-border: #E5E7EB;
  --font-main: 'Roboto', sans-serif;
  --font-title: 'Ovo', serif;
  --shadow-card: 0px 8px 10px -6px rgba(0, 0, 0, 0.1), 0px 20px 25px -5px rgba(0, 0, 0, 0.1);
  --blur-bg: blur(8px);

  /* 登录面板美化变量 */
  --login-panel-glass: rgba(255,255,255,0.75);
  --login-panel-shadow: 0 8px 32px 0 rgba(160,140,215,0.18);
  --input-radius: 16px;
  --input-bg: rgba(255,255,255,0.7);
  --input-focus: #A28CD7;
  --btn-gradient: linear-gradient(90deg, #A28CD7 0%, #4F46E5 100%);
  --btn-hover: #6D5BAA;
  --btn-radius: 8px;
  --panel-hover: translateY(-6px) scale(1.02);
}
/* 底部紫色提示框 */
.footer-tip {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  min-width: 400px;
  max-width: 600px;
  background: var(--color-title);
  color: #fff;
  font-size: 18px;
  font-family: var(--font-main);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(160, 140, 215, 0.18);
  padding: 18px 32px;
  text-align: center;
  z-index: 999;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.main-card {
  position: absolute;
  left: 248px;
  top: 134px;
  width: 1114px;
  height: 756px;
  background: radial-gradient(145% at 91% -14%, #bca7c6 17%, #c6a7b1 100%);
  border-radius: 49px;
  box-shadow: var(--shadow-card);
}

.art-bg {
  position: absolute;
  left: 62px;
  top: 209px;
  width: 1032px;
  height: 607px;
  border-radius: 49px;
  background: url('../assets/art.jpg') no-repeat center center;
  background-size: cover;
}

.login-panel {
  position: absolute;
  left: 854px;
  top: 207px;
  width: 480px;
  height: 612px;
  background: var(--login-panel-glass);
  border-radius: 40px;
  box-shadow: var(--login-panel-shadow);
  backdrop-filter: blur(18px) saturate(1.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 48px 40px 40px 40px;
  border: 1.5px solid #ece6f7;
  transition: box-shadow 0.3s, transform 0.3s;
}

.login-panel:hover {
  box-shadow: 0 16px 48px 0 rgba(160,140,215,0.22);
  transform: var(--panel-hover);
}

.login-panel h2 {
  text-align: center;
  color: var(--color-title);
  font-size: 26px;
  margin-bottom: 48px;
  font-family: var(--font-title);
  letter-spacing: 1px;
  font-weight: 400;
}

.login-panel form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.input-group {
  position: relative;
  margin-bottom: 24px;
  background: var(--input-bg);
  border-radius: var(--input-radius);
  border: 1.5px solid #ece6f7;
  transition: border-color 0.3s;
}
.input-group input {
  width: 100%;
  padding: 14px 40px 14px 36px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  color: var(--color-text-main);
  border-radius: var(--input-radius);
}
.input-group input:focus {
  outline: none;
}
.input-group:focus-within {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 2px #E9D7FE;
}


.input-group .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 16px;
  color: var(--color-gray);
}
.input-group .icon svg {
  transform: rotate(180deg);
}

.input-group .show-pwd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 16px;
  cursor: pointer;
  color: var(--color-gray);
}

.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.options label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-main);
  font-size: 14px;
}

.options a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 14px;
}

.login-panel .login-btn-main {
  width: 100%;
  height: 48px;
  background: var(--btn-gradient);
  color: #fff;
  border-radius: var(--btn-radius);
  font-size: 17px;
  border: none;
  cursor: pointer;
  margin-bottom: 24px;
  font-weight: 500;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(160,140,215,0.10);
  transition: background 0.3s, box-shadow 0.2s, transform 0.1s;
}
.login-panel .login-btn-main:hover {
  background: var(--btn-hover);
  box-shadow: 0 4px 16px rgba(160,140,215,0.18);
}
.login-panel .login-btn-main:active {
  background: #4F46E5;
  transform: scale(0.98);
}

.other-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  margin-top: 8px;
}

.other-login-title {
  background: var(--color-bg-main);
  color: var(--color-gray);
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 1px 4px rgba(160,140,215,0.08);
  margin-bottom: 6px;
}

.other-login-btns {
  display: flex;
  justify-content: center;
  gap: 64px;
}

.other-login-btns button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.other-login-btns .wechat {
  background: var(--color-success);
}

.other-login-btns .qq {
  background: var(--color-info);
}

.other-login-btns .weibo {
  background: var(--color-danger);
}

.register-tip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--color-text-main);
  background: #f7f6fa;
  border-radius: 10px;
  padding: 8px 18px;
  margin-top: 12px;
}

.register-tip a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  background: #ede9f7;
  border-radius: 6px;
  padding: 4px 12px;
  transition: background 0.2s;
}

.other-login-btns button svg {
}
.other-login-btns .wechat svg,
.other-login-btns .qq svg,
.other-login-btns .weibo svg {
  transform: rotate(180deg);
}

.art-title {
  position: absolute;
  left: 249px;
  top: 478px;
  width: 483px;
  height: 40px;
  text-align: center;
  font-family: var(--font-title);
  font-size: 48px;
  color: var(--color-title);
}
