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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #F0EFE2;
    color: #333;
    line-height: 1.6;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部 */
.header {
    background-color: #5D6146;
    color: white;
    padding: 15px;
    text-align: center;
    position: relative;
}

.back-btn {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}

.header h1 {
    font-size: 18px;
    font-weight: normal;
}

/* 用户信息区 */
.user-info {
    background-color: rgba(93, 97, 70, 0.3);
    color: white;
    padding: 20px 15px;
    font-size: 16px;
}

.user-info p {
    margin-bottom: 10px;
}

.user-info .highlight {
    color: #FF4444;
    font-weight: bold;
}

/* 菜单列表 */
.menu-list {
    flex: 1;
    background-color: white;
    padding: 0;
}

.menu-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px;
}

.menu-item {
    display: block;
    background-color: #5D6146;
    color: white;
    padding: 15px;
    margin: 10px;
    max-width: 120px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
}

.menu-row .menu-item {
    margin: 0;
    flex-shrink: 0;
}

.menu-tip {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    background: none;
    padding: 0;
    margin: 0;
    border: none;
    display: inline;
}

.menu-item .menu-text {
    display: block;
    font-weight: 500;
}

/* 底部导航 */
.footer {
    background-color: #5D6146;
    padding: 15px;
    display: flex;
    justify-content: space-around;
    position: sticky;
    bottom: 0;
}

.footer a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    width: 85%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background-color: #5D6146;
    color: white;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: normal;
    margin: 0;
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #5D6146;
}

.submit-btn {
    width: 100%;
    background-color: #5D6146;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.submit-btn:active {
    background-color: #4a4d38;
}
