:root{
  --bg:#f4efe7;
  --bg-deep:#efe5d7;
  --surface:#fffdf9;
  --surface-strong:#ffffff;
  --surface-soft:rgba(255,255,255,0.78);
  --border:#e8dcc8;
  --border-strong:#d8c4a8;
  --text:#1f2a37;
  --muted:#6b7280;
  --brand:#0f6c63;
  --brand-strong:#0b544e;
  --brand-soft:#dff4ef;
  --accent:#c9772b;
  --danger:#d14b4b;
  --shadow:0 20px 50px rgba(76, 51, 24, 0.10);
  --shadow-soft:0 10px 30px rgba(76, 51, 24, 0.08);
  --radius-xl:28px;
  --radius-lg:20px;
  --radius-md:14px;
  --radius-sm:10px;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  min-height:100vh;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(15,108,99,0.14), transparent 26%),
    radial-gradient(circle at right 20%, rgba(201,119,43,0.12), transparent 24%),
    linear-gradient(180deg, #f7f1e9 0%, #f3ecdf 54%, #f7f3eb 100%);
  font-family:"Segoe UI","PingFang SC","Microsoft YaHei","Noto Sans SC",sans-serif;
  position:relative;
}

body::before,
body::after{
  content:"";
  position:fixed;
  inset:auto;
  z-index:-1;
  border-radius:999px;
  filter:blur(10px);
  opacity:.55;
  pointer-events:none;
}

body::before{
  width:320px;
  height:320px;
  top:72px;
  right:-110px;
  background:rgba(15,108,99,0.10);
}

body::after{
  width:280px;
  height:280px;
  left:-90px;
  bottom:40px;
  background:rgba(201,119,43,0.10);
}

a{
  color:var(--brand);
  text-decoration:none;
}

a:hover{
  color:var(--brand-strong);
}

.site-container{
  max-width:1120px;
  margin:0 auto;
  padding:36px 20px 48px;
}

.site-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:24px;
  flex-wrap:wrap;
}

.brand{
  display:flex;
  align-items:center;
  gap:16px;
  min-width:0;
}

.logo{
  width:54px;
  height:54px;
  background:linear-gradient(135deg,var(--brand),#30a293);
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-weight:700;
  box-shadow:0 14px 30px rgba(15,108,99,0.18);
}

.logo-img{
  width:88px;
  height:88px;
  border-radius:24px;
  object-fit:contain;
  background:rgba(255,255,255,0.86);
  padding:10px;
  border:1px solid rgba(255,255,255,0.7);
  box-shadow:var(--shadow-soft);
}

.logo-fallback{
  width:64px;
  height:64px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--brand);
  color:#fff;
  border-radius:16px;
  font-weight:700;
}

.title{
  font-size:28px;
  line-height:1.15;
  font-weight:800;
  letter-spacing:-0.02em;
}

.subtitle{
  color:var(--muted);
  font-size:14px;
  margin-top:8px;
  max-width:620px;
}

.card{
  background:linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,252,247,0.96) 100%);
  border:1px solid rgba(232,220,200,0.9);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow);
  backdrop-filter:blur(10px);
  padding:28px;
}

.card h1,
.card h2,
.card h3{
  margin-top:0;
}

form{display:block}

label{
  display:block;
  margin:14px 0 8px;
  font-size:14px;
  font-weight:600;
  color:#324152;
}

input[type=text],
input[type=email],
input[type=number],
input[type=password],
select,
textarea{
  width:100%;
  padding:13px 14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,0.9);
  border-radius:var(--radius-md);
  font-size:14px;
  color:var(--text);
  transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

input::placeholder,
textarea::placeholder{
  color:#96a0ac;
}

input:focus,
select:focus,
textarea:focus{
  outline:none;
  border-color:var(--brand);
  box-shadow:0 0 0 4px rgba(15,108,99,0.12);
}

input[type=file]{
  width:100%;
  padding:12px;
  border:1px dashed var(--border-strong);
  background:rgba(255,255,255,0.78);
  border-radius:var(--radius-md);
}

textarea{
  min-height:120px;
  resize:vertical;
}

.row{
  display:flex;
  gap:14px;
}

.col{
  flex:1;
}

.actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
  margin-top:22px;
}

button,
.primary,
.ghost{
  appearance:none;
  border:none;
  font:inherit;
}

button.primary,
a.primary,
.primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:linear-gradient(135deg,var(--brand) 0%, #259987 100%);
  color:#fff;
  padding:12px 18px;
  border-radius:999px;
  cursor:pointer;
  font-weight:700;
  box-shadow:0 12px 26px rgba(15,108,99,0.20);
  transition:transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

button.primary:hover,
a.primary:hover,
.primary:hover{
  transform:translateY(-1px);
  color:#fff;
  box-shadow:0 16px 32px rgba(15,108,99,0.24);
}

button.ghost,
a.ghost,
.ghost{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:rgba(255,255,255,0.72);
  color:var(--text);
  border:1px solid var(--border);
  padding:11px 16px;
  border-radius:999px;
  cursor:pointer;
  font-weight:600;
  transition:border-color .2s ease, background .2s ease, transform .2s ease;
}

button.ghost:hover,
a.ghost:hover,
.ghost:hover{
  color:var(--brand-strong);
  border-color:var(--brand);
  background:rgba(255,255,255,0.95);
  transform:translateY(-1px);
}

.msg{
  margin-top:6px;
  color:var(--muted);
  font-size:14px;
}

.controls{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
  flex-wrap:wrap;
}

table{
  width:100%;
  border-collapse:collapse;
  background:transparent;
}

th,td{
  padding:12px 10px;
  border-bottom:1px solid rgba(232,220,200,0.85);
  text-align:left;
}

th{
  background:transparent;
  color:#374151;
  font-weight:700;
}

tr:hover td{
  background:rgba(15,108,99,0.035);
}

.site-footer small{
  display:block;
  text-align:center;
  color:var(--muted);
  margin-top:22px;
  font-size:12px;
}

.tabs{
  display:flex;
  gap:10px;
  margin-bottom:18px;
  border-bottom:1px solid rgba(216,196,168,0.7);
  flex-wrap:wrap;
}

.tab-btn{
  padding:12px 18px;
  background:transparent;
  border:none;
  cursor:pointer;
  font-size:14px;
  color:#667085;
  border-bottom:3px solid transparent;
  margin-bottom:-1px;
  font-weight:600;
}

.tab-btn.active{
  color:var(--brand);
  border-bottom-color:var(--brand);
}

.tab-content{display:none}
.tab-content.active{display:block}

.modal{
  position:fixed;
  inset:0;
  background:rgba(36,27,18,0.38);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:1000;
  padding:20px;
}

.modal-content{
  background:#fff;
  padding:24px;
  border-radius:var(--radius-lg);
  min-width:400px;
  max-width:90%;
  box-shadow:var(--shadow);
}

.modal-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top:20px;
  flex-wrap:wrap;
}

.nav-links{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

@media (max-width:900px){
  .site-container{padding:24px 14px 36px}
  .title{font-size:24px}
  .logo-img{width:74px;height:74px;border-radius:20px}
  .card{padding:22px}
}

@media (max-width:720px){
  .row{flex-direction:column}
  .site-header{align-items:stretch}
  .brand{align-items:flex-start}
  .title{font-size:22px}
  .card{border-radius:22px}
  .actions{align-items:stretch}
  button.primary,
  a.primary,
  .primary,
  button.ghost,
  a.ghost,
  .ghost{
    width:100%;
  }
}
