/* 鑫森鲜花 · 植系档案风格个人中心样式 */
:root {
  --ink: #1e2a2e;              /* 深墨绿 - 主文字 */
  --moss: #2b4f3b;             /* 苔藓绿 - 主色调 */
  --sage: #7d9d7e;             /* 鼠尾草绿 - 辅助色 */
  --cream: #f1ede4;            /* 奶油白 - 背景 */
  --sand: #e5dfd3;             /* 沙色 - 边框/分隔 */
  --petal: #efe3d9;            /* 花瓣粉 - 点缀 */
  --shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.12);
  --border-light: 1px solid rgba(43, 79, 59, 0.12);
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  background-color: #fff;
  font-family: var(--font-sans);
  color: var(--ink);
  font-weight: 300;
  line-height: 1.6;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(125, 157, 126, 0.03) 0%, transparent 25%),
    radial-gradient(circle at 90% 70%, rgba(43, 79, 59, 0.03) 0%, transparent 35%);
  background-size: 100% 100%;
  background-position: 0 0;
  min-height: 100vh;
}

/* 页面标题 */
h2.page-header {
  margin: 20px 0 35px 0;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--sand);
  color: var(--moss);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 2.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
}

h2.page-header:after {
  content: "⚘";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: var(--sage);
  opacity: 0.6;
}

/* 用户基础信息卡片 */
.user-baseinfo {
  margin-bottom: 35px;
  background: white;
  border-radius: 0;
  padding: 25px 30px;
  box-shadow: var(--shadow);
  border: var(--border-light);
  position: relative;
}

.user-baseinfo:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--moss) 0%, var(--sage) 100%);
}

.user-baseinfo table {
  width: 100%;
}

.user-baseinfo table tr td {
  color: var(--ink);
  padding: 14px 8px;
  border-bottom: 1px solid var(--sand);
  font-weight: 300;
}

.user-baseinfo table tr:last-child td {
  border-bottom: none;
}

.user-baseinfo table tr td:first-child {
  font-weight: 500;
  color: var(--moss);
  width: 120px;
  letter-spacing: 1px;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* 容器宽度优化 - 保持植系档案的留白感 */
#content-container.container {
  max-width: 95%;
  width: 95%;
  padding: 0 30px;
}

/* 主面板卡片 */
.panel.panel-default {
  border: none;
  border-radius: 0;
  box-shadow: var(--shadow);
  background: white;
  border: var(--border-light);
  position: relative;
  overflow: hidden;
}

.panel-body {
  padding: 35px 40px;
  background: white;
  position: relative;
}

/* 头像区域 - 植系档案风格 */
@media (min-width: 992px) {
  .user-center .avatar-text,
  .user-center .avatar-img {
    height: 160px;
    width: 160px;
    border-radius: 0;
    line-height: 160px;
    font-size: 5rem;
    border: 2px solid var(--moss);
    box-shadow: 0 8px 20px rgba(43, 79, 59, 0.15);
    transition: all 0.3s ease;
    background-color: var(--cream);
    color: var(--moss);
    font-family: var(--font-serif);
  }
  
  .user-center .avatar-text:hover,
  .user-center .avatar-img:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(43, 79, 59, 0.2);
    border-color: var(--sage);
  }
  
  .user-center .avatar-img {
    font-size: 0;
  }
  
  .user-center .avatar-img img {
    height: 160px;
    width: 160px;
    border-radius: 0;
    object-fit: cover;
    filter: grayscale(15%);
  }
}

/* 侧边栏 - 植物标本卡片 */
.sidenav {
  background: white;
  border-radius: 0;
  box-shadow: var(--shadow);
  border: var(--border-light);
  padding: 10px 0;
  position: relative;
}

.sidenav:before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  right: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, var(--sand) 20%, var(--sand) 80%, transparent 100%);
}

.sidenav .nav > li {
  margin: 0;
  position: relative;
}

.sidenav .nav > li > a {
  color: var(--ink);
  padding: 16px 25px;
  border-left: 3px solid transparent;
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
  position: relative;
  background: transparent;
}

.sidenav .nav > li > a:before {
  content: "—";
  margin-right: 12px;
  color: var(--sage);
  font-weight: 300;
  font-size: 1.1rem;
  transition: all 0.25s ease;
}

.sidenav .nav > li > a:hover {
  background-color: var(--cream);
  color: var(--moss);
  border-left-color: var(--moss);
  padding-left: 30px;
}

.sidenav .nav > li > a:hover:before {
  content: "⚘";
  margin-right: 12px;
  color: var(--moss);
}

.sidenav .nav > li.active > a {
  background-color: var(--cream);
  color: var(--moss);
  border-left-color: var(--moss);
  font-weight: 500;
}

.sidenav .nav > li.active > a:before {
  content: "🌱";
  margin-right: 12px;
  color: var(--moss);
}

.sidenav .nav > li:not(:last-child) > a {
  border-bottom: 1px solid var(--sand);
}

/* 表单元素 - 极简线性风格 */
.form-control {
  border: none;
  border-bottom: 1.5px solid var(--sand);
  border-radius: 0;
  padding: 12px 0;
  background: transparent;
  font-size: 1rem;
  color: var(--ink);
  font-weight: 300;
  transition: all 0.25s ease;
  box-shadow: none;
  height: auto;
}

.form-control:focus {
  border-bottom-color: var(--moss);
  box-shadow: none;
  outline: none;
  background: transparent;
}

.form-control::placeholder {
  color: #b9c2bc;
  font-weight: 300;
  font-size: 0.9rem;
}

textarea.form-control {
  border: 1.5px solid var(--sand);
  padding: 12px;
  resize: vertical;
  min-height: 100px;
}

textarea.form-control:focus {
  border-color: var(--moss);
}

/* 按钮设计 */
.btn {
  border-radius: 0;
  padding: 12px 30px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--ink);
  color: white;
  border: 1px solid var(--ink);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: white;
  color: var(--ink);
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(30, 42, 46, 0.15);
}

.btn-default {
  background-color: white;
  color: var(--ink);
  border: 1px solid var(--sand);
}

.btn-default:hover,
.btn-default:focus {
  background-color: var(--cream);
  border-color: var(--sage);
  color: var(--moss);
  transform: translateY(-2px);
}

/* 移动端侧边栏切换按钮 */
.sidebar-toggle {
  display: none;
  background-color: var(--moss);
  color: white;
  box-shadow: 0 4px 15px rgba(43, 79, 59, 0.25);
  border: none;
  border-radius: 0;
  font-size: 1.5rem;
  padding: 12px;
  line-height: 1;
  height: 50px;
  width: 50px;
  text-align: center;
  z-index: 999999;
  transition: all 0.3s ease;
}

.sidebar-toggle:hover {
  background-color: var(--ink);
  transform: scale(1.05);
}

@media (max-width: 991px) {
  .sidenav {
    position: fixed;
    top: 50px;
    z-index: 1029;
    height: calc(100vh - 50px);
    padding: 25px 0;
    min-width: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    width: 300px;
    left: -300px;
    transition: all 0.35s ease;
    border-radius: 0;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);
    background: white;
  }
  
  .sidenav:before {
    display: none;
  }
  
  .sidebar-toggle {
    display: block;
    position: fixed;
    right: 20px;
    bottom: 30px;
  }
}

body.sidebar-open .sidenav {
  left: 0;
  width: 300px;
  box-shadow: 8px 0 30px rgba(43, 79, 59, 0.15);
}

body.sidebar-open .sidebar-toggle i:before {
  content: "✕";
  font-family: var(--font-sans);
}

/* 植物档案装饰元素 */
.panel-body {
  position: relative;
}

.panel-body:after {
  content: "";
  position: absolute;
  bottom: 15px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%232b4f3b' opacity='0.03' d='M50,20 Q60,10 70,20 Q80,30 70,40 Q60,50 50,40 Q40,50 30,40 Q20,30 30,20 Q40,10 50,20 Z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
}

/* 响应式网格优化 */
@media (min-width: 1200px) {
  .col-md-3 {
    width: 25%;
    padding-right: 25px;
  }
  .col-md-9 {
    width: 75%;
    padding-left: 15px;
  }
}

/* 表单组间距 */
.form-group {
  margin-bottom: 30px;
}

.control-label {
  color: var(--moss);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  padding-top: 0;
}

/* 帮助文本 */
.help-block {
  color: #94a39c;
  font-size: 0.7rem;
  font-style: italic;
  margin-top: 5px;
}

/* 水平表单调整 */
.form-horizontal .control-label {
  text-align: left;
  padding-top: 15px;
}

@media (min-width: 768px) {
  .form-horizontal .control-label {
    text-align: right;
    padding-right: 20px;
  }
}

/* 操作按钮区域 */
.form-actions {
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid var(--sand);
}

/* 提示框/警告框 */
.alert {
  border-radius: 0;
  border: none;
  border-left: 4px solid;
  padding: 15px 20px;
  background-color: white;
  box-shadow: var(--shadow);
  font-weight: 300;
}

.alert-success {
  border-left-color: var(--moss);
  color: var(--ink);
}

.alert-info {
  border-left-color: var(--sage);
  color: var(--ink);
}

.alert-warning {
  border-left-color: #d4a373;
  color: var(--ink);
}

.alert-danger {
  border-left-color: #c44536;
  color: var(--ink);
}

/* 表格样式 (用于订单/列表页) */
.table {
  color: var(--ink);
}

.table > thead > tr > th {
  border-bottom: 2px solid var(--moss);
  color: var(--moss);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  padding: 15px 8px;
}

.table > tbody > tr > td {
  border-bottom: 1px solid var(--sand);
  padding: 15px 8px;
  font-weight: 300;
  vertical-align: middle;
}

.table > tbody > tr:hover {
  background-color: var(--cream);
}

/* 分页样式 */
.pagination > li > a,
.pagination > li > span {
  border: none;
  color: var(--ink);
  background-color: white;
  margin: 0 3px;
  border-radius: 0;
  font-weight: 300;
  transition: all 0.2s ease;
}

.pagination > li > a:hover,
.pagination > li > span:hover {
  background-color: var(--cream);
  color: var(--moss);
}

.pagination > .active > a,
.pagination > .active > span {
  background-color: var(--moss);
  color: white;
}

.pagination > .active > a:hover {
  background-color: var(--ink);
}

/* 标签/徽章 */
.label {
  border-radius: 0;
  font-weight: 300;
  padding: 5px 10px;
  letter-spacing: 0.5px;
}

.label-primary {
  background-color: var(--moss);
}

.label-success {
  background-color: var(--sage);
}

.label-default {
  background-color: var(--sand);
  color: var(--ink);
}

/* 模态框 - 植系档案风格 */
.modal-content {
  border-radius: 0;
  box-shadow: var(--shadow);
  border: var(--border-light);
}

.modal-header {
  border-bottom: 2px solid var(--moss);
  padding: 20px 25px;
  background-color: white;
}

.modal-header h4 {
  font-family: var(--font-serif);
  color: var(--moss);
  font-weight: 500;
  letter-spacing: 1px;
}

.modal-body {
  padding: 30px 25px;
}

.modal-footer {
  border-top: 1px solid var(--sand);
  padding: 20px 25px;
}

.close {
  color: var(--ink);
  opacity: 0.5;
  transition: all 0.2s ease;
}

.close:hover {
  opacity: 1;
  color: var(--moss);
}

/* 上传区域风格统一 */
.upload-area {
  border: 1.5px dashed var(--sand);
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
  background-color: #fafbf9;
  margin-top: 5px;
}

.upload-area:hover {
  border-color: var(--moss);
  background-color: #f6f8f5;
}

.upload-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: var(--sage);
}

.upload-text {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 1px;
}

.upload-hint {
  font-size: 0.7rem;
  color: #94a39c;
  margin-top: 10px;
  font-style: italic;
}