body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

nav {
    background-color: #1a73e8;
    color: white;
    padding: 0 20px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav .left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-title a {
    text-decoration: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-title .title-en {
    font-size: 24px;
    font-weight: 500;
    color: white;
}

.nav-title .title-zh {
    font-size: 18px;
    color: white;
    opacity: 0.9;
}

.datetime-display {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.1);
    height: 36px;
    border-radius: 18px;
}

.article-count {
    font-size: 15px;
    color: white;
}

#article-total {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    margin: 0 4px;
}

.datetime-display .date,
.datetime-display .time {
    font-size: 15px;
    font-weight: normal;
    color: white;
}

.datetime-display .divider {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 8px;
}

.datetime-display .time {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #fff;
}

nav .right {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

nav a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 1;
}
.home-link {
    cursor: pointer;
    transition: opacity 0.2s;
}

.home-link:hover {
    opacity: 0.8;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    width: 90%;
    max-width: 560px;
    animation: modalFadeIn 0.3s ease-out;
    position: relative;
}

.modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid #eef0f2;
    position: relative;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.modal-body {
    padding: 28px;
    color: #4b5563;
}

.modal-footer {
    padding: 24px 28px;
    border-top: 1px solid #eef0f2;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.modal-btn-primary {
    background: #2563eb;
    color: white;
}

.modal-btn-secondary {
    background: #f3f4f6;
    color: #4b5563;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 32px;
    height: 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
    background: #f3f4f6;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
