* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

.app-container, .user-dashboard {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-header {
  height: 10%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  position: relative;
}

.logo-container .logo {
  height: 50px;
  width: auto;
}

.main-nav {
  display: flex;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-item {
  position: relative;
}

.dropdown-toggle {
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.dropdown-toggle:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  list-style: none;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 8px 15px;
}

.dropdown-menu li a {
  color: #333;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s;
}

.dropdown-menu li a:hover {
  background-color: #f5f5f5;
}

.main-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.auth-container {
  width: 100%;
  max-width: 450px;
}

.auth-form {
  background: white;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.auth-form h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  font-size: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.error-text {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

.tab-container {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background-color: #f5f5f5;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
}

.tab.active {
  background-color: #667eea;
  color: white;
}

.tab:hover:not(.active) {
  background-color: #e8e8e8;
}

.code-input-group {
  display: flex;
  gap: 10px;
}

.code-input-group input {
  flex: 1;
}

.send-code-btn {
  padding: 12px 20px;
  background-color: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.send-code-btn:hover:not(:disabled) {
  background-color: #5a6fd6;
}

.send-code-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.social-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.social-login span {
  color: #999;
  font-size: 14px;
}

.social-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: opacity 0.3s;
}

.social-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.qq-btn {
  background-color: #12b7f5;
  color: white;
}

.wechat-btn {
  background-color: #07c160;
  color: white;
}

.github-btn {
  background-color: #333;
  color: white;
}

.links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.links a {
  color: #667eea;
  text-decoration: none;
  font-size: 14px;
}

.links a:hover {
  text-decoration: underline;
}

.message {
  margin-top: 15px;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
}

.message.success {
  background-color: #d4edda;
  color: #155724;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
}

.sms-login {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.main-footer {
  background-color: #c0c0c0;
  padding: 30px 0;
  margin: 30px 0;
}

.footer-content {
  display: flex;
  width: 70%;
  margin: 0 auto;
}

.footer-left {
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 10px;
}

.footer-info {
  text-align: right;
  font-size: 12px;
  color: #666;
}

.footer-divider {
  width: 1px;
  background-color: #999;
  margin: 0 20px;
}

.footer-right {
  width: 70%;
}

.footer-links {
  display: flex;
  justify-content: space-around;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-column h4 {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 10px;
  color: #333;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  padding: 5px 0;
  font-size: 14px;
  color: #666;
}

.user-content {
  flex: 1;
  padding: 40px;
}

.user-content h1 {
  margin-bottom: 20px;
  color: #333;
}