* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background-color: #fdfdfd;
    font-size: 14px;
    color: #333;
    /* height: 100vh; */
}

.container {
    height: 100vh;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
}

header {
    background-color: #2a3446;
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #3a4a60;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 40px;
}

.logo h1 {
    font-size: 22px;
    font-weight: bold;
    color: #5ec4c7;
}

.auth-links {
    display: flex;
    gap: 15px;
}

.auth-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
}

.auth-links a:hover {
    background-color: rgba(94, 196, 199, 0.2);
}

.auth-links a.login {
    border: 1px solid #5ec4c7;
}

.auth-links a.register {
    background-color: #5ec4c7;
    color: #1a1e26;
}

.auth-links a.register:hover {
    background-color: #6ed4d7;
}

/* 导航菜单样式 - 修改部分开始 */
nav {
    background-color: #2a3446;
    padding: 0 20px;
    border-bottom: 1px solid #3a4a60;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    position: relative;
}

nav a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 14px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

nav a:hover {
    color: #5ec4c7;
    background-color: #3a4a60;
}

/* 点击效果 */
nav a:active {
    transform: scale(0.98);
    background-color: #4a5a70;
    transition: transform 0.1s, background-color 0.3s;
}

/* 当前活动页面样式 */
nav a.active {
    color: #5ec4c7;
    background-color: #3a4a60;
    font-weight: 500;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #5ec4c7;
    animation: activeSlideIn 0.3s ease-out;
}

@keyframes activeSlideIn {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* 涟漪点击效果 */
nav a:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(94, 196, 199, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

nav a:focus:not(:active)::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* 导航菜单样式 - 修改部分结束 */

.main-content {
    padding: 20px;
    overflow-y: auto;
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 20px;
    background-color: #222a36;
}

.welcome-section {
    background-color: #2a3446;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    /* border-left: 4px solid #5ec4c7; */
}

.welcome-section h2 {
    color: #5ec4c7;
    margin-bottom: 8px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.welcome-section p {
    color: #a0aec0;
    font-size: 14px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.action-card {
    background-color: #2a3446;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-top: 1px solid #5ec4c7;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    background-color: #3a4a60;
}

.action-card i {
    font-size: 32px;
    color: #5ec4c7;
}

.action-card h3 {
    font-size: 16px;
    color: #e0e6f0;
    font-weight: 500;
}

.action-card p {
    color: #a0aec0;
    font-size: 13px;
    text-align: center;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.stats-card,
.notice-card {
    background-color: #2a3446;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #3a4a60;
}

.card-header h3 {
    color: #5ec4c7;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #3a4a60;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: #a0aec0;
    font-size: 14px;
}

.stat-value {
    font-weight: 600;
    font-size: 15px;
    color: #5ec4c7;
}

.notice-item {
    padding: 12px 0;
    border-bottom: 1px dashed #3a4a60;
}

.notice-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.notice-title {
    color: #e0e6f0;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-title::before {
    content: '•';
    color: #5ec4c7;
    font-size: 20px;
}

.notice-date {
    color: #e1e7f0;
    font-size: 12px;
    margin-bottom: 8px;
}

.notice-content {
    color: #5ec4c7;
    font-size: 13px;
    line-height: 1.5;
}

footer {
    background-color: #2a3446;
    padding: 12px 20px;
    text-align: center;
    color: #cdd7e5;
    font-size: 13px;
    border-top: 1px solid #3a4a60;
}

/* 登录/注册页面样式 */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #1a1e26;
}

.auth-box {
    background-color: #2a3446;
    padding: 40px;
    border-radius: 8px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #3a4a60;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    color: #5ec4c7;
    font-size: 24px;
    margin-bottom: 10px;
}

.auth-header p {
    color: #a0aec0;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #a0aec0;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #3a4a60;
    border-radius: 4px;
    background-color: #f5f6f7;
    color: #010b1b;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #5ec4c7;
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #5ec4c7;
    color: #1a1e26;
    width: 100%;
}

.btn-primary:hover {
    background-color: #6ed4d7;
}

.form-footer {
    margin-top: 15px;
    text-align: center;
    color: #a0aec0;
    font-size: 13px;
}

.form-footer a {
    color: #5ec4c7;
    text-decoration: none;
    cursor: pointer;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #2a3446;
}

::-webkit-scrollbar-thumb {
    background: #5ec4c7;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6ed4d7;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }

    nav ul {
        overflow-x: auto;
        padding-bottom: 5px;
    }

    nav li {
        flex-shrink: 0;
    }

    .auth-links {
        gap: 10px;
    }

    .auth-links a {
        padding: 4px 8px;
        font-size: 13px;
    }

    .auth-box {
        padding: 30px 20px;
    }
}

/* 其他补充样式 */
.auth-main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #222a36;
}

.auth-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.auth-box {
    width: 100%;
    max-width: 500px;
}

.auth-links a.active {
    background-color: #5ec4c7;
    color: #1a1e26;
}

.auth-links a.active:hover {
    background-color: #6ed4d7;
}

@media (max-width: 768px) {
    .auth-box {
        padding: 30px 20px;
    }

    .auth-main-content {
        padding: 10px;
    }
}