body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    padding: 0;
    min-height: 100vh;
    box-sizing: border-box;
    overflow-x: hidden;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
}

header {
    background-image: url('https://dlvtuber.com/images/background.png');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 1rem 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

iframe {
    width: 100%;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.news-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* 移除链接底线 */
.news-item {
    display: flex;
    background-color: #ffffff;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.news-image img {
    width: 150px;
    height: 150px;
    margin-right: 20px;
    border-radius: 10px;
    flex-shrink: 0;
    object-fit: cover;
}

.news-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    position: relative;
}

.news-heading {
    font-size: 24px;
    margin: 0;
    font-weight: bold;
    color: #007BFF;
}

.news-date {
    font-size: 14px;
    color: #888;
    position: absolute;
    top: 10px;
    right: 20px;
}

.news-description {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin: 5px 0;
}

.news-buttons {
    display: flex;
    gap: 10px;
}

.edit-button, .delete-button {
    background-color: #007BFF;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.edit-button:hover, .delete-button:hover {
    background-color: #0056b3;
}

.drag-and-drop {
    width: 100%;
    padding: 20px;
    border: 2px dashed #ccc;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
    background-color: #f8f9fa;
}

.drag-and-drop.dragging {
    background-color: #e9e9e9;
}

.tags {
    margin-bottom: 10px;
}

.tag {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 5px;
    font-size: 14px;
    color: white;
}

/* 彈跳視窗 */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    text-align: center;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 2rem auto;
    max-width: 600px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.empty-state h2 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
