/* 个人中心页面样式 */
.account-page {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}
.account-auth-loading {
  text-align: center;
  padding: 60px 20px;
  background: #f9f9f9;
  border-radius: 12px;
  color: #666;
  font-size: 16px;
}
.account-login-required {
  text-align: center;
  padding: 60px 20px;
  background: #f9f9f9;
  border-radius: 12px;
}
.account-login-required p {
  color: #666;
  margin-bottom: 20px;
  font-size: 16px;
}
.account-content {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
}
.account-tabs {
  display: flex;
  border-bottom: 1px solid #eee;
  background: #fafafa;
}
.tab-btn {
  padding: 14px 24px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #666;
  transition: color 0.2s;
}
.tab-btn:hover {
  color: #333;
}
.tab-btn.active {
  color: #2a2a2a;
  border-bottom: 2px solid #2a2a2a;
  margin-bottom: -1px;
}
.account-panels {
  padding: 28px;
}
.panel {
  display: none;
}
.panel.active {
  display: block;
}
.panel h2 {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 600;
}
.form-row {
  margin-bottom: 16px;
}
.form-row label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="password"],
.form-row textarea {
  width: 100%;
  max-width: 400px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}
.form-row input:read-only {
  background: #f5f5f5;
  color: #666;
}
.form-row input[type="checkbox"] {
  margin-right: 8px;
}
.btn-primary {
  padding: 10px 24px;
  background: #2a2a2a;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 8px;
}
.btn-primary:hover {
  background: #444;
}

/* 收货地址列表 */
.address-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.address-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fafafa;
}
.address-card.is-default {
  border-color: #2a2a2a;
  background: #fff;
}
.address-info {
  flex: 1;
}
.address-info .name {
  font-weight: 600;
  margin-bottom: 4px;
}
.address-info .phone {
  color: #666;
  font-size: 14px;
  margin-bottom: 4px;
}
.address-info .addr {
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}
.address-default-tag {
  display: inline-block;
  padding: 2px 8px;
  background: #2a2a2a;
  color: #fff;
  font-size: 12px;
  border-radius: 4px;
  margin-left: 8px;
}
.address-actions {
  display: flex;
  gap: 8px;
}
.address-actions button {
  padding: 6px 12px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  border-radius: 4px;
}
.address-actions button:hover {
  background: #f5f5f5;
}
.address-actions button.btn-edit {
  color: #1976d2;
  border-color: #1976d2;
}
.address-actions button.btn-delete {
  color: #c62828;
  border-color: #c62828;
}
#btnAddAddress {
  margin-top: 8px;
}

/* 地址弹窗（复用 checkout-modal 风格） */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.modal-content {
  position: relative;
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  width: 90%;
  max-width: 440px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.modal-content h3 {
  margin: 0 0 20px 0;
}
.modal-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* 消息通知 */
.notif-badge {
  display: inline-block;
  min-width: 18px;
  padding: 0 6px;
  background: #c62828;
  color: #fff;
  font-size: 12px;
  border-radius: 10px;
  margin-left: 4px;
}
.notification-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.notification-item {
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fafafa;
}
.notification-item.unread {
  background: #fff;
  border-color: #2a2a2a;
}
.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.notif-title {
  font-weight: 600;
}
.notif-time {
  font-size: 12px;
  color: #999;
}
.notif-content {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 8px;
}
.notif-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.notif-link {
  color: #1976d2;
  font-size: 14px;
}
.btn-mark-read {
  padding: 4px 12px;
  font-size: 12px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  border-radius: 4px;
}
.btn-mark-read:hover {
  background: #f5f5f5;
}

.account-seller-card {
  margin-top: 28px;
  padding: 24px 28px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.account-seller-title {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 600;
  color: #2a2a2a;
}
.account-seller-hint {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: #666;
  line-height: 1.55;
}
.account-seller-go {
  display: inline-block;
}
