* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.content-with-padding {
    max-width: 1200px;
    margin: 80px auto 20px;
    padding: 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 10px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
}

.page-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: linear-gradient(135deg, #2c3e50 0%, #4a6583 100%);
}

.btn-secondary:hover {
    background-color: #475569;
}

.btn-success {
    background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
}

footer {
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    background: linear-gradient(135deg, #2c3e50 0%, #4a6583 100%);
    color: white;
    border-radius: 12px;
}

.nav-container {
    position: relative;
    display: flex;
    align-items: center;
}

.menu-toggle {
    background: none;
    border: none;
    color: white; /* 或你的导航文字颜色 */
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #333; /* 或你的导航背景色 */
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    flex-direction: column;
    border-radius: 4px;
    overflow: hidden;
    display: none; /* 默认隐藏 */
}

.nav-links.show {
    display: flex; /* 通过JS添加类来显示 */
}

.nav-links a {
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: white; /* 或你的导航文字颜色 */
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: #555; /* 或你的悬停颜色 */
}

.nav-links a i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

/* 导航栏样式 */
.fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px 16px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.nav-logo i {
    margin-right: 8px;
    font-size: 1.4rem;
}

.nav-mylinks {
    display: flex;
    gap: 8px;
    margin-left: auto; /* 关键：自动左外边距推到右侧 */
}

.nav-mylinks a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.nav-mylinks a span {
    font-size: 0.7rem;
    margin-top: 3px;
}

.nav-mylinks a i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.nav-mylinks a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.nav-mylinks a.active {
    background-color: rgba(255, 255, 255, 0.25);
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .fixed-nav {
        padding: 12px 10px;
        height: 65px;
    }

    .nav-logo {
        font-size: 1rem;
    }

    .nav-mylinks a {
        padding: 6px 8px;
        min-width: 50px;
        font-size: 0.8rem;
    }

    .nav-mylinks a i {
        font-size: 1rem;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .content-with-padding {
        padding-top: 70px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .nav-mylinks a span {
        display: none;
    }

    .nav-mylinks a i {
        margin-bottom: 0;
    }
}

/************list and detail***************/

.common-input textarea {
    width: 100%;
    min-height: 20px;
    /*max-height: 500px; /* 可选：限制最大高度 */
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    /*resize: vertical;*/
    resize: none; /* 如果不需要手动调整大小，可以禁用 */
    transition: all 0.3s;
    margin-bottom: 20px;
    background-color: #f9f9ff;
    overflow: hidden; /* 隐藏滚动条 */
    box-sizing: border-box; /* 确保 padding 不影响宽度计算 */
}

.common-input textarea:focus {
    outline: none;
    border-color: #2575fc;
    box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.2);
}
