:root {
    --primary-color: #2196F3;
    --primary-dark: #1976D2;
    --text-dark: #212529;
    --text-gray: #6c757d;
    --border-light: #e9ecef;
    --border-gray: #f1f3f5;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --success-color: #4CAF50;
    --warning-color: #FFA500;
}

body {
    font-family: '微软雅黑', sans-serif;
    margin: 0;
    padding: 10px;
    background-color: var(--bg-light);
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 10px;
    }

    .input-group {
        flex-direction: column;
        gap: 10px;
    }

    #issueInput,
    #dateInput {
        width: 100% !important;
        flex: 1;
    }

    .days-large {
        font-size: 20px;
        margin: 0 10px;
    }

    .item-info {
        max-width: 50%;
    }

    .item-info .name {
        font-size: 14px;
    }

    .import-export-group {
        flex-direction: column;
    }
}

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

.input-group {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.input-group input {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
}

#issueInput {
    flex: none;
    width: 80px;
}

#dateInput {
    flex: none;
    width: 120px;
}

.btn-primary {
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.list {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.countdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-gray);
    position: relative;
    width: 100%;
    box-sizing: border-box;
    gap: 15px;
}

.item-info {
    flex: 1;
    min-width: 0;
}

.countdown-item[data-created-at]:not([data-created-at=''])::before {
    content: attr(data-created-at);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 10;
    display: inline-block;
}

.countdown-item[data-created-at]:not([data-created-at='']):hover::before {
    opacity: 1;
}

.days-large {
    color: var(--primary-dark);
    font-size: 24px;
    font-weight: bold;
    margin: 0 15px;
    flex-shrink: 0;
}



.import-export-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.export-btn, .import-btn {
    flex: 1;
    padding: 10px 20px;
    font-size: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.export-btn:hover, .import-btn:hover {
    background-color: var(--primary-dark);
}

.item-info .name {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 5px;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-info .target-date {
    font-size: 12px;
    color: var(--text-gray);
}

.date-and-delete {
    display: flex;
    align-items: center;
    gap: 10px;
}

.issue-common {
    margin-left: 10px;
    max-width: 300px;
    word-wrap: break-word;
}

.issue-plain {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: normal;
}

.delete-btn {
    font-size: 12px;
    color: var(--text-gray);
    background-color: transparent;
    border: none;
    cursor: pointer;
    margin-top: 0;
    align-self: center;
    transition: color 0.3s;
    flex-shrink: 0;
}

.delete-btn:hover {
    color: var(--primary-color);
}

.days-future {
    color: var(--primary-color);
    font-weight: bold;
}

.days-past {
    color: var(--warning-color);
}

.days-today {
    color: var(--success-color);
    font-weight: bold;
}

.issue-link {
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    margin-left: 10px;
    max-width: 300px;
    word-wrap: break-word;
}
