/* 主体 */
.tool-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 顶部工具栏 */
.clock-tool-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}
.tool-title {
    font-size: 22px;
    font-weight: bold;
    color: #222;
}
.tool-btns {
    display: flex;
    gap: 10px;
}
.btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    background: #f1f5f9;
    cursor: pointer;
    font-size: 14px;
}
.btn-primary {
    background: #3b82f6;
    color: #fff;
}

/* 时钟卡片列表 */
.clock-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* 时钟卡片 */
.clock-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    cursor: move;
    transition: all 0.2s;
    position: relative;
}
.clock-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.clock-card .del {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 50%;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 12px;
    color: #666;
}
.clock-card .del:hover {
    background: #ff6464;
    color: #fff;
}
.city {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
}
.time {
    font-size: 36px;
    font-weight: 700;
    color: #111;
    margin-bottom: 6px;
}
.date {
    font-size: 14px;
    color: #666;
}

/* 弹窗 */
.modal-mask {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.modal-box {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
    margin: 15vh auto 0;
}
.modal-title {
    padding: 16px;
    font-weight: bold;
    border-bottom: 1px solid #eee;
}
.city-list {
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.city-item {
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    cursor: pointer;
}
.city-item.active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}
.modal-footer {
    padding: 12px;
    text-align: right;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 全屏样式 */
.fullscreen-mode {
    background: #0d1b2a !important;
    padding: 30px;
}
.fullscreen-mode .clock-card {
    background: #1b263b;
    color: #fff !important;
}
.fullscreen-mode .city,
.fullscreen-mode .time,
.fullscreen-mode .date {
    color: #fff !important;
}