/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
    padding: 10px;
    word-wrap: break-word;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    padding: 12px 15px;
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.card-header .icon {
    margin-right: 8px;
    font-size: 1.2em;
}

.card-content {
    padding: 15px;
}

.card-footer {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
}

.card-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 链接按钮 */
.links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.link-button {
    display: inline-block;
    padding: 8px 12px;
    background-color: #4285f4;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.link-button:hover {
    background-color: #3367d6;
}

/* 更新记录 */
.updates {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.update-item {
    display: flex;
    flex-direction: column;
}

.update-date {
    font-weight: bold;
    color: #666;
    font-size: 14px;
}

.update-content {
    margin-top: 2px;
}

/* 留言板 */
.messages {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.message-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.message-name {
    font-weight: bold;
}

.message-date {
    color: #666;
    font-size: 14px;
}

.message-ip {
    color: #999;
    font-size: 12px;
}

.message-content {
    line-height: 1.6;
}

/* 表单样式 */
input, textarea, button {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

button {
    background-color: #4285f4;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background-color: #3367d6;
}

/* 留言表单 */
.message-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 登录页面 */
.login-card {
    max-width: 400px;
    margin: 50px auto;
}

.error-message {
    color: #d32f2f;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #ffebee;
    border-radius: 4px;
}

.captcha-container {
    margin-bottom: 15px;
}

.captcha-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* 管理后台样式 */
.admin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.admin-item-content {
    flex: 1;
}

.admin-item-action button {
    width: auto;
    padding: 5px 10px;
    background-color: #d32f2f;
}

.admin-item-action button:hover {
    background-color: #b71c1c;
}

.logs {
    font-family: monospace;
    font-size: 14px;
}

.log-item {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.logout-button {
    background-color: #d32f2f;
}

.logout-button:hover {
    background-color: #b71c1c;
}

/* 页脚卡片 */
.footer-card {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.admin-link {
    margin-top: 15px;
}

.admin-link a {
    color: #4285f4;
    text-decoration: none;
}

.admin-link a:hover {
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 600px) {
    body {
        font-size: 14px;
    }
    
    .card-header, .card-content, .card-footer {
        padding: 10px;
    }
    
    .message-header {
        flex-wrap: wrap;
    }
    
    .message-ip {
        width: 100%;
    }
}
/* 更新body部分添加背景和字体 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Microsoft YaHei", "微软雅黑";
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
    background-image: linear-gradient(to bottom, #f9f9f9, #e9e9e9);
    padding: 10px;
    word-wrap: break-word;
}

/* 添加自定义字体链接 */
@font-face {
    font-family: 'CustomFont';
    src: url('https://fonts.example.com/your-font.woff2') format('woff2'),
         url('https://a.z6o.de/alimam.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 如果需要使用Google Fonts中文 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* 更新卡片背景和阴影 */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* 更新链接颜色 */
a {
    color: #1a73e8;
    text-decoration: none;
}

a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

/* 更新按钮样式 */
button, .link-button {
    background-color: #1a73e8;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

button:hover, .link-button:hover {
    background-color: #0d47a1;
}

/* 夜间模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }
    
    .card {
        background-color: #1e1e1e;
        border-color: #333;
    }
    
    input, textarea {
        background-color: #2d2d2d;
        color: #e0e0e0;
        border-color: #444;
    }
}