* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== 海浪渐变背景 ===== */
.wave-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0f7ff 0%, #e8e0ff 50%, #d4e8ff 100%);
    z-index: -1;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 150px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='0.3' d='M0,192L48,176C96,160,192,128,288,138.7C384,149,480,203,576,208C672,213,768,171,864,165.3C960,160,1056,192,1152,197.3C1248,203,1344,181,1392,170.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
    background-size: 50% 100%;
}

.wave1 {
    animation: waveMove 15s linear infinite;
    opacity: 0.6;
    bottom: 0;
}

.wave2 {
    animation: waveMove 20s linear infinite reverse;
    opacity: 0.4;
    bottom: 10px;
    height: 120px;
}

.wave3 {
    animation: waveMove 25s linear infinite;
    opacity: 0.2;
    bottom: 20px;
    height: 100px;
}

@keyframes waveMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== 首页样式 ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.time-box {
    text-align: center;
    margin-bottom: 40px;
    font-size: 18px;
    color: #4a5568;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-block;
    margin-left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 15px rgba(100,120,200,0.1);
}

.nav-box {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(100,120,200,0.15);
}

.nav-title {
    text-align: center;
    color: #5b6abf;
    margin-bottom: 30px;
    font-size: 28px;
}

.link-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.link-item {
    display: block;
    padding: 18px 20px;
    background: linear-gradient(135deg, #e0edff, #efe8ff);
    color: #4a5568;
    text-decoration: none;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    font-weight: 500;
}

.link-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(100,120,200,0.2);
    color: #5b6abf;
}

.empty-tip {
    text-align: center;
    color: #999;
    padding: 40px;
}

/* ===== 登录页 ===== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-box {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    width: 380px;
    box-shadow: 0 10px 40px rgba(100,120,200,0.2);
}

.login-box h2 {
    text-align: center;
    color: #5b6abf;
    margin-bottom: 30px;
}

.form-item {
    margin-bottom: 20px;
}

.form-item label {
    display: block;
    margin-bottom: 8px;
    color: #4a5568;
    font-size: 14px;
}

.form-item input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d0d8f0;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border 0.3s;
}

.form-item input:focus {
    border-color: #8b9cff;
}

.captcha-item {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.captcha-item input {
    flex: 1;
}

.captcha-item img {
    height: 42px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #d0d8f0;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #7b8cff, #a78bff);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(123,140,255,0.4);
}

.error-msg {
    background: #fee;
    color: #e53e3e;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
}

.success-msg {
    background: #f0fff4;
    color: #38a169;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
}

/* ===== 后台管理 ===== */
.admin-page {
    background: #f0f4ff;
}

.admin-header {
    background: linear-gradient(135deg, #7b8cff, #a78bff);
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 14px;
}

.btn-small {
    padding: 6px 14px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    transition: background 0.3s;
}

.btn-small:hover {
    background: rgba(255,255,255,0.3);
}

.btn-logout {
    background: rgba(255,100,100,0.3);
}

.admin-container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

.form-box, .list-box, .pwd-box {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(100,120,200,0.08);
}

.form-box h3, .list-box h3 {
    color: #5b6abf;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e8ff;
    padding-bottom: 10px;
}

.form-row {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row label {
    width: 100px;
    color: #4a5568;
    text-align: right;
}

.form-row input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d0d8f0;
    border-radius: 6px;
    outline: none;
}

.form-row input:focus {
    border-color: #8b9cff;
}

.btn-primary {
    padding: 10px 25px;
    background: linear-gradient(135deg, #7b8cff, #a78bff);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 110px;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(123,140,255,0.3);
}

.btn-cancel {
    margin-left: 15px;
    color: #999;
    text-decoration: none;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eef2ff;
}

.admin-table th {
    background: #f5f8ff;
    color: #5b6abf;
    font-weight: 600;
}

.admin-table td a {
    color: #7b8cff;
    text-decoration: none;
    margin-right: 15px;
}

.admin-table td a:hover {
    text-decoration: underline;
}

.pwd-box {
    max-width: 500px;
    margin: 50px auto;
}

.pwd-box .btn-primary {
    margin-left: 0;
    width: 100%;
    padding: 12px;
}