body {
    background: #f6f6ef;
    font-family: Verdana, Geneva, sans-serif;
    margin: 0;
}

/* 美化SweetAlert2发帖弹窗 */
.swal2-post-popup {
  border-radius: 12px !important;
  padding: 32px 24px 24px 24px !important;
  background: #fff !important;
  box-shadow: 0 8px 32px rgba(108,99,255,0.10) !important;
}
.swal-post-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.swal-label {
  font-size: 15px;
  color: #444;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.swal-post-input, .swal-post-textarea {
  background: #f9fafb !important;
  border-radius: 6px !important;
  border: 1px solid #d3d7df !important;
  font-size: 15px !important;
  padding: 10px 12px !important;
  margin: 0 !important;
  transition: border 0.2s;
}
.swal-post-input:focus, .swal-post-textarea:focus {
  border: 1.5px solid #6c63ff !important;
  background: #fff !important;
}
.swal2-post-confirm {
  background: linear-gradient(90deg, #ff6600 60%, #ff6600 100%) !important;
  /*color: #fff !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  font-size: 16px !important;
  padding: 10px 0 !important;*/
}
.swal2-post-cancel {
  border-radius: 6px !important;
  font-size: 15px !important;
}
.header {
    background: #ff6600;
    color: white;
    padding: 10px 4vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.header a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}
.header-nav {
    font-size: 13px;
    margin-left: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.header-login {
    font-size: 13px;
    margin-left: 12px;
    cursor: pointer;
}
.container {
    width: 96%;
    max-width: 85%;
    margin: 10px auto;
}
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.news-item {
    margin-bottom: 1px;
    border-radius: 4px;
}
.news-title {
    font-size: 14px;
    padding: 10px 14px 0 14px;
}
.news-title a {
    color: #333;
    text-decoration: none;
}
.news-meta {
    font-size: 12px;
    color: #828282;
    padding: 0 14px 1px 14px;
}
.news-meta a {
    color: #333;
    text-decoration: none;
}
.load-more {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 24px auto;
    padding: 10px 0;
    background: #ff6600;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}
.load-more:active {
    background: #e65c00;
}

/* 登录弹框美化样式 */
.modal-bg {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal-bg.active {
    display: flex;
}
.modal {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px #8888;
    padding: 32px 28px 24px 28px;
    min-width: 300px;
    max-width: 95vw;
    position: relative;
    animation: fadeIn 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.modal h2 {
    margin: 0 0 22px 0;
    font-size: 22px;
    text-align: center;
    color: #ff6600;
    letter-spacing: 1px;
}
.modal label {
    display: block;
    margin: 12px 0 6px 0;
    font-size: 15px;
    color: #333;
    font-weight: 500;
}
.modal input[type="text"],
.modal input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 6px;
    border: 1.5px solid #ff6600;
    border-radius: 6px;
    font-size: 16px;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
    background: #f9f9f9;
}
.modal input:focus {
    border-color: #e65c00;
    box-shadow: 0 0 0 2px #ffe0cc;
    background: #fff;
}
.modal .modal-actions {
    text-align: center;
    margin-top: 18px;
}
.modal button[type="submit"] {
    background: linear-gradient(90deg, #ff6600 60%, #ff8800 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 38px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px #ff660033;
    transition: background 0.2s;
}
.modal button[type="submit"]:hover {
    background: linear-gradient(90deg, #ff8800 60%, #ff6600 100%);
}
.modal .close-btn {
    position: absolute;
    right: 14px;
    top: 14px;
    background: none;
    border: none;
    font-size: 22px;
    color: #ff6600;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s;
}
.modal .close-btn:hover {
    color: #e65c00;
}
.modal input[type="text"]:disabled,
.modal input[type="password"]:disabled {
    background: #eee;
    color: #aaa;
}

@media (max-width: 600px) {
    .header {
        padding: 10px 2vw;
    }
    .container {
        width: 99%;
        margin: 12px auto;
    }
    .news-title {
        font-size: 15px;
        padding: 8px 8px 0 8px;
    }
    .news-meta {
        font-size: 12px;
        padding: 0 8px 8px 8px;
    }
    .header-nav {
        font-size: 12px;
        gap: 6px;
    }
    .header-login {
        font-size: 12px;
    }
    .load-more {
        font-size: 15px;
        padding: 9px 0;
    }
    .modal {
        padding: 18px 8px 12px 8px;
        min-width: 180px;
    }
    .modal h2 {
        font-size: 18px;
    }
    .modal button[type="submit"] {
        font-size: 15px;
        padding: 8px 24px;
    }
}

/* Small page-specific tweaks to match index.html look */
.comment-bg {
    display: none;
    padding-top: 12px;
}
.comment-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
}
.comment-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.comment-body {
    text-indent: 1em;
    line-height: 1.5;
}
.comment-author {
    font-weight: 600;
    margin-right: 6px;
}
.comment-actions {
    text-indent: 1em;
    margin-right: 3em;
    text-align: right;
}
.comment-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.comment-form button {
    margin-top: 8px;
    padding: 6px 12px;
    border: 0;
    border-radius: 4px;
    background: #ff6600;
    color: #fff;
    cursor: pointer;
}
.note {
    color: #888;
    font-size: 0.9rem;
    margin-top: 8px;
}

.comment-title {
    text-indent: 2em;
    font-size: 14px;
    padding: 0px 14px 10px 14px;
}
blockquote {
    font-size: 14px;
    margin: 2em 1em; /* 上下2em外边距，左右0 */
    padding: 1em 2em; /* 上下1em，左右2em内填充 */
    border-left: 5px solid #ccc; /* 左侧灰色实线边框 */
    background: #f9f9f9; /* 淡灰色背景 */
    font-style: italic; /* 斜体 */
}
