* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    height: 100%;
}

body {
    display: block; /* 不用让 body 也成为 flex 容器 */
}

button {
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
    transition: 0.3s;
    color: white;
}

.container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* 左侧菜单栏 */
.sidebar {
    width: 200px;
    background-color: #2c3e50;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 20px;
}

.sidebar a {
    padding: 15px 20px;
    text-decoration: none;
    color: #ecf0f1;
    display: block;
    transition: background-color 0.3s;
}

.sidebar a:hover {
    background-color: #34495e;
}

.sidebar a.active {
    background-color: #1abc9c;
    color: white;
}

.menu {
    display: flex;
    flex-direction: column;
}

.menu a {
  display: block;
  color: #ecf0f1;
  text-decoration: none;
  padding: 20px 12px;
  transition: 0.3s;
}
.menu a:hover, .menu a.active {
  background-color: #1abc9c;
}

/* 退出按钮样式 */
.logout-btn {
    display: inline-block;
    padding: 5px 10px;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.logout-btn a {
    /*color: #e74c3c;*/
    text-decoration: none;
    font-weight: bold;
}

.logout-btn a:hover {
    color: #c0392b;
}


/* 内容区域 */
.content {
    flex: 1;
    padding: 20px;
    background-color: #ecf0f1;
    overflow-y: auto;
}

.content h1 {
    margin-bottom: 20px;
}


/* ========== 消息提示 ========== */
.message {
  margin: 10px 0;
  padding: 10px;
  border-radius: 6px;
}
.success { background-color: #d4edda; color: #155724; }
.error { background-color: #f8d7da; color: #721c24; }


/* ========== 表格样式 ========== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
th, td {
  padding: 10px;
  border: 1px solid #ccc;
  text-align: center;
}
th {
  background-color: #f2f2f2;
}


.cus-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

.cus-table th,
.cus-table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.cus-table th {
    background-color: #1abc9c;
    color: white;
    font-weight: 500;
    border-bottom: 2px solid #16a085;
}

.cus-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.cus-table tr:hover {
    background-color: #f1faff;
}

.cus-table a {
    color: #007bff;
    text-decoration: none;
}

.cus-table a:hover {
    text-decoration: underline;
}



/* ========== 按钮样式 ========== */
.fir-button { background-color: #007bff; }
.fir-button:hover { background-color: #0056b3; }

.sec-button { background-color: #e74c3c; }
.sec-button:hover { background-color: #c0392b; }

.clear-btn {
  background: transparent;
  color: #e74c3c;
  font-size: 18px;
  display: none;
}
.clear-btn:hover { color: #c0392b; }

.link-btn {
  background: none;
  border: none;
  padding: 0;
  margin-left: 10px;
  margin-right: 10px;
  color: #2563eb;            /* 链接蓝 */
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;

  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.link-btn:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.link-btn:active {
  color: #1e40af;
}

.link-btn:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}


.cus-table-button {
    padding: 4px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
    background-color: #1886c2;
}

.cus-table-button:hover {
    opacity: 0.85;
}

