/* ========== 全局样式 & 头部/底部 (与原网站统一) ========== */
* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

body {
    background: #f4f7fb;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* 头部导航 */
.site-header {
    width: 100%;
    background: #0b3b5c;
    color: white;
    padding: 0 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-area .logo {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-item {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}

.nav-item:hover,
.nav-item.active {
    color: white;
    border-bottom-color: white;
}

/* 底部版权 */
.site-footer {
    width: 100%;
    background: #eef3f8;
    color: #3a5e7a;
    text-align: center;
    padding: 25px 20px;
    font-size: 0.9rem;
    border-top: 1px solid #d0deeb;
    margin-top: auto;
}

/* 页面内容容器（所有页面共用） */
.page-container {
    max-width: 1000px;
    width: 100%;
    margin: 30px auto;
    flex: 1;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,20,40,0.08);
    padding: 35px;
}

/* 标题区 */
h1, h2 {
    color: #0b3b5c;
    font-weight: 600;
    margin-top: 0;
}

h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 2rem;
}

h1:before {
    content: "💧";
    font-size: 2rem;
}

h2 {
    border-bottom: 2px solid #e6edf4;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

/* 按钮 */
.btn {
    background: #0b3b5c;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn:hover {
    background: #0f4c73;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(11,59,92,0.15);
}

.btn-outline {
    background: white;
    color: #0b3b5c;
    border-color: #cbd6e3;
}

.btn-outline:hover {
    background: #f0f4fa;
    border-color: #0b3b5c;
}

.btn-small {
    padding: 6px 16px;
    font-size: 0.85rem;
}

.btn-secondary {
    background: white;
    color: #0b3b5c;
    border: 1.5px solid #cbd6e3;
    margin-top: 15px;
    display: block;
    text-align: center;
    text-decoration: none;
}

/* 提示消息 */
.message {
    padding: 16px 20px;
    border-radius: 40px;
    margin-bottom: 25px;
    font-weight: 500;
    background: #dff0fe;
    color: #0b3b5c;
    border-left: 6px solid #0b3b5c;
}

.message.error {
    background: #ffeae9;
    color: #b3403a;
    border-left-color: #b3403a;
}

/* 表单元素 */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    font-weight: 500;
    color: #1d4e7c;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

input[type="text"],
input[type="date"],
input[type="password"],
input[type="file"] {
    width: 100%;
    padding: 12px 20px;
    border-radius: 40px;
    border: 1.5px solid #d0deeb;
    font-size: 1rem;
    transition: 0.15s;
    background: #f9fcff;
}

input:focus {
    border-color: #0b3b5c;
    outline: none;
    background: white;
}

/* 登录框专用 */
.login-box {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,20,40,0.08);
}

.back-link {
    text-align: center;
    margin-top: 20px;
}

.back-link a {
    color: #0b3b5c;
    text-decoration: none;
    font-weight: 500;
}

.back-link a:hover {
    text-decoration: underline;
}

/* 列表页面特有 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #e6edf4;
    padding-bottom: 20px;
}

.login-status {
    font-size: 0.9rem;
    color: #1d4e7c;
}

.toolbar {
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.report-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-item {
    background: #f9fcff;
    border-radius: 60px;
    padding: 8px 20px 8px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e0eaf2;
    transition: 0.15s;
}

.report-item:hover {
    background: #edf5fc;
    border-color: #b9d1e6;
}

.report-info {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.report-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0b3b5c;
    text-decoration: none;
}

.report-date {
    background: #d4e2f0;
    color: #1d4e7c;
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
}

.report-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7089a3;
    background: #f9fcff;
    border-radius: 50px;
    margin-top: 20px;
}

.empty-state p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

/* 上传页面特有 */
.error-message {
    background: #ffeae9;
    color: #b3403a;
    padding: 15px 20px;
    border-radius: 40px;
    margin-bottom: 25px;
    border-left: 6px solid #b3403a;
}

.info-note {
    background: #e2f0fa;
    padding: 15px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    color: #13507b;
    margin-bottom: 25px;
}

/* 详情页面特有 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e6edf4;
    padding-bottom: 15px;
}

.header h2 {
    margin: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.badge {
    background: #d4e2f0;
    padding: 6px 18px;
    border-radius: 40px;
    color: #1d4e7c;
    font-weight: 500;
    margin-right: 10px;
}

.nav-links a {
    margin-right: 20px;
    text-decoration: none;
    color: #0b3b5c;
    font-weight: 500;
}

.pages-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin: 35px 0;
}

.page-item {
    max-width: 100%;
    min-width: 100%;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    background: #fafafa;
}

.page-item img {
    width: 100%;
    min-width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #ddd;
}

.footer-actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.delete-form {
    display: inline;
}