﻿/* 在原有style.css基础上添加以下样式 */

/* GPS表格响应式 */
@media (max-width: 768px) {
    .table {
        display: block;
        overflow-x: auto;
    }
    
    .table th,
    .table td {
        white-space: nowrap;
        min-width: 100px;
    }
}

/* 登录表单优化 */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 消息提示 */
.message {
    padding: 12px 20px;
    border-radius: 5px;
    margin: 15px 0;
    border: 1px solid transparent;
}

.success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-buttons .btn {
    flex-shrink: 0;
}

/* GPS刷新提示 */
.refresh-timer {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: bold;
    margin-left: 5px;
}
/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f5f5f5;
}

/* 通用样式 */
.container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 20px;
}

h1, h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #2980b9;
}

.btn-danger {
    background: #e74c3c;
}

.btn-danger:hover {
    background: #c0392b;
}

/* 导航 */
.nav {
    background: #2c3e50;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.nav a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
    padding: 5px 10px;
    border-radius: 3px;
}

.nav a:hover {
    background: rgba(255,255,255,0.1);
}

/* 文章列表 */
.article-list {
    list-style: none;
}

.article-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.article-item:hover {
    background: #f8f9fa;
}

.article-item a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
}

.article-item time {
    color: #7f8c8d;
    font-size: 14px;
    margin-left: 10px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.page-link {
    padding: 8px 15px;
    margin: 0 5px;
    background: #ecf0f1;
    color: #34495e;
    text-decoration: none;
    border-radius: 3px;
}

.page-link.active {
    background: #3498db;
    color: white;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

textarea.form-control {
    min-height: 200px;
    resize: vertical;
}

/* 后台表格 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
}

.table tr:hover {
    background: #f8f9fa;
}

/* 文章页 */
.article-header {
    margin-bottom: 30px;
}

.article-content {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    text-decoration: none;
    font-size: 20px;
    z-index: 1000;
}

.close-btn:hover {
    background: #c0392b;
}

/* 底部 */
.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #7f8c8d;
}

.footer a {
    color: #3498db;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 15px;
    }
    
    .table {
        font-size: 14px;
    }
    
    .table th,
    .table td {
        padding: 8px;
    }
}